@tiddh/brave-vue 1.91.68 → 1.91.70
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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import"core-js/modules/es.object.to-string.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.entries.js";import"../dist/icons";import t from"../dist/icons/index.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.regexp.to-string.js";import e from"axios";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.array.filter.js";import a from"array-sort";import"core-js/modules/es.array.from.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.array.fill.js";import i from"v-lazy-image";import"core-js/modules/es.string.link.js";import o from"card-validator";import{mask as r}from"vue-the-mask";import"core-js/modules/es.regexp.test.js";import n from"v-click-outside";import{ScrollPicker as
|
|
1
|
+
import"core-js/modules/es.object.to-string.js";import"core-js/modules/web.dom-collections.for-each.js";import"core-js/modules/es.object.entries.js";import"../dist/icons";import t from"../dist/icons/index.js";import"core-js/modules/es.number.constructor.js";import"core-js/modules/es.function.name.js";import"core-js/modules/es.regexp.to-string.js";import e from"axios";import"core-js/modules/es.array.concat.js";import"core-js/modules/es.array.find.js";import"core-js/modules/es.array.includes.js";import"core-js/modules/es.string.includes.js";import"core-js/modules/es.array.splice.js";import"core-js/modules/es.array.filter.js";import a from"array-sort";import"core-js/modules/es.array.from.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/es.regexp.exec.js";import"core-js/modules/es.string.replace.js";import"core-js/modules/es.array.fill.js";import i from"v-lazy-image";import"core-js/modules/es.string.link.js";import o from"card-validator";import{mask as r}from"vue-the-mask";import"core-js/modules/es.regexp.test.js";import n from"v-click-outside";import{ScrollPicker as d,ScrollPickerGroup as s}from"vue-scroll-picker";import"vue-scroll-picker/dist/style.css";import l from"jquery";import"core-js/modules/es.array.slice.js";import"core-js/modules/es.array.join.js";import"core-js/modules/es.string.split.js";import c from"vue-slick-carousel";import"vue-slick-carousel/dist/vue-slick-carousel.css";import"core-js/modules/es.object.keys.js";import p from"vue";import"core-js/modules/es.symbol.js";import"core-js/modules/es.symbol.description.js";function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a<e;a++)i[a]=t[a];return i}function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var i,o,r=[],n=!0,d=!1;try{for(a=a.call(t);!(n=(i=a.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){d=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(d)throw o}}return r}}(t,e)||function(t,e){if(t){if("string"==typeof t)return m(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?m(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};const g=Object.create(null),f=Object.create(null),v={id:"<rollup>",exports:{},parent:void 0,filename:null,loaded:!1,children:[],paths:[]},b=["",".js",".json"];function w(t){const e=(t=t.replace(/\\/g,"/")).split("/"),a=""===e[0];for(let t=1;t<e.length;t++)"."!==e[t]&&""!==e[t]||e.splice(t--,1);for(let t=1;t<e.length;t++)".."===e[t]&&t>0&&".."!==e[t-1]&&"."!==e[t-1]&&(e.splice(--t,2),t--);return t=e.join("/"),a&&"/"!==t[0]?t="/"+t:0===t.length&&(t="."),t}function x(){if(0===arguments.length)return".";let t;for(let e=0;e<arguments.length;++e){let a=arguments[e];a.length>0&&(void 0===t?t=a:t+="/"+a)}return void 0===t?".":t}function y(t,e){const a=function(t){let e=t[0];if("/"===e||"\\"===e)return!1;let a=t[1],i=t[2];return!(!("."!==e||a&&"/"!==a&&"\\"!==a)||!("."!==e||"."!==a||i&&"/"!==i&&"\\"!==i))&&(":"!==a||"/"!==i&&"\\"!==i)}(t);let i;for(t=w(t);;){i=a?w(e?e+"/node_modules/"+t:x("node_modules",t)):e?w(e+"/"+t):t;for(let t=0;t<b.length;t++){const e=i+b[t];let a=f[e];if(a)return a.exports;const o=g[e];if(o){f[e]=a={id:e,filename:e,exports:{},parent:v,loaded:!1,children:[],paths:[]};try{o.call(h,a,a.exports)}catch(t){throw delete f[e],t}return a.loaded=!0,a.exports}}if(!a)break;const o=w(e+"/..");if(o===e)break;e=o}return require(t)}y.cache=f;var z=Object.freeze({__proto__:null,commonjsGlobal:h,unwrapExports:function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t},createCommonjsModule:function(t,e){return t(e={exports:{}},e.exports),e.exports},getCjsExportFromNamespace:function(t){return t&&t.default||t},commonjsRegister:function(t,e){g[t]=e},commonjsRequire:y});const{commonjsRegister:k}=z;function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
C=function(){return t};var t={},e=Object.prototype,a=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",n=i.toStringTag||"@@toStringTag";function
|
|
3
|
+
C=function(){return t};var t={},e=Object.prototype,a=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",n=i.toStringTag||"@@toStringTag";function d(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,a){return t[e]=a}}function s(t,e,a,i){var o=e&&e.prototype instanceof p?e:p,r=Object.create(o.prototype),n=new k(i||[]);return r._invoke=function(t,e,a){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return M()}for(a.method=o,a.arg=r;;){var n=a.delegate;if(n){var d=x(n,a);if(d){if(d===c)continue;return d}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===i)throw i="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);i="executing";var s=l(t,e,a);if("normal"===s.type){if(i=a.done?"completed":"suspendedYield",s.arg===c)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(i="completed",a.method="throw",a.arg=s.arg)}}}(t,a,n),r}function l(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var c={};function p(){}function m(){}function u(){}var h={};d(h,o,(function(){return this}));var g=Object.getPrototypeOf,f=g&&g(g(P([])));f&&f!==e&&a.call(f,o)&&(h=f);var v=u.prototype=p.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var i;this._invoke=function(o,r){function n(){return new e((function(i,n){!function i(o,r,n,d){var s=l(t[o],t,r);if("throw"!==s.type){var c=s.arg,p=c.value;return p&&"object"==_(p)&&a.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,n,d)}),(function(t){i("throw",t,n,d)})):e.resolve(p).then((function(t){c.value=t,n(c)}),(function(t){return i("throw",t,n,d)}))}d(s.arg)}(o,r,i,n)}))}return i=i?i.then(n,n):n()}}function x(t,e){var a=t.iterator[e.method];if(void 0===a){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var i=l(a,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,c;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function y(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(y,this),this.reset(!0)}function P(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(a.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:M}}function M(){return{value:void 0,done:!0}}return m.prototype=u,d(v,"constructor",u),d(u,"constructor",m),m.displayName=d(u,n,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):(t.__proto__=u,d(t,n,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},b(w.prototype),d(w.prototype,r,(function(){return this})),t.AsyncIterator=w,t.async=function(e,a,i,o,r){void 0===r&&(r=Promise);var n=new w(s(e,a,i,o),r);return t.isGeneratorFunction(a)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},b(v),d(v,n,"Generator"),d(v,o,(function(){return this})),d(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var a in t)e.push(a);return e.reverse(),function a(){for(;e.length;){var i=e.pop();if(i in t)return a.value=i,a.done=!1,a}return a.done=!0,a}},t.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(z),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(a,i){return n.type="throw",n.arg=t,e.next=a,i&&(e.method="next",e.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],n=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var d=a.call(r,"catchLoc"),s=a.call(r,"finallyLoc");if(d&&s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(d){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var n=r?r.completion:{};return n.type=t,n.arg=e,r?(this.method="next",this.next=r.finallyLoc,c):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.finallyLoc===t)return this.complete(a.completion,a.afterLoc),z(a),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var a=this.tryEntries[e];if(a.tryLoc===t){var i=a.completion;if("throw"===i.type){var o=i.arg;z(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,a){return this.delegate={iterator:P(t),resultName:e,nextLoc:a},"next"===this.method&&(this.arg=void 0),c}},t}function P(t,e,a,i,o,r,n){try{var d=t[r](n),s=d.value}catch(t){return void a(t)}d.done?e(s):Promise.resolve(s).then(i,o)}function M(t){return function(){var e=this,a=arguments;return new Promise((function(i,o){var r=t.apply(e,a);function n(t){P(r,i,o,n,d,"next",t)}function d(t){P(r,i,o,n,d,"throw",t)}n(void 0)}))}}
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ C=function(){return t};var t={},e=Object.prototype,a=e.hasOwnProperty,i="functio
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
k("/$$rollup_base$$/dist/icons",(function(e,a){e.exports=t}));var S={name:"ToggleSubcategory",props:{imagePath:{type:String,default:""},selected:{type:Boolean,required:!1,default:!1},glasses:{type:String,required:!1}},computed:{showPlaceholder:function(){return""===this.imagePath}}};function N(t,e,a,i,o,r/* server only */,n,s,
|
|
20
|
+
k("/$$rollup_base$$/dist/icons",(function(e,a){e.exports=t}));var S={name:"ToggleSubcategory",props:{imagePath:{type:String,default:""},selected:{type:Boolean,required:!1,default:!1},glasses:{type:String,required:!1}},computed:{showPlaceholder:function(){return""===this.imagePath}}};function N(t,e,a,i,o,r/* server only */,n,d,s,l){"boolean"!=typeof n&&(s=d,d=n,n=!1);
|
|
21
21
|
// Vue.extend constructor export interop.
|
|
22
22
|
const c="function"==typeof a?a.options:a;
|
|
23
23
|
// render functions
|
|
@@ -35,12 +35,12 @@ p=function(t){
|
|
|
35
35
|
this.$vnode&&this.$vnode.ssrContext||// stateful
|
|
36
36
|
this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),
|
|
37
37
|
// inject component styles
|
|
38
|
-
e&&e.call(this,
|
|
38
|
+
e&&e.call(this,s(t)),
|
|
39
39
|
// register component module identifier for async chunk inference
|
|
40
40
|
t&&t._registeredComponents&&t._registeredComponents.add(r)},
|
|
41
41
|
// used by ssr in case component is cached and beforeCreate
|
|
42
42
|
// never gets called
|
|
43
|
-
c._ssrRegister=p):e&&(p=n?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,
|
|
43
|
+
c._ssrRegister=p):e&&(p=n?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,d(t))}),p)if(c.functional){
|
|
44
44
|
// register for functional component in vue file
|
|
45
45
|
const t=c.render;c.render=function(e,a){return p.call(a),t(e,a)}}else{
|
|
46
46
|
// inject component registration as beforeCreate hook
|
|
@@ -65,7 +65,7 @@ this.handleCustomizationUpdate(i.id,i.hexa,i.assets.asset,t.z_index,t.disable,nu
|
|
|
65
65
|
// quiser alterar o valor de data deixe a alteração da data por ultimo
|
|
66
66
|
// pois ao fazer a alterção é possível que suas computed properties estejam sendo
|
|
67
67
|
// recalculadas ou já possuam um valor diferente
|
|
68
|
-
this.clickedSubcategory=t}else this.handleCustomizationUpdate(t.id,t.name,t.assets.asset,t.z_index,t.disable,null,!!this.removableCategory||null)},handleColorClick:function(t){this.handleCustomizationUpdate(t.id,t.hexa,t.assets.asset,this.selectedSubcategory.z_index,this.selectedSubcategory.disable)},handleCustomizationUpdate:function(t,e,a,i,o){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],n=arguments.length>6&&void 0!==arguments[6]&&arguments[6],
|
|
68
|
+
this.clickedSubcategory=t}else this.handleCustomizationUpdate(t.id,t.name,t.assets.asset,t.z_index,t.disable,null,!!this.removableCategory||null)},handleColorClick:function(t){this.handleCustomizationUpdate(t.id,t.hexa,t.assets.asset,this.selectedSubcategory.z_index,this.selectedSubcategory.disable)},handleCustomizationUpdate:function(t,e,a,i,o){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],n=arguments.length>6&&void 0!==arguments[6]&&arguments[6],d=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s=this.customization;s||(s={categoryId:this.category.id,categoryZIndex:this.category.z_index,relatedCategoryId:this.category.depends_category},this.removableCategory&&(s.categoryId=d)),s.optionId=t,s.optionName=e,s.optionAsset=a,s.optionZIndex=i,this.removableCategory&&(this.customization=s),this.$emit("update:customization",{customization:s,categoriesToDisable:o,removeGroup:r,firstGroup:n,removableCategory:!!this.removableCategory})},isDisabled:function(t,e){var a=!1;if(a=e.find((function(e){if(e.categoryId===t)return!0})),a)return this.clickedSubcategory=null,!0}}},void 0,!1,void 0,!1,L,void 0,void 0),T=N({render:function(){var t=this.$createElement;return(this._self._c||t)("p",this._g(this._b({class:["caption","type-"+this.type],style:[{color:this.color}]},"p",this.$attrs,!1),this.$listeners),[this._t("default")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-494fbeae_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-494fbeae]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-494fbeae]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-494fbeae]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-494fbeae]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-494fbeae]{font-size:14px}}@media (min-width:1024px){[data-v-494fbeae]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-494fbeae]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-494fbeae]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-494fbeae]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-494fbeae]{font-size:1.56vw}}html[data-v-494fbeae]{box-sizing:border-box}*[data-v-494fbeae],[data-v-494fbeae]::after,[data-v-494fbeae]::before{box-sizing:border-box}.caption[data-v-494fbeae]{margin:0;font-family:Roboto,sans-serif;font-weight:400;line-height:1.5;font-size:.5714285714rem}@media (max-width:479px){.caption[data-v-494fbeae]{font-size:1.1214953271rem}}.caption.type-bold[data-v-494fbeae]{font-weight:700}',map:void 0,media:void 0})}),{name:"Caption",props:{
|
|
69
69
|
/**
|
|
70
70
|
* Valor a ser exibido<br>
|
|
71
71
|
* Example: `Value`
|
|
@@ -80,7 +80,7 @@ color:{type:String,default:"#68596E"},
|
|
|
80
80
|
* Type of font<br>
|
|
81
81
|
* Example: `Regular | Bold`
|
|
82
82
|
**/
|
|
83
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-494fbeae",!1,void 0,!1,L,void 0,void 0),F=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"avatar-page"},[a("CustomizationView",{attrs:{custom_properties:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,is_male:t.is_male,slug:t.character_slug,uuid:t.uuid,user_data:{properties:t.custom_properties,type_id:t.type_id}},gradient_colors:t.gradient_colors,is_subscription:t.is_subscription,builder_api:"https://builder.dentrodahistoria.com.br/api",builderLayoutId:t.builderLayoutId,language:t.language},on:{startedMethod:t.started,completedMethod:t.completed}})],1)},staticRenderFns:[]},(function(t){t&&t("data-v-d4488458_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-d4488458]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-d4488458]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-d4488458]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-d4488458]{font-size:14px}}@media (min-width:1024px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-d4488458]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-d4488458]{font-size:1.56vw}}html[data-v-d4488458]{box-sizing:border-box}*[data-v-d4488458],[data-v-d4488458]::after,[data-v-d4488458]::before{box-sizing:border-box}hr[data-v-d4488458]{margin:10px -1.5rem}h1[data-v-d4488458]{font-family:Nunito;font-size:24px;font-weight:900;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#000;margin-top:0;margin-bottom:15px}h1[data-v-d4488458]:first-child{display:none}.ddh-sidebar[data-v-d4488458],.ddh-sidebar.hide-sidebar[data-v-d4488458]{display:none!important}html[data-v-d4488458]{--scale:1;--translate:0%}.loading-view[data-v-d4488458]{position:absolute;top:0;width:100%;height:100%;background:#fff;position:absolute;width:100%;top:0;z-index:200;display:flex;align-items:center;justify-content:center;flex-direction:column}.avatar-page-1[data-v-d4488458]{position:absolute;z-index:3}.avatar-page[data-v-d4488458]{min-height:100vh;position:absolute;width:100%;height:100vh;top:0;left:0;background:#fff}@media (max-width:992px){.avatar-page[data-v-d4488458]{min-height:0;height:100vh;height:calc(var(--vh,1vh) * 100);overflow:hidden}}.return[data-v-d4488458]{position:fixed;z-index:99}.return .icon[data-v-d4488458]{width:38px;height:38px;position:absolute;z-index:30;padding:.95238rem 2.77778vw}.return .icon svg[data-v-d4488458]{width:38px;height:38px}.return .icon svg path[data-v-d4488458]{fill:#afa2ba!important;stroke:#afa2ba!important;transition:all .1s cubic-bezier(.4,0,.2,1)}.return .icon[data-v-d4488458]:hover{cursor:pointer}.return .icon:hover path[data-v-d4488458],.return .icon:hover svg[data-v-d4488458]{fill:#1ad3d9!important;stroke:#1ad3d9!important}.return .icon:active svg[data-v-d4488458]{transform:scale(.9)}',map:void 0,media:void 0})}),{name:"Avatar",components:{CustomizationView:N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("link",{attrs:{rel:"stylesheet",href:"https://use.fontawesome.com/releases/v5.8.1/css/all.css",integrity:"sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf",crossorigin:"anonymous"}}),t._v(" "),a("div",{staticClass:"mobile-tooltip",on:{click:t.removeTooltip}},[t._m(0)]),t._v(" "),a("CustomizationPreview",{attrs:{customizations:t.customizations,"selected-character":t.selectedCharacter,"character-height":t.characterHeight?t.characterHeight:null,"gradient-colors":t.gradient_colors,"character-slug":t.custom_properties.slug,characterHeight:1}}),t._v(" "),a("CustomizationPanel",{attrs:{"builder-api":t.builder_api,"selected-character":t.selectedCharacter,"character-name":t.custom_properties.user_data.properties.nome.value,"subscription-id":"1","stack-id":"1","character-slug":t.custom_properties.slug,"character-id":t.characterId,"character-type-id":t.characterTypeId,"character-is-male":t.custom_properties.is_male,"categories-assets":t.categoriesAssets,"disabled-categories":t.disabledCategories,customizations:t.customizations,"builder-product-id":t.builderProductId?t.builderProductId:this.custom_properties.product_id,userDataProperties:t.custom_properties.user_data.properties,builderLayoutId:t.builderLayoutId,language:t.language},on:{"update:customization":t.handleCustomization,startedMethod:t.startedMethod,completedMethod:t.completedMethod}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tooltip"},[this._v("\n\t\t\tLorem ipsum dolor sit amet, eum ne sale vidit epicuri, usu populo\n\t\t\tincorrupte ex. His falli intellegebat no.\n\t\t\t"),e("i",{staticClass:"fas fa-times"})])}]},(function(t){t&&t("data-v-264948b7_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.mobile-tooltip{display:none}@media (max-width:992px){.mobile-tooltip{display:none;position:absolute;z-index:90000000;height:calc(100vh - 59px);width:100%;transition:all .3s;bottom:0}.mobile-tooltip .tooltip{border-radius:5px;color:#fff;font-size:14px;padding:10px 36px 10px 16px;width:350px;margin-left:15px;box-shadow:0 1px 2px 0 rgba(0,0,0,.31);line-height:1.5;position:relative;margin-top:auto;bottom:calc(var(--cp) + 25px)}.mobile-tooltip .tooltip:after{top:100%;left:5%;border:solid transparent;content:" ";position:absolute;border-width:10px}.mobile-tooltip .tooltip i{position:absolute;right:10px;top:10px}}',map:void 0,media:void 0})}),{name:"CustomizationView",components:{CustomizationPanel:N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-panel"},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-panel-head"},[a("div",{staticClass:"customization-panel-heading"},[t._v("\n\t\t\t\tEditar o personagem "+t._s(t.characterIsMale?"do":"da")+"\n\t\t\t\t"),a("b",[t._v(t._s(t.characterName))])]),t._v(" "),a("div",{staticClass:"customization-categories"},[t._l(t.categoriesAssets.categories,(function(e){return a("a",{directives:[{name:"show",rawName:"v-show",value:"mooner"!==e.code&&"pet"!==e.code,expression:"category.code !== 'mooner' && category.code !== 'pet'"}],key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedCategory,"is-disabled":t.isCategoryDisabled(e)},"category-"+e.code],attrs:{id:e.code},on:{click:function(a){return t.handleSelectCategory(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],1)})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("a",{key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedGroup},"category-"+e.code],on:{click:function(a){return t.handleSelectGroup(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],1)}))],2)]),t._v(" "),a("div",{staticClass:"customization-panel-body",attrs:{id:"customization-panel-body"}},[t._l(t.visibleCategoriesCustomizations,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedCategory,expression:"selectedCategory"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.id),relatedCustomization:t.getCustomizationByCategoryId(e.depends_category),disabledCategories:t.disabledCategories,removableCategory:!e.required},on:{"update:customization":t.handleUpdateCustomization}})})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedGroup,expression:"selectedGroup"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.assets.subcategories[0].parent_id),removableCategory:!e.required,customizations:t.customizations},on:{"update:customization":t.handleUpdateCustomization}})}))],2),t._v(" "),a("div",{staticClass:"helper"},[a("div",{ref:"error",staticClass:"error",domProps:{innerHTML:t._s(t.error)}}),t._v(" "),a("div",{staticClass:"btn-avatar",on:{click:t.generateAvatar}},[a("div",{staticClass:"btn-avatar-preload"},[t._v("\n\t\t\t\t\tCONTINUAR\n\t\t\t\t\t"),a("div",{staticClass:"icon icon-check"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("path",{attrs:{fill:"#000","fill-rule":"evenodd",d:"M22.65 17.828a1.996 1.996 0 0 1-.579 1.586l-5.657 5.657a2 2 0 0 1-2.828-2.828L18 17.828l-4.414-4.414a2 2 0 0 1 2.828-2.828l5.657 5.657c.434.434.627 1.018.579 1.585z"}})])])]),t._v(" "),a("div",{staticClass:"btn-avatar-loading"},[a("span",{staticClass:"btn-avatar-loading-content",domProps:{innerHTML:t._s(t.loadingContent)}}),t._v(" "),a("span",{staticClass:"btn-avatar-loading-icon"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("path",{attrs:{fill:"#000","fill-rule":"evenodd",d:"M26.383 12.728c-.433-.47-.986-.727-1.48-.728-.293 0-.569.092-.776.29l-2.306 2.179v-.002l-3.136 2.963c-.055.052-.093.109-.13.16l-3.008 2.841-3.545-3.855c-.217-.235-.526-.347-.858-.347-.47 0-.992.217-1.424.625-.465.44-.719 1-.72 1.5 0 .298.092.576.287.788l3.25 3.533 1.823 1.981c.214.235.52.344.85.344.147 0 .295-.021.448-.061l.085.002c.292.001.566-.087.776-.284l5.44-5.14c.054-.052.094-.11.13-.162l4.567-4.315c.234-.22.344-.532.344-.87 0-.474-.215-1.002-.617-1.442z"}})])])])])])])},staticRenderFns:[]},(function(t){t&&t("data-v-9bed85a8_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.postingCharacter{height:100vh}.customization-panel-heading b{font-weight:400;color:#923fda;text-transform:capitalize}.customization-panel{z-index:100;position:fixed;width:520px;height:100%;top:0;right:0;background:#f8f7fc;border-left:1px solid #dfdae4;transition:all .3s;overflow:hidden}@media (max-width:992px){.customization-panel{width:100%;bottom:0;top:unset;min-height:180px;height:auto}}.customization-panel-head{background:#fff;border-bottom:1px solid #f0ebf5;box-shadow:0 10px 26px 0 #d7d1ef;position:relative;z-index:150}@media (max-width:992px){.customization-panel-head{box-shadow:0 0 26px 0 #d7d1ef}}.customization-panel-heading{height:80px;max-width:100%;line-height:80px;text-align:center;font-family:Roboto,sans-serif;color:#afa2ba;background:#fff;border-bottom:1px solid #dfdae4;font-size:16px}@media (max-width:992px){.customization-panel-heading{display:none}}.customization-panel-body{height:70%;scroll-behavior:smooth;padding-bottom:70px;z-index:20;overflow-y:auto;position:relative}.customization-panel-body::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.customization-panel-body::-webkit-scrollbar{width:7px;background-color:transparent}.customization-panel-body::-webkit-scrollbar-thumb{border-radius:20px;background-color:#e4e4e4}@media (max-width:992px){.customization-panel-body{padding-bottom:0;z-index:0}}.customization-panel .helper{position:absolute;bottom:0;width:100%;background:#fff;border-top:1px solid #dfdae4;box-shadow:0 0 26px 0 #d7d1ef;padding:.7619047619rem 1.1428571429rem;display:flex;align-items:center;justify-content:center;z-index:999}@media (max-width:992px){.customization-panel .helper{display:none;z-index:0}}.customization-panel .helper .error{background:red;width:100%;color:#fff;font-family:Roboto,sans-serif;font-size:14px;padding:15px 0;text-align:center;text-transform:uppercase;position:absolute;transition:all .3s;top:-45px;opacity:0}.btn-avatar{width:100%;height:65px;font-family:Nunito;font-weight:900;padding:0!important;background:#12d3db;background-size:200%;background-position-x:99%;box-shadow:0 .2381rem .95238rem 0 #89e6e8;border-radius:1.90476rem;color:#fff;transition:all .2s cubic-bezier(.4,0,.2,1);border:0;font-size:14px;letter-spacing:.0381rem;line-height:1.2rem;position:relative;display:flex;align-items:center;justify-content:center}.btn-avatar:hover{box-shadow:0 .2381rem .95238rem 0 #89e6e8;-webkit-transform:translateY(-.09524rem);transform:translateY(-.09524rem);cursor:pointer;background-position-x:0;-webkit-transform:translateY(-.14286rem);transform:translateY(-.14286rem);color:#fff}.btn-avatar:active,.btn-avatar:focus{outline:0;box-shadow:0 0 0 #89e6e8;background-position-x:0;-webkit-transform:translateY(.14286rem) scale(.97);transform:translateY(.14286rem) scale(.97)}.btn-avatar .icon{position:absolute;display:flex;justify-content:center;align-items:center;right:0;top:0;margin:15px!important}.btn-avatar .icon path,.btn-avatar .icon svg{fill:#fff;stroke:#fff}@media (max-width:992px){.btn-avatar{display:none!important}}.btn-avatar-mobile{display:none!important}@media (max-width:992px){.btn-avatar-mobile{display:flex!important;width:150px;height:40px;box-shadow:none;font-size:12px;float:right;line-height:1;position:fixed;right:0;top:10px;z-index:200;border-radius:100px;margin-right:.7619047619rem}.btn-avatar-mobile .icon{display:none}}.customization-categories{display:flex;align-items:center;align-content:center;padding:.7619047619rem .7619047619rem}@media (max-width:992px){.customization-categories{padding:0}}.customization-categories .category-vestuario{display:none!important}.customization-categories-item{position:relative;font-size:inherit;flex-basis:0;flex-grow:1;max-width:100%;height:100%;text-align:center}.customization-categories-item:hover{cursor:pointer}.customization-categories-item:hover .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item{height:50px;display:flex;justify-content:center;align-items:center;border:0}}.customization-categories-item-icon{height:52px;width:52px;display:block;border-radius:30px;margin:auto}.customization-categories-item-icon-placeholder{background-color:#dfdae4;border-radius:2px}@media (max-width:992px){.customization-categories-item-icon{display:none}}.customization-categories-item-label{font-weight:400;display:block;font-size:12px;color:#000;text-transform:capitalize!important;font-family:Roboto;padding-top:.380952381rem}@media (max-width:992px){.customization-categories-item-label{margin:0}}.customization-categories-item:first-child{border-left:none}.customization-categories-item.is-selected .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item.is-selected:after{content:"";position:absolute;left:0;bottom:-2px;width:100%;height:3px;background:#12d3db}}@media (max-width:992px) and (max-width:992px){.customization-categories-item.is-selected:after{bottom:0}}.customization-categories-item.is-disabled{opacity:.6}.btn-avatar-reduced{background:#2dd4d9!important;width:65px!important;cursor:wait}@media (max-width:479px){.btn-avatar-reduced{width:40px!important;height:40px!important}}.btn-avatar-loading-completed{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-position:0 0;background-repeat:no-repeat;-webkit-animation:1s loadingCompleted;-moz-animation:1s loadingCompleted;animation:1s loadingCompleted;cursor:wait}@-webkit-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@-moz-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}.btn-avatar-loading-started{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-repeat:no-repeat;background-position:41% 0;-webkit-animation:4s loadingPosition;-moz-animation:4s loadingPosition;animation:4s loadingPosition;transition:.3s;cursor:wait}@-webkit-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@-moz-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}.btn-avatar-loading{font-size:1.4285714286rem;display:none;opacity:0;transition:all .3s;font-size:14px;cursor:wait}.btn-avatar-loading .btn-avatar-loading-icon{display:none;opacity:0;align-items:center;justify-content:center}.btn-avatar-loading .btn-avatar-loading-icon svg{width:2.1904761905rem;height:2.1904761905rem}@media (max-width:479px){.btn-avatar-loading .btn-avatar-loading-icon svg{width:3.5514018692rem;height:3.5514018692rem}}.btn-avatar-loading .btn-avatar-loading-icon path,.btn-avatar-loading .btn-avatar-loading-icon svg{fill:#fff;stroke:#fff}@media (max-width:479px){.btn-avatar-loading{font-size:12px}.btn-avatar-loading .btn-avatar-loading-content{font-size:12px}}',map:void 0,media:void 0})}),{name:"CustomizationPanel",components:{CategoryCustomizations:I,Caption:T},props:{builderApi:{type:String,default:"https://builder.dentrodahistoria.com.br/api"},selectedCharacter:{type:Object,default:{}},characterSlug:{type:String,required:!0},characterId:{type:[Number,String],required:!0},characterTypeId:{type:[Number,String],required:!0},characterName:{type:String,required:!0},characterIsMale:{type:Boolean,required:!0},categoriesAssets:{type:Object,required:!0},disabledCategories:{type:Array,required:!1,default:function(){return[]}},customizations:{type:Array,required:!0},builderProductId:{type:[String,Number],required:!1,default:null},subscriptionId:{type:[Number,String],required:!0},stackId:{type:[Number,String],required:!0},userDataProperties:{type:Object,required:!0},builderLayoutId:{type:[Number,String],required:!1},language:{type:String,required:!1}},data:function(){return{selectedCategory:null,selectedGroup:null,selectedCollection:null,error:null,isMobile:null,loadingContent:screen.width<1023?"ENVIANDO":"ENVIANDO PERSONAGEM"}},mounted:function(){if(!document.body.getElementsByClassName("btn-avatar-mobile")[0]){var t=document.getElementsByClassName("btn-avatar")[0].cloneNode(!0);t.classList.add("btn-avatar-mobile"),document.body.appendChild(t),document.body.getElementsByClassName("btn-avatar-mobile")[0].addEventListener("click",this.generateAvatar)}var e=document.getElementsByClassName("top-bar")[0];if(screen.width<=1023&&e&&!e.getElementsByClassName("overlay-opacity")[0]){var a=document.getElementsByClassName("overlay-opacity")[0].cloneNode(!0);e.appendChild(a)}if(!document.body.getElementsByClassName("error-mobile")[0]){var i=document.getElementsByClassName("error")[0].cloneNode(!0);i.classList.add("error-mobile"),document.body.appendChild(i)}window.addEventListener("resize",this.screenResize),screen.width>1023?this.isMobile=!1:this.isMobile=!0},beforeDestroy:function(){document.body.getElementsByClassName("btn-avatar-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("btn-avatar-mobile")[0]),document.body.getElementsByClassName("error-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("error-mobile")[0])},computed:{showColorsCustomizations:function(){return!1},showSubcategoriesCustomizations:function(){return!1},visibleCategoriesCustomizations:function(){var t=this,e=[];return this.selectedCategory?e.push(this.selectedCategory):this.selectedCollection&&this.selectedCollection.categories.forEach((function(a){var i=t.categoriesAssets.categories.find((function(t){return t.id===a}));i&&e.push(i)})),e}},methods:{monthsHelper:function(t){switch(t){case 1:return"Janeiro";case 2:return"Fevereiro";case 3:return"Março";case 4:return"Abril";case 5:return"Maio";case 6:return"Junho";case 7:return"Julho";case 8:return"Agosto";case 9:return"Setembro";case 10:return"Outubro";case 11:return"Novembro";case 12:return"Dezembro"}},generateAvatar:function(){var t=this;return M(C().mark((function a(){var i,o,r,n,s,d,l,c,p,m,u,h;return C().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i=t,r=!1,t.categoriesAssets.categories.forEach((function(e){e.required?((o=t.customizations.find((function(t){return e.id===t.categoryId})))||(o=t.disabledCategories.find((function(t){return e.id===t.categoryId}))),o||(r=!0,n=e)):(e.code.includes("mooner")||e.code.includes("pet"))&&(o=t.disabledCategories.find((function(t){return e.id===t.categoryId})))})),r){a.next=18;break}return t.$emit("startedMethod"),s=null,d=[],t.customizations.forEach((function(t){var e={parent_id:t.categoryId,id:t.optionId?t.optionId:t.relatedCategoryId};e.parent_id&&e.id&&d.push(e)})),l={properties:i.userDataProperties,type:t.characterTypeId},c={custom_character:{character_id:t.characterId,product_id:t.builderProductId,type_id:t.characterTypeId,categories:d,user_data:l}},t.builderLayoutId&&(c.custom_character.layout_id=t.builderLayoutId),t.language&&(c.custom_character.language=t.language),a.next=14,e({method:"POST",url:"".concat(t.builderApi,"/customs_characters/"),headers:{"Content-Type":"application/json"},data:c}).then((function(t){return t})).catch((function(t){return t}));case 14:(p=a.sent)&&(200===p.status?t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:p.data.custom.uuid,categories:d,success:!0}):(console.log("tentou pegar o segundo request"),p&&p.response&&p.response.reques&&(m=JSON.parse(p.response.request.responseText),s=m?m.error:"Não foi possível gerar o avatar. Tente novamente."),s&&(t.error=s,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)),t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:p.data.custom.uuid,categories:d,success:!1}))),a.next=22;break;case 18:u=n.code,h="pele"===u?"Necessário selecionar um tom de pele":"Necessário selecionar um tipo de ".concat(u),screen.width>1023&&("roupa"===u||"tenis"===u)?(t.error=h,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)):(document.getElementsByClassName("error")[0].style.opacity="1",document.getElementsByClassName("error")[0].textContent=h,setTimeout((function(){document.getElementsByClassName("error")[0].style.opacity="0",document.getElementsByClassName("error")[0].textContent=""}),5e3)),t.$refs[u][0].click();case 22:case"end":return a.stop()}}),a)})))()},getCustomizationTitle:function(t){var e=t?t.toLowerCase():"";switch(e){case"pele":return"Tons de pele";default:return"Tipos de ".concat(e)}},getCustomizationByCategoryId:function(t){return this.customizations.find((function(e){return e.categoryId===t}))},handleSelectCategory:function(t){if(!this.isCategoryDisabled(t)&&this.selectedCategory!==t){this.selectedCharacter.slug;var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];"cabelo"===t.code||"olhos"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):"roupa"===t.code||"tenis"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-out"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0})),this.selectedGroup=null,this.selectedCollection=null,this.selectedCategory=t}},handleSelectGroup:function(t){if(this.selectedGroup!==t){if(screen.width<=1023){var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];this.selectedCharacter.slug;"acessorio"===t.code||"acessorios"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0}))}this.selectedCategory=null,this.selectedCollection=null,this.selectedGroup=t}},handleSelectCollection:function(t){this.selectedCollection!==t&&(this.selectedCategory=null,this.selectedGroup=null,this.selectedCollection=t)},handleUpdateCustomization:function(t){this.$emit("update:customization",t)},isCategoryDisabled:function(t){return void 0!==this.disabledCategories.find((function(e){return e.categoryId===t.id}))},screenResize:function(){if(screen.width>1023){document.getElementsByClassName("customization-preview-asset");
|
|
83
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-494fbeae",!1,void 0,!1,L,void 0,void 0),F=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"avatar-page"},[a("CustomizationView",{attrs:{custom_properties:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,is_male:t.is_male,slug:t.character_slug,uuid:t.uuid,user_data:{properties:t.custom_properties,type_id:t.type_id}},gradient_colors:t.gradient_colors,is_subscription:t.is_subscription,builder_api:"https://builder.dentrodahistoria.com.br/api",builderLayoutId:t.builderLayoutId,language:t.language},on:{startedMethod:t.started,completedMethod:t.completed}})],1)},staticRenderFns:[]},(function(t){t&&t("data-v-d4488458_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-d4488458]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-d4488458]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-d4488458]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-d4488458]{font-size:14px}}@media (min-width:1024px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-d4488458]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-d4488458]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-d4488458]{font-size:1.56vw}}html[data-v-d4488458]{box-sizing:border-box}*[data-v-d4488458],[data-v-d4488458]::after,[data-v-d4488458]::before{box-sizing:border-box}hr[data-v-d4488458]{margin:10px -1.5rem}h1[data-v-d4488458]{font-family:Nunito;font-size:24px;font-weight:900;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#000;margin-top:0;margin-bottom:15px}h1[data-v-d4488458]:first-child{display:none}.ddh-sidebar[data-v-d4488458],.ddh-sidebar.hide-sidebar[data-v-d4488458]{display:none!important}html[data-v-d4488458]{--scale:1;--translate:0%}.loading-view[data-v-d4488458]{position:absolute;top:0;width:100%;height:100%;background:#fff;position:absolute;width:100%;top:0;z-index:200;display:flex;align-items:center;justify-content:center;flex-direction:column}.avatar-page-1[data-v-d4488458]{position:absolute;z-index:3}.avatar-page[data-v-d4488458]{min-height:100vh;position:absolute;width:100%;height:100vh;top:0;left:0;background:#fff}@media (max-width:992px){.avatar-page[data-v-d4488458]{min-height:0;height:100vh;height:calc(var(--vh,1vh) * 100);overflow:hidden}}.return[data-v-d4488458]{position:fixed;z-index:99}.return .icon[data-v-d4488458]{width:38px;height:38px;position:absolute;z-index:30;padding:.95238rem 2.77778vw}.return .icon svg[data-v-d4488458]{width:38px;height:38px}.return .icon svg path[data-v-d4488458]{fill:#afa2ba!important;stroke:#afa2ba!important;transition:all .1s cubic-bezier(.4,0,.2,1)}.return .icon[data-v-d4488458]:hover{cursor:pointer}.return .icon:hover path[data-v-d4488458],.return .icon:hover svg[data-v-d4488458]{fill:#1ad3d9!important;stroke:#1ad3d9!important}.return .icon:active svg[data-v-d4488458]{transform:scale(.9)}',map:void 0,media:void 0})}),{name:"Avatar",components:{CustomizationView:N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("link",{attrs:{rel:"stylesheet",href:"https://use.fontawesome.com/releases/v5.8.1/css/all.css",integrity:"sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf",crossorigin:"anonymous"}}),t._v(" "),a("div",{staticClass:"mobile-tooltip",on:{click:t.removeTooltip}},[t._m(0)]),t._v(" "),a("CustomizationPreview",{attrs:{customizations:t.customizations,"selected-character":t.selectedCharacter,"character-height":t.characterHeight?t.characterHeight:null,"gradient-colors":t.gradient_colors,"character-slug":t.custom_properties.slug,characterHeight:1}}),t._v(" "),a("CustomizationPanel",{attrs:{"builder-api":t.builder_api,"selected-character":t.selectedCharacter,"character-name":t.custom_properties.user_data.properties.nome.value,"subscription-id":"1","stack-id":"1","character-slug":t.custom_properties.slug,"character-id":t.characterId,"character-type-id":t.characterTypeId,"character-is-male":t.custom_properties.is_male,"categories-assets":t.categoriesAssets,"disabled-categories":t.disabledCategories,customizations:t.customizations,"builder-product-id":t.builderProductId?t.builderProductId:this.custom_properties.product_id,userDataProperties:t.custom_properties.user_data.properties,builderLayoutId:t.builderLayoutId,language:t.language},on:{"update:customization":t.handleCustomization,startedMethod:t.startedMethod,completedMethod:t.completedMethod}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tooltip"},[this._v("\n\t\t\tLorem ipsum dolor sit amet, eum ne sale vidit epicuri, usu populo\n\t\t\tincorrupte ex. His falli intellegebat no.\n\t\t\t"),e("i",{staticClass:"fas fa-times"})])}]},(function(t){t&&t("data-v-264948b7_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.mobile-tooltip{display:none}@media (max-width:992px){.mobile-tooltip{display:none;position:absolute;z-index:90000000;height:calc(100vh - 59px);width:100%;transition:all .3s;bottom:0}.mobile-tooltip .tooltip{border-radius:5px;color:#fff;font-size:14px;padding:10px 36px 10px 16px;width:350px;margin-left:15px;box-shadow:0 1px 2px 0 rgba(0,0,0,.31);line-height:1.5;position:relative;margin-top:auto;bottom:calc(var(--cp) + 25px)}.mobile-tooltip .tooltip:after{top:100%;left:5%;border:solid transparent;content:" ";position:absolute;border-width:10px}.mobile-tooltip .tooltip i{position:absolute;right:10px;top:10px}}',map:void 0,media:void 0})}),{name:"CustomizationView",components:{CustomizationPanel:N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-panel"},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-panel-head"},[a("div",{staticClass:"customization-panel-heading"},[t._v("\n\t\t\t\tEditar o personagem "+t._s(t.characterIsMale?"do":"da")+"\n\t\t\t\t"),a("b",[t._v(t._s(t.characterName))])]),t._v(" "),a("div",{staticClass:"customization-categories"},[t._l(t.categoriesAssets.categories,(function(e){return a("a",{directives:[{name:"show",rawName:"v-show",value:"mooner"!==e.code&&"pet"!==e.code,expression:"category.code !== 'mooner' && category.code !== 'pet'"}],key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedCategory,"is-disabled":t.isCategoryDisabled(e)},"category-"+e.code],attrs:{id:e.code},on:{click:function(a){return t.handleSelectCategory(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],1)})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("a",{key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedGroup},"category-"+e.code],on:{click:function(a){return t.handleSelectGroup(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n\t\t\t\t\t\t"+t._s(e.name)+"\n\t\t\t\t\t")])],1)}))],2)]),t._v(" "),a("div",{staticClass:"customization-panel-body",attrs:{id:"customization-panel-body"}},[t._l(t.visibleCategoriesCustomizations,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedCategory,expression:"selectedCategory"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.id),relatedCustomization:t.getCustomizationByCategoryId(e.depends_category),disabledCategories:t.disabledCategories,removableCategory:!e.required},on:{"update:customization":t.handleUpdateCustomization}})})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedGroup,expression:"selectedGroup"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.assets.subcategories[0].parent_id),removableCategory:!e.required,customizations:t.customizations},on:{"update:customization":t.handleUpdateCustomization}})}))],2),t._v(" "),a("div",{staticClass:"helper"},[a("div",{ref:"error",staticClass:"error",domProps:{innerHTML:t._s(t.error)}}),t._v(" "),a("div",{staticClass:"btn-avatar",on:{click:t.generateAvatar}},[a("div",{staticClass:"btn-avatar-preload"},[t._v("\n\t\t\t\t\tCONTINUAR\n\t\t\t\t\t"),a("div",{staticClass:"icon icon-check"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("path",{attrs:{fill:"#000","fill-rule":"evenodd",d:"M22.65 17.828a1.996 1.996 0 0 1-.579 1.586l-5.657 5.657a2 2 0 0 1-2.828-2.828L18 17.828l-4.414-4.414a2 2 0 0 1 2.828-2.828l5.657 5.657c.434.434.627 1.018.579 1.585z"}})])])]),t._v(" "),a("div",{staticClass:"btn-avatar-loading"},[a("span",{staticClass:"btn-avatar-loading-content",domProps:{innerHTML:t._s(t.loadingContent)}}),t._v(" "),a("span",{staticClass:"btn-avatar-loading-icon"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("path",{attrs:{fill:"#000","fill-rule":"evenodd",d:"M26.383 12.728c-.433-.47-.986-.727-1.48-.728-.293 0-.569.092-.776.29l-2.306 2.179v-.002l-3.136 2.963c-.055.052-.093.109-.13.16l-3.008 2.841-3.545-3.855c-.217-.235-.526-.347-.858-.347-.47 0-.992.217-1.424.625-.465.44-.719 1-.72 1.5 0 .298.092.576.287.788l3.25 3.533 1.823 1.981c.214.235.52.344.85.344.147 0 .295-.021.448-.061l.085.002c.292.001.566-.087.776-.284l5.44-5.14c.054-.052.094-.11.13-.162l4.567-4.315c.234-.22.344-.532.344-.87 0-.474-.215-1.002-.617-1.442z"}})])])])])])])},staticRenderFns:[]},(function(t){t&&t("data-v-9bed85a8_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.postingCharacter{height:100vh}.customization-panel-heading b{font-weight:400;color:#923fda;text-transform:capitalize}.customization-panel{z-index:100;position:fixed;width:520px;height:100%;top:0;right:0;background:#f8f7fc;border-left:1px solid #dfdae4;transition:all .3s;overflow:hidden}@media (max-width:992px){.customization-panel{width:100%;bottom:0;top:unset;min-height:180px;height:auto}}.customization-panel-head{background:#fff;border-bottom:1px solid #f0ebf5;box-shadow:0 10px 26px 0 #d7d1ef;position:relative;z-index:150}@media (max-width:992px){.customization-panel-head{box-shadow:0 0 26px 0 #d7d1ef}}.customization-panel-heading{height:80px;max-width:100%;line-height:80px;text-align:center;font-family:Roboto,sans-serif;color:#afa2ba;background:#fff;border-bottom:1px solid #dfdae4;font-size:16px}@media (max-width:992px){.customization-panel-heading{display:none}}.customization-panel-body{height:70%;scroll-behavior:smooth;padding-bottom:70px;z-index:20;overflow-y:auto;position:relative}.customization-panel-body::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.customization-panel-body::-webkit-scrollbar{width:7px;background-color:transparent}.customization-panel-body::-webkit-scrollbar-thumb{border-radius:20px;background-color:#e4e4e4}@media (max-width:992px){.customization-panel-body{padding-bottom:0;z-index:0}}.customization-panel .helper{position:absolute;bottom:0;width:100%;background:#fff;border-top:1px solid #dfdae4;box-shadow:0 0 26px 0 #d7d1ef;padding:.7619047619rem 1.1428571429rem;display:flex;align-items:center;justify-content:center;z-index:999}@media (max-width:992px){.customization-panel .helper{display:none;z-index:0}}.customization-panel .helper .error{background:red;width:100%;color:#fff;font-family:Roboto,sans-serif;font-size:14px;padding:15px 0;text-align:center;text-transform:uppercase;position:absolute;transition:all .3s;top:-45px;opacity:0}.btn-avatar{width:100%;height:65px;font-family:Nunito;font-weight:900;padding:0!important;background:#12d3db;background-size:200%;background-position-x:99%;box-shadow:0 .2381rem .95238rem 0 #89e6e8;border-radius:1.90476rem;color:#fff;transition:all .2s cubic-bezier(.4,0,.2,1);border:0;font-size:14px;letter-spacing:.0381rem;line-height:1.2rem;position:relative;display:flex;align-items:center;justify-content:center}.btn-avatar:hover{box-shadow:0 .2381rem .95238rem 0 #89e6e8;-webkit-transform:translateY(-.09524rem);transform:translateY(-.09524rem);cursor:pointer;background-position-x:0;-webkit-transform:translateY(-.14286rem);transform:translateY(-.14286rem);color:#fff}.btn-avatar:active,.btn-avatar:focus{outline:0;box-shadow:0 0 0 #89e6e8;background-position-x:0;-webkit-transform:translateY(.14286rem) scale(.97);transform:translateY(.14286rem) scale(.97)}.btn-avatar .icon{position:absolute;display:flex;justify-content:center;align-items:center;right:0;top:0;margin:15px!important}.btn-avatar .icon path,.btn-avatar .icon svg{fill:#fff;stroke:#fff}@media (max-width:992px){.btn-avatar{display:none!important}}.btn-avatar-mobile{display:none!important}@media (max-width:992px){.btn-avatar-mobile{display:flex!important;width:150px;height:40px;box-shadow:none;font-size:12px;float:right;line-height:1;position:fixed;right:0;top:10px;z-index:200;border-radius:100px;margin-right:.7619047619rem}.btn-avatar-mobile .icon{display:none}}.customization-categories{display:flex;align-items:center;align-content:center;padding:.7619047619rem .7619047619rem}@media (max-width:992px){.customization-categories{padding:0}}.customization-categories .category-vestuario{display:none!important}.customization-categories-item{position:relative;font-size:inherit;flex-basis:0;flex-grow:1;max-width:100%;height:100%;text-align:center}.customization-categories-item:hover{cursor:pointer}.customization-categories-item:hover .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item{height:50px;display:flex;justify-content:center;align-items:center;border:0}}.customization-categories-item-icon{height:52px;width:52px;display:block;border-radius:30px;margin:auto}.customization-categories-item-icon-placeholder{background-color:#dfdae4;border-radius:2px}@media (max-width:992px){.customization-categories-item-icon{display:none}}.customization-categories-item-label{font-weight:400;display:block;font-size:12px;color:#000;text-transform:capitalize!important;font-family:Roboto;padding-top:.380952381rem}@media (max-width:992px){.customization-categories-item-label{margin:0}}.customization-categories-item:first-child{border-left:none}.customization-categories-item.is-selected .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item.is-selected:after{content:"";position:absolute;left:0;bottom:-2px;width:100%;height:3px;background:#12d3db}}@media (max-width:992px) and (max-width:992px){.customization-categories-item.is-selected:after{bottom:0}}.customization-categories-item.is-disabled{opacity:.6}.btn-avatar-reduced{background:#2dd4d9!important;width:65px!important;cursor:wait}@media (max-width:479px){.btn-avatar-reduced{width:40px!important;height:40px!important}}.btn-avatar-loading-completed{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-position:0 0;background-repeat:no-repeat;-webkit-animation:1s loadingCompleted;-moz-animation:1s loadingCompleted;animation:1s loadingCompleted;cursor:wait}@-webkit-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@-moz-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}.btn-avatar-loading-started{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-repeat:no-repeat;background-position:41% 0;-webkit-animation:4s loadingPosition;-moz-animation:4s loadingPosition;animation:4s loadingPosition;transition:.3s;cursor:wait}@-webkit-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@-moz-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}.btn-avatar-loading{font-size:1.4285714286rem;display:none;opacity:0;transition:all .3s;font-size:14px;cursor:wait}.btn-avatar-loading .btn-avatar-loading-icon{display:none;opacity:0;align-items:center;justify-content:center}.btn-avatar-loading .btn-avatar-loading-icon svg{width:2.1904761905rem;height:2.1904761905rem}@media (max-width:479px){.btn-avatar-loading .btn-avatar-loading-icon svg{width:3.5514018692rem;height:3.5514018692rem}}.btn-avatar-loading .btn-avatar-loading-icon path,.btn-avatar-loading .btn-avatar-loading-icon svg{fill:#fff;stroke:#fff}@media (max-width:479px){.btn-avatar-loading{font-size:12px}.btn-avatar-loading .btn-avatar-loading-content{font-size:12px}}',map:void 0,media:void 0})}),{name:"CustomizationPanel",components:{CategoryCustomizations:I,Caption:T},props:{builderApi:{type:String,default:"https://builder.dentrodahistoria.com.br/api"},selectedCharacter:{type:Object,default:{}},characterSlug:{type:String,required:!0},characterId:{type:[Number,String],required:!0},characterTypeId:{type:[Number,String],required:!0},characterName:{type:String,required:!0},characterIsMale:{type:Boolean,required:!0},categoriesAssets:{type:Object,required:!0},disabledCategories:{type:Array,required:!1,default:function(){return[]}},customizations:{type:Array,required:!0},builderProductId:{type:[String,Number],required:!1,default:null},subscriptionId:{type:[Number,String],required:!0},stackId:{type:[Number,String],required:!0},userDataProperties:{type:Object,required:!0},builderLayoutId:{type:[Number,String],required:!1},language:{type:String,required:!1}},data:function(){return{selectedCategory:null,selectedGroup:null,selectedCollection:null,error:null,isMobile:null,loadingContent:screen.width<1023?"ENVIANDO":"ENVIANDO PERSONAGEM"}},mounted:function(){if(!document.body.getElementsByClassName("btn-avatar-mobile")[0]){var t=document.getElementsByClassName("btn-avatar")[0].cloneNode(!0);t.classList.add("btn-avatar-mobile"),document.body.appendChild(t),document.body.getElementsByClassName("btn-avatar-mobile")[0].addEventListener("click",this.generateAvatar)}var e=document.getElementsByClassName("top-bar")[0];if(screen.width<=1023&&e&&!e.getElementsByClassName("overlay-opacity")[0]){var a=document.getElementsByClassName("overlay-opacity")[0].cloneNode(!0);e.appendChild(a)}if(!document.body.getElementsByClassName("error-mobile")[0]){var i=document.getElementsByClassName("error")[0].cloneNode(!0);i.classList.add("error-mobile"),document.body.appendChild(i)}window.addEventListener("resize",this.screenResize),screen.width>1023?this.isMobile=!1:this.isMobile=!0},beforeDestroy:function(){document.body.getElementsByClassName("btn-avatar-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("btn-avatar-mobile")[0]),document.body.getElementsByClassName("error-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("error-mobile")[0])},computed:{showColorsCustomizations:function(){return!1},showSubcategoriesCustomizations:function(){return!1},visibleCategoriesCustomizations:function(){var t=this,e=[];return this.selectedCategory?e.push(this.selectedCategory):this.selectedCollection&&this.selectedCollection.categories.forEach((function(a){var i=t.categoriesAssets.categories.find((function(t){return t.id===a}));i&&e.push(i)})),e}},methods:{monthsHelper:function(t){switch(t){case 1:return"Janeiro";case 2:return"Fevereiro";case 3:return"Março";case 4:return"Abril";case 5:return"Maio";case 6:return"Junho";case 7:return"Julho";case 8:return"Agosto";case 9:return"Setembro";case 10:return"Outubro";case 11:return"Novembro";case 12:return"Dezembro"}},generateAvatar:function(){var t=this;return M(C().mark((function a(){var i,o,r,n,d,s,l,c,p,m,u,h;return C().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(i=t,r=!1,t.categoriesAssets.categories.forEach((function(e){e.required?((o=t.customizations.find((function(t){return e.id===t.categoryId})))||(o=t.disabledCategories.find((function(t){return e.id===t.categoryId}))),o||(r=!0,n=e)):(e.code.includes("mooner")||e.code.includes("pet"))&&(o=t.disabledCategories.find((function(t){return e.id===t.categoryId})))})),r){a.next=18;break}return t.$emit("startedMethod"),d=null,s=[],t.customizations.forEach((function(t){var e={parent_id:t.categoryId,id:t.optionId?t.optionId:t.relatedCategoryId};e.parent_id&&e.id&&s.push(e)})),l={properties:i.userDataProperties,type:t.characterTypeId},c={custom_character:{character_id:t.characterId,product_id:t.builderProductId,type_id:t.characterTypeId,categories:s,user_data:l}},t.builderLayoutId&&(c.custom_character.layout_id=t.builderLayoutId),t.language&&(c.custom_character.language=t.language),a.next=14,e({method:"POST",url:"".concat(t.builderApi,"/customs_characters/"),headers:{"Content-Type":"application/json"},data:c}).then((function(t){return t})).catch((function(t){return t}));case 14:(p=a.sent)&&(200===p.status?t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:p.data.custom.uuid,categories:s,success:!0}):(console.log("tentou pegar o segundo request"),p&&p.response&&p.response.reques&&(m=JSON.parse(p.response.request.responseText),d=m?m.error:"Não foi possível gerar o avatar. Tente novamente."),d&&(t.error=d,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)),t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:p.data.custom.uuid,categories:s,success:!1}))),a.next=22;break;case 18:u=n.code,h="pele"===u?"Necessário selecionar um tom de pele":"Necessário selecionar um tipo de ".concat(u),screen.width>1023&&("roupa"===u||"tenis"===u)?(t.error=h,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)):(document.getElementsByClassName("error")[0].style.opacity="1",document.getElementsByClassName("error")[0].textContent=h,setTimeout((function(){document.getElementsByClassName("error")[0].style.opacity="0",document.getElementsByClassName("error")[0].textContent=""}),5e3)),t.$refs[u][0].click();case 22:case"end":return a.stop()}}),a)})))()},getCustomizationTitle:function(t){var e=t?t.toLowerCase():"";switch(e){case"pele":return"Tons de pele";default:return"Tipos de ".concat(e)}},getCustomizationByCategoryId:function(t){return this.customizations.find((function(e){return e.categoryId===t}))},handleSelectCategory:function(t){if(!this.isCategoryDisabled(t)&&this.selectedCategory!==t){this.selectedCharacter.slug;var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];"cabelo"===t.code||"olhos"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):"roupa"===t.code||"tenis"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-out"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0})),this.selectedGroup=null,this.selectedCollection=null,this.selectedCategory=t}},handleSelectGroup:function(t){if(this.selectedGroup!==t){if(screen.width<=1023){var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];this.selectedCharacter.slug;"acessorio"===t.code||"acessorios"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0}))}this.selectedCategory=null,this.selectedCollection=null,this.selectedGroup=t}},handleSelectCollection:function(t){this.selectedCollection!==t&&(this.selectedCategory=null,this.selectedGroup=null,this.selectedCollection=t)},handleUpdateCustomization:function(t){this.$emit("update:customization",t)},isCategoryDisabled:function(t){return void 0!==this.disabledCategories.find((function(e){return e.categoryId===t.id}))},screenResize:function(){if(screen.width>1023){document.getElementsByClassName("customization-preview-asset");
|
|
84
84
|
// const transform = "scale(1) translateY(0)"
|
|
85
85
|
// Array.from(avatar).forEach(piece => {
|
|
86
86
|
// piece.style.transform = transform
|
|
@@ -144,11 +144,11 @@ e.updateCustomizations(i.assets.subcategories[0].parent_id,null,i.assets.subcate
|
|
|
144
144
|
* buscar tal informação, caso contrário ele seta as informações
|
|
145
145
|
* default das categorias na personalização
|
|
146
146
|
*/
|
|
147
|
-
loadCustomizationCharacter:function(){var t=this;return M(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.initDefaultCustomizationCharacter(),t.custom_properties.uuid&&(t.customizations.forEach((function(e){t.loadedCustomizations.forEach((function(a){if(e.relatedCategoryId&&e.categoryId===a.assets.category_id){var i=t.loadedCustomizations.find((function(t){return t.id===e.relatedCategoryId}));t.categoriesAssets.categories.forEach((function(o){o.id===a.id&&o.assets.categories.forEach((function(o){o.parent_id===i.assets.id&&o.assets.subcategories.forEach((function(i){i.assets.colors.forEach((function(i){a.assets.id===i.id&&t.updateCustomizations(e.categoryId,e.relatedCategoryId,a.assets.id,i.hexa,i.assets.asset,a.z_index,a.z_index)}))}))}))}))}else e.categoryId===a.assets.category_id&&t.updateCustomizations(e.categoryId,e.relatedCategoryId,a.assets.id,e.name,a.assets.asset,a.z_index,a.z_index)}))})),t.loadedCustomizations.forEach((function(e){t.customizations.find((function(t){return t.categoryId===e.id}))||t.updateCustomizations(e.assets.category_id,null,e.assets.id,e.name,e.assets.asset,e.z_index,e.z_index)})));case 2:case"end":return e.stop()}}),e)})))()},loadRelatedSubcategory:function(t){},updateCustomizations:function(t,e,a,i,o,r,n){var
|
|
147
|
+
loadCustomizationCharacter:function(){var t=this;return M(C().mark((function e(){return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.initDefaultCustomizationCharacter(),t.custom_properties.uuid&&(t.customizations.forEach((function(e){t.loadedCustomizations.forEach((function(a){if(e.relatedCategoryId&&e.categoryId===a.assets.category_id){var i=t.loadedCustomizations.find((function(t){return t.id===e.relatedCategoryId}));t.categoriesAssets.categories.forEach((function(o){o.id===a.id&&o.assets.categories.forEach((function(o){o.parent_id===i.assets.id&&o.assets.subcategories.forEach((function(i){i.assets.colors.forEach((function(i){a.assets.id===i.id&&t.updateCustomizations(e.categoryId,e.relatedCategoryId,a.assets.id,i.hexa,i.assets.asset,a.z_index,a.z_index)}))}))}))}))}else e.categoryId===a.assets.category_id&&t.updateCustomizations(e.categoryId,e.relatedCategoryId,a.assets.id,e.name,a.assets.asset,a.z_index,a.z_index)}))})),t.loadedCustomizations.forEach((function(e){t.customizations.find((function(t){return t.categoryId===e.id}))||t.updateCustomizations(e.assets.category_id,null,e.assets.id,e.name,e.assets.asset,e.z_index,e.z_index)})));case 2:case"end":return e.stop()}}),e)})))()},loadRelatedSubcategory:function(t){},updateCustomizations:function(t,e,a,i,o,r,n){var d=this,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8&&void 0!==arguments[8]&&arguments[8],c=this.customizations.find((function(e){return e.categoryId===t}));if(!s)return c?(c.categoryId=t,c.relatedCategoryId=e,c.optionId=a,c.optionName=i,c.optionAsset=o,c.optionZIndex=r,c.categoryZIndex=n):(c={categoryId:t,relatedCategoryId:e,optionId:a,optionName:i,optionAsset:o,optionZIndex:r,categoryZIndex:n,firstGroup:!!l||null},this.customizations.push(c)),c;c=this.customizations.find((function(e){return e.categoryId===t})),this.customizations.forEach((function(t,e){t.categoryId===c.categoryId&&d.customizations.splice(e,1)}))},updateDisabledCategories:function(t,e){var a=this;e&&e.forEach((function(t){a.customizations.forEach((function(e,i){t===e.categoryId&&a.customizations.splice(i,1)}))})),e&&0!==e.length?e.forEach((function(e){var i=a.disabledCategories.find((function(t){return t.categoryId===e}));i?i.relatedCustomizations.includes(t)||i.relatedCustomizations.push(t):(i={categoryId:e,relatedCustomizations:[t]},a.disabledCategories.push(i))})):(this.disabledCategories.forEach((function(e){var a=e.relatedCustomizations.indexOf(t);a>-1&&e.relatedCustomizations.splice(a,1)})),this.disabledCategories=this.disabledCategories.filter((function(t){return 0!==t.relatedCustomizations.length})))},getCategoryDefaultCustomization:function(t){var e,a,i,o,r=t.id,n=t.z_index;return t.assets.subcategories.forEach((function(t){if(t.is_default)if(e=t.id,a=t.name,null!=t.z_index&&t.z_index>=0&&(o=t.z_index),t.assets.colors.length>0){var r=t.assets.colors.find((function(t){return t.is_default}));r?(e=r.id,a=r.hexa,i=r.assets.asset):(e=t.assets.colors[0].id,a=t.assets.colors[0].hexa,i=t.assets.colors[0].assets.asset)}else i=t.assets.asset})),i?{categoryId:r,relatedCategoryId:void 0,optionId:e,optionName:a,optionAsset:i,categoryZIndex:n,optionZIndex:o}:null},getRelatedCategoryDefaultCustomization:function(t){var e,a,i,o,r,n=t.id,d=t.depends_category,s=t.z_index,l=this.getCustomization(t.depends_category);return r=l?l.optionId:"",t.assets.categories.forEach((function(t){if(t.parent_id===r)return t.assets.subcategories.forEach((function(t){if(t.is_default)if(e=t.id,a=t.name,null!=t.z_index&&t.z_index>=0&&(o=t.z_index),t.assets.colors.length>0){var r=t.assets.colors.find((function(t){return t.is_default}));r?(e=r.id,a=r.hexa,i=r.assets.asset):(e=t.assets.colors[0].id,a=t.assets.colors[0].hexa,i=t.assets.colors[0].assets.asset)}else i=t.assets.asset})),!1})),i?{categoryId:n,relatedCategoryId:d,optionId:e,optionName:a,optionAsset:i,categoryZIndex:s,optionZIndex:o}:null},getCustomization:function(t){return this.customizations.find((function(e){return e.categoryId===t}))},handleCustomization:function(t){var e=t.customization,a=t.categoriesToDisable,i=t.removeGroup,o=void 0!==i&&i,r=t.firstGroup,n=void 0!==r&&r,d=t.removableCategory,s=void 0!==d&&d;
|
|
148
148
|
// Verifica se há outra customização que deve ser atualizada
|
|
149
149
|
// em função dessa atualização e atualiza essa customização
|
|
150
150
|
// antes
|
|
151
|
-
this.handleUpdateRelatedCategories(e);var l=this.updateCustomizations(e.categoryId,e.relatedCategoryId,e.optionId,e.optionName,e.optionAsset,e.optionZIndex,e.categoryZIndex,o,n,
|
|
151
|
+
this.handleUpdateRelatedCategories(e);var l=this.updateCustomizations(e.categoryId,e.relatedCategoryId,e.optionId,e.optionName,e.optionAsset,e.optionZIndex,e.categoryZIndex,o,n,s);
|
|
152
152
|
// Desabilitando categorias associadas a customização
|
|
153
153
|
this.updateDisabledCategories(l,a)},
|
|
154
154
|
/**
|
|
@@ -263,9 +263,9 @@ this.$emit("started")},completed:function(t){
|
|
|
263
263
|
/**
|
|
264
264
|
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
265
265
|
*/
|
|
266
|
-
this.$emit("completed",t)}}},"data-v-d4488458",!1,void 0,!1,L,void 0,void 0),R=N({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loader"},[e("svg",{staticClass:"spinner"},[e("circle",{staticClass:"path",attrs:{cx:"16",cy:"16",r:"13",fill:"none","stroke-width":"5"}})])])},staticRenderFns:[]},(function(t){t&&(t("data-v-6eb9d158_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}',map:void 0,media:void 0}),t("data-v-6eb9d158_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-6eb9d158]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-6eb9d158]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-6eb9d158]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-6eb9d158]{font-size:14px}}@media (min-width:1024px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-6eb9d158]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-6eb9d158]{font-size:1.56vw}}html[data-v-6eb9d158]{box-sizing:border-box}*[data-v-6eb9d158],[data-v-6eb9d158]::after,[data-v-6eb9d158]::before{box-sizing:border-box}.spinner[data-v-6eb9d158]{animation:rotate-data-v-6eb9d158 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px;width:32px;height:32px}@media (max-width:479px){.spinner[data-v-6eb9d158]{width:24px;height:24px;margin:-12px 0 0 -12px}}.spinner .path[data-v-6eb9d158]{stroke:#12d3db;stroke-linecap:round;animation:dash-data-v-6eb9d158 1.5s ease-in-out infinite}@media (max-width:479px){.spinner .path[data-v-6eb9d158]{width:12px;height:12px;margin:-6px 0 0 -6px;stroke-width:3}}@keyframes rotate-data-v-6eb9d158{100%{transform:rotate(360deg)}}@keyframes dash-data-v-6eb9d158{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}',map:void 0,media:void 0}))}),{name:"Loading",props:{}},"data-v-6eb9d158",!1,void 0,!1,L,void 0,void 0),j=y.context("
|
|
266
|
+
this.$emit("completed",t)}}},"data-v-d4488458",!1,void 0,!1,L,void 0,void 0),R=N({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loader"},[e("svg",{staticClass:"spinner"},[e("circle",{staticClass:"path",attrs:{cx:"16",cy:"16",r:"13",fill:"none","stroke-width":"5"}})])])},staticRenderFns:[]},(function(t){t&&(t("data-v-6eb9d158_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}',map:void 0,media:void 0}),t("data-v-6eb9d158_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-6eb9d158]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-6eb9d158]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-6eb9d158]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-6eb9d158]{font-size:14px}}@media (min-width:1024px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-6eb9d158]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-6eb9d158]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-6eb9d158]{font-size:1.56vw}}html[data-v-6eb9d158]{box-sizing:border-box}*[data-v-6eb9d158],[data-v-6eb9d158]::after,[data-v-6eb9d158]::before{box-sizing:border-box}.spinner[data-v-6eb9d158]{animation:rotate-data-v-6eb9d158 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-16px 0 0 -16px;width:32px;height:32px}@media (max-width:479px){.spinner[data-v-6eb9d158]{width:24px;height:24px;margin:-12px 0 0 -12px}}.spinner .path[data-v-6eb9d158]{stroke:#12d3db;stroke-linecap:round;animation:dash-data-v-6eb9d158 1.5s ease-in-out infinite}@media (max-width:479px){.spinner .path[data-v-6eb9d158]{width:12px;height:12px;margin:-6px 0 0 -6px;stroke-width:3}}@keyframes rotate-data-v-6eb9d158{100%{transform:rotate(360deg)}}@keyframes dash-data-v-6eb9d158{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}',map:void 0,media:void 0}))}),{name:"Loading",props:{}},"data-v-6eb9d158",!1,void 0,!1,L,void 0,void 0),j=y.context("@icons",!1,/\.svg$/),q=N({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",t._g(t._b({class:["icon","icon-"+t.name,"size-"+t.size],domProps:{innerHTML:t._s(t.svg)}},"span",t.$attrs,!1),t.$listeners))},staticRenderFns:[]},(function(t){t&&t("data-v-5795359a_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-5795359a]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-5795359a]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-5795359a]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-5795359a]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-5795359a]{font-size:14px}}@media (min-width:1024px){[data-v-5795359a]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-5795359a]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-5795359a]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-5795359a]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-5795359a]{font-size:1.56vw}}html[data-v-5795359a]{box-sizing:border-box}*[data-v-5795359a],[data-v-5795359a]::after,[data-v-5795359a]::before{box-sizing:border-box}.icon svg[data-v-5795359a]{display:block;width:100%}',map:void 0,media:void 0})}),{name:"Icon",props:{name:{type:String},size:{type:String,default:"lg"},stroke:{type:String,default:"transparent"},fill:{type:String,default:"#68596E"}},data:function(){return{
|
|
267
267
|
// svg: req("./" + this.name + "-"+this.size+".svg")
|
|
268
|
-
svg:j("./"+this.name+".svg").replace(/^<svg /,'<svg fill="'.concat(this.fill,'" stroke="').concat(this.stroke?this.stroke:null,'"'))}}},"data-v-036f59c0",!1,void 0,!1,L,void 0,void 0),D=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",t._g(t._b({class:["btn-"+t.kind,"size-"+t.size,"width-"+t.width,{"is-inverted":t.inverted},{"is-disabled":t.disabled},{"is-loading":t.isLoading},{"is-loading-progressive":t.isLoading&&"progressive"===t.loadingType},{"is-loading-progressive-complete":t.isLoadingCompleted&&"progressive"===t.loadingType},t.icon?"icon-"+t.icon:""],style:t.shadowVar,attrs:{disabled:t.disabled}},"button",t.$attrs,!1),t.$listeners),["circle"===t.width?a("span",{staticClass:"icon-wrap"},[a("Icon",{attrs:{name:t.icon,fill:"#fff",stroke:"transparent"}})],1):t.isLoading&&!1===t.isLoadingCompleteCheck&&"progressive"===t.loadingType?a("span",{staticClass:"text"},[t._v(t._s(t.loadingText))]):t.isLoadingCompleteCheck&&"progressive"===t.loadingType?a("span",{staticClass:"icon-complete"},[a("Icon",{attrs:{name:"check",fill:"#fff",stroke:"transparent"}})],1):t.isLoading&&"progressive"===t.loadingType?a("span",{staticClass:"loading-progress"}):t.isLoading&&"spinner"===t.loadingType?a("span",{staticClass:"loading"},[a("Loading")],1):a("div",{staticClass:"slot-content",class:t.isLoading?"text-slot":""},[t._t("default")],2)])},staticRenderFns:[]},(function(t){t&&(t("data-v-4fbfefab_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}',map:void 0,media:void 0}),t("data-v-4fbfefab_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-4fbfefab]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-4fbfefab]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-4fbfefab]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-4fbfefab]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-4fbfefab]{font-size:14px}}@media (min-width:1024px){[data-v-4fbfefab]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-4fbfefab]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-4fbfefab]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-4fbfefab]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-4fbfefab]{font-size:1.56vw}}html[data-v-4fbfefab]{box-sizing:border-box}*[data-v-4fbfefab],[data-v-4fbfefab]::after,[data-v-4fbfefab]::before{box-sizing:border-box}.btn-primary[data-v-4fbfefab]{transition:all .2s cubic-bezier(.4,0,.2,1);border:500px;background:#12d3db;box-shadow:0 2px 8px rgba(var(--shadow-color),.24);border-radius:500px;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.6666666667rem;color:#fff;line-height:1}@media (max-width:479px){.btn-primary[data-v-4fbfefab]{font-size:1.308411215rem;min-height:4.4859813084rem}}.btn-primary.width-fluid[data-v-4fbfefab]{width:100%;padding:0 .7619047619rem}.btn-primary.width-fluid.icon-left .icon[data-v-4fbfefab]{left:.7619047619rem}.btn-primary.width-fluid.icon-right .icon[data-v-4fbfefab]{right:.7619047619rem}.btn-primary.width-fluid .icon[data-v-4fbfefab]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.btn-primary.width-fluid .icon[data-v-4fbfefab]{width:2.2429906542rem;height:2.2429906542rem}}.btn-primary.width-fluid .icon svg[data-v-4fbfefab]{display:block}.btn-primary.width-fluid .icon path[data-v-4fbfefab],.btn-primary.width-fluid .icon svg[data-v-4fbfefab]{fill:#fff}.btn-primary.width-fluid .icon[data-v-4fbfefab] svg,.btn-primary.width-fluid .icon path[data-v-4fbfefab]{fill:#fff}@media (max-width:479px){.btn-primary.width-fluid[data-v-4fbfefab]{min-height:4.4859813084rem;padding:0 .7476635514rem}.btn-primary.width-fluid .icon[data-v-4fbfefab]{right:.7476635514rem}}.btn-primary.width-liquid[data-v-4fbfefab]{padding:1.1428571429rem 1.5238095238rem;width:fit-content}.btn-primary.width-liquid.icon-left[data-v-4fbfefab]{padding-left:2.2857142857rem!important}.btn-primary.width-liquid.icon-left .icon[data-v-4fbfefab]{left:.7619047619rem}.btn-primary.width-liquid.icon-right[data-v-4fbfefab]{padding-right:2.2857142857rem!important}.btn-primary.width-liquid.icon-right .icon[data-v-4fbfefab]{right:.7619047619rem}.btn-primary.width-liquid .icon[data-v-4fbfefab]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;margin-right:.1904761905rem;width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.btn-primary.width-liquid .icon[data-v-4fbfefab]{width:2.2429906542rem;height:2.2429906542rem}}.btn-primary.width-liquid .icon svg[data-v-4fbfefab]{display:block}.btn-primary.width-liquid .icon path[data-v-4fbfefab],.btn-primary.width-liquid .icon svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-primary.width-liquid .icon[data-v-4fbfefab] svg,.btn-primary.width-liquid .icon path[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}@media (max-width:479px){.btn-primary.width-liquid[data-v-4fbfefab]{min-height:4.4859813084rem;padding:1.4953271028rem 2.2429906542rem}}.btn-primary.width-circle[data-v-4fbfefab]{padding:.7619047619rem;line-height:1}.btn-primary.width-circle .icon-wrap[data-v-4fbfefab]{width:1.1428571429rem;height:1.1428571429rem;display:block}.btn-primary.width-circle .icon-wrap .icon[data-v-4fbfefab]{width:1.1428571429rem;height:1.1428571429rem;display:block}.btn-primary.width-circle .icon-wrap .icon[data-v-4fbfefab] svg{width:1.1428571429rem;height:1.1428571429rem;display:block;fill:#12d3db!important}.btn-primary.width-circle .icon-wrap .icon[data-v-4fbfefab] svg path{fill:#12d3db!important}@media (max-width:479px){.btn-primary.width-circle[data-v-4fbfefab]{width:4.4859813084rem;height:4.4859813084rem}.btn-primary.width-circle svg[data-v-4fbfefab]{width:2.2429906542rem;height:2.2429906542rem}}.btn-primary.is-inverted[data-v-4fbfefab]{background:#fff;color:#12d3db}.btn-primary.is-inverted path[data-v-4fbfefab],.btn-primary.is-inverted svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-primary[data-v-4fbfefab]:hover{cursor:pointer;transform:translateY(-3px);box-shadow:4px 8px 24px rgba(175,162,186,.24)}.btn-primary[data-v-4fbfefab]:active,.btn-primary[data-v-4fbfefab]:focus{outline:0;transform:translateY(3px) scale(.97)}.btn-primary[data-v-4fbfefab]:active:not(.is-inverted),.btn-primary[data-v-4fbfefab]:focus:not(.is-inverted){box-shadow:unset;background:#17b8bc}.btn-primary:active.is-inverted[data-v-4fbfefab],.btn-primary:focus.is-inverted[data-v-4fbfefab]{box-shadow:0 2px 8px rgba(175,162,186,.24)}.btn-primary.is-disabled[data-v-4fbfefab],.btn-primary[disabled][data-v-4fbfefab]{pointer-events:none;background-color:#dfdae4;color:#fff}.btn-primary.is-disabled path[data-v-4fbfefab],.btn-primary.is-disabled svg[data-v-4fbfefab],.btn-primary[disabled] path[data-v-4fbfefab],.btn-primary[disabled] svg[data-v-4fbfefab]{fill:#fff;stroke:transparent}.btn-primary.is-loading[data-v-4fbfefab]{pointer-events:none;background-color:#dfffff;color:#fff;transition:all 1s ease-out}.btn-primary.is-loading path[data-v-4fbfefab],.btn-primary.is-loading svg[data-v-4fbfefab]{fill:#fff;stroke:transparent}.btn-primary.is-loading-progressive[data-v-4fbfefab]{background-color:#00cf72!important;cursor:wait}.btn-primary.is-loading-progressive .text[data-v-4fbfefab]{position:absolute;z-index:2;width:100%;left:0;height:100%;top:0;display:flex;align-items:center;justify-content:center;transition:all .5s ease;animation:textOpacity-data-v-4fbfefab 1s infinite}@keyframes textOpacity-data-v-4fbfefab{0%,100%{opacity:1}50%{opacity:.4}}.btn-primary.is-loading-progressive .icon[data-v-4fbfefab]{display:none}.btn-primary.is-loading-progressive-complete .icon[data-v-4fbfefab]{position:relative;z-index:2;display:block;width:1.7142857143rem;height:100%;right:auto!important}.btn-primary.is-loading-progressive-complete .icon svg[data-v-4fbfefab]{width:1.5238095238rem;height:1.5238095238rem}.btn-primary.is-loading-progressive-complete .text[data-v-4fbfefab]{position:absolute;opacity:0!important}.btn-secondary[data-v-4fbfefab]{transition:all .2s cubic-bezier(.4,0,.2,1);border:500px;background:#12d3db;border-radius:500px;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#fff;line-height:1}@media (max-width:479px){.btn-secondary[data-v-4fbfefab]{font-size:1.1214953271rem}}.btn-secondary.size-xl[data-v-4fbfefab]{padding:1.1428571429rem 1.5238095238rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-secondary.size-xl[data-v-4fbfefab]{padding:2.2429906542rem 2.9906542056rem!important}}@media (max-width:479px){.btn-secondary.size-xl[data-v-4fbfefab]{font-size:1.308411215rem}}.btn-secondary.size-lg[data-v-4fbfefab]{padding:.7619047619rem 1.1428571429rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-secondary.size-lg[data-v-4fbfefab]{padding:1.4953271028rem 2.2429906542rem!important}}@media (max-width:479px){.btn-secondary.size-lg[data-v-4fbfefab]{font-size:1.308411215rem}}.btn-secondary.size-sm[data-v-4fbfefab]{padding:.7619047619rem!important;font-size:.4761904762rem}@media (max-width:479px){.btn-secondary.size-sm[data-v-4fbfefab]{padding:1.4953271028rem!important}}@media (max-width:479px){.btn-secondary.size-sm[data-v-4fbfefab]{font-size:.9345794393rem}}.btn-secondary.width-fluid[data-v-4fbfefab]{width:100%;padding:.7619047619rem}@media (max-width:479px){.btn-secondary.width-fluid[data-v-4fbfefab]{padding:1.4953271028rem}}.btn-secondary.width-fluid.icon-left .icon[data-v-4fbfefab]{left:.7619047619rem!important}.btn-secondary.width-fluid.icon-right .icon[data-v-4fbfefab]{right:.7619047619rem!important}.btn-secondary.width-fluid .icon[data-v-4fbfefab]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.btn-secondary.width-fluid .icon[data-v-4fbfefab]{width:2.2429906542rem;height:2.2429906542rem}}.btn-secondary.width-fluid .icon svg[data-v-4fbfefab]{display:block}.btn-secondary.width-fluid .icon path[data-v-4fbfefab],.btn-secondary.width-fluid .icon svg[data-v-4fbfefab]{fill:#fff}.btn-secondary.width-fluid .icon[data-v-4fbfefab] svg,.btn-secondary.width-fluid .icon path[data-v-4fbfefab]{fill:#fff}.btn-secondary.width-liquid[data-v-4fbfefab]{padding:.7619047619rem 1.1428571429rem;width:fit-content}@media (max-width:479px){.btn-secondary.width-liquid[data-v-4fbfefab]{padding:1.4953271028rem 2.2429906542rem}}.btn-secondary.width-liquid.icon-left[data-v-4fbfefab]{padding-left:2.2857142857rem!important}.btn-secondary.width-liquid.icon-left .icon[data-v-4fbfefab]{left:.7619047619rem}.btn-secondary.width-liquid.icon-right[data-v-4fbfefab]{padding-right:2.2857142857rem!important}.btn-secondary.width-liquid.icon-right .icon[data-v-4fbfefab]{right:.7619047619rem}.btn-secondary.width-liquid .icon[data-v-4fbfefab]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;margin-right:.1904761905rem;width:1.1428571429rem;height:1.1428571429rem}.btn-secondary.width-liquid .icon svg[data-v-4fbfefab]{display:block}.btn-secondary.width-liquid .icon path[data-v-4fbfefab],.btn-secondary.width-liquid .icon svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-secondary.width-liquid .icon[data-v-4fbfefab] svg,.btn-secondary.width-liquid .icon path[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-secondary.width-circle[data-v-4fbfefab]{line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-secondary.width-circle[data-v-4fbfefab]{width:4.1121495327rem;height:4.1121495327rem}}.btn-secondary.is-inverted[data-v-4fbfefab]{background:#fff;color:#12d3db}.btn-secondary.is-inverted path[data-v-4fbfefab],.btn-secondary.is-inverted svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-secondary[data-v-4fbfefab]:hover{cursor:pointer}.btn-secondary[data-v-4fbfefab]:hover:not(.is-inverted){background:#17b8bc}.btn-secondary:hover.is-inverted[data-v-4fbfefab]{opacity:.8}.btn-secondary[data-v-4fbfefab]:active,.btn-secondary[data-v-4fbfefab]:focus{outline:0}.btn-secondary[data-v-4fbfefab]:active:not(.is-inverted),.btn-secondary[data-v-4fbfefab]:focus:not(.is-inverted){background:#17b8bc}.btn-secondary:active.is-inverted[data-v-4fbfefab],.btn-secondary:focus.is-inverted[data-v-4fbfefab]{opacity:.8}.btn-secondary.is-disabled[data-v-4fbfefab],.btn-secondary[disabled][data-v-4fbfefab]{pointer-events:none;background-color:#dfdae4;color:#fff}.btn-secondary.is-disabled path[data-v-4fbfefab],.btn-secondary.is-disabled svg[data-v-4fbfefab],.btn-secondary[disabled] path[data-v-4fbfefab],.btn-secondary[disabled] svg[data-v-4fbfefab]{fill:#fff;stroke:transparent}.btn-secondary.is-loading[data-v-4fbfefab]{pointer-events:none;background-color:#dfffff;color:#fff;transition:all 1s ease-out}.btn-secondary.is-loading path[data-v-4fbfefab],.btn-secondary.is-loading svg[data-v-4fbfefab]{fill:#fff;stroke:transparent}.btn-secondary.is-loading-progressive[data-v-4fbfefab]{background-color:#00cf72!important;cursor:wait;color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}.btn-secondary.is-loading-progressive .slot-content span[data-v-4fbfefab]{color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}.btn-secondary.is-loading-progressive .text[data-v-4fbfefab]{z-index:2;position:absolute;transition:all .5s ease;animation:textOpacity-data-v-4fbfefab 1s infinite;width:100%;left:0;color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}@keyframes textOpacity-data-v-4fbfefab{0%,100%{opacity:1}50%{opacity:.4}}.btn-secondary.is-loading-progressive .icon[data-v-4fbfefab]{display:none}.btn-secondary.is-loading-progressive-complete[data-v-4fbfefab]{cursor:wait}.btn-secondary.is-loading-progressive-complete .text[data-v-4fbfefab]{position:absolute;opacity:0!important}.btn-secondary.is-loading-progressive-complete .icon[data-v-4fbfefab]{position:relative;z-index:2;display:block;width:1.7142857143rem;height:1.7142857143rem;right:auto!important}.btn-secondary.is-loading-progressive-complete .icon svg[data-v-4fbfefab]{width:1.5238095238rem;height:1.5238095238rem}.btn-ghost[data-v-4fbfefab]{transition:all .2s cubic-bezier(.4,0,.2,1);background:0 0;border-radius:500px;border:1px solid #12d3db;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#12d3db;line-height:1;align-items:center;text-align:center;justify-content:center}.btn-ghost span[data-v-4fbfefab]{text-align:center}@media (max-width:479px){.btn-ghost[data-v-4fbfefab]{font-size:1.1214953271rem}}.btn-ghost.size-xl[data-v-4fbfefab]{height:3.0476190476rem;padding:0 1.9047619048rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-ghost.size-xl[data-v-4fbfefab]{height:5.9813084112rem;padding:0 3.738317757rem!important;font-size:1.308411215rem}.btn-ghost.size-xl.icon-left .icon[data-v-4fbfefab]{margin-right:.3738317757rem!important}.btn-ghost.size-xl.icon-right .icon[data-v-4fbfefab]{margin-left:.3738317757rem!important}}.btn-ghost.size-lg[data-v-4fbfefab]{height:2.2857142857rem;padding:0 1.5238095238rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-ghost.size-lg[data-v-4fbfefab]{height:4.4859813084rem;padding:0 2.9906542056rem!important;font-size:1.308411215rem}.btn-ghost.size-lg.icon-left .icon[data-v-4fbfefab]{margin-right:.3738317757rem!important}.btn-ghost.size-lg.icon-right .icon[data-v-4fbfefab]{margin-left:.3738317757rem!important}}.btn-ghost.size-md[data-v-4fbfefab]{padding:0 1.1428571429rem;height:2.0952380952rem;font-size:.5714285714rem}@media (max-width:479px){.btn-ghost.size-md[data-v-4fbfefab]{height:4.1121495327rem;font-size:1.1214953271rem;padding:0 2.2429906542rem!important}.btn-ghost.size-md.icon-left .icon[data-v-4fbfefab]{margin-right:.3738317757rem!important}.btn-ghost.size-md.icon-right .icon[data-v-4fbfefab]{margin-left:.3738317757rem!important}}.btn-ghost.size-sm[data-v-4fbfefab]{height:2rem;padding:0 .7619047619rem!important;font-size:.4761904762rem}@media (max-width:479px){.btn-ghost.size-sm[data-v-4fbfefab]{height:3.9252336449rem;font-size:.9345794393rem;padding:0 1.4953271028rem!important}.btn-ghost.size-sm.icon-left .icon[data-v-4fbfefab]{margin-right:.3738317757rem!important}.btn-ghost.size-sm.icon-right .icon[data-v-4fbfefab]{margin-left:.3738317757rem!important}}.btn-ghost.width-fluid[data-v-4fbfefab]{width:100%}.btn-ghost.width-fluid.icon-left[data-v-4fbfefab]{position:relative}.btn-ghost.width-fluid.icon-left .icon[data-v-4fbfefab]{left:0}.btn-ghost.width-fluid.icon-left.size-md[data-v-4fbfefab]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-md .icon[data-v-4fbfefab]{margin-left:.7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-sm[data-v-4fbfefab]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-sm .icon[data-v-4fbfefab]{margin-left:.7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-lg[data-v-4fbfefab]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-lg .icon[data-v-4fbfefab]{margin-left:.7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-xl[data-v-4fbfefab]{padding:0 1.1428571429rem!important}.btn-ghost.width-fluid.icon-left.size-xl .icon[data-v-4fbfefab]{margin-left:1.1428571429rem!important}.btn-ghost.width-fluid.icon-right[data-v-4fbfefab]{position:relative}.btn-ghost.width-fluid.icon-right .icon[data-v-4fbfefab]{right:0}.btn-ghost.width-fluid.icon-right.size-md[data-v-4fbfefab]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-md .icon[data-v-4fbfefab]{margin-right:.7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-sm[data-v-4fbfefab]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-sm .icon[data-v-4fbfefab]{margin-right:.7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-lg[data-v-4fbfefab]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-lg .icon[data-v-4fbfefab]{margin-right:.7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-xl[data-v-4fbfefab]{padding:0 1.1428571429rem!important}.btn-ghost.width-fluid.icon-right.size-xl .icon[data-v-4fbfefab]{margin-right:1.1428571429rem!important}.btn-ghost.width-fluid .icon[data-v-4fbfefab]{display:flex;justify-content:center;position:absolute;align-items:center;top:0;bottom:0;margin:auto 0;width:1.3333333333rem;height:1.3333333333rem}@media (max-width:479px){.btn-ghost.width-fluid .icon[data-v-4fbfefab]{width:2.6168224299rem;height:2.6168224299rem}}.btn-ghost.width-fluid .icon svg[data-v-4fbfefab]{display:block}.btn-ghost.width-fluid .icon path[data-v-4fbfefab],.btn-ghost.width-fluid .icon svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-ghost.width-fluid .icon[data-v-4fbfefab] svg,.btn-ghost.width-fluid .icon path[data-v-4fbfefab]{width:24px;fill:#12d3db;stroke:transparent}@media (max-width:479px){.btn-ghost.width-fluid[data-v-4fbfefab]{padding:1.4953271028rem}.btn-ghost.width-fluid .icon[data-v-4fbfefab]{width:2.2429906542rem;height:2.2429906542rem}.btn-ghost.width-fluid.icon-right .icon[data-v-4fbfefab]{right:0}.btn-ghost.width-fluid.icon-right.size-md[data-v-4fbfefab]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-md .icon[data-v-4fbfefab]{margin-right:2.2429906542rem!important}.btn-ghost.width-fluid.icon-right.size-sm[data-v-4fbfefab]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-sm .icon[data-v-4fbfefab]{margin-right:1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-lg[data-v-4fbfefab]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-lg .icon[data-v-4fbfefab]{margin-right:1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-xl[data-v-4fbfefab]{padding:0 2.2429906542rem!important}.btn-ghost.width-fluid.icon-right.size-xl .icon[data-v-4fbfefab]{margin-right:2.2429906542rem!important}.btn-ghost.width-fluid.icon-left .icon[data-v-4fbfefab]{left:0}.btn-ghost.width-fluid.icon-left.size-md[data-v-4fbfefab]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-md .icon[data-v-4fbfefab]{margin-left:1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-sm[data-v-4fbfefab]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-sm .icon[data-v-4fbfefab]{margin-left:1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-lg[data-v-4fbfefab]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-lg .icon[data-v-4fbfefab]{margin-left:1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-xl[data-v-4fbfefab]{padding:0 2.2429906542rem!important}.btn-ghost.width-fluid.icon-left.size-xl .icon[data-v-4fbfefab]{margin-left:2.2429906542rem!important}}.btn-ghost.width-liquid[data-v-4fbfefab]{width:fit-content;display:flex}.btn-ghost.width-liquid .slot-content[data-v-4fbfefab]{display:flex;align-items:center}.btn-ghost.width-liquid .icon[data-v-4fbfefab]{display:flex;justify-content:center;align-items:center;width:1.3333333333rem;height:1.3333333333rem}.btn-ghost.width-liquid .icon svg[data-v-4fbfefab]{display:block}.btn-ghost.width-liquid .icon path[data-v-4fbfefab],.btn-ghost.width-liquid .icon svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-ghost.width-liquid .icon[data-v-4fbfefab] svg,.btn-ghost.width-liquid .icon path[data-v-4fbfefab]{width:24px;fill:#12d3db;stroke:transparent}@media (max-width:479px){.btn-ghost.width-liquid .icon[data-v-4fbfefab]{width:2.6168224299rem;height:2.6168224299rem}}.btn-ghost.width-circle[data-v-4fbfefab]{padding:.380952381rem;line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-ghost.width-circle[data-v-4fbfefab]{width:4.1121495327rem;height:4.1121495327rem}}.btn-ghost.width-circle svg[data-v-4fbfefab]{display:block;margin:0 auto;width:1.3333333333rem;height:1.3333333333rem}@media (max-width:479px){.btn-ghost.width-circle svg[data-v-4fbfefab]{width:2.6168224299rem;height:2.6168224299rem}}.btn-ghost.width-circle path[data-v-4fbfefab],.btn-ghost.width-circle svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-ghost.is-inverted[data-v-4fbfefab]{border-color:#fff;color:#fff}.btn-ghost.is-inverted path[data-v-4fbfefab],.btn-ghost.is-inverted svg[data-v-4fbfefab]{fill:#fff;stroke:#fff}.btn-ghost[data-v-4fbfefab]:hover{cursor:pointer}.btn-ghost[data-v-4fbfefab]:hover:not(.is-inverted){border-color:#17b8bc;color:#17b8bc}.btn-ghost[data-v-4fbfefab]:hover:not(.is-inverted) svg,.btn-ghost:hover:not(.is-inverted) path[data-v-4fbfefab]{fill:#17b8bc!important;stroke:transparent!important}.btn-ghost:hover:not(.is-inverted) path[data-v-4fbfefab],.btn-ghost:hover:not(.is-inverted) svg[data-v-4fbfefab]{fill:#17b8bc;stroke:transparent}.btn-ghost:hover.is-inverted[data-v-4fbfefab]{opacity:.8}.btn-ghost[data-v-4fbfefab]:active,.btn-ghost[data-v-4fbfefab]:focus{outline:0}.btn-ghost[data-v-4fbfefab]:active:not(.is-inverted),.btn-ghost[data-v-4fbfefab]:focus:not(.is-inverted){border-color:#17b8bc;color:#17b8bc}.btn-ghost:active.is-inverted[data-v-4fbfefab],.btn-ghost:focus.is-inverted[data-v-4fbfefab]{opacity:.8}.btn-ghost.is-loading[data-v-4fbfefab]{pointer-events:none;background-color:#dfffff;color:#fff;border-color:#dfffff;transition:all 1s ease-out}.btn-ghost.is-loading path[data-v-4fbfefab],.btn-ghost.is-loading svg[data-v-4fbfefab]{fill:#fff;stroke:transparent}.btn-ghost.is-loading-progressive[data-v-4fbfefab]{background-color:#00cf72!important;cursor:wait}.btn-ghost.is-loading-progressive .text[data-v-4fbfefab]{z-index:2;position:absolute;transition:all .5s ease;animation:textOpacity-data-v-4fbfefab 1s infinite;width:100%;left:0;color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}@keyframes textOpacity-data-v-4fbfefab{0%,100%{opacity:1}50%{opacity:.4}}.btn-ghost.is-loading-progressive .icon[data-v-4fbfefab]{display:none}.btn-ghost.is-loading-progressive-complete[data-v-4fbfefab]{cursor:wait}.btn-ghost.is-loading-progressive-complete .icon[data-v-4fbfefab]{position:relative;z-index:2;display:block;width:1.7142857143rem;height:1.7142857143rem;right:auto!important}.btn-ghost.is-loading-progressive-complete .icon svg[data-v-4fbfefab]{width:1.5238095238rem;height:1.5238095238rem}.btn-ghost.is-loading-progressive-complete .text[data-v-4fbfefab]{position:absolute;opacity:0!important}.btn-link[data-v-4fbfefab]{transition:all .2s cubic-bezier(.4,0,.2,1);background:0 0;border:0;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#12d3db;line-height:1}@media (max-width:479px){.btn-link[data-v-4fbfefab]{font-size:1.1214953271rem}}.btn-link.size-xl[data-v-4fbfefab]{font-size:.6666666667rem}@media (max-width:479px){.btn-link.size-xl[data-v-4fbfefab]{font-size:1.308411215rem}}.btn-link.size-lg[data-v-4fbfefab]{font-size:.6666666667rem}@media (max-width:479px){.btn-link.size-lg[data-v-4fbfefab]{font-size:1.308411215rem}}.btn-link.size-sm[data-v-4fbfefab]{font-size:.4761904762rem}@media (max-width:479px){.btn-link.size-sm[data-v-4fbfefab]{font-size:.9345794393rem}}.btn-link.width-fluid[data-v-4fbfefab]{width:100%}.btn-link.width-circle[data-v-4fbfefab]{padding:.380952381rem;line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-link.width-circle[data-v-4fbfefab]{width:4.1121495327rem;height:4.1121495327rem}}.btn-link.width-circle svg[data-v-4fbfefab]{display:block;margin:0 auto;width:1.3333333333rem;height:1.3333333333rem}@media (max-width:479px){.btn-link.width-circle svg[data-v-4fbfefab]{width:2.6168224299rem;height:2.6168224299rem}}.btn-link.width-circle path[data-v-4fbfefab],.btn-link.width-circle svg[data-v-4fbfefab]{fill:#12d3db;stroke:transparent}.btn-link.is-inverted[data-v-4fbfefab]{color:#fff}.btn-link.is-inverted path[data-v-4fbfefab],.btn-link.is-inverted svg[data-v-4fbfefab]{fill:#fff;stroke:transparent}.btn-link[data-v-4fbfefab]:hover{cursor:pointer}.btn-link[data-v-4fbfefab]:hover:not(.is-inverted){color:#17b8bc}.btn-link:hover.is-inverted[data-v-4fbfefab]{opacity:.8}.btn-link[data-v-4fbfefab]:active,.btn-link[data-v-4fbfefab]:focus{outline:0}.btn-link[data-v-4fbfefab]:active:not(.is-inverted),.btn-link[data-v-4fbfefab]:focus:not(.is-inverted){color:#17b8bc}.btn-link:active.is-inverted[data-v-4fbfefab],.btn-link:focus.is-inverted[data-v-4fbfefab]{opacity:.8}.btn-link.is-disabled[data-v-4fbfefab],.btn-link[disabled][data-v-4fbfefab]{pointer-events:none;color:#dfdae4;opacity:.48}.btn-link.is-disabled path[data-v-4fbfefab],.btn-link.is-disabled svg[data-v-4fbfefab],.btn-link[disabled] path[data-v-4fbfefab],.btn-link[disabled] svg[data-v-4fbfefab]{fill:#dfdae4;stroke:transparent}.loading[data-v-4fbfefab]{position:absolute;width:32px;height:32px;display:block;margin:0 auto;top:0;bottom:0;left:0;right:0;margin-top:auto;margin-bottom:auto}@media (max-width:479px){.loading[data-v-4fbfefab]{width:24px;height:24px}}.loading-progress[data-v-4fbfefab]{width:0%;height:100%;transition:all 1s ease-out;position:absolute;background-color:#00b664;left:0;top:0}.is-loading-progressive .loading-progress[data-v-4fbfefab]{width:44%;-webkit-animation:3s loadingPosition-data-v-4fbfefab;-moz-animation:3s loadingPosition-data-v-4fbfefab;animation:3s loadingPosition-data-v-4fbfefab;transition:3s}.is-loading-progressive-complete[data-v-4fbfefab]{justify-content:center;text-align:center;transition:3s!important}.is-loading-progressive-complete .loading-progress[data-v-4fbfefab]{width:100%;-webkit-animation:3s loadingCompleted-data-v-4fbfefab;-moz-animation:3s loadingCompleted-data-v-4fbfefab;animation:3s loadingCompleted-data-v-4fbfefab}.is-loading-progressive-complete .icon-complete[data-v-4fbfefab]{display:flex;width:inherit;justify-content:center;margin:0 auto;position:absolute;left:0;right:0;margin-left:auto;margin-right:auto;text-align:center;top:0;bottom:0;align-items:center}.is-loading-progressive-complete .icon-complete[data-v-4fbfefab] span{width:1.1428571429rem;display:flex!important}@media (max-width:479px){.is-loading-progressive-complete .icon-complete[data-v-4fbfefab] span{width:2.2429906542rem}}.is-loading-progressive-complete .icon-complete[data-v-4fbfefab] svg{width:1.1428571429rem!important;fill:#fff}@media (max-width:479px){.is-loading-progressive-complete .icon-complete[data-v-4fbfefab] svg{width:2.2429906542rem!important}}.is-loading-progressive-complete .icon-complete[data-v-4fbfefab] svg path{fill:#fff}.is-loading-progressive-complete .text[data-v-4fbfefab]{position:absolute;opacity:0!important}.is-loading-progressive-complete .text-slot .icon[data-v-4fbfefab]{display:none}@keyframes loadingZeroToComplete-data-v-4fbfefab{0%{width:0}100%{width:100%}}@keyframes loadingPosition-data-v-4fbfefab{0%{width:0}100%{width:33%}}@keyframes loadingCompleted-data-v-4fbfefab{0%{width:44%}100%{width:100%}}[data-v-4fbfefab] .text-slot{opacity:0}[data-v-4fbfefab] .text-slot .icon{display:none}',map:void 0,media:void 0}))}),{name:"Button",components:{Loading:R,Icon:q},props:{
|
|
268
|
+
svg:j("./"+this.name+".svg").replace(/^<svg /,'<svg fill="'.concat(this.fill,'" stroke="').concat(this.stroke?this.stroke:null,'"'))}}},"data-v-5795359a",!1,void 0,!1,L,void 0,void 0),D=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("button",t._g(t._b({class:["btn-"+t.kind,"size-"+t.size,"width-"+t.width,{"is-inverted":t.inverted},{"is-disabled":t.disabled},{"is-loading":t.isLoading},{"is-loading-progressive":t.isLoading&&"progressive"===t.loadingType},{"is-loading-progressive-complete":t.isLoadingCompleted&&"progressive"===t.loadingType},t.icon?"icon-"+t.icon:""],style:t.shadowVar,attrs:{disabled:t.disabled}},"button",t.$attrs,!1),t.$listeners),["circle"===t.width&&t.icon?a("span",{staticClass:"icon-wrap"},[a("Icon",{attrs:{name:t.icon,fill:"#fff",stroke:"transparent"}})],1):t.isLoading&&!1===t.isLoadingCompleteCheck&&"progressive"===t.loadingType?a("span",{staticClass:"text"},[t._v(t._s(t.loadingText))]):t.isLoadingCompleteCheck&&"progressive"===t.loadingType?a("span",{staticClass:"icon-complete"},[a("Icon",{attrs:{name:"check",fill:"#fff",stroke:"transparent"}})],1):t.isLoading&&"progressive"===t.loadingType?a("span",{staticClass:"loading-progress"}):t.isLoading&&"spinner"===t.loadingType?a("span",{staticClass:"loading"},[a("Loading")],1):a("div",{staticClass:"slot-content",class:t.isLoading?"text-slot":""},[t._t("default")],2)])},staticRenderFns:[]},(function(t){t&&(t("data-v-caefc1dc_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}',map:void 0,media:void 0}),t("data-v-caefc1dc_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-caefc1dc]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-caefc1dc]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-caefc1dc]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-caefc1dc]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-caefc1dc]{font-size:14px}}@media (min-width:1024px){[data-v-caefc1dc]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-caefc1dc]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-caefc1dc]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-caefc1dc]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-caefc1dc]{font-size:1.56vw}}html[data-v-caefc1dc]{box-sizing:border-box}*[data-v-caefc1dc],[data-v-caefc1dc]::after,[data-v-caefc1dc]::before{box-sizing:border-box}.btn-primary[data-v-caefc1dc]{transition:all .2s cubic-bezier(.4,0,.2,1);border:500px;background:#12d3db;box-shadow:0 2px 8px rgba(var(--shadow-color),.24);border-radius:500px;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.6666666667rem;color:#fff;line-height:1}@media (max-width:479px){.btn-primary[data-v-caefc1dc]{font-size:1.308411215rem;min-height:4.4859813084rem}}.btn-primary.width-fluid[data-v-caefc1dc]{width:100%;padding:0 .7619047619rem}.btn-primary.width-fluid.icon-left .icon[data-v-caefc1dc]{left:.7619047619rem}.btn-primary.width-fluid.icon-right .icon[data-v-caefc1dc]{right:.7619047619rem}.btn-primary.width-fluid .icon[data-v-caefc1dc]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.btn-primary.width-fluid .icon[data-v-caefc1dc]{width:2.2429906542rem;height:2.2429906542rem}}.btn-primary.width-fluid .icon svg[data-v-caefc1dc]{display:block}.btn-primary.width-fluid .icon path[data-v-caefc1dc],.btn-primary.width-fluid .icon svg[data-v-caefc1dc]{fill:#fff}.btn-primary.width-fluid .icon[data-v-caefc1dc] svg,.btn-primary.width-fluid .icon path[data-v-caefc1dc]{fill:#fff}@media (max-width:479px){.btn-primary.width-fluid[data-v-caefc1dc]{min-height:4.4859813084rem;padding:0 .7476635514rem}.btn-primary.width-fluid .icon[data-v-caefc1dc]{right:.7476635514rem}}.btn-primary.width-liquid[data-v-caefc1dc]{padding:1.1428571429rem 1.5238095238rem;width:fit-content}.btn-primary.width-liquid.icon-left[data-v-caefc1dc]{padding-left:2.2857142857rem!important}.btn-primary.width-liquid.icon-left .icon[data-v-caefc1dc]{left:.7619047619rem}.btn-primary.width-liquid.icon-right[data-v-caefc1dc]{padding-right:2.2857142857rem!important}.btn-primary.width-liquid.icon-right .icon[data-v-caefc1dc]{right:.7619047619rem}.btn-primary.width-liquid .icon[data-v-caefc1dc]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;margin-right:.1904761905rem;width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.btn-primary.width-liquid .icon[data-v-caefc1dc]{width:2.2429906542rem;height:2.2429906542rem}}.btn-primary.width-liquid .icon svg[data-v-caefc1dc]{display:block}.btn-primary.width-liquid .icon path[data-v-caefc1dc],.btn-primary.width-liquid .icon svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-primary.width-liquid .icon[data-v-caefc1dc] svg,.btn-primary.width-liquid .icon path[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}@media (max-width:479px){.btn-primary.width-liquid[data-v-caefc1dc]{min-height:4.4859813084rem;padding:1.4953271028rem 2.2429906542rem}}.btn-primary.width-circle[data-v-caefc1dc]{padding:.7619047619rem;line-height:1}.btn-primary.width-circle .icon-wrap[data-v-caefc1dc]{width:1.1428571429rem;height:1.1428571429rem;display:block}.btn-primary.width-circle .icon-wrap .icon[data-v-caefc1dc]{width:1.1428571429rem;height:1.1428571429rem;display:block}.btn-primary.width-circle .icon-wrap .icon[data-v-caefc1dc] svg{width:1.1428571429rem;height:1.1428571429rem;display:block;fill:#12d3db!important}.btn-primary.width-circle .icon-wrap .icon[data-v-caefc1dc] svg path{fill:#12d3db!important}@media (max-width:479px){.btn-primary.width-circle[data-v-caefc1dc]{width:4.4859813084rem;height:4.4859813084rem}.btn-primary.width-circle svg[data-v-caefc1dc]{width:2.2429906542rem;height:2.2429906542rem}}.btn-primary.is-inverted[data-v-caefc1dc]{background:#fff;color:#12d3db}.btn-primary.is-inverted path[data-v-caefc1dc],.btn-primary.is-inverted svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-primary[data-v-caefc1dc]:hover{cursor:pointer;transform:translateY(-3px);box-shadow:4px 8px 24px rgba(175,162,186,.24)}.btn-primary[data-v-caefc1dc]:active,.btn-primary[data-v-caefc1dc]:focus{outline:0;transform:translateY(3px) scale(.97)}.btn-primary[data-v-caefc1dc]:active:not(.is-inverted),.btn-primary[data-v-caefc1dc]:focus:not(.is-inverted){box-shadow:unset;background:#17b8bc}.btn-primary:active.is-inverted[data-v-caefc1dc],.btn-primary:focus.is-inverted[data-v-caefc1dc]{box-shadow:0 2px 8px rgba(175,162,186,.24)}.btn-primary.is-disabled[data-v-caefc1dc],.btn-primary[disabled][data-v-caefc1dc]{pointer-events:none;background-color:#dfdae4;color:#fff}.btn-primary.is-disabled path[data-v-caefc1dc],.btn-primary.is-disabled svg[data-v-caefc1dc],.btn-primary[disabled] path[data-v-caefc1dc],.btn-primary[disabled] svg[data-v-caefc1dc]{fill:#fff;stroke:transparent}.btn-primary.is-loading[data-v-caefc1dc]{pointer-events:none;background-color:#dfffff;color:#fff;transition:all 1s ease-out}.btn-primary.is-loading path[data-v-caefc1dc],.btn-primary.is-loading svg[data-v-caefc1dc]{fill:#fff;stroke:transparent}.btn-primary.is-loading-progressive[data-v-caefc1dc]{background-color:#00cf72!important;cursor:wait}.btn-primary.is-loading-progressive .text[data-v-caefc1dc]{position:absolute;z-index:2;width:100%;left:0;height:100%;top:0;display:flex;align-items:center;justify-content:center;transition:all .5s ease;animation:textOpacity-data-v-caefc1dc 1s infinite}@keyframes textOpacity-data-v-caefc1dc{0%,100%{opacity:1}50%{opacity:.4}}.btn-primary.is-loading-progressive .icon[data-v-caefc1dc]{display:none}.btn-primary.is-loading-progressive-complete .icon[data-v-caefc1dc]{position:relative;z-index:2;display:block;width:1.7142857143rem;height:100%;right:auto!important}.btn-primary.is-loading-progressive-complete .icon svg[data-v-caefc1dc]{width:1.5238095238rem;height:1.5238095238rem}.btn-primary.is-loading-progressive-complete .text[data-v-caefc1dc]{position:absolute;opacity:0!important}.btn-secondary[data-v-caefc1dc]{transition:all .2s cubic-bezier(.4,0,.2,1);border:500px;background:#12d3db;border-radius:500px;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#fff;line-height:1}@media (max-width:479px){.btn-secondary[data-v-caefc1dc]{font-size:1.1214953271rem}}.btn-secondary.size-xl[data-v-caefc1dc]{padding:1.1428571429rem 1.5238095238rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-secondary.size-xl[data-v-caefc1dc]{padding:2.2429906542rem 2.9906542056rem!important}}@media (max-width:479px){.btn-secondary.size-xl[data-v-caefc1dc]{font-size:1.308411215rem}}.btn-secondary.size-lg[data-v-caefc1dc]{padding:.7619047619rem 1.1428571429rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-secondary.size-lg[data-v-caefc1dc]{padding:1.4953271028rem 2.2429906542rem!important}}@media (max-width:479px){.btn-secondary.size-lg[data-v-caefc1dc]{font-size:1.308411215rem}}.btn-secondary.size-sm[data-v-caefc1dc]{padding:.7619047619rem!important;font-size:.4761904762rem}@media (max-width:479px){.btn-secondary.size-sm[data-v-caefc1dc]{padding:1.4953271028rem!important}}@media (max-width:479px){.btn-secondary.size-sm[data-v-caefc1dc]{font-size:.9345794393rem}}.btn-secondary.width-fluid[data-v-caefc1dc]{width:100%;padding:.7619047619rem}@media (max-width:479px){.btn-secondary.width-fluid[data-v-caefc1dc]{padding:1.4953271028rem}}.btn-secondary.width-fluid.icon-left .icon[data-v-caefc1dc]{left:.7619047619rem!important}.btn-secondary.width-fluid.icon-right .icon[data-v-caefc1dc]{right:.7619047619rem!important}.btn-secondary.width-fluid .icon[data-v-caefc1dc]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;width:1.1428571429rem;height:1.1428571429rem}@media (max-width:479px){.btn-secondary.width-fluid .icon[data-v-caefc1dc]{width:2.2429906542rem;height:2.2429906542rem}}.btn-secondary.width-fluid .icon svg[data-v-caefc1dc]{display:block}.btn-secondary.width-fluid .icon path[data-v-caefc1dc],.btn-secondary.width-fluid .icon svg[data-v-caefc1dc]{fill:#fff}.btn-secondary.width-fluid .icon[data-v-caefc1dc] svg,.btn-secondary.width-fluid .icon path[data-v-caefc1dc]{fill:#fff}.btn-secondary.width-liquid[data-v-caefc1dc]{padding:.7619047619rem 1.1428571429rem;width:fit-content}@media (max-width:479px){.btn-secondary.width-liquid[data-v-caefc1dc]{padding:1.4953271028rem 2.2429906542rem}}.btn-secondary.width-liquid.icon-left[data-v-caefc1dc]{padding-left:2.2857142857rem!important}.btn-secondary.width-liquid.icon-left .icon[data-v-caefc1dc]{left:.7619047619rem}.btn-secondary.width-liquid.icon-right[data-v-caefc1dc]{padding-right:2.2857142857rem!important}.btn-secondary.width-liquid.icon-right .icon[data-v-caefc1dc]{right:.7619047619rem}.btn-secondary.width-liquid .icon[data-v-caefc1dc]{position:absolute;margin:auto 0;top:0;bottom:0;display:flex;align-items:center;margin-right:.1904761905rem;width:1.1428571429rem;height:1.1428571429rem}.btn-secondary.width-liquid .icon svg[data-v-caefc1dc]{display:block}.btn-secondary.width-liquid .icon path[data-v-caefc1dc],.btn-secondary.width-liquid .icon svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-secondary.width-liquid .icon[data-v-caefc1dc] svg,.btn-secondary.width-liquid .icon path[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-secondary.width-circle[data-v-caefc1dc]{line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-secondary.width-circle[data-v-caefc1dc]{width:4.1121495327rem;height:4.1121495327rem}}.btn-secondary.is-inverted[data-v-caefc1dc]{background:#fff;color:#12d3db}.btn-secondary.is-inverted path[data-v-caefc1dc],.btn-secondary.is-inverted svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-secondary[data-v-caefc1dc]:hover{cursor:pointer}.btn-secondary[data-v-caefc1dc]:hover:not(.is-inverted){background:#17b8bc}.btn-secondary:hover.is-inverted[data-v-caefc1dc]{opacity:.8}.btn-secondary[data-v-caefc1dc]:active,.btn-secondary[data-v-caefc1dc]:focus{outline:0}.btn-secondary[data-v-caefc1dc]:active:not(.is-inverted),.btn-secondary[data-v-caefc1dc]:focus:not(.is-inverted){background:#17b8bc}.btn-secondary:active.is-inverted[data-v-caefc1dc],.btn-secondary:focus.is-inverted[data-v-caefc1dc]{opacity:.8}.btn-secondary.is-disabled[data-v-caefc1dc],.btn-secondary[disabled][data-v-caefc1dc]{pointer-events:none;background-color:#dfdae4;color:#fff}.btn-secondary.is-disabled path[data-v-caefc1dc],.btn-secondary.is-disabled svg[data-v-caefc1dc],.btn-secondary[disabled] path[data-v-caefc1dc],.btn-secondary[disabled] svg[data-v-caefc1dc]{fill:#fff;stroke:transparent}.btn-secondary.is-loading[data-v-caefc1dc]{pointer-events:none;background-color:#dfffff;color:#fff;transition:all 1s ease-out}.btn-secondary.is-loading path[data-v-caefc1dc],.btn-secondary.is-loading svg[data-v-caefc1dc]{fill:#fff;stroke:transparent}.btn-secondary.is-loading-progressive[data-v-caefc1dc]{background-color:#00cf72!important;cursor:wait;color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}.btn-secondary.is-loading-progressive .slot-content span[data-v-caefc1dc]{color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}.btn-secondary.is-loading-progressive .text[data-v-caefc1dc]{z-index:2;position:absolute;transition:all .5s ease;animation:textOpacity-data-v-caefc1dc 1s infinite;width:100%;left:0;color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}@keyframes textOpacity-data-v-caefc1dc{0%,100%{opacity:1}50%{opacity:.4}}.btn-secondary.is-loading-progressive .icon[data-v-caefc1dc]{display:none}.btn-secondary.is-loading-progressive-complete[data-v-caefc1dc]{cursor:wait}.btn-secondary.is-loading-progressive-complete .text[data-v-caefc1dc]{position:absolute;opacity:0!important}.btn-secondary.is-loading-progressive-complete .icon[data-v-caefc1dc]{position:relative;z-index:2;display:block;width:1.7142857143rem;height:1.7142857143rem;right:auto!important}.btn-secondary.is-loading-progressive-complete .icon svg[data-v-caefc1dc]{width:1.5238095238rem;height:1.5238095238rem}.btn-ghost[data-v-caefc1dc]{transition:all .2s cubic-bezier(.4,0,.2,1);background:0 0;border-radius:500px;border:1px solid #12d3db;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#12d3db;line-height:1;align-items:center;text-align:center;justify-content:center}.btn-ghost span[data-v-caefc1dc]{text-align:center}@media (max-width:479px){.btn-ghost[data-v-caefc1dc]{font-size:1.1214953271rem}}.btn-ghost.size-xl[data-v-caefc1dc]{height:3.0476190476rem;padding:0 1.9047619048rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-ghost.size-xl[data-v-caefc1dc]{height:5.9813084112rem;padding:0 3.738317757rem!important;font-size:1.308411215rem}.btn-ghost.size-xl.icon-left .icon[data-v-caefc1dc]{margin-right:.3738317757rem!important}.btn-ghost.size-xl.icon-right .icon[data-v-caefc1dc]{margin-left:.3738317757rem!important}}.btn-ghost.size-lg[data-v-caefc1dc]{height:2.2857142857rem;padding:0 1.5238095238rem!important;font-size:.6666666667rem}@media (max-width:479px){.btn-ghost.size-lg[data-v-caefc1dc]{height:4.4859813084rem;padding:0 2.9906542056rem!important;font-size:1.308411215rem}.btn-ghost.size-lg.icon-left .icon[data-v-caefc1dc]{margin-right:.3738317757rem!important}.btn-ghost.size-lg.icon-right .icon[data-v-caefc1dc]{margin-left:.3738317757rem!important}}.btn-ghost.size-md[data-v-caefc1dc]{padding:0 1.1428571429rem;height:2.0952380952rem;font-size:.5714285714rem}@media (max-width:479px){.btn-ghost.size-md[data-v-caefc1dc]{height:4.1121495327rem;font-size:1.1214953271rem;padding:0 2.2429906542rem!important}.btn-ghost.size-md.icon-left .icon[data-v-caefc1dc]{margin-right:.3738317757rem!important}.btn-ghost.size-md.icon-right .icon[data-v-caefc1dc]{margin-left:.3738317757rem!important}}.btn-ghost.size-sm[data-v-caefc1dc]{height:2rem;padding:0 .7619047619rem!important;font-size:.4761904762rem}@media (max-width:479px){.btn-ghost.size-sm[data-v-caefc1dc]{height:3.9252336449rem;font-size:.9345794393rem;padding:0 1.4953271028rem!important}.btn-ghost.size-sm.icon-left .icon[data-v-caefc1dc]{margin-right:.3738317757rem!important}.btn-ghost.size-sm.icon-right .icon[data-v-caefc1dc]{margin-left:.3738317757rem!important}}.btn-ghost.width-fluid[data-v-caefc1dc]{width:100%}.btn-ghost.width-fluid.icon-left[data-v-caefc1dc]{position:relative}.btn-ghost.width-fluid.icon-left .icon[data-v-caefc1dc]{left:0}.btn-ghost.width-fluid.icon-left.size-md[data-v-caefc1dc]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-md .icon[data-v-caefc1dc]{margin-left:.7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-sm[data-v-caefc1dc]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-sm .icon[data-v-caefc1dc]{margin-left:.7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-lg[data-v-caefc1dc]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-lg .icon[data-v-caefc1dc]{margin-left:.7619047619rem!important}.btn-ghost.width-fluid.icon-left.size-xl[data-v-caefc1dc]{padding:0 1.1428571429rem!important}.btn-ghost.width-fluid.icon-left.size-xl .icon[data-v-caefc1dc]{margin-left:1.1428571429rem!important}.btn-ghost.width-fluid.icon-right[data-v-caefc1dc]{position:relative}.btn-ghost.width-fluid.icon-right .icon[data-v-caefc1dc]{right:0}.btn-ghost.width-fluid.icon-right.size-md[data-v-caefc1dc]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-md .icon[data-v-caefc1dc]{margin-right:.7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-sm[data-v-caefc1dc]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-sm .icon[data-v-caefc1dc]{margin-right:.7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-lg[data-v-caefc1dc]{padding:0 .7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-lg .icon[data-v-caefc1dc]{margin-right:.7619047619rem!important}.btn-ghost.width-fluid.icon-right.size-xl[data-v-caefc1dc]{padding:0 1.1428571429rem!important}.btn-ghost.width-fluid.icon-right.size-xl .icon[data-v-caefc1dc]{margin-right:1.1428571429rem!important}.btn-ghost.width-fluid .icon[data-v-caefc1dc]{display:flex;justify-content:center;position:absolute;align-items:center;top:0;bottom:0;margin:auto 0;width:1.3333333333rem;height:1.3333333333rem}@media (max-width:479px){.btn-ghost.width-fluid .icon[data-v-caefc1dc]{width:2.6168224299rem;height:2.6168224299rem}}.btn-ghost.width-fluid .icon svg[data-v-caefc1dc]{display:block}.btn-ghost.width-fluid .icon path[data-v-caefc1dc],.btn-ghost.width-fluid .icon svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-ghost.width-fluid .icon[data-v-caefc1dc] svg,.btn-ghost.width-fluid .icon path[data-v-caefc1dc]{width:24px;fill:#12d3db;stroke:transparent}@media (max-width:479px){.btn-ghost.width-fluid[data-v-caefc1dc]{padding:1.4953271028rem}.btn-ghost.width-fluid .icon[data-v-caefc1dc]{width:2.2429906542rem;height:2.2429906542rem}.btn-ghost.width-fluid.icon-right .icon[data-v-caefc1dc]{right:0}.btn-ghost.width-fluid.icon-right.size-md[data-v-caefc1dc]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-md .icon[data-v-caefc1dc]{margin-right:2.2429906542rem!important}.btn-ghost.width-fluid.icon-right.size-sm[data-v-caefc1dc]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-sm .icon[data-v-caefc1dc]{margin-right:1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-lg[data-v-caefc1dc]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-lg .icon[data-v-caefc1dc]{margin-right:1.4953271028rem!important}.btn-ghost.width-fluid.icon-right.size-xl[data-v-caefc1dc]{padding:0 2.2429906542rem!important}.btn-ghost.width-fluid.icon-right.size-xl .icon[data-v-caefc1dc]{margin-right:2.2429906542rem!important}.btn-ghost.width-fluid.icon-left .icon[data-v-caefc1dc]{left:0}.btn-ghost.width-fluid.icon-left.size-md[data-v-caefc1dc]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-md .icon[data-v-caefc1dc]{margin-left:1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-sm[data-v-caefc1dc]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-sm .icon[data-v-caefc1dc]{margin-left:1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-lg[data-v-caefc1dc]{padding:0 1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-lg .icon[data-v-caefc1dc]{margin-left:1.4953271028rem!important}.btn-ghost.width-fluid.icon-left.size-xl[data-v-caefc1dc]{padding:0 2.2429906542rem!important}.btn-ghost.width-fluid.icon-left.size-xl .icon[data-v-caefc1dc]{margin-left:2.2429906542rem!important}}.btn-ghost.width-liquid[data-v-caefc1dc]{width:fit-content;display:flex}.btn-ghost.width-liquid .slot-content[data-v-caefc1dc]{display:flex;align-items:center}.btn-ghost.width-liquid .icon[data-v-caefc1dc]{display:flex;justify-content:center;align-items:center;width:1.3333333333rem;height:1.3333333333rem}.btn-ghost.width-liquid .icon svg[data-v-caefc1dc]{display:block}.btn-ghost.width-liquid .icon path[data-v-caefc1dc],.btn-ghost.width-liquid .icon svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-ghost.width-liquid .icon[data-v-caefc1dc] svg,.btn-ghost.width-liquid .icon path[data-v-caefc1dc]{width:24px;fill:#12d3db;stroke:transparent}@media (max-width:479px){.btn-ghost.width-liquid .icon[data-v-caefc1dc]{width:2.6168224299rem;height:2.6168224299rem}}.btn-ghost.width-circle[data-v-caefc1dc]{padding:.380952381rem;line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-ghost.width-circle[data-v-caefc1dc]{width:4.1121495327rem;height:4.1121495327rem}}.btn-ghost.width-circle svg[data-v-caefc1dc]{display:block;margin:0 auto;width:1.3333333333rem;height:1.3333333333rem}@media (max-width:479px){.btn-ghost.width-circle svg[data-v-caefc1dc]{width:2.6168224299rem;height:2.6168224299rem}}.btn-ghost.width-circle path[data-v-caefc1dc],.btn-ghost.width-circle svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-ghost.is-inverted[data-v-caefc1dc]{border-color:#fff;color:#fff}.btn-ghost.is-inverted path[data-v-caefc1dc],.btn-ghost.is-inverted svg[data-v-caefc1dc]{fill:#fff;stroke:#fff}.btn-ghost[data-v-caefc1dc]:hover{cursor:pointer}.btn-ghost[data-v-caefc1dc]:hover:not(.is-inverted){border-color:#17b8bc;color:#17b8bc}.btn-ghost[data-v-caefc1dc]:hover:not(.is-inverted) svg,.btn-ghost:hover:not(.is-inverted) path[data-v-caefc1dc]{fill:#17b8bc!important;stroke:transparent!important}.btn-ghost:hover:not(.is-inverted) path[data-v-caefc1dc],.btn-ghost:hover:not(.is-inverted) svg[data-v-caefc1dc]{fill:#17b8bc;stroke:transparent}.btn-ghost:hover.is-inverted[data-v-caefc1dc]{opacity:.8}.btn-ghost[data-v-caefc1dc]:active,.btn-ghost[data-v-caefc1dc]:focus{outline:0}.btn-ghost[data-v-caefc1dc]:active:not(.is-inverted),.btn-ghost[data-v-caefc1dc]:focus:not(.is-inverted){border-color:#17b8bc;color:#17b8bc}.btn-ghost:active.is-inverted[data-v-caefc1dc],.btn-ghost:focus.is-inverted[data-v-caefc1dc]{opacity:.8}.btn-ghost.is-loading[data-v-caefc1dc]{pointer-events:none;background-color:#dfffff;color:#fff;border-color:#dfffff;transition:all 1s ease-out}.btn-ghost.is-loading path[data-v-caefc1dc],.btn-ghost.is-loading svg[data-v-caefc1dc]{fill:#fff;stroke:transparent}.btn-ghost.is-loading-progressive[data-v-caefc1dc]{background-color:#00cf72!important;cursor:wait}.btn-ghost.is-loading-progressive .text[data-v-caefc1dc]{z-index:2;position:absolute;transition:all .5s ease;animation:textOpacity-data-v-caefc1dc 1s infinite;width:100%;left:0;color:#fff!important;-webkit-transition:color 0s ease-in!important;-moz-transition:color 0s ease-in!important;-o-transition:color 0s ease-in!important;transition:color 0s ease-in!important}@keyframes textOpacity-data-v-caefc1dc{0%,100%{opacity:1}50%{opacity:.4}}.btn-ghost.is-loading-progressive .icon[data-v-caefc1dc]{display:none}.btn-ghost.is-loading-progressive-complete[data-v-caefc1dc]{cursor:wait}.btn-ghost.is-loading-progressive-complete .icon[data-v-caefc1dc]{position:relative;z-index:2;display:block;width:1.7142857143rem;height:1.7142857143rem;right:auto!important}.btn-ghost.is-loading-progressive-complete .icon svg[data-v-caefc1dc]{width:1.5238095238rem;height:1.5238095238rem}.btn-ghost.is-loading-progressive-complete .text[data-v-caefc1dc]{position:absolute;opacity:0!important}.btn-link[data-v-caefc1dc]{transition:all .2s cubic-bezier(.4,0,.2,1);background:0 0;border:0;position:relative;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#12d3db;line-height:1}@media (max-width:479px){.btn-link[data-v-caefc1dc]{font-size:1.1214953271rem}}.btn-link.size-xl[data-v-caefc1dc]{font-size:.6666666667rem}@media (max-width:479px){.btn-link.size-xl[data-v-caefc1dc]{font-size:1.308411215rem}}.btn-link.size-lg[data-v-caefc1dc]{font-size:.6666666667rem}@media (max-width:479px){.btn-link.size-lg[data-v-caefc1dc]{font-size:1.308411215rem}}.btn-link.size-sm[data-v-caefc1dc]{font-size:.4761904762rem}@media (max-width:479px){.btn-link.size-sm[data-v-caefc1dc]{font-size:.9345794393rem}}.btn-link.width-fluid[data-v-caefc1dc]{width:100%}.btn-link.width-circle[data-v-caefc1dc]{padding:.380952381rem;line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-link.width-circle[data-v-caefc1dc]{width:4.1121495327rem;height:4.1121495327rem}}.btn-link.width-circle svg[data-v-caefc1dc]{display:block;margin:0 auto;width:1.3333333333rem;height:1.3333333333rem}@media (max-width:479px){.btn-link.width-circle svg[data-v-caefc1dc]{width:2.6168224299rem;height:2.6168224299rem}}.btn-link.width-circle path[data-v-caefc1dc],.btn-link.width-circle svg[data-v-caefc1dc]{fill:#12d3db;stroke:transparent}.btn-link.is-inverted[data-v-caefc1dc]{color:#fff}.btn-link.is-inverted path[data-v-caefc1dc],.btn-link.is-inverted svg[data-v-caefc1dc]{fill:#fff;stroke:transparent}.btn-link[data-v-caefc1dc]:hover{cursor:pointer}.btn-link[data-v-caefc1dc]:hover:not(.is-inverted){color:#17b8bc}.btn-link:hover.is-inverted[data-v-caefc1dc]{opacity:.8}.btn-link[data-v-caefc1dc]:active,.btn-link[data-v-caefc1dc]:focus{outline:0}.btn-link[data-v-caefc1dc]:active:not(.is-inverted),.btn-link[data-v-caefc1dc]:focus:not(.is-inverted){color:#17b8bc}.btn-link:active.is-inverted[data-v-caefc1dc],.btn-link:focus.is-inverted[data-v-caefc1dc]{opacity:.8}.btn-link.is-disabled[data-v-caefc1dc],.btn-link[disabled][data-v-caefc1dc]{pointer-events:none;color:#dfdae4;opacity:.48}.btn-link.is-disabled path[data-v-caefc1dc],.btn-link.is-disabled svg[data-v-caefc1dc],.btn-link[disabled] path[data-v-caefc1dc],.btn-link[disabled] svg[data-v-caefc1dc]{fill:#dfdae4;stroke:transparent}.loading[data-v-caefc1dc]{position:absolute;width:32px;height:32px;display:block;margin:0 auto;top:0;bottom:0;left:0;right:0;margin-top:auto;margin-bottom:auto}@media (max-width:479px){.loading[data-v-caefc1dc]{width:24px;height:24px}}.loading-progress[data-v-caefc1dc]{width:0%;height:100%;transition:all 1s ease-out;position:absolute;background-color:#00b664;left:0;top:0}.is-loading-progressive .loading-progress[data-v-caefc1dc]{width:44%;-webkit-animation:3s loadingPosition-data-v-caefc1dc;-moz-animation:3s loadingPosition-data-v-caefc1dc;animation:3s loadingPosition-data-v-caefc1dc;transition:3s}.is-loading-progressive-complete[data-v-caefc1dc]{justify-content:center;text-align:center;transition:3s!important}.is-loading-progressive-complete .loading-progress[data-v-caefc1dc]{width:100%;-webkit-animation:3s loadingCompleted-data-v-caefc1dc;-moz-animation:3s loadingCompleted-data-v-caefc1dc;animation:3s loadingCompleted-data-v-caefc1dc}.is-loading-progressive-complete .icon-complete[data-v-caefc1dc]{display:flex;width:inherit;justify-content:center;margin:0 auto;position:absolute;left:0;right:0;margin-left:auto;margin-right:auto;text-align:center;top:0;bottom:0;align-items:center}.is-loading-progressive-complete .icon-complete[data-v-caefc1dc] span{width:1.1428571429rem;display:flex!important}@media (max-width:479px){.is-loading-progressive-complete .icon-complete[data-v-caefc1dc] span{width:2.2429906542rem}}.is-loading-progressive-complete .icon-complete[data-v-caefc1dc] svg{width:1.1428571429rem!important;fill:#fff}@media (max-width:479px){.is-loading-progressive-complete .icon-complete[data-v-caefc1dc] svg{width:2.2429906542rem!important}}.is-loading-progressive-complete .icon-complete[data-v-caefc1dc] svg path{fill:#fff}.is-loading-progressive-complete .text[data-v-caefc1dc]{position:absolute;opacity:0!important}.is-loading-progressive-complete .text-slot .icon[data-v-caefc1dc]{display:none}@keyframes loadingZeroToComplete-data-v-caefc1dc{0%{width:0}100%{width:100%}}@keyframes loadingPosition-data-v-caefc1dc{0%{width:0}100%{width:33%}}@keyframes loadingCompleted-data-v-caefc1dc{0%{width:44%}100%{width:100%}}[data-v-caefc1dc] .text-slot{opacity:0}[data-v-caefc1dc] .text-slot .icon{display:none}',map:void 0,media:void 0}))}),{name:"Button",components:{Loading:R,Icon:q},props:{
|
|
269
269
|
/**
|
|
270
270
|
* Tipo do botão<br>
|
|
271
271
|
* Values: `primary` `secondary` `ghost`
|
|
@@ -338,7 +338,7 @@ immediate:!0,handler:function(t,e){var a=this;!0===t?setTimeout((function(){a.is
|
|
|
338
338
|
* FUNÇÃO LEGADO - Funções do botão são passados através de listeners
|
|
339
339
|
*/
|
|
340
340
|
// this.$emit('click');
|
|
341
|
-
},complete:function(){this.$emit("complete")}},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}}},"data-v-
|
|
341
|
+
},complete:function(){this.$emit("complete")}},computed:{shadowVar:function(){return{"--shadow-color":this.shadowColor}}}},"data-v-caefc1dc",!1,void 0,!1,L,void 0,void 0),$=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"card-group"},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"card-image"},[a("v-lazy-image",{attrs:{alt:t.alt,title:t.title,src:t.picture,"src-placeholder":t.placeholder}})],1),t._v(" "),a("div",{staticClass:"card-content"},[t._t("default")],2)])},staticRenderFns:[]},(function(t){t&&t("data-v-de39784c_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-de39784c]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-de39784c]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-de39784c]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-de39784c]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-de39784c]{font-size:14px}}@media (min-width:1024px){[data-v-de39784c]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-de39784c]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-de39784c]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-de39784c]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-de39784c]{font-size:1.56vw}}html[data-v-de39784c]{box-sizing:border-box}*[data-v-de39784c],[data-v-de39784c]::after,[data-v-de39784c]::before{box-sizing:border-box}.card-group[data-v-de39784c]{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){.card-group[data-v-de39784c]{border-top-left-radius:.7476635514rem;border-top-right-radius:.7476635514rem;border-bottom-left-radius:.7476635514rem;border-bottom-right-radius:.7476635514rem}}.card-group .card-image img[data-v-de39784c]{width:100%;display:block;border-top-left-radius:.380952381rem;border-top-right-radius:.380952381rem}@media (max-width:479px){.card-group .card-image img[data-v-de39784c]{border-top-left-radius:.7476635514rem;border-top-right-radius:.7476635514rem}}.card-group .card-content[data-v-de39784c]{display:flex;flex:1 0 auto;flex-direction:column;justify-content:space-between;padding:.7619047619rem;background:#fff;border-bottom-left-radius:.380952381rem;border-bottom-right-radius:.380952381rem}@media (max-width:479px){.card-group .card-content[data-v-de39784c]{padding:.7476635514rem;border-bottom-left-radius:.7476635514rem;border-bottom-right-radius:.7476635514rem}}',map:void 0,media:void 0})}),{name:"Card",components:{VLazyImage:i},props:{picture:{type:String,default:"https://s3.amazonaws.com/site-assets-dev.dentrodahistoria.com.br/Assets/Subscription/characters/beto-biscoito/card-beto-biscoito@2x.jpg"},
|
|
342
342
|
/**
|
|
343
343
|
* Placeholder para o Lazy Image<br>
|
|
344
344
|
*/
|
|
@@ -544,11 +544,11 @@ linkLabel:{type:String,required:!1}},data:function(){return{isCallingOne:!1,isCa
|
|
|
544
544
|
// Elimina CNPJs invalidos conhecidos
|
|
545
545
|
"11111111111111"==i||"22222222222222"==i||"33333333333333"==i||"44444444444444"==i||"55555555555555"==i||"66666666666666"==i||"77777777777777"==i||"88888888888888"==i||"99999999999999"==i)e={target:a.name,value:a.value,error:"CNPJ inválido"};else{for(
|
|
546
546
|
// Valida DVs
|
|
547
|
-
var o=i.length-2,r=i.substring(0,o),n=i.substring(o),
|
|
547
|
+
var o=i.length-2,r=i.substring(0,o),n=i.substring(o),d=0,s=o-7,l=o;l>=1;l--)d+=r.charAt(o-l)*s--,s<2&&(s=9);var c=d%11<2?0:11-d%11;if(c!=n.charAt(0))e={target:a.name,value:a.value,error:"CNPJ inválido"};else{o+=1,r=i.substring(0,o),d=0,s=o-7;for(var p=o;p>=1;p--)d+=r.charAt(o-p)*s--,s<2&&(s=9);e=(c=d%11<2?0:11-d%11)!=n.charAt(1)?{target:a.name,value:a.value,error:"CNPJ inválido"}:{target:a.name,value:a.value,error:""}}}else e={target:a.name,value:a.value,error:""};this.$emit("update",e)},onChangeCpf:function(t){t.e;var e,a=t.target,i=a.value.replace(/[^0-9]/g,"");if(i.length===this.cpf.cpfLengthUnmasked){var o,r,n;n="",o=0,"00000000000"!==i&&"11111111111"!==i&&"22222222222"!==i&&"33333333333"!==i&&"44444444444"!==i&&"55555555555"!==i&&"66666666666"!==i&&"77777777777"!==i&&"88888888888"!==i&&"99999999999"!==i||(n="CPF Inválido");for(var d=1;d<=9;d++)o+=parseInt(i.substring(d-1,d))*(11-d);10!==(r=10*o%11)&&11!==r||(r=0),r!==parseInt(i.substring(9,10))&&(n="CPF Inválido"),o=0;for(var s=1;s<=10;s++)o+=parseInt(i.substring(s-1,s))*(12-s);10!==(r=10*o%11)&&11!==r||(r=0),r!==parseInt(i.substring(10,11))&&(n="CPF Inválido"),e={target:a.name,value:a.value,error:n}}else e={target:a.name,value:a.value,error:""};
|
|
548
548
|
/**
|
|
549
549
|
* Evento disparado sempre que o campo CPF for alterado.<br>
|
|
550
550
|
* Retorna um objeto com target (name do campo), value e o valor do erro.
|
|
551
|
-
*/this.$emit("update",e)},onChangeAddress:function(t){var a=this;return M(C().mark((function i(){var o,r,n,
|
|
551
|
+
*/this.$emit("update",e)},onChangeAddress:function(t){var a=this;return M(C().mark((function i(){var o,r,n,d;return C().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(t.e,o=t.target,r=o.value,d=e.create(),!(r.length>=9)){i.next=8;break}return i.next=6,d.get("https://api.pagar.me/1/zipcodes/".concat(r),{progress:!1}).then((function(t){n={target:o.name,value:o.value,address:t.data}})).catch((function(t){n={target:o.name,value:o.value,address:null}}));case 6:i.next=9;break;case 8:n={target:o.name,value:o.value,address:null};case 9:
|
|
552
552
|
/**
|
|
553
553
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
554
554
|
* Retorna um objeto com target (name do campo), value e um nó com dados do endereço.
|
|
@@ -1000,7 +1000,7 @@ dataObject:{type:[Object,String]}},data:function(){return{}},methods:{onActive:f
|
|
|
1000
1000
|
* Evento disparado sempre que o campo for acionado.<br>
|
|
1001
1001
|
* Retorna um objeto com a prop dataObject.
|
|
1002
1002
|
*/
|
|
1003
|
-
this.$emit("update",this.dataObject)}}},"data-v-1a43a2f0",!1,void 0,!1,L,void 0,void 0),ot=[],rt=[],nt=(new Date).getFullYear(),
|
|
1003
|
+
this.$emit("update",this.dataObject)}}},"data-v-1a43a2f0",!1,void 0,!1,L,void 0,void 0),ot=[],rt=[],nt=(new Date).getFullYear(),dt=1;dt<=31;dt++)ot.push({key:dt,value:dt,name:dt});for(var st=0;st<18;st++)rt.push({key:nt-st,value:nt-st,name:nt-st});rt.push({key:"outro",value:"Outro",name:"Outro"});for(var lt=[{name:"Janeiro",value:"Janeiro",key:1},{name:"Fevereiro",value:"Fevereiro",key:2},{name:"Março",value:"Março",key:3},{name:"Abril",value:"Abril",key:4},{name:"Maio",value:"Maio",key:5},{name:"Junho",value:"Junho",key:6},{name:"Julho",value:"Julho",key:7},{name:"Agosto",value:"Agosto",key:8},{name:"Setembro",value:"Setembro",key:9},{name:"Outubro",value:"Outubro",key:10},{name:"Novembro",value:"Novembro",key:11},{name:"Dezembro",value:"Dezembro",key:12}],ct=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"birthday-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"birthday-select-list"},[a("div",{staticClass:"birthday-select-group"},[a("Select",{staticClass:"select",attrs:{selected:t.selectedDay,placeholder:"Dia",options:t.days,name:"day"},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"birthday-select-group"},[a("Select",{staticClass:"select",attrs:{selected:t.selectedMonth,placeholder:"Mês",options:t.months,name:"month"},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"birthday-select-group"},[t.yearInput?a("Input",{attrs:{name:"year",maxlength:"4",value:t.selectedYear},on:{update:t.updateYear}}):a("Select",{staticClass:"select",attrs:{selected:t.selectedYear,placeholder:"Ano",options:t.years,name:"year"},on:{update:t.onChange}})],1)]),t._v(" "),t.helper||t.error?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error?t.error:t.helper)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-e2dad0b6_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-e2dad0b6]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-e2dad0b6]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-e2dad0b6]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-e2dad0b6]{font-size:14px}}@media (min-width:1024px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-e2dad0b6]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-e2dad0b6]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-e2dad0b6]{font-size:1.56vw}}html[data-v-e2dad0b6]{box-sizing:border-box}*[data-v-e2dad0b6],[data-v-e2dad0b6]::after,[data-v-e2dad0b6]::before{box-sizing:border-box}.birthday-group[data-v-e2dad0b6]{transition:all .3s;display:flex;flex-direction:column;width:100%}.birthday-group.error-active .select[data-v-e2dad0b6]{border-color:#ff4641!important}.birthday-group.error-active .helper[data-v-e2dad0b6]{color:#ff4641}.birthday-group .birthday-select-list[data-v-e2dad0b6]{display:flex;width:100%;max-width:100%}.birthday-group .birthday-select-list .birthday-select-group[data-v-e2dad0b6]{flex:0 0 30%;max-width:30%}.birthday-group .birthday-select-list .birthday-select-group[data-v-e2dad0b6]:nth-child(2){flex:0 0 40%;max-width:40%;padding:0 .380952381rem}.birthday-group .birthday-select-list .birthday-select-group input[data-v-e2dad0b6],.birthday-group .birthday-select-list .birthday-select-group select[data-v-e2dad0b6]{width:100%}.birthday-group .label[data-v-e2dad0b6]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.birthday-group .label[data-v-e2dad0b6]{font-size:1.308411215rem}}.birthday-group .helper[data-v-e2dad0b6]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.birthday-group .helper[data-v-e2dad0b6]{font-size:1.1214953271rem}}.birthday-group.is-disabled .label[data-v-e2dad0b6]{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]{background:#f8f7fc;border-color:#dfdae4!important}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]:hover{border-color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]::placeholder{color:#dfdae4;opacity:1}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]:-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-e2dad0b6]::-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .helper[data-v-e2dad0b6]{color:#dfdae4}',map:void 0,media:void 0})}),{name:"Birthday",components:{Select:X,Input:H},props:{
|
|
1004
1004
|
/**
|
|
1005
1005
|
* Dia do nascimento<br>
|
|
1006
1006
|
* Example: 05
|
|
@@ -1049,7 +1049,7 @@ disabled:{type:Boolean,default:!1}},data:function(){return{days:ot,months:lt,yea
|
|
|
1049
1049
|
/**
|
|
1050
1050
|
* Evento disparado sempre que o valor for alterado.<br>
|
|
1051
1051
|
* Retorna um objeto com target (target do campo), key ativo e value ativo.
|
|
1052
|
-
*/"year"===e.target&&"outro"===e.key?(this.yearInput=!0,t.key||(e={target:"year",key:2020,value:2020},this.$emit("update",e))):("month"!==t.target&&"year"!==t.target||this.validateDays(e),this.$emit("update",e))},validateDays:function(t){var e,a="month"===t.target?parseInt(t.key):parseInt(this.selectedMonth),i="year"===t.target?parseInt(t.key):parseInt(this.selectedYear);a||(a=13);var o=[];e=1===a||3===a||5===a||7===a||8===a||10===a||12===a||13===a?31:4===a||6===a||9===a||11===a?30:i%4==0&&i%100>0||i%400==0?29:28,a||i||(e=31);for(var r=1;r<=e;r++)o.push({key:r,value:r,name:r});if(this.days=o,this.selectedDay>e){this.$emit("update",{target:"days",key:"",value:""})}}}},"data-v-e2dad0b6",!1,void 0,!1,L,void 0,void 0),pt=[],mt=[],ut=(new Date).getFullYear(),ht=1;ht<=31;ht++)pt.push({key:ht,value:ht,name:ht});for(var
|
|
1052
|
+
*/"year"===e.target&&"outro"===e.key?(this.yearInput=!0,t.key||(e={target:"year",key:2020,value:2020},this.$emit("update",e))):("month"!==t.target&&"year"!==t.target||this.validateDays(e),this.$emit("update",e))},validateDays:function(t){var e,a="month"===t.target?parseInt(t.key):parseInt(this.selectedMonth),i="year"===t.target?parseInt(t.key):parseInt(this.selectedYear);a||(a=13);var o=[];e=1===a||3===a||5===a||7===a||8===a||10===a||12===a||13===a?31:4===a||6===a||9===a||11===a?30:i%4==0&&i%100>0||i%400==0?29:28,a||i||(e=31);for(var r=1;r<=e;r++)o.push({key:r,value:r,name:r});if(this.days=o,this.selectedDay>e){this.$emit("update",{target:"days",key:"",value:""})}}}},"data-v-e2dad0b6",!1,void 0,!1,L,void 0,void 0),pt=[],mt=[],ut=(new Date).getFullYear(),ht=1;ht<=31;ht++)pt.push({key:ht,value:ht,name:ht});for(var gt=0;gt<18;gt++)mt.push({key:ut-gt,value:ut-gt,name:ut-gt});var ft=[{name:"Janeiro",value:"Janeiro",key:1},{name:"Fevereiro",value:"Fevereiro",key:2},{name:"Março",value:"Março",key:3},{name:"Abril",value:"Abril",key:4},{name:"Maio",value:"Maio",key:5},{name:"Junho",value:"Junho",key:6},{name:"Julho",value:"Julho",key:7},{name:"Agosto",value:"Agosto",key:8},{name:"Setembro",value:"Setembro",key:9},{name:"Outubro",value:"Outubro",key:10},{name:"Novembro",value:"Novembro",key:11},{name:"Dezembro",value:"Dezembro",key:12}],vt=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"birthday-mobile-group"},"div",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"birthday-mobile-input",class:[{"error-active":t.error.length>0}]},[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input",class:t.placeholderShown?"placeholder-shown":null,on:{click:t.openPicker}},[t._v("\n "+t._s(t.placeholder)+"\n "),a("svg",{attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{"clip-rule":"evenodd",d:"M8.571 6.286a2.286 2.286 0 014.572 0v1.143h5.714V6.286a2.286 2.286 0 014.572 0v1.143h1.904A2.667 2.667 0 0128 10.095v17.238A2.667 2.667 0 0125.333 30H6.667A2.667 2.667 0 014 27.333V10.095A2.667 2.667 0 016.667 7.43H8.57V6.286zm-2.285 9.143v10.933c0 .736.597 1.333 1.333 1.333h16.762c.736 0 1.333-.597 1.333-1.333V15.429H6.286z"}})])]),t._v(" "),t.error&&t.error.length>0?a("span",{staticClass:"helper",domProps:{innerHTML:t._s(t.error)}}):t._e()]),t._v(" "),a("div",{staticClass:"overlay",class:{visible:t.pickerStatus.show},on:{click:function(){return t.pickerStatus.show=!1}}}),t._v(" "),a("div",{staticClass:"datepicker",class:{visible:t.pickerStatus.show}},[a("div",{staticClass:"btn-line"},[a("div",{staticClass:"txt"},[t._v("\n Data de nascimento\n ")]),t._v(" "),a("Button",{attrs:{kind:"secondary",width:"liquid",size:"sm"},on:{click:t.confirmDatepicker}},[t._v("\n CONFIRMAR\n ")])],1),t._v(" "),a("ScrollPickerGroup",{staticClass:"flex",staticStyle:{width:"100%"}},[a("ScrollPicker",{attrs:{placeholder:"Dia",options:t.days},model:{value:t.dataPicker.day,callback:function(e){t.$set(t.dataPicker,"day",e)},expression:"dataPicker.day"}}),t._v(" "),a("ScrollPicker",{attrs:{placeholder:"Mês",options:t.months},model:{value:t.dataPicker.month,callback:function(e){t.$set(t.dataPicker,"month",e)},expression:"dataPicker.month"}}),t._v(" "),a("ScrollPicker",{attrs:{placeholder:"Ano",options:t.years},model:{value:t.dataPicker.year,callback:function(e){t.$set(t.dataPicker,"year",e)},expression:"dataPicker.year"}})],1)],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-2135cd52_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-2135cd52]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-2135cd52]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-2135cd52]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-2135cd52]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-2135cd52]{font-size:14px}}@media (min-width:1024px){[data-v-2135cd52]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-2135cd52]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-2135cd52]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-2135cd52]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-2135cd52]{font-size:1.56vw}}html[data-v-2135cd52]{box-sizing:border-box}*[data-v-2135cd52],[data-v-2135cd52]::after,[data-v-2135cd52]::before{box-sizing:border-box}.overlay[data-v-2135cd52]{position:fixed;opacity:0;background:rgba(104,89,110,.8);width:100%;height:100%;top:0;left:0;transition:all .3s;z-index:-10;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}.overlay.visible[data-v-2135cd52]{transition:opacity .3s;z-index:120;opacity:1}.birthday-mobile-input[data-v-2135cd52]{position:relative}.birthday-mobile-input[data-v-2135cd52].error-active .input{border-color:#ff4641!important}.birthday-mobile-input[data-v-2135cd52].error-active .input svg{fill:#ff4641!important}.birthday-mobile-input[data-v-2135cd52].error-active .helper{color:#ff4641!important}.birthday-mobile-input[data-v-2135cd52] .label{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.birthday-mobile-input[data-v-2135cd52] .label{font-size:1.308411215rem}}.birthday-mobile-input[data-v-2135cd52] .input{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";position:relative;display:flex;align-items:center;background:#fff url(\'data:image/svg+xml;utf8,<svg class="icon" viewBox="0 0 32 32" fill="rgb(175,162,186)" xmlns="http://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M8.571 6.286a2.286 2.286 0 014.572 0v1.143h5.714V6.286a2.286 2.286 0 014.572 0v1.143h1.904A2.667 2.667 0 0128 10.095v17.238A2.667 2.667 0 0125.333 30H6.667A2.667 2.667 0 014 27.333V10.095A2.667 2.667 0 016.667 7.43H8.57V6.286zm-2.285 9.143v10.933c0 .736.597 1.333 1.333 1.333h16.762c.736 0 1.333-.597 1.333-1.333V15.429H6.286z"/></svg>\') no-repeat;background-size:.9523809524rem;background-position:right .7619047619rem top 1.1428571429rem;padding:0 1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:2.8571428571rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.birthday-mobile-input[data-v-2135cd52] .input{background-size:2.0560747664rem;background-position:right 1.4953271028rem top .7476635514rem}}@media (max-width:479px){.birthday-mobile-input[data-v-2135cd52] .input{border-radius:.7476635514rem;padding:0 1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.birthday-mobile-input[data-v-2135cd52] .input{font-size:1.308411215rem}}.birthday-mobile-input[data-v-2135cd52] .input.placeholder-shown{color:#afa2ba}.birthday-mobile-input[data-v-2135cd52] .input::placeholder{color:#afa2ba;opacity:1}.birthday-mobile-input[data-v-2135cd52] .input:-ms-input-placeholder{color:#afa2ba}.birthday-mobile-input[data-v-2135cd52] .input::-ms-input-placeholder{color:#afa2ba}.birthday-mobile-input[data-v-2135cd52] .input:hover{border-color:#afa2ba}.birthday-mobile-input[data-v-2135cd52] .input:active,.birthday-mobile-input[data-v-2135cd52] .input:focus{border-color:#12d3db;outline:0}.birthday-mobile-input[data-v-2135cd52] .input svg{position:absolute;width:2.2429906542rem;height:2.2429906542rem;right:.7476635514rem;top:.7476635514rem;fill:#afa2ba}.birthday-mobile-input[data-v-2135cd52] .helper{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.birthday-mobile-input[data-v-2135cd52] .helper{font-size:1.1214953271rem}}.datepicker[data-v-2135cd52]{position:fixed;left:0;z-index:150;width:100%;background:#fff;font-size:16px;transition:all .3s;display:none;border-top:1px solid #dedae4;box-shadow:0 10px 26px 0 #7421cd;border-top-left-radius:15px;border-top-right-radius:15px}@media (max-width:479px){.datepicker[data-v-2135cd52]{display:flex;flex-direction:column;bottom:-430px}}.datepicker.visible[data-v-2135cd52]{bottom:0!important}.datepicker .btn-line[data-v-2135cd52]{border-bottom:1px solid #dedae4;display:flex;justify-content:space-between;align-items:center;margin:0 6.6666666667vw;height:6.5420560748rem}.datepicker .btn-line .txt[data-v-2135cd52]{font-size:1.4953271028rem;color:#68596e}.datepicker .vue-scroll-picker[data-v-2135cd52]{height:310px;font-size:18px}.datepicker .vue-scroll-picker[data-v-2135cd52] .vue-scroll-picker-list-rotator{padding-top:130px}.datepicker .vue-scroll-picker[data-v-2135cd52] .vue-scroll-picker-list-rotator .vue-scroll-picker-item{line-height:50px;height:50px}.datepicker .vue-scroll-picker[data-v-2135cd52] .vue-scroll-picker-list-rotator .vue-scroll-picker-item.-selected{color:#68596e}.datepicker .vue-scroll-picker[data-v-2135cd52] .vue-scroll-picker-layer .bottom,.datepicker .vue-scroll-picker[data-v-2135cd52] .vue-scroll-picker-layer .top{height:42%}.datepicker .vue-scroll-picker[data-v-2135cd52] .vue-scroll-picker-layer .middle{top:42%;bottom:42%}',map:void 0,media:void 0})}),{name:"BirthdayMobile",props:{
|
|
1053
1053
|
/**
|
|
1054
1054
|
* Dia do nascimento<br>
|
|
1055
1055
|
* Example: 05
|
|
@@ -1079,7 +1079,7 @@ labelColor:{type:String,default:"#68596E"},
|
|
|
1079
1079
|
* Exibir mensagem de erro ou não<br>
|
|
1080
1080
|
* Example: `true`
|
|
1081
1081
|
* */
|
|
1082
|
-
error:{type:Boolean,default:!1}},components:{Input:H,Button:D,ScrollPicker:
|
|
1082
|
+
error:{type:Boolean,default:!1}},components:{Input:H,Button:D,ScrollPicker:d,ScrollPickerGroup:s},data:function(){return{days:pt,months:ft,years:mt,maxAgeAllowed:18,currentYear:ut,pickerStatus:{show:!1},dataPicker:{day:"",month:"",year:""},placeholder:"Dia / Mês / Ano",placeholderShown:!0}},watch:{"dataPicker.day":function(t){var e={target:"day",key:t,value:t};this.$emit("update",e)},"dataPicker.month":function(t){var e={target:"month",key:this.monthToInt(t),value:t};this.validateDays(e),this.$emit("update",e)},"dataPicker.year":function(t){var e={target:"year",key:t,value:t};this.validateDays(e),this.$emit("update",e)},"pickerStatus.show":function(){this.pickerStatus.show?document.body.style.overflow="hidden":document.body.style.overflow="auto"}},mounted:function(){this.dataPicker={day:this.selectedDay,month:this.monthToName(this.selectedMonth),year:this.selectedYear},this.selectedDay&&this.selectedMonth&&this.selectedYear&&(this.placeholderShown=!1,this.placeholder="".concat(this.selectedDay," de ").concat(this.monthToName(this.selectedMonth)," de ").concat(this.selectedYear))},methods:{openPicker:function(){this.pickerStatus.show=!0,this.dataPicker={day:this.selectedDay,month:this.monthToName(this.selectedMonth),year:this.selectedYear}},confirmDatepicker:function(){this.dataPicker.day&&this.dataPicker.month&&this.dataPicker.year?(this.placeholderShown=!1,this.placeholder="".concat(this.dataPicker.day," de ").concat(this.dataPicker.month," de ").concat(this.dataPicker.year)):(this.placeholderShown=!0,this.placeholder="Dia / Mês / Ano",this.dataPicker={day:"",month:"",year:""}),this.pickerStatus.show=!1,this.$emit("close")},monthToName:function(t){switch(parseInt(t)){case 1:return"Janeiro";case 2:return"Fevereiro";case 3:return"Março";case 4:return"Abril";case 5:return"Maio";case 6:return"Junho";case 7:return"Julho";case 8:return"Agosto";case 9:return"Setembro";case 10:return"Outubro";case 11:return"Novembro";case 12:return"Dezembro"}},monthToInt:function(t){switch(t){case"Janeiro":return 1;case"Fevereiro":return 2;case"Março":return 3;case"Abril":return 4;case"Maio":return 5;case"Junho":return 6;case"Julho":return 7;case"Agosto":return 8;case"Setembro":return 9;case"Outubro":return 10;case"Novembro":return 11;case"Dezembro":return 12}},validateDays:function(t){var e,a="month"===t.target?parseInt(t.key):parseInt(this.selectedMonth),i="year"===t.target?parseInt(t.key):parseInt(this.selectedYear);a||(a=13);var o=[];e=1===a||3===a||5===a||7===a||8===a||10===a||12===a||13===a?31:4===a||6===a||9===a||11===a?30:i%4==0&&i%100>0||i%400==0?29:28,a||i||(e=31);for(var r=1;r<=e;r++)o.push({key:r,value:r,name:r});if(this.days=o,this.selectedDay>e){this.$emit("update",{target:"days",key:"",value:""})}}}},"data-v-2135cd52",!1,void 0,!1,L,void 0,void 0),bt=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"textarea-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("span",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("textarea",{staticClass:"textarea",attrs:{placeholder:t.placeholder,name:t.name,disabled:t.disabled,maxlength:t.maxlength},domProps:{value:t.value},on:{input:t.onInput}}),t._v(" "),a("div",{staticClass:"helper-group"},[t.error&&t.error.length>0?a("span",{staticClass:"helper",domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:null)}}):t._e(),t._v(" "),t.counter?a("span",{staticClass:"counter",style:{color:t.counterColor}},[t._v("Caracteres: "+t._s(t.value.length)+"/"+t._s(t.maxlength))]):t._e()])])},staticRenderFns:[]},(function(t){t&&t("data-v-f8c8bc7a_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);[data-v-f8c8bc7a]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-f8c8bc7a]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-f8c8bc7a]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-f8c8bc7a]{font-size:14px}}@media (min-width:1024px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-f8c8bc7a]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-f8c8bc7a]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-f8c8bc7a]{font-size:1.56vw}}html[data-v-f8c8bc7a]{box-sizing:border-box}*[data-v-f8c8bc7a],[data-v-f8c8bc7a]::after,[data-v-f8c8bc7a]::before{box-sizing:border-box}.textarea-group[data-v-f8c8bc7a]{transition:all .3s;display:flex;flex-direction:column;width:100%}.textarea-group.error-active .textarea[data-v-f8c8bc7a]{border-color:#ff4641!important}.textarea-group.error-active .helper[data-v-f8c8bc7a]{color:#ff4641!important}.textarea-group .label[data-v-f8c8bc7a]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .label[data-v-f8c8bc7a]{font-size:1.308411215rem}}.textarea-group .textarea[data-v-f8c8bc7a]{transition:all .3s;padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;height:6.0952380952rem;outline:0;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .textarea[data-v-f8c8bc7a]{padding:1.4953271028rem}}@media (max-width:479px){.textarea-group .textarea[data-v-f8c8bc7a]{font-size:1.308411215rem}}.textarea-group .textarea[data-v-f8c8bc7a]::placeholder{color:#afa2ba;opacity:1}.textarea-group .textarea[data-v-f8c8bc7a]:-ms-input-placeholder{color:#afa2ba}.textarea-group .textarea[data-v-f8c8bc7a]::-ms-input-placeholder{color:#afa2ba}.textarea-group .textarea[data-v-f8c8bc7a]::-ms-expand{display:none}.textarea-group .textarea[data-v-f8c8bc7a]:hover{border-color:#afa2ba}.textarea-group .textarea[data-v-f8c8bc7a]:active,.textarea-group .textarea[data-v-f8c8bc7a]:focus{border-color:#12d3db}.textarea-group .helper-group[data-v-f8c8bc7a]{display:flex;justify-content:space-between}.textarea-group .helper-group .helper[data-v-f8c8bc7a]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .helper-group .helper[data-v-f8c8bc7a]{font-size:1.1214953271rem}}.textarea-group .counter[data-v-f8c8bc7a]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-left:auto;margin-top:.1904761905rem;margin-right:.380952381rem;text-align:right;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .counter[data-v-f8c8bc7a]{margin-right:.380952381rem;font-size:1.1214953271rem}}.textarea-group.is-disabled .label[data-v-f8c8bc7a]{color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]{background:#f8f7fc;border-color:#dfdae4!important}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]:hover{border-color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]::placeholder{color:#dfdae4;opacity:1}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]:-ms-input-placeholder{color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-f8c8bc7a]::-ms-input-placeholder{color:#dfdae4}',map:void 0,media:void 0})}),{name:"TextArea",props:{
|
|
1083
1083
|
/**
|
|
1084
1084
|
* Nome do campo, utilizado no callback do evento<br>
|
|
1085
1085
|
* Example: `Name`
|
|
@@ -1267,7 +1267,7 @@ color:{type:String,default:"#68596E"},
|
|
|
1267
1267
|
* Type of font<br>
|
|
1268
1268
|
* Example: `Regular | Bold`
|
|
1269
1269
|
**/
|
|
1270
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-a049d78a",!1,void 0,!1,L,void 0,void 0),_t=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",t._g(t._b({attrs:{name:"modal"}},"transition",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"modal-container",class:["size-"+t.size]},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog"},[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-17849302_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-17849302]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-17849302]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-17849302]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-17849302]{font-size:14px}}@media (min-width:1024px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-17849302]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-17849302]{font-size:1.56vw}}html[data-v-17849302]{box-sizing:border-box}*[data-v-17849302],[data-v-17849302]::after,[data-v-17849302]::before{box-sizing:border-box}.modal[data-v-17849302]{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-17849302]{transition:all .5s ease}.modal-backdrop[data-v-17849302]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-17849302]{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-17849302]{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-17849302]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-container.size-md .modal-dialog[data-v-17849302]{max-width:27.5238095238rem}.modal-container.size-lg .modal-dialog[data-v-17849302]{max-width:37.1428571429rem}.modal-container .modal-dialog[data-v-17849302]{width:100%;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-container .modal-dialog[data-v-17849302]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-17849302]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items .modal-header-close[data-v-17849302]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-17849302]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-17849302]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-17849302] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-17849302]{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-17849302]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-17849302]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-17849302]{padding:2.9906542056rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-17849302]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-17849302]{width:100%;margin:0}hr[data-v-17849302]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-17849302]{display:none}}.modal-body[data-v-17849302]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-17849302]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-17849302]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-footer-items[data-v-17849302]{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-17849302] div{display:flex;justify-content:flex-start;flex-direction:row;width:100%}.modal-footer-items[data-v-17849302] div .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-17849302] div .btn-ghost{width:50%;margin-left:.7476635514rem}}@media (max-width:479px){.modal-footer-items[data-v-17849302] div .btn-secondary{width:50%}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:D,Heading:zt,Paragraph:kt,Icon:q},props:{kind:{type:String,default:"primary"},size:{type:String,default:"lg"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},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-17849302",!1,void 0,!1,L,void 0,void 0);var Ct={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",editName:"Editar nome do pequeno",kidName:"Edite o nome do protagonista",reccomendName:"É recomendado usar só o primeiro nome",dedicationFree:"Dedicatória (grátis)",cusutomDedication:"Personalize a dedicatória que será impressa no livro.",messageDedication:"Mensagem da dedicatória",dedcationPlaceholder:"Que a sua vida seja cheia de ótimas aventuras!",editShirt:"Editar camisa do pequeno",chooseScript:"Você escolhe o roteiro",choosePetLabel1:"Escolha a dupla que vai ajudar o",choosePetLabel2:"a encontrar o Sansão nessa aventura junto com a Turma da Mônica.",day:"Dia",month:"Mês",pet:"Bichinho de estimação",changePet:"Altere o bichinho da história",petDescription1:"Esse bichinho acompanhará ",petDescription2:"em toda a história.",typePetname:"Digite o nome do bichinho aqui",selectPet:"Selecione o bichinho",update:"ATUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",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"==_(a[0]))return e.init.apply(t,a);if(e[a[0]])return e[a[0]].apply(t,Array.prototype.slice.call(a,1));throw p(a[0]+" is not a method or property")}function a(t,e,a,i){return{css:{position:"absolute",top:t,left:e,overflow:i||"hidden",zIndex:a||"auto"}}}function i(t,e,a,i,r){var n=1-r,s=n*n*n,d=r*r*r;return o(Math.round(s*t.x+3*r*n*n*e.x+3*r*r*n*a.x+d*i.x),Math.round(s*t.y+3*r*n*n*e.y+3*r*r*n*a.y+d*i.y))}function o(t,e){return{x:t,y:e}}function r(t,e,a){return u&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function n(t){return" rotate("+t+"deg) "}function s(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function d(){for(var t=["Moz","Webkit","Khtml","O","ms"],e=t.length,a="";e--;)t[e]+"Transform"in document.body.style&&(a="-"+t[e].toLowerCase()+"-");return a}function l(t,e,a,i,r){var n,s=[];if("-webkit-"==f){for(n=0;n<r;n++)s.push("color-stop("+i[n][0]+", "+i[n][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+s.join(",")+" )"})}else{e={x:e.x/100*t.width(),y:e.y/100*t.height()};var d=(a={x:a.x/100*t.width(),y:a.y/100*t.height()}).x-e.x;n=a.y-e.y;var l=Math.atan2(n,d),c=l-Math.PI/2,p=(c=Math.abs(t.width()*Math.sin(c))+Math.abs(t.height()*Math.cos(c)),d=Math.sqrt(n*n+d*d),a=o(a.x<e.x?t.width():0,a.y<e.y?t.height():0),Math.tan(l));for(a=(n=-1/p)*(p=(n*a.x-a.y-p*e.x+e.y)/(n-p))-n*a.x+a.y,e=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(a-e.y,2)),n=0;n<r;n++)s.push(" "+i[n][1]+" "+100*(e+d*i[n][0])/c+"%");t.css({"background-image":f+"linear-gradient("+-l+"rad,"+s.join(",")+")"})}}function c(e,a,i){return e=t.Event(e),a.trigger(e,i),e.isDefaultPrevented()?"prevented":e.isPropagationStopped()?"stopped":""}function p(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function m(t){var e={top:0,left:0};do{e.left+=t.offsetLeft,e.top+=t.offsetTop}while(t=t.offsetParent);return e}var u,h,f="",g=Math.PI,v=g/2,b="ontouchstart"in window,w=b?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},x={backward:["bl","tl"],forward:["br","tr"],all:"tl bl tr br l r".split(" ")},y=["single","double"],z=["ltr","rtl"],k={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},C={cornerSize:100},P={init:function(e){var a,i;u="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,h=!(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||534.3<parseFloat(a[1]),f=d(),a=0;var o=this.data(),n=this.children();e=t.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},k,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(P._touchStart,this),touchMove:t.proxy(P._touchMove,this),touchEnd:t.proxy(P._touchEnd,this),start:t.proxy(P._eventStart,this)},e.when)for(i in e.when)s(i,e.when)&&this.bind(i,e.when[i]);for(this.css({position:"relative",width:e.width,height:e.height}),this.turn("display",e.display),""!==e.direction&&this.turn("direction",e.direction),u&&!b&&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(w.down,o.eventHandlers.touchStart).bind("end",P._eventEnd).bind("pressed",P._eventPressed).bind("released",P._eventReleased).bind("flip",P._flip),t(this).parent().bind("start",o.eventHandlers.start),t(document).bind(w.move,o.eventHandlers.touchMove).bind(w.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&&P._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"),P._addPage.call(this,a),P._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(P._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=P._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&P._makeFlip.call(this,e)}else a.pagePlace[e]=0,a.pageObjs[e]&&a.pageObjs[e].remove()},hasPage:function(t){return s(t,this.data().pageObjs)},center:function(e){var a=this.data(),i=t(this).turn("size"),o=0;return a.noCenter||("double"==a.display&&(e=this.turn("view",e||a.tpage||a.page),"ltr"==a.direction?e[0]?e[1]||(o+=i.width/4):o-=i.width/4:e[0]?e[1]||(o-=i.width/4):o+=i.width/4),t(this).css({marginLeft:o})),this},destroy:function(){var e=this,a=this.data(),i="end first flip last pressed released start turning turned zooming missing".split(" ");if("prevented"!=c("destroying",this)){for(a.destroying=!0,t.each(i,(function(t,a){e.unbind(a)})),this.parent().unbind("start",a.eventHandlers.start),t(document).unbind(w.move,a.eventHandlers.touchMove).unbind(w.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"==_(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"),P._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(P._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),P._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++)P._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=P._view.call(this,t),1>t||t>o.totalPages)throw p('"'+t+'" is not a valid page');return i[1]=i[1]||i[0],1<=i[0]&&i[1]<=o.totalPages?(t=Math.floor(2),o.totalPages-i[1]>i[0]?a=2*t-(e=Math.min(i[0]-1,t)):e=2*t-(a=Math.min(o.totalPages-i[1],t))):a=e=5,[Math.max(1,i[0]-e),Math.min(o.totalPages,i[1]+a)]},_necessPage:function(t){if(0===t)return!0;var e=this.turn("range");return this.data().pageObjs[t].hasClass("fixed")||t>=e[0]&&t<=e[1]},_removeFromDOM:function(){var t,e=this.data();for(t in e.pageWrap)s(t,e.pageWrap)&&!P._necessPage.call(this,t)&&P._removePageFromDOM.call(this,t)},_removePageFromDOM:function(t){var e=this.data();if(e.pages[t]){var a=e.pages[t].data();M._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]),P._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"),P._removePageFromDOM.call(this,t),delete e.pageObjs[t]),P._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,P._fitPage.call(this,e.totalPages)):(P._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,o=this.data(),r="single"==o.display,n=function(t){var a=t+e,n=a%2,s=n?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+s)),o.pagePlace[t]&&o.pageWrap[t]&&(o.pagePlace[a]=a,o.pageWrap[a]=o.pageObjs[a].hasClass("fixed")?o.pageWrap[t].attr("page",a):o.pageWrap[t].css(P._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,y))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"),P._movePages.call(this,1,0),this.turn("size",e.width,e.height).turn("update")),this},direction:function(e){var a=this.data();if(void 0===e)return a.direction;if(e=e.toLowerCase(),-1==t.inArray(e,z))throw p('"'+e+'" is not a value for direction');return"rtl"==e&&t(this).attr("dir","ltr").css({direction:"ltr"}),a.direction=e,a.done&&this.turn("size",t(this).width(),t(this).height()),this},animating:function(){return 0<this.data().pageMv.length},corner:function(){var t,e,a=this.data();for(e in a.pages)if(s(e,a.pages)&&(t=a.pages[e].flip("corner")))return t;return!1},data:function(){return this.data()},disable:function(e){var a,i=this.data(),o=this.turn("view");for(a in i.disabled=void 0===e||!0===e,i.pages)s(a,i.pages)&&i.pages[a].flip("disable",!!i.disabled||-1==t.inArray(parseInt(a,10),o));return this},disabled:function(t){return void 0===t?!0===this.data().disabled:this.turn("disable",t)},size:function(t,e){if(void 0===t||void 0===e)return{width:this.width(),height:this.height()};this.turn("stop");var a,i,o=this.data();for(a in i="double"==o.display?t/2:t,this.css({width:t,height:e}),o.pageObjs[0]&&o.pageObjs[0].css({width:i,height:e}),o.pageWrap)s(a,o.pageWrap)&&(i=P._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);P._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();P._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=P._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||M._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,P._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(P._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);P._removeFromDOM.call(this),P._makeRange.call(this),P._updateShadow.call(this),this.trigger("turned",[t,a]),this.turn("update"),e.opts.autoCenter&&this.turn("center")}},_turnPage:function(e){var a,i,o=this.data(),r=o.pagePlace[e],n=this.turn("view"),s=this.turn("view",e);if(o.page!=e){var d=o.page;if("prevented"==c("turning",this,[e,s]))return void(d==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,s)&&this.trigger("first"),-1!=t.inArray(o.totalPages,s)&&this.trigger("last")}"single"==o.display?(a=n[0],i=s[0]):n[1]&&e>n[1]?(a=n[1],i=s[0]):n[0]&&e<n[0]&&(a=n[0],i=s[1]),r=o.opts.turnCorners.split(","),s=(n=o.pages[a].data().f).opts,d=n.point,P._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,P._makeRange.call(this),o.tpage=i,s.next!=i&&(s.next=i,s.force=!0),this.turn("update"),n.point=d,"hard"==n.effect?"ltr"==o.direction?o.pages[a].flip("turnPage",e>a?"r":"l"):o.pages[a].flip("turnPage",e>a?"l":"r"):"ltr"==o.direction?o.pages[a].flip("turnPage",r[e>a?1:0]):o.pages[a].flip("turnPage",r[e>a?0:1]))},page:function(e){var a=this.data();if(void 0===e)return a.page;if(!a.disabled&&!a.destroying){if(0<(e=parseInt(e,10))&&e<=a.totalPages)return e!=a.page&&(a.done&&-1==t.inArray(e,this.turn("view"))?P._turnPage.call(this,e):P._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,P._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,P._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(),P._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),P._addMotionPage.call(t.target)),P._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,P._fitPage.call(e,i||a.next,!0)):(P._removeMv.call(e,a.page),P._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(),P._turnPage.call(r,o.opts.next)),n.mouseAction=!1},_flip:function(e){e.stopPropagation(),(e=t(e.target).data().f.opts).turn.trigger("turn",[e.next]),e.turn.data().opts.autoCenter&&e.turn.turn("center",e.next)},_touchStart:function(){var t,e=this.data();for(t in e.pages)if(s(t,e.pages)&&!1===M._eventStart.apply(e.pages[t],arguments))return!1},_touchMove:function(){var t,e=this.data();for(t in e.pages)s(t,e.pages)&&M._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)s(t,e.pages)&&M._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,n=this.data(),s=(e=this.turn("view"))[0]||e[1],d=t.length-1,l={pageZ:{},partZ:{},pageV:{}},c=function(t){(t=r.turn("view",t))[0]&&(l.pageV[t[0]]=!0),t[1]&&(l.pageV[t[1]]=!0)};for(e=0;e<=d;e++)a=t[e],i=n.pages[a].data().f.opts.next,o=n.pagePlace[a],c(a),c(i),a=n.pagePlace[i]==i?i:a,l.pageZ[a]=n.totalPages-Math.abs(s-a),l.partZ[o]=2*n.totalPages-d+e;return l},update:function(){var e,a=this.data();if(this.turn("animating")&&0!==a.pageMv[0]){var i,o=this.turn("calculateZ",a.pageMv),r=this.turn("corner"),n=this.turn("view"),d=this.turn("view",a.tpage);for(e in a.pageWrap)s(e,a.pageWrap)&&(i=a.pageObjs[e].hasClass("fixed"),a.pageWrap[e].css({display:o.pageV[e]||i?"":"none",zIndex:(a.pageObjs[e].hasClass("hard")?o.partZ[e]:o.pageZ[e])||(i?-1:0)}),i=a.pages[e])&&(i.flip("z",o.partZ[e]||null),o.pageV[e]&&i.flip("resize"),a.tpage?i.flip("hover",!1).flip("disable",-1==t.inArray(parseInt(e,10),a.pageMv)&&e!=d[0]&&e!=d[1]):i.flip("hover",!1===r).flip("disable",e!=n[0]&&e!=n[1]))}else for(e in a.pageWrap)s(e,a.pageWrap)&&(o=P._setPageLoc.call(this,e),a.pages[e]&&a.pages[e].flip("disable",a.disabled||1!=o).flip("hover",!0).flip("z",null));return this},_updateShadow:function(){var e,i,o=this.data(),r=this.width(),n=this.height(),s="single"==o.display?r:r/2;e=this.turn("view"),o.shadow||(o.shadow=t("<div />",{class:"shadow",css:a(0,0,0).css}).appendTo(this));for(var d=0;d<o.pageMv.length&&e[0]&&e[1];d++)e=this.turn("view",o.pages[o.pageMv[d]].data().f.opts.next),i=this.turn("view",o.pageMv[d]),e[0]=e[0]&&i[0],e[1]=e[1]&&i[1];switch(e[0]?e[1]?3:"ltr"==o.direction?2:1:"ltr"==o.direction?1:2){case 1:o.shadow.css({width:s,height:n,top:0,left:s});break;case 2:o.shadow.css({width:s,height:n,top:0,left:0});break;case 3:o.shadow.css({width:r,height:n,top:0,left:0})}},_setPageLoc:function(t){var e=this.data(),a=this.turn("view"),i=0;if(t==a[0]||t==a[1]?i=1:("single"==e.display&&t==a[0]+1||"double"==e.display&&t==a[0]-2||t==a[1]+2)&&(i=2),!this.turn("animating"))switch(i){case 1:e.pageWrap[t].css({zIndex:e.totalPages,display:""});break;case 2:e.pageWrap[t].css({zIndex:e.totalPages-1,display:""});break;case 0:e.pageWrap[t].css({zIndex:0,display:e.pageObjs[t].hasClass("fixed")?"":"none"})}return i},options:function(e){if(void 0===e)return this.data().opts;var a=this.data();if(t.extend(a.opts,e),e.pages&&this.turn("pages",e.pages),e.page&&this.turn("page",e.page),e.display&&this.turn("display",e.display),e.direction&&this.turn("direction",e.direction),e.width&&e.height&&this.turn("size",e.width,e.height),e.when)for(var i in e.when)s(i,e.when)&&this.unbind(i).bind(i,e.when[i]);return this},version:function(){return"4.1.0"}},M={init:function(t){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",t),M._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?(M.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?x.forward:x.backward:e==a.totalPages?"ltr"==a.direction?x.backward:x.forward:x.all:"ltr"==a.direction?x[i?"forward":"backward"]:x[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=M._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=b&&t.originalEvent?t.originalEvent.touches[0]:t;return M._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}),M._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={})[f+"transform-style"]="preserve-3d",r[f+"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)),M.setData.call(this,e)}M.resize.call(this,!0)},_fold:function(t){var e=this.data().f,a=e.opts.turn.data(),i=M._c.call(this,t.corner),s=this.width(),d=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*s):Math.max(Math.min(t.x,s),-s);var c,p,m,u,b,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},z=i.x?(i.x-t.x)/s:t.x/s,k=90*z,_=90>k;switch(t.corner){case"l":u="0% 50%",b="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%",b="0% 50%",k=-k,s=-s,_?(c=0,p=e.opts.next+1<w,m=0):(c="-100%",p=1!=e.opts.page,m=1)}y[f+"perspective-origin"]=b,e.wrapper.transform("rotateY("+k+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",b),e.fpage.transform("translateX("+s+"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,P,S,N,E,L,B,A=this,I=0,T=o(0,0),F=o(0,0),R=o(0,0),j=M._foldingPage.call(this),q=a.opts.acceleration,D=e.wrapper.height(),$="t"==t.corner.substr(0,1),O="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),n=o(0,0);r.x=i.x?i.x-t.x:t.x,r.y=h?i.y?i.y-t.y:t.y:0,n.x=O?s-r.x/2:t.x+r.x/2,n.y=r.y/2;var l=v-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 I=l/g*180,R=o(c*Math.sin(l),c*Math.cos(l)),l>v&&(R.x+=Math.abs(R.y*r.y/r.x),R.y=0,Math.round(R.x*Math.tan(g-l))<d)?(t.y=Math.sqrt(Math.pow(d,2)+2*n.x*r.x),$&&(t.y=d-t.y),e()):(l>v&&(r=g-l,n=D-d/Math.sin(r),T=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),O&&(T.x=-T.x),$&&(T.y=-T.y)),C=Math.round(R.y/Math.tan(l)+R.x),n=(r=s-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round(O?r-n:C+n),Math.round($?c:d-c)),a.opts.gradients&&(E=r*Math.sin(l),r=M._c2.call(A,t.corner),r=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))/s,B=Math.sin(v*(1<r?2-r:r)),L=Math.min(r,1),N=100<E?(E-100)/E:0,P=o(E*Math.sin(l)/s*100,E*Math.cos(l)/d*100),M._backGradient.call(A)&&(S=o(1.2*E*Math.sin(l)/s*100,1.2*E*Math.cos(l)/d*100),O||(S.x=100-S.x),$||(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=(s-D)*c[0]/100,h=(d-D)*c[1]/100,f=(i={left:m[i[0]],top:m[i[1]],right:m[i[2]],bottom:m[i[3]]},m={},90!=p&&-90!=p?O?-1:1:0),g=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+f,t.y,q),g),e.fpage.css(i).transform(n(p)+r(t.x+F.x-T.x-s*c[0]/100,t.y+F.y-T.y-d*c[1]/100,q)+n((180/p-2)*p),g),e.wrapper.transform(r(-t.x+u-f,-t.y+h,q)+n(-p),g),e.fwrapper.transform(r(-t.x+T.x+u,-t.y+T.y+h,q)+n(-p),g),a.opts.gradients&&(c[0]&&(P.x=100-P.x),c[1]&&(P.y=100-P.y),m["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*B+")",j.css(m),l(e.ashadow,o(O?100:0,$?0:100),o(P.x,P.y),[[N,"rgba(0,0,0,0)"],[.8*(1-N)+N,"rgba(0,0,0,"+.2*L+")"],[1,"rgba(255,255,255,"+.2*L+")"]],3),M._backGradient.call(A)&&l(e.bshadow,o(O?0:100,$?0:100),o(S.x,S.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*L+")"],[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],I);break;case"tr":t.x=Math.min(t.x,s-1),V(),c(o(-R.x,R.y),[0,0,0,1],[0,0],-I);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(R.x,-R.y),[1,1,0,0],[100,100],-I);break;case"br":t.x=Math.min(t.x,s-1),V(),c(o(-R.x,-R.y),[0,1,1,0],[0,100],I)}}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&&M._moveFoldingPage.call(this,!1),M._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=M._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:M._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]),M._fold.call(r,t)}})}else M._fold.call(this,t),n.effect&&!n.effect.turning&&this.animatef(!1);if(!o)switch(i.effect){case"hard":i.visible=!0,M._moveFoldingPage.call(this,!0),i.fpage.show(),i.opts.shadows&&i.bshadow.show();break;case"sheet":i.visible=!0,i.fparent.show().data().flips++,M._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=M._foldingPage.call(this);switch(t.effect){case"hard":e.opts.gradients&&(t.bshadowLoc=0,t.bshadow.remove(),t.ashadow.hide()),t.wrapper.transform(""),t.fpage.hide();break;case"sheet":0==--t.fparent.data().flips&&t.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),t.wrapper.transform(""),t.fwrapper.hide(),t.bshadow&&t.bshadow.hide(),a.transform("")}return t.visible=!1,this},hideFoldedPage:function(t){var e=this.data().f;if(e.point){var a=this,r=e.point,n=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var s=M._c.call(this,r.corner),d=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-s.y)/2:Math.max(0,r.y-s.y)/2,o(r.x,r.y+t)),l=o(s.x,s.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,d,l,s,t),r.x=t.x,r.y=t.y,M._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||M._cAllowed.call(this)[0]},a.point||M._c.call(this,t.corner,a.opts.turn?o.opts.elevation:0)),n=M._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,M._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=M._isIArea.call(this,t),e.corner&&M._foldingPage.call(this))return this.trigger("pressed",[e.point]),M._showFoldedPage.call(this,e.corner),!1;e.corner=null}},_eventMove:function(t){var e=this.data().f;if(!e.disabled)if(t=b?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,M._showFoldedPage.call(this,e.corner)}else e.hover&&!this.data().effect&&this.is(":visible")&&((t=M._isIArea.call(this,t[0]))?("sheet"==e.effect&&2==t.corner.length||"hard"==e.effect)&&(e.status="hover",e=M._c.call(this,t.corner,e.opts.cornerSize/2),t.x=e.x,t.y=e.y,M._showFoldedPage.call(this,t,!0)):"hover"==e.status&&(e.status="",M.hideFoldedPage.call(this,!0)))},_eventEnd:function(){var t=this.data().f,e=t.corner;!t.disabled&&e&&"prevented"!=c("released",this,[t.point||e])&&M.hideFoldedPage.call(this,!0),t.corner=null},disable:function(t){return M.setData.call(this,{disabled:t}),this},hover:function(t){return M.setData.call(this,{hover:t}),this},peel:function(e,a){var i=this.data().f;if(e){if(-1==t.inArray(e,x.all))throw p("Corner "+e+" is not permitted");if(-1!=t.inArray(e,M._cAllowed.call(this))){var o=M._c.call(this,e,i.opts.cornerSize/2);i.status="peel",M._showFoldedPage.call(this,{corner:e,x:o.x,y:o.y},a)}}else i.status="",M.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]),M,arguments)},turn:function(){return e(t(this[0]),P,arguments)},transform:function(t,e){var a={};return e&&(a[f+"transform-origin"]=e),a[f+"transform"]=t,this.css(a)},animatef:function(e){var a=this.data();if(a.effect&&a.effect.stop(),e){e.to.length||(e.to=[e.to]),e.from.length||(e.from=[e.from]);for(var i=[],o=e.to.length,r=!0,n=this,s=(new Date).getTime(),d=0;d<o;d++)i.push(e.to[d]-e.from[d]);a.effect=t.extend({stop:function(){r=!1},easing:function(t,e,a,i,o){return i*Math.sqrt(1-(e=e/o-1)*e)+a}},e),this.data(a),function t(){if(a.effect&&r){for(var d=[],l=Math.min(e.duration,(new Date).getTime()-s),c=0;c<o;c++)d.push(a.effect.easing(1,l,e.from[c],i[c],e.duration));e.frame(1==o?d[0]:d),l==e.duration?(delete a.effect,n.data(a),e.complete&&e.complete()):window.requestAnim(t)}}()}else delete a.effect}}),t.isTouch=b,t.mouseEvents=w,t.cssPrefix=d,t.cssTransitionEnd=function(){var t,e=document.createElement("fakeelement"),a={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in a)if(void 0!==e.style[t])return a[t]},t.findPos=m}(l),function(t){function e(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function a(t,e,a){return n&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function i(t,e){return n&&e?" scale3d("+t+", "+t+", 1) ":" scale("+t+") "}function o(t,e){return{x:t,y:e}}function r(t,e){return function(){return t.apply(e,arguments)}}var n,s={max:2,flipbook:null,easeFunction:"ease-in-out",duration:500,when:{}},d={init:function(a){var i=this,l=this.data();if(!(a=t.extend({},s,a)).flipbook||!a.flipbook.turn("is"))throw e("options.flipbook is required");if(n="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,"function"!=typeof a.max){var c=a.max;a.max=function(){return c}}for(var p in l.zoom={opts:a,axis:o(0,0),scrollPos:o(0,0),eventQueue:[],mouseupEvent:function(){return d._eMouseUp.apply(i,arguments)},eventTouchStart:r(d._eTouchStart,i),eventTouchMove:r(d._eTouchMove,i),eventTouchEnd:r(d._eTouchEnd,i),flipbookEvents:{zooming:r(d._eZoom,i),pressed:r(d._ePressed,i),released:r(d._eReleased,i),start:r(d._eStart,i),turning:r(d._eTurning,i),turned:r(d._eTurned,i),destroying:r(d._eDestroying,i)}},a.when)Object.prototype.hasOwnProperty.call(a.when,p)&&this.bind("zoom."+p,a.when[p]);for(p in l.zoom.flipbookEvents)Object.prototype.hasOwnProperty.call(l.zoom.flipbookEvents,p)&&a.flipbook.bind(p,l.zoom.flipbookEvents[p]);this.css({position:"relative",overflow:"hidden"}),t.isTouch?(a.flipbook.bind("touchstart",l.zoom.eventTouchStart).bind("touchmove",l.zoom.eventTouchMove).bind("touchend",l.zoom.eventTouchEnd),this.bind("touchstart",d._tap)):this.mousedown(d._mousedown).click(d._tap)},_tap:function(e){var a=t(this),i=a.data().zoom;!i.draggingCorner&&!i.dragging&&function t(e,a){return e[0]!=a[0]&&(!!e.attr("page")||!!e.parent()[0]&&t(e.parent(),a))}(t(e.target),a)&&(d._addEvent.call(a,"tap",e),(e=d._eventSeq.call(a))&&a.trigger(e))},_addEvent:function(t,e){var a=this.data().zoom,i=(new Date).getTime();a.eventQueue.push({name:t,timestamp:i,event:e}),10<a.eventQueue.length&&a.eventQueue.splice(0,1)},_eventSeq:function(){var e=this.data().zoom.eventQueue,a=e.length-1;return 0<a&&"tap"==e[a].name&&"tap"==e[a-1].name&&e[a].event.pageX==e[a-1].event.pageX&&e[a].event.pageY==e[a-1].event.pageY&&200>e[a].timestamp-e[a-1].timestamp&&50<e[a].timestamp-e[a-1].timestamp?t.extend(e[a].event,{type:"zoom.doubleTap"}):"tap"==e[a].name?t.extend(e[a].event,{type:"zoom.tap"}):void 0},_prepareZoom:function(){var e,a=0,i=this.data().zoom,r=1/this.zoom("value"),n=(e=i.opts.flipbook).turn("direction"),s=e.data(),d=e.offset(),l=this.offset(),c={height:e.height()},p=e.turn("view");if("double"==e.turn("display")&&e.data().opts.autoCenter?p[0]?p[1]?(c.width=e.width(),e=o(d.left-l.left,d.top-l.top)):(c.width=e.width()/2,a="ltr"==n?0:c.width,e=o("ltr"==n?d.left-l.left:d.left-l.left+c.width,d.top-l.top)):(c.width=e.width()/2,a="ltr"==n?c.width:0,e=o("ltr"==n?d.left-l.left+c.width:d.left-l.left,d.top-l.top)):(c.width=e.width(),e=o(d.left-l.left,d.top-l.top)),i.zoomer||(i.zoomer=t("<div />",{class:"zoomer",css:{overflow:"hidden",position:"absolute",zIndex:"1000000"}}).mousedown((function(){return!1})).appendTo(this)),i.zoomer.css({top:e.y,left:e.x,width:c.width,height:c.height}),(n=p.join(","))!=i.zoomerView)for(i.zoomerView=n,i.zoomer.find("*").remove(),n=0;n<p.length;n++)if(p[n]){l=s.pageObjs[p[n]].offset();var m=t(s.pageObjs[p[n]]);m.clone().transform("").css({width:m.width()*r,height:m.height()*r,position:"absolute",display:"",top:(l.top-d.top)*r,left:(l.left-d.left-a)*r}).appendTo(i.zoomer)}return{pos:e,size:c}},value:function(){return this.data().zoom.opts.flipbook.turn("zoom")},zoomIn:function(e){var r=this,n=this.data().zoom,s=n.opts.flipbook,l=n.opts.max();s.offset();var c=this.offset();if(n.zoomIn)return this;s.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(v=d._prepareZoom.call(this)).pos,u=o(v.size.width/2,v.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),f=s.data().opts.autoCenter;n.scale=l,s.data().noCenter=!0,(0>(e=void 0!==e?"x"in e&&"y"in e?o(e.x-m.x,e.y-m.y):t.isTouch?o(e.originalEvent.touches[0].pageX-m.x-c.left,e.originalEvent.touches[0].pageY-m.y-c.top):o(e.pageX-m.x-c.left,e.pageY-m.y-c.top):o(u.x,u.y)).x||0>e.y||e.x>v.width||e.y>v.height)&&(e.x=u.x,e.y=u.y);var g=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),v=(e=o(v.size.width*l>this.width()?e.x-g.x:0,v.size.height*l>this.height()?e.y-g.y:0),g=o(Math.abs(v.size.width*l-this.width()),Math.abs(v.size.height*l-this.height())),o(Math.min(0,v.size.width*l-this.width()),Math.min(0,v.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>g.y?e.y=b.y-g.y+e.y:b.y<v.y&&(e.y=b.y-v.y+e.y),b.x>g.x?e.x=b.x-g.x+e.x:b.x<v.x&&(e.x=b.x-v.x+e.x),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y),(m={})[p+"transition"]=p+"transform "+n.opts.easeFunction+" "+n.opts.duration+"ms";var w=function(){r.trigger("zoom.zoomIn"),n.zoomIn=!0,n.flipPosition=o(s.css("left"),s.css("top")),s.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=s.offset();n.axis=o(e.left-c.left,e.top-c.top),f&&"double"==s.turn("display")&&("ltr"==s.turn("direction")&&!s.turn("view")[0]||"rtl"==s.turn("direction")&&!s.turn("view")[1])&&(n.axis.x+=s.width()/2),r.zoom("scroll",b),r.bind(t.mouseEvents.down,d._eMouseDown),r.bind(t.mouseEvents.move,d._eMouseMove),t(document).bind(t.mouseEvents.up,n.mouseupEvent),r.bind("mousewheel",d._eMouseWheel),setTimeout((function(){n.zoomer.hide(),n.zoomer.remove(),n.zoomer=null,n.zoomerView=null}),50)};return n.zoomer.css(m).show(),h?n.zoomer.bind(h,(function(){t(this).unbind(h),w()})):setTimeout(w,n.opts.duration),n.zoomer.transform(a(e.x,e.y,!0)+i(l,!0)),this},zoomOut:function(e){var r,n=this,s=this.data().zoom,l=s.opts.flipbook,c=1/s.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:s.opts.duration,s.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;s.zoomIn=!1,s.scale=1,l.data().noCenter=!1,n.unbind(t.mouseEvents.down,d._eMouseDown),n.unbind(t.mouseEvents.move,d._eMouseMove),t(document).unbind(t.mouseEvents.up,s.mouseupEvent),n.unbind("mousewheel",d._eMouseWheel),(u={})[p+"transition"]=p+"transform "+s.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:s.flipPosition.y,left:s.flipPosition.x,width:l.width()*c,height:l.height()*c,background:"blue"}}).appendTo(l.parent());u=o(h.offset().left-r.left,h.offset().top-r.top);h.remove();var f=l.data().opts.autoCenter;f&&"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 g=t.findPos(l[0]);r=o(-l.width()/2-g.left+h.width()/2+u.x+r.left,-l.height()/2-g.top+h.height()/2+u.y+r.top);var v=function(){l[0].style.removeProperty?(l[0].style.removeProperty(p+"transition"),l.transform(l.turn("options").acceleration?a(0,0,!0):"").turn("zoom",1),l[0].style.removeProperty("margin"),l.css({position:"relative",top:s.flipPosition.y,left:s.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:s.flipPosition.y,left:s.flipPosition.x,position:"relative"}),f&&l.turn("center"),n.trigger("zoom.zoomOut")};return 0===e?v():(m?l.bind(m,(function(){t(this).unbind(m),v()})):setTimeout(v,e),l.transform(a(r.x,r.y,!0)+i(c,!0))),this}},flipbookWidth:function(){var t=this.data().zoom.opts.flipbook,e=t.turn("view");return"double"!=t.turn("display")||e[0]&&e[1]?t.width():t.width()/2},scroll:function(e,i,r){var s=this.data().zoom,d=s.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(n){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",d.css(p),d.transform(a(-s.axis.x-e.x,-s.axis.y-e.y,!0))}else d.css({top:-s.axis.y-e.y,left:-s.axis.x-e.x});if(!i){var m;i=o(Math.min(0,(l-this.width())/2),Math.min(0,(d.height()-this.height())/2)),d=o(l>this.width()?l-this.width():(l-this.width())/2,d.height()>this.height()?d.height()-this.height():(d.height()-this.height())/2);e.y<i.y?(e.y=i.y,m=!0):e.y>d.y&&(e.y=d.y,m=!0),e.x<i.x?(e.x=i.x,m=!0):e.x>d.x&&(e.x=d.x,m=!0),m&&this.zoom("scroll",e,!0,!0)}s.scrollPos=o(e.x,e.y)},resize:function(){var t=this.data().zoom,e=t.opts.flipbook;if(1<this.zoom("value")){var a=e.offset(),i=this.offset();t.axis=o(a.left-i.left+(t.axis.x+t.scrollPos.x),a.top-i.top+(t.axis.y+t.scrollPos.y)),"double"==e.turn("display")&&"ltr"==e.turn("direction")&&!e.turn("view")[0]&&(t.axis.x+=e.width()/2),this.zoom("scroll",t.scrollPos)}},_eZoom:function(){for(var t=this.data().zoom,e=t.opts.flipbook,a=e.turn("view"),i=0;i<a.length;i++)a[i]&&this.trigger("zoom.resize",[t.scale,a[i],e.data().pageObjs[a[i]]])},_eStart:function(t){1!=this.zoom("value")&&t.preventDefault()},_eTurning:function(t,e,a){var i=this,o=(t=this.zoom("value"),this.data().zoom);e=o.opts.flipbook;if(o.page=e.turn("page"),1!=t){for(o=0;o<a.length;o++)a[o]&&this.trigger("zoom.resize",[t,a[o],e.data().pageObjs[a[o]]]);setTimeout((function(){i.zoom("resize")}),0)}},_eTurned:function(t,e){if(1!=this.zoom("value")){var a=this.data().zoom,i=a.opts.flipbook;e>a.page?this.zoom("scroll",o(0,a.scrollPos.y),!1,!0):e<a.page&&this.zoom("scroll",o(i.width(),a.scrollPos.y),!1,!0)}},_ePressed:function(){t(this).data().zoom.draggingCorner=!0},_eReleased:function(){var e=t(this).data().zoom;setTimeout((function(){e.draggingCorner=!1}),1)},_eMouseDown:function(e){return t(this).data().zoom.draggingCur=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY),!1},_eMouseMove:function(e){var a=t(this).data().zoom;if(a.draggingCur){a.dragging=!0;e=t.isTouch?o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY):o(e.pageX,e.pageY);var i=o(e.x-a.draggingCur.x,e.y-a.draggingCur.y);return t(this).zoom("scroll",o(a.scrollPos.x-i.x,a.scrollPos.y-i.y),!0),a.draggingCur=e,!1}},_eMouseUp:function(){var e=t(this).data().zoom;e.dragging&&t(this).zoom("scroll",e.scrollPos),e.draggingCur=null,setTimeout((function(){e.dragging=!1}),1)},_eMouseWheel:function(e,a,i,r){i=o((e=t(this).data().zoom).scrollPos.x+10*i,e.scrollPos.y-10*r),t(this).zoom("scroll",i,!1,!0)},_eTouchStart:function(e){var a=t(this).data().zoom;e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch={},a.touch.initial=e,a.touch.last=e,a.touch.timestamp=(new Date).getTime(),a.touch.speed=o(0,0)},_eTouchMove:function(e){var a=t(this).data().zoom,i=t(this).zoom("value"),r=a.opts.flipbook,n=(new Date).getTime();e=o(e.originalEvent.touches[0].pageX,e.originalEvent.touches[0].pageY);a.touch&&1==i&&!r.data().mouseAction&&(a.touch.motion=o(e.x-a.touch.last.x,e.y-a.touch.last.y),a.touch.speed.x=0===a.touch.speed.x?a.touch.motion.x/(n-a.touch.timestamp):(a.touch.speed.x+a.touch.motion.x/(n-a.touch.timestamp))/2,a.touch.last=e,a.touch.timestamp=n)},_eTouchEnd:function(){var e=t(this).data().zoom;if(e.touch&&1==t(this).zoom("value")){var a=Math.abs(e.touch.initial.y-e.touch.last.y);50>a&&(-1>e.touch.speed.x||-100>e.touch.last.x-e.touch.initial.x)?this.trigger("zoom.swipeLeft"):50>a&&(1<e.touch.speed.x||100<e.touch.last.x-e.touch.initial.x)&&this.trigger("zoom.swipeRight")}},_eDestroying:function(){var e=this,a=this.data().zoom,i=a.opts.flipbook;for(var o in this.zoom("zoomOut",0),t.each("tap doubleTap resize zoomIn zoomOut swipeLeft swipeRight".split(" "),(function(t,a){e.unbind("zoom."+a)})),a.flipbookEvents)Object.prototype.hasOwnProperty.call(a.flipbookEvents,o)&&i.unbind(o,a.flipbookEvents[o]);i.unbind("touchstart",a.eventTouchStart).unbind("touchmove",a.eventTouchMove).unbind("touchend",a.eventTouchEnd),this.unbind("touchstart",d._tap).unbind("click",d._tap),a=null,this.data().zoom=null}};t.extend(t.fn,{zoom:function(){var a=arguments;if(!a[0]||"object"==_(a[0]))return d.init.apply(t(this[0]),a);if(d[a[0]])return d[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(l);var Pt,Mt,St,Nt=l,Et=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-box"},[a("div",{staticClass:"flipbook-container"},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[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("div",[a("Button",{staticClass:"arrow",attrs:{kind:"primary",size:"xl",width:"circle",disabled:!1,inverted:!0,icon:"chevron-left"},on:{click:function(e){return t.toTheLeft()}}})],1),t._v(" "),a("div",[a("Button",{staticClass:"arrow",attrs:{kind:"primary",size:"xl",width:"circle",disabled:!1,inverted:!0,icon:"chevron-right"},on:{click:function(e){return t.toTheRight()}}})],1)]):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-8038e100_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{height:100%}#flipbook img.loading-blur{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img{height:100%}#flipbook.square img{width:100%;height:100%}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}',map:void 0,media:void 0}),t("data-v-8038e100_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-8038e100]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-8038e100]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-8038e100]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-8038e100]{font-size:14px}}@media (min-width:1024px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-8038e100]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-8038e100]{font-size:1.56vw}}html[data-v-8038e100]{box-sizing:border-box}*[data-v-8038e100],[data-v-8038e100]::after,[data-v-8038e100]::before{box-sizing:border-box}.zoom-in #flipbook img[data-v-8038e100]{height:100%!important}.preview-desktop[data-v-8038e100]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-8038e100]{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-8038e100]{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-8038e100 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-8038e100]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-8038e100{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-8038e100]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-8038e100]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-8038e100]{transition:all .7s ease-in-out}.flipbook-container[data-v-8038e100]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:all .3s;z-index:2;min-width:210px;min-height:210px;left:0;right:0;top:0;bottom:0;margin:auto}.flipbook-container.zoom-in[data-v-8038e100]{height:100vh}@media (max-width:479px){.flipbook-container[data-v-8038e100]{display:none}}.flipbook-container .flipbook-lib[data-v-8038e100]{z-index:50}.flipbook-container .flipbook-lib .page.odd[data-v-8038e100]: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-8038e100]::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-8038e100]{height:100%!important}.controls[data-v-8038e100]{margin:0 auto;display:block;width:100%;display:flex;position:absolute;z-index:2;display:flex;justify-content:space-between;top:0;bottom:0;flex-wrap:wrap;height:3.0476190476rem;margin-top:auto;margin-bottom:auto;padding-left:1.1428571429rem;padding-right:1.1428571429rem;z-index:99}.controls .info-space[data-v-8038e100]{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-8038e100]{width:60px;white-space:nowrap;line-height:1;overflow:hidden;transition:all .5s ease}.controls .current-pages .list[data-v-8038e100]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-8038e100]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-8038e100]:first-child{margin:0 16px}.controls .current-pages span[data-v-8038e100]:last-child{margin:0 16px}.info-pages[data-v-8038e100]{text-align:center}@keyframes arrow-animation-data-v-8038e100{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-8038e100]{opacity:1}.invisible[data-v-8038e100]{opacity:0}[data-v-8038e100] .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-8038e100] .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-8038e100 .6s linear infinite}@media (max-width:479px){[data-v-8038e100] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-8038e100{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.preview-box[data-v-8038e100]{width:100vw;height:calc(100vh - 9.0476190476rem);position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:q,Button:D},props:{
|
|
1270
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-a049d78a",!1,void 0,!1,L,void 0,void 0),_t=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("transition",t._g(t._b({attrs:{name:"modal"}},"transition",t.$attrs,!1),t.$listeners),[a("div",{staticClass:"modal-container",class:["size-"+t.size]},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog"},[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-17849302_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-17849302]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-17849302]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-17849302]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-17849302]{font-size:14px}}@media (min-width:1024px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-17849302]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-17849302]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-17849302]{font-size:1.56vw}}html[data-v-17849302]{box-sizing:border-box}*[data-v-17849302],[data-v-17849302]::after,[data-v-17849302]::before{box-sizing:border-box}.modal[data-v-17849302]{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-17849302]{transition:all .5s ease}.modal-backdrop[data-v-17849302]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-17849302]{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-17849302]{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-17849302]{min-height:100vh;top:5.1401869159rem;border-top-left-radius:24px;border-top-right-radius:24px;position:fixed;bottom:0;left:0}}.modal-container.size-md .modal-dialog[data-v-17849302]{max-width:27.5238095238rem}.modal-container.size-lg .modal-dialog[data-v-17849302]{max-width:37.1428571429rem}.modal-container .modal-dialog[data-v-17849302]{width:100%;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-container .modal-dialog[data-v-17849302]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-17849302]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items .modal-header-close[data-v-17849302]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-17849302]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-17849302]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-17849302] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-17849302]{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-17849302]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-17849302]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-17849302]{padding:2.9906542056rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-17849302]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-17849302]{width:100%;margin:0}hr[data-v-17849302]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-17849302]{display:none}}.modal-body[data-v-17849302]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-17849302]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-17849302]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-footer-items[data-v-17849302]{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-17849302] div{display:flex;justify-content:flex-start;flex-direction:row;width:100%}.modal-footer-items[data-v-17849302] div .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-17849302] div .btn-ghost{width:50%;margin-left:.7476635514rem}}@media (max-width:479px){.modal-footer-items[data-v-17849302] div .btn-secondary{width:50%}}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:D,Heading:zt,Paragraph:kt,Icon:q},props:{kind:{type:String,default:"primary"},size:{type:String,default:"lg"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},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-17849302",!1,void 0,!1,L,void 0,void 0);var Ct={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",editName:"Editar nome do pequeno",kidName:"Edite o nome do protagonista",reccomendName:"É recomendado usar só o primeiro nome",dedicationFree:"Dedicatória (grátis)",cusutomDedication:"Personalize a dedicatória que será impressa no livro.",messageDedication:"Mensagem da dedicatória",dedcationPlaceholder:"Que a sua vida seja cheia de ótimas aventuras!",editShirt:"Editar camisa do pequeno",chooseScript:"Você escolhe o roteiro",choosePetLabel1:"Escolha a dupla que vai ajudar o",choosePetLabel2:"a encontrar o Sansão nessa aventura junto com a Turma da Mônica.",day:"Dia",month:"Mês",pet:"Bichinho de estimação",changePet:"Altere o bichinho da história",petDescription1:"Esse bichinho acompanhará ",petDescription2:"em toda a história.",typePetname:"Digite o nome do bichinho aqui",selectPet:"Selecione o bichinho",update:"ATUALIZAR",cancel:"CANCELAR",moonerLabelSidebar:"Mooner",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"==_(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 u&&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-"==g){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":g+"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 u,h,g="",f=Math.PI,v=f/2,b="ontouchstart"in window,w=b?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},x={backward:["bl","tl"],forward:["br","tr"],all:"tl bl tr br l r".split(" ")},y=["single","double"],z=["ltr","rtl"],k={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},C={cornerSize:100},P={init:function(e){var a,i;u="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,h=!(a=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent))||534.3<parseFloat(a[1]),g=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"},k,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(P._touchStart,this),touchMove:t.proxy(P._touchMove,this),touchEnd:t.proxy(P._touchEnd,this),start:t.proxy(P._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),u&&!b&&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(w.down,o.eventHandlers.touchStart).bind("end",P._eventEnd).bind("pressed",P._eventPressed).bind("released",P._eventReleased).bind("flip",P._flip),t(this).parent().bind("start",o.eventHandlers.start),t(document).bind(w.move,o.eventHandlers.touchMove).bind(w.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&&P._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"),P._addPage.call(this,a),P._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(P._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=P._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&P._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(w.move,a.eventHandlers.touchMove).unbind(w.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"==_(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"),P._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(P._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),P._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++)P._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=P._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)&&!P._necessPage.call(this,t)&&P._removePageFromDOM.call(this,t)},_removePageFromDOM:function(t){var e=this.data();if(e.pages[t]){var a=e.pages[t].data();M._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]),P._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"),P._removePageFromDOM.call(this,t),delete e.pageObjs[t]),P._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,P._fitPage.call(this,e.totalPages)):(P._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(P._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,y))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"),P._movePages.call(this,1,0),this.turn("size",e.width,e.height).turn("update")),this},direction:function(e){var a=this.data();if(void 0===e)return a.direction;if(e=e.toLowerCase(),-1==t.inArray(e,z))throw p('"'+e+'" is not a value for direction');return"rtl"==e&&t(this).attr("dir","ltr").css({direction:"ltr"}),a.direction=e,a.done&&this.turn("size",t(this).width(),t(this).height()),this},animating:function(){return 0<this.data().pageMv.length},corner:function(){var t,e,a=this.data();for(e in a.pages)if(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=P._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);P._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();P._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=P._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||M._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,P._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(P._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);P._removeFromDOM.call(this),P._makeRange.call(this),P._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,P._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,P._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"))?P._turnPage.call(this,e):P._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,P._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,P._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(),P._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),P._addMotionPage.call(t.target)),P._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,P._fitPage.call(e,i||a.next,!0)):(P._removeMv.call(e,a.page),P._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(),P._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===M._eventStart.apply(e.pages[t],arguments))return!1},_touchMove:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&M._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)d(t,e.pages)&&M._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=P._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"}},M={init:function(t){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",t),M._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?(M.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?x.forward:x.backward:e==a.totalPages?"ltr"==a.direction?x.backward:x.forward:x.all:"ltr"==a.direction?x[i?"forward":"backward"]:x[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=M._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=b&&t.originalEvent?t.originalEvent.touches[0]:t;return M._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}),M._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={})[g+"transform-style"]="preserve-3d",r[g+"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)),M.setData.call(this,e)}M.resize.call(this,!0)},_fold:function(t){var e=this.data().f,a=e.opts.turn.data(),i=M._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,b,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%",b="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%",b="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[g+"perspective-origin"]=b,e.wrapper.transform("rotateY("+k+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",b),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,P,S,N,E,L,B,A=this,I=0,T=o(0,0),F=o(0,0),R=o(0,0),j=M._foldingPage.call(this),q=a.opts.acceleration,D=e.wrapper.height(),$="t"==t.corner.substr(0,1),O="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),n=o(0,0);r.x=i.x?i.x-t.x:t.x,r.y=h?i.y?i.y-t.y:t.y:0,n.x=O?d-r.x/2:t.x+r.x/2,n.y=r.y/2;var l=v-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 I=l/f*180,R=o(c*Math.sin(l),c*Math.cos(l)),l>v&&(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),$&&(t.y=s-t.y),e()):(l>v&&(r=f-l,n=D-s/Math.sin(r),T=o(Math.round(n*Math.cos(r)),Math.round(n*Math.sin(r))),O&&(T.x=-T.x),$&&(T.y=-T.y)),C=Math.round(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(O?r-n:C+n),Math.round($?c:s-c)),a.opts.gradients&&(E=r*Math.sin(l),r=M._c2.call(A,t.corner),r=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))/d,B=Math.sin(v*(1<r?2-r:r)),L=Math.min(r,1),N=100<E?(E-100)/E:0,P=o(E*Math.sin(l)/d*100,E*Math.cos(l)/s*100),M._backGradient.call(A)&&(S=o(1.2*E*Math.sin(l)/d*100,1.2*E*Math.cos(l)/s*100),O||(S.x=100-S.x),$||(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?O?-1:1:0),f=c[0]+"% "+c[1]+"%";A.css(i).transform(n(p)+r(t.x+g,t.y,q),f),e.fpage.css(i).transform(n(p)+r(t.x+F.x-T.x-d*c[0]/100,t.y+F.y-T.y-s*c[1]/100,q)+n((180/p-2)*p),f),e.wrapper.transform(r(-t.x+u-g,-t.y+h,q)+n(-p),f),e.fwrapper.transform(r(-t.x+T.x+u,-t.y+T.y+h,q)+n(-p),f),a.opts.gradients&&(c[0]&&(P.x=100-P.x),c[1]&&(P.y=100-P.y),m["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*B+")",j.css(m),l(e.ashadow,o(O?100:0,$?0:100),o(P.x,P.y),[[N,"rgba(0,0,0,0)"],[.8*(1-N)+N,"rgba(0,0,0,"+.2*L+")"],[1,"rgba(255,255,255,"+.2*L+")"]],3),M._backGradient.call(A)&&l(e.bshadow,o(O?0:100,$?0:100),o(S.x,S.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*L+")"],[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],I);break;case"tr":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,R.y),[0,0,0,1],[0,0],-I);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(R.x,-R.y),[1,1,0,0],[100,100],-I);break;case"br":t.x=Math.min(t.x,d-1),V(),c(o(-R.x,-R.y),[0,1,1,0],[0,100],I)}}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&&M._moveFoldingPage.call(this,!1),M._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=M._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:M._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]),M._fold.call(r,t)}})}else M._fold.call(this,t),n.effect&&!n.effect.turning&&this.animatef(!1);if(!o)switch(i.effect){case"hard":i.visible=!0,M._moveFoldingPage.call(this,!0),i.fpage.show(),i.opts.shadows&&i.bshadow.show();break;case"sheet":i.visible=!0,i.fparent.show().data().flips++,M._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=M._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=M._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,M._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||M._cAllowed.call(this)[0]},a.point||M._c.call(this,t.corner,a.opts.turn?o.opts.elevation:0)),n=M._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,M._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=M._isIArea.call(this,t),e.corner&&M._foldingPage.call(this))return this.trigger("pressed",[e.point]),M._showFoldedPage.call(this,e.corner),!1;e.corner=null}},_eventMove:function(t){var e=this.data().f;if(!e.disabled)if(t=b?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,M._showFoldedPage.call(this,e.corner)}else e.hover&&!this.data().effect&&this.is(":visible")&&((t=M._isIArea.call(this,t[0]))?("sheet"==e.effect&&2==t.corner.length||"hard"==e.effect)&&(e.status="hover",e=M._c.call(this,t.corner,e.opts.cornerSize/2),t.x=e.x,t.y=e.y,M._showFoldedPage.call(this,t,!0)):"hover"==e.status&&(e.status="",M.hideFoldedPage.call(this,!0)))},_eventEnd:function(){var t=this.data().f,e=t.corner;!t.disabled&&e&&"prevented"!=c("released",this,[t.point||e])&&M.hideFoldedPage.call(this,!0),t.corner=null},disable:function(t){return M.setData.call(this,{disabled:t}),this},hover:function(t){return M.setData.call(this,{hover:t}),this},peel:function(e,a){var i=this.data().f;if(e){if(-1==t.inArray(e,x.all))throw p("Corner "+e+" is not permitted");if(-1!=t.inArray(e,M._cAllowed.call(this))){var o=M._c.call(this,e,i.opts.cornerSize/2);i.status="peel",M._showFoldedPage.call(this,{corner:e,x:o.x,y:o.y},a)}}else i.status="",M.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]),M,arguments)},turn:function(){return e(t(this[0]),P,arguments)},transform:function(t,e){var a={};return e&&(a[g+"transform-origin"]=e),a[g+"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=b,t.mouseEvents=w,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}(l),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=(v=s._prepareZoom.call(this)).pos,u=o(v.size.width/2,v.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>v.width||e.y>v.height)&&(e.x=u.x,e.y=u.y);var f=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),v=(e=o(v.size.width*l>this.width()?e.x-f.x:0,v.size.height*l>this.height()?e.y-f.y:0),f=o(Math.abs(v.size.width*l-this.width()),Math.abs(v.size.height*l-this.height())),o(Math.min(0,v.size.width*l-this.width()),Math.min(0,v.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>f.y?e.y=b.y-f.y+e.y:b.y<v.y&&(e.y=b.y-v.y+e.y),b.x>f.x?e.x=b.x-f.x+e.x:b.x<v.x&&(e.x=b.x-v.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 f=t.findPos(l[0]);r=o(-l.width()/2-f.left+h.width()/2+u.x+r.left,-l.height()/2-f.top+h.height()/2+u.y+r.top);var v=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?v():(m?l.bind(m,(function(){t(this).unbind(m),v()})):setTimeout(v,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"==_(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")}})}(l);var Pt,Mt,St,Nt=l,Et=N({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-box"},[a("div",{staticClass:"flipbook-container"},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[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("div",[a("Button",{staticClass:"arrow",attrs:{kind:"primary",size:"xl",width:"circle",disabled:!1,inverted:!0,icon:"chevron-left"},on:{click:function(e){return t.toTheLeft()}}})],1),t._v(" "),a("div",[a("Button",{staticClass:"arrow",attrs:{kind:"primary",size:"xl",width:"circle",disabled:!1,inverted:!0,icon:"chevron-right"},on:{click:function(e){return t.toTheRight()}}})],1)]):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-8038e100_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{height:100%}#flipbook img.loading-blur{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img{height:100%}#flipbook.square img{width:100%;height:100%}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}',map:void 0,media:void 0}),t("data-v-8038e100_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-8038e100]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-8038e100]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-8038e100]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-8038e100]{font-size:14px}}@media (min-width:1024px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-8038e100]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-8038e100]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-8038e100]{font-size:1.56vw}}html[data-v-8038e100]{box-sizing:border-box}*[data-v-8038e100],[data-v-8038e100]::after,[data-v-8038e100]::before{box-sizing:border-box}.zoom-in #flipbook img[data-v-8038e100]{height:100%!important}.preview-desktop[data-v-8038e100]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-8038e100]{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-8038e100]{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-8038e100 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-8038e100]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-8038e100{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-8038e100]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-8038e100]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-8038e100]{transition:all .7s ease-in-out}.flipbook-container[data-v-8038e100]{position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:all .3s;z-index:2;min-width:210px;min-height:210px;left:0;right:0;top:0;bottom:0;margin:auto}.flipbook-container.zoom-in[data-v-8038e100]{height:100vh}@media (max-width:479px){.flipbook-container[data-v-8038e100]{display:none}}.flipbook-container .flipbook-lib[data-v-8038e100]{z-index:50}.flipbook-container .flipbook-lib .page.odd[data-v-8038e100]: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-8038e100]::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-8038e100]{height:100%!important}.controls[data-v-8038e100]{margin:0 auto;display:block;width:100%;display:flex;position:absolute;z-index:2;display:flex;justify-content:space-between;top:0;bottom:0;flex-wrap:wrap;height:3.0476190476rem;margin-top:auto;margin-bottom:auto;padding-left:1.1428571429rem;padding-right:1.1428571429rem;z-index:99}.controls .info-space[data-v-8038e100]{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-8038e100]{width:60px;white-space:nowrap;line-height:1;overflow:hidden;transition:all .5s ease}.controls .current-pages .list[data-v-8038e100]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-8038e100]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-8038e100]:first-child{margin:0 16px}.controls .current-pages span[data-v-8038e100]:last-child{margin:0 16px}.info-pages[data-v-8038e100]{text-align:center}@keyframes arrow-animation-data-v-8038e100{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-8038e100]{opacity:1}.invisible[data-v-8038e100]{opacity:0}[data-v-8038e100] .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-8038e100] .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-8038e100 .6s linear infinite}@media (max-width:479px){[data-v-8038e100] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-8038e100{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.preview-box[data-v-8038e100]{width:100vw;height:calc(100vh - 9.0476190476rem);position:relative;overflow:hidden;display:flex;justify-content:center;align-items:center}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:q,Button:D},props:{
|
|
1271
1271
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1272
1272
|
uuid:{type:String,required:!0},
|
|
1273
1273
|
/** Number of pages. `32` */
|
|
@@ -1285,7 +1285,7 @@ controls:{type:Boolean,default:!0},
|
|
|
1285
1285
|
/** Center book on first and last page */
|
|
1286
1286
|
centered:{type:Boolean,default:!0},
|
|
1287
1287
|
/** Show loader */
|
|
1288
|
-
loader:{type:Boolean,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"}},data:function(){return{formato:"a4",bookDimensions:{widthPlaceholder:100,width:800},flipbookWidth:null,flipbookHeight:null,isCover:0,currentPage:1,loadedPages:5,numberPositions:0,isLoading:!0,lang:Ct[this.typeLanguage]}},mounted:function(){var t=this;return M(C().mark((function e(){var a,i;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,"square"==t.book_format?t.formato="square":t.formato="a4",e.next=4,t.createInitialPages();case 4:e.sent&&(t.initBook(),Nt((function(){window.addEventListener("resize",(function(t){if(Nt("#flipbook").length>0){var e=a.resize();Nt("#flipbook").turn("size",e.width,e.height),Nt("#flipbook").turn("resize"),a.updated()}}))})),t.loader?setTimeout((function(){a.isLoading=!1;var t=a.resize();Nt("#flipbook").turn("size",t.width,t.height),Nt("#flipbook").turn("resize")}),3e3):(a.isLoading=!1,i=a.resize(),Nt("#flipbook").turn("size",i.width,i.height),Nt("#flipbook").turn("resize")),a.zoom&&t.activateZoom());case 6:case"end":return e.stop()}}),e)})))()},methods:{started:function(){this.$emit("started")},updated:function(){this.$emit("updated")},completed:function(t){t.success&&this.$emit("completed")},getImagePuzzle:function(t){var a=this;return M(C().mark((function i(){var o,r,n,
|
|
1288
|
+
loader:{type:Boolean,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"}},data:function(){return{formato:"a4",bookDimensions:{widthPlaceholder:100,width:800},flipbookWidth:null,flipbookHeight:null,isCover:0,currentPage:1,loadedPages:5,numberPositions:0,isLoading:!0,lang:Ct[this.typeLanguage]}},mounted:function(){var t=this;return M(C().mark((function e(){var a,i;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,"square"==t.book_format?t.formato="square":t.formato="a4",e.next=4,t.createInitialPages();case 4:e.sent&&(t.initBook(),Nt((function(){window.addEventListener("resize",(function(t){if(Nt("#flipbook").length>0){var e=a.resize();Nt("#flipbook").turn("size",e.width,e.height),Nt("#flipbook").turn("resize"),a.updated()}}))})),t.loader?setTimeout((function(){a.isLoading=!1;var t=a.resize();Nt("#flipbook").turn("size",t.width,t.height),Nt("#flipbook").turn("resize")}),3e3):(a.isLoading=!1,i=a.resize(),Nt("#flipbook").turn("size",i.width,i.height),Nt("#flipbook").turn("resize")),a.zoom&&t.activateZoom());case 6:case"end":return e.stop()}}),e)})))()},methods:{started:function(){this.$emit("started")},updated:function(){this.$emit("updated")},completed:function(t){t.success&&this.$emit("completed")},getImagePuzzle:function(t){var a=this;return M(C().mark((function i(){var o,r,n,d;return C().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=a,r=new Date,n=r.getMilliseconds(),d=o.apiUrl+"/api/builder/getpreview/"+o.uuid+"?page="+t+"&update="+n+"&w=533&v=0&noCache=true",i.next=6,e.get(d,{responseType:"arraybuffer"}).then((function(t){return Buffer.from(t.data,"binary").toString("base64")}));case 6:return i.abrupt("return",i.sent);case 7:case"end":return i.stop()}}),i)})))()},createInitialPages:function(){var t=this;return M(C().mark((function e(){var a,i,o,r,n;return C().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i=new Date,i.getMilliseconds(),//var n = Math.floor(Math.random() * 1000);
|
|
1289
1289
|
o="",r=1;case 5:if(!(r<6)){e.next=13;break}return e.next=8,a.getImagePuzzle(r);case 8:n=e.sent,o+="<div class='hard'><img src='data:image/png;base64,"+n+"' alt='' firstPage='true'></div>";case 10:r++,e.next=5;break;case 13:
|
|
1290
1290
|
// InitialPages +=
|
|
1291
1291
|
// "<div class='hard back-side'><img src='" +
|