@tiddh/brave-vue 1.93.241 → 1.93.245
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 +29 -29
- package/dist/brave-vue.min.js +1 -1
- package/dist/brave-vue.ssr.js +21 -21
- package/dist/src/Form/Input.stories.js +4 -1
- package/dist/src/Form/InputAddress.vue +695 -688
- package/dist/src/Input.stories.js +4 -1
- package/dist/src/InputAddress.vue +695 -688
- package/dist/src/components/Form/Input.stories.js +4 -1
- package/dist/src/components/Form/InputAddress.vue +695 -688
- package/dist/src/serve-dev.js +8 -0
- package/dist/src/serve-dev.vue +17 -0
- package/package.json +1 -1
package/dist/brave-vue.esm.js
CHANGED
|
@@ -317,7 +317,7 @@ active:{type:Boolean,default:!1}},data:function(){return{}},methods:{onActive:fu
|
|
|
317
317
|
* Evento disparado sempre que o campo for acionado.<br>
|
|
318
318
|
* Retorna um objeto com a prop dataObject.
|
|
319
319
|
*/this.$emit("update",t)}}},"data-v-66cbe1ee",!1,void 0,!1,g,void 0,void 0),L=u({render:function(){var t=this.$createElement;return(this._self._c||t)("img",{class:["icon","icon-"+this.name,"size-"+this.size],attrs:{src:"https://brave.dentrodahistoria.com.br/images/brands/"+this.name+".svg"}})},staticRenderFns:[]},(function(t){t&&t("data-v-5e5fda2b_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-5e5fda2b]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-5e5fda2b]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-5e5fda2b]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-5e5fda2b]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-5e5fda2b]{font-size:14px}}@media (min-width:1024px){[data-v-5e5fda2b]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-5e5fda2b]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-5e5fda2b]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-5e5fda2b]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-5e5fda2b]{font-size:1.56vw}}html[data-v-5e5fda2b]{box-sizing:border-box}*[data-v-5e5fda2b],[data-v-5e5fda2b]::after,[data-v-5e5fda2b]::before{box-sizing:border-box}.icon[data-v-5e5fda2b]{display:block}.icon.size-lg[data-v-5e5fda2b]{font-size:.8571428571rem}@media (max-width:479px){.icon.size-lg[data-v-5e5fda2b]{font-size:1.6822429907rem}}.icon.size-md[data-v-5e5fda2b]{font-size:.7619047619rem}@media (max-width:479px){.icon.size-md[data-v-5e5fda2b]{font-size:1.4953271028rem}}.icon.size-sm[data-v-5e5fda2b]{font-size:.6666666667rem}@media (max-width:479px){.icon.size-sm[data-v-5e5fda2b]{font-size:1.308411215rem}}',map:void 0,media:void 0})}),{name:"Brand",props:{name:{type:String},size:{type:String,default:"lg"},stroke:{type:String,default:"transparent"},fill:{type:String,default:"#68596E"}}},"data-v-5e5fda2b",!1,void 0,!1,g,void 0,void 0);
|
|
320
|
-
/* template */function N(t){return(N="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 T(){T=function(){return e};var t,e={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},d=r.iterator||"@@iterator",n=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,a){return t[e]=a}}function c(t,e,a,i){var r=e&&e.prototype instanceof v?e:v,d=Object.create(r.prototype),n=new L(i||[]);return o(d,"_invoke",{value:C(t,a,n)}),d}function p(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var m="suspendedStart",u="executing",h="completed",g={};function v(){}function f(){}function b(){}var w={};l(w,d,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(E([])));y&&y!==a&&i.call(y,d)&&(w=y);var _=b.prototype=v.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function z(t,e){function a(o,r,d,n){var s=p(t[o],t,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==N(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){a("next",t,d,n)}),(function(t){a("throw",t,d,n)})):e.resolve(c).then((function(t){l.value=t,d(l)}),(function(t){return a("throw",t,d,n)}))}n(s.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,o){a(t,i,e,o)}))}return r=r?r.then(o,o):o()}})}function C(e,a,i){var o=m;return function(r,d){if(o===u)throw new Error("Generator is already running");if(o===h){if("throw"===r)throw d;return{value:t,done:!0}}for(i.method=r,i.arg=d;;){var n=i.delegate;if(n){var s=M(n,i);if(s){if(s===g)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===m)throw o=h,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=u;var l=p(e,a,i);if("normal"===l.type){if(o=i.done?h:"suspendedYield",l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=h,i.method="throw",i.arg=l.arg)}}}function M(e,a){var i=a.method,o=e.iterator[i];if(o===t)return a.delegate=null,"throw"===i&&e.iterator.return&&(a.method="return",a.arg=t,M(e,a),"throw"===a.method)||"return"!==i&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=p(o,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,g;var d=r.arg;return d?d.done?(a[e.resultName]=d.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,g):d:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,g)}function S(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(e){if(e||""===e){var a=e[d];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function a(){for(;++o<e.length;)if(i.call(e,o))return a.value=e[o],a.done=!1,a;return a.value=t,a.done=!0,a};return r.next=r}}throw new TypeError(N(e)+" is not iterable")}return f.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:f,configurable:!0}),f.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},k(z.prototype),l(z.prototype,n,(function(){return this})),e.AsyncIterator=z,e.async=function(t,a,i,o,r){void 0===r&&(r=Promise);var d=new z(c(t,a,i,o),r);return e.isGeneratorFunction(a)?d:d.next().then((function(t){return t.done?t.value:d.next()}))},k(_),l(_,s,"Generator"),l(_,d,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),a=[];for(var i in e)a.push(i);return a.reverse(),function t(){for(;a.length;){var i=a.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function o(i,o){return n.type="throw",n.arg=e,a.next=i,o&&(a.method="next",a.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var d=this.tryEntries[r],n=d.completion;if("root"===d.tryLoc)return o("end");if(d.tryLoc<=this.prev){var s=i.call(d,"catchLoc"),l=i.call(d,"finallyLoc");if(s&&l){if(this.prev<d.catchLoc)return o(d.catchLoc,!0);if(this.prev<d.finallyLoc)return o(d.finallyLoc)}else if(s){if(this.prev<d.catchLoc)return o(d.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<d.finallyLoc)return o(d.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var d=r?r.completion:{};return d.type=t,d.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(d)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},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),P(a),g}},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;P(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,i){return this.delegate={iterator:E(e),resultName:a,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function E(t,e,a,i,o,r,d){try{var n=t[r](d),s=n.value}catch(t){return void a(t)}n.done?e(s):Promise.resolve(s).then(i,o)}function B(t){return function(){var e=this,a=arguments;return new Promise((function(i,o){var r=t.apply(e,a);function d(t){E(r,i,o,d,n,"next",t)}function n(t){E(r,i,o,d,n,"throw",t)}d(void 0)}))}}var A=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size,t.direction],attrs:{dir:t.direction}},[t.label?a("label",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},["cpf"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"###.###.###-##",expression:"'###.###.###-##'"}],ref:"cpf",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"___-___-___-__",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCpf}},"input",t.$attrs,!1),t.$listeners)):"cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##.###.###/####-##",expression:"'##.###.###/####-##'"}],ref:"cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"00-000-00/0000-00",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCnpj}},"input",t.$attrs,!1),t.$listeners)):"cpf-cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["###.###.###-##","##.###.###/####-##"],expression:"['###.###.###-##', '##.###.###/####-##']"}],ref:"cpf-cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"000-000-000-0",disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.condCpfCnpj(e)}}},"input",t.$attrs,!1),t.$listeners)):"phone"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["(##) #####-####","(##) ####-####"],expression:"['(##) #####-####', '(##) ####-####']"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"(__) ____-____",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"address"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"#####-###",expression:"'#####-###'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"____-___",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeAddress}},"input",t.$attrs,!1),t.$listeners)):"cc-number"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:t.card.mask,expression:"card.mask"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"•••• •••• •••• ••••",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardNumber}},"input",t.$attrs,!1),t.$listeners)):"cc-cvv"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"####",expression:"'####'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"CVV",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"cc-expiration"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##/##",expression:"'##/##'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"MM/AA",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardExpiration}},"input",t.$attrs,!1),t.$listeners)):a("input",t._g(t._b({staticClass:"input",attrs:{type:t.type,inputmode:t.numeric?"numeric":"text",name:t.name,placeholder:t.placeholder,disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)),t._v(" "),t.link?a("div",{staticClass:"link"},[a("div",{on:{click:t.routeToLink}},[t._v("\n\t\t\t\t"+t._s(t.linkLabel)+"\n\t\t\t")])]):t._e()]),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-2ef87e01_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-2ef87e01]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-2ef87e01]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-2ef87e01]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-2ef87e01]{font-size:14px}}@media (min-width:1024px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-2ef87e01]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-2ef87e01]{font-size:1.56vw}}html[data-v-2ef87e01]{box-sizing:border-box}*[data-v-2ef87e01],[data-v-2ef87e01]::after,[data-v-2ef87e01]::before{box-sizing:border-box}.hide[data-v-2ef87e01]{display:none}.input-group[data-v-2ef87e01]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-2ef87e01]{position:relative;width:100%}.input-group .input-area .link[data-v-2ef87e01]{position:absolute;top:0;bottom:0;margin-top:auto;margin-bottom:auto;display:flex;align-content:center;padding-right:.1904761905rem;right:1.1428571429rem}@media (max-width:479px){.input-group .input-area .link[data-v-2ef87e01]{right:1.4953271028rem}}.input-group .input-area .link[data-v-2ef87e01] div{color:#12d3db;font-family:Roboto,sans-serif;font-weight:700;font-size:.5714285714rem;text-align:right;display:flex;align-items:center}.input-group .input-area .link[data-v-2ef87e01] div:hover{text-decoration:underline;cursor:pointer}@media (max-width:479px){.input-group .input-area .link[data-v-2ef87e01] div{font-size:.9345794393rem}}.input-group.error-active .input[data-v-2ef87e01]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-2ef87e01]{color:#ff4641!important}.input-group .validation[data-v-2ef87e01]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.input-group .validation[data-v-2ef87e01]{top:.2803738318rem;width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-2ef87e01].inactive .close path{fill:#ff4641}.input-group .validation[data-v-2ef87e01] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.input-group .validation[data-v-2ef87e01] svg{width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-2ef87e01] svg path{fill:#dfdae4}.input-group .validation[data-v-2ef87e01].active svg path{fill:#00cf72}.input-group .validation[data-v-2ef87e01].active .close path{fill:#ff4641}.input-group.size-lg .label[data-v-2ef87e01]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-2ef87e01]{padding:0 1.1428571429rem;height:2.8571428571rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-2ef87e01]{padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis;padding-right:3.738317757rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-2ef87e01]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-2ef87e01]{font-size:1.1214953271rem}}.input-group.size-lg .link[data-v-2ef87e01]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .link[data-v-2ef87e01]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-2ef87e01]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-2ef87e01]{padding:0 .7619047619rem;height:2.8571428571rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-2ef87e01]{padding:0 1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-2ef87e01]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-2ef87e01]{font-size:1.1214953271rem}}.input-group.size-sm .link[data-v-2ef87e01]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .link[data-v-2ef87e01]{right:1.4953271028rem}}.input-group .label[data-v-2ef87e01]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group .input[data-v-2ef87e01]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:0 1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:2.8571428571rem;width:100%;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-2ef87e01]{border-radius:.7476635514rem;padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis}}@media (max-width:479px){.input-group .input[data-v-2ef87e01]{font-size:1.4953271028rem}}.input-group .input[data-v-2ef87e01]:disabled{-webkit-text-fill-color:#68596e;opacity:1}.input-group .input[data-v-2ef87e01]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-2ef87e01]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-2ef87e01]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-2ef87e01]:hover{border-color:#afa2ba}.input-group .input[data-v-2ef87e01]:active,.input-group .input[data-v-2ef87e01]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-2ef87e01]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-2ef87e01]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-2ef87e01]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-2ef87e01]{background:#f8f7fc;border-color:#dfdae4!important;color:#afa2ba;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-2ef87e01]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-2ef87e01]::placeholder{color:#dfdae4;opacity:1;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-2ef87e01]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-2ef87e01]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-2ef87e01]{color:#dfdae4}input[data-v-2ef87e01]::-webkit-inner-spin-button,input[data-v-2ef87e01]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-2ef87e01]{-moz-appearance:textfield!important}',map:void 0,media:void 0})}),{name:"Input",directives:{mask:a},components:{Icon:w,Button:x},props:{
|
|
320
|
+
/* template */function N(t){return(N="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 T(){T=function(){return e};var t,e={},a=Object.prototype,i=a.hasOwnProperty,o=Object.defineProperty||function(t,e,a){t[e]=a.value},r="function"==typeof Symbol?Symbol:{},d=r.iterator||"@@iterator",n=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,a){return Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,a){return t[e]=a}}function c(t,e,a,i){var r=e&&e.prototype instanceof v?e:v,d=Object.create(r.prototype),n=new L(i||[]);return o(d,"_invoke",{value:C(t,a,n)}),d}function p(t,e,a){try{return{type:"normal",arg:t.call(e,a)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var m="suspendedStart",u="executing",h="completed",g={};function v(){}function f(){}function b(){}var w={};l(w,d,(function(){return this}));var x=Object.getPrototypeOf,y=x&&x(x(E([])));y&&y!==a&&i.call(y,d)&&(w=y);var _=b.prototype=v.prototype=Object.create(w);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function z(t,e){function a(o,r,d,n){var s=p(t[o],t,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==N(c)&&i.call(c,"__await")?e.resolve(c.__await).then((function(t){a("next",t,d,n)}),(function(t){a("throw",t,d,n)})):e.resolve(c).then((function(t){l.value=t,d(l)}),(function(t){return a("throw",t,d,n)}))}n(s.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,o){a(t,i,e,o)}))}return r=r?r.then(o,o):o()}})}function C(e,a,i){var o=m;return function(r,d){if(o===u)throw new Error("Generator is already running");if(o===h){if("throw"===r)throw d;return{value:t,done:!0}}for(i.method=r,i.arg=d;;){var n=i.delegate;if(n){var s=M(n,i);if(s){if(s===g)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===m)throw o=h,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=u;var l=p(e,a,i);if("normal"===l.type){if(o=i.done?h:"suspendedYield",l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(o=h,i.method="throw",i.arg=l.arg)}}}function M(e,a){var i=a.method,o=e.iterator[i];if(o===t)return a.delegate=null,"throw"===i&&e.iterator.return&&(a.method="return",a.arg=t,M(e,a),"throw"===a.method)||"return"!==i&&(a.method="throw",a.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var r=p(o,e.iterator,a.arg);if("throw"===r.type)return a.method="throw",a.arg=r.arg,a.delegate=null,g;var d=r.arg;return d?d.done?(a[e.resultName]=d.value,a.next=e.nextLoc,"return"!==a.method&&(a.method="next",a.arg=t),a.delegate=null,g):d:(a.method="throw",a.arg=new TypeError("iterator result is not an object"),a.delegate=null,g)}function S(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(e){if(e||""===e){var a=e[d];if(a)return a.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function a(){for(;++o<e.length;)if(i.call(e,o))return a.value=e[o],a.done=!1,a;return a.value=t,a.done=!0,a};return r.next=r}}throw new TypeError(N(e)+" is not iterable")}return f.prototype=b,o(_,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:f,configurable:!0}),f.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,s,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},k(z.prototype),l(z.prototype,n,(function(){return this})),e.AsyncIterator=z,e.async=function(t,a,i,o,r){void 0===r&&(r=Promise);var d=new z(c(t,a,i,o),r);return e.isGeneratorFunction(a)?d:d.next().then((function(t){return t.done?t.value:d.next()}))},k(_),l(_,s,"Generator"),l(_,d,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),a=[];for(var i in e)a.push(i);return a.reverse(),function t(){for(;a.length;){var i=a.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=E,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var a in this)"t"===a.charAt(0)&&i.call(this,a)&&!isNaN(+a.slice(1))&&(this[a]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var a=this;function o(i,o){return n.type="throw",n.arg=e,a.next=i,o&&(a.method="next",a.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var d=this.tryEntries[r],n=d.completion;if("root"===d.tryLoc)return o("end");if(d.tryLoc<=this.prev){var s=i.call(d,"catchLoc"),l=i.call(d,"finallyLoc");if(s&&l){if(this.prev<d.catchLoc)return o(d.catchLoc,!0);if(this.prev<d.finallyLoc)return o(d.finallyLoc)}else if(s){if(this.prev<d.catchLoc)return o(d.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<d.finallyLoc)return o(d.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var d=r?r.completion:{};return d.type=t,d.arg=e,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(d)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},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),P(a),g}},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;P(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,a,i){return this.delegate={iterator:E(e),resultName:a,nextLoc:i},"next"===this.method&&(this.arg=t),g}},e}function E(t,e,a,i,o,r,d){try{var n=t[r](d),s=n.value}catch(t){return void a(t)}n.done?e(s):Promise.resolve(s).then(i,o)}function A(t){return function(){var e=this,a=arguments;return new Promise((function(i,o){var r=t.apply(e,a);function d(t){E(r,i,o,d,n,"next",t)}function n(t){E(r,i,o,d,n,"throw",t)}d(void 0)}))}}var B=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size,t.direction],attrs:{dir:t.direction}},[t.label?a("label",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},["cpf"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"###.###.###-##",expression:"'###.###.###-##'"}],ref:"cpf",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"___-___-___-__",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCpf}},"input",t.$attrs,!1),t.$listeners)):"cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##.###.###/####-##",expression:"'##.###.###/####-##'"}],ref:"cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"00-000-00/0000-00",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCnpj}},"input",t.$attrs,!1),t.$listeners)):"cpf-cnpj"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["###.###.###-##","##.###.###/####-##"],expression:"['###.###.###-##', '##.###.###/####-##']"}],ref:"cpf-cnpj",staticClass:"input",attrs:{inputmode:"numeric",type:"text",name:t.name,placeholder:"000-000-000-0",disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.condCpfCnpj(e)}}},"input",t.$attrs,!1),t.$listeners)):"phone"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:["(##) #####-####","(##) ####-####"],expression:"['(##) #####-####', '(##) ####-####']"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"(__) ____-____",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"address"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"#####-###",expression:"'#####-###'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"____-___",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeAddress}},"input",t.$attrs,!1),t.$listeners)):"cc-number"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:t.card.mask,expression:"card.mask"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"•••• •••• •••• ••••",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardNumber}},"input",t.$attrs,!1),t.$listeners)):"cc-cvv"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"####",expression:"'####'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"CVV",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)):"cc-expiration"===t.type?a("input",t._g(t._b({directives:[{name:"mask",rawName:"v-mask",value:"##/##",expression:"'##/##'"}],staticClass:"input",attrs:{inputmode:"numeric",name:t.name,type:"text",placeholder:"MM/AA",disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChangeCardExpiration}},"input",t.$attrs,!1),t.$listeners)):a("input",t._g(t._b({staticClass:"input",attrs:{type:t.type,inputmode:t.numeric?"numeric":"text",name:t.name,placeholder:t.placeholder,disabled:t.disabled},domProps:{value:t.value},on:{input:t.onChange}},"input",t.$attrs,!1),t.$listeners)),t._v(" "),t.link?a("div",{staticClass:"link"},[a("div",{on:{click:t.routeToLink}},[t._v("\n\t\t\t\t"+t._s(t.linkLabel)+"\n\t\t\t")])]):t._e()]),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-2ef87e01_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-2ef87e01]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-2ef87e01]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-2ef87e01]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-2ef87e01]{font-size:14px}}@media (min-width:1024px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-2ef87e01]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-2ef87e01]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-2ef87e01]{font-size:1.56vw}}html[data-v-2ef87e01]{box-sizing:border-box}*[data-v-2ef87e01],[data-v-2ef87e01]::after,[data-v-2ef87e01]::before{box-sizing:border-box}.hide[data-v-2ef87e01]{display:none}.input-group[data-v-2ef87e01]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-2ef87e01]{position:relative;width:100%}.input-group .input-area .link[data-v-2ef87e01]{position:absolute;top:0;bottom:0;margin-top:auto;margin-bottom:auto;display:flex;align-content:center;padding-right:.1904761905rem;right:1.1428571429rem}@media (max-width:479px){.input-group .input-area .link[data-v-2ef87e01]{right:1.4953271028rem}}.input-group .input-area .link[data-v-2ef87e01] div{color:#12d3db;font-family:Roboto,sans-serif;font-weight:700;font-size:.5714285714rem;text-align:right;display:flex;align-items:center}.input-group .input-area .link[data-v-2ef87e01] div:hover{text-decoration:underline;cursor:pointer}@media (max-width:479px){.input-group .input-area .link[data-v-2ef87e01] div{font-size:.9345794393rem}}.input-group.error-active .input[data-v-2ef87e01]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-2ef87e01]{color:#ff4641!important}.input-group .validation[data-v-2ef87e01]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.input-group .validation[data-v-2ef87e01]{top:.2803738318rem;width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-2ef87e01].inactive .close path{fill:#ff4641}.input-group .validation[data-v-2ef87e01] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.input-group .validation[data-v-2ef87e01] svg{width:1.4953271028rem;height:1.4953271028rem}}.input-group .validation[data-v-2ef87e01] svg path{fill:#dfdae4}.input-group .validation[data-v-2ef87e01].active svg path{fill:#00cf72}.input-group .validation[data-v-2ef87e01].active .close path{fill:#ff4641}.input-group.size-lg .label[data-v-2ef87e01]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-2ef87e01]{padding:0 1.1428571429rem;height:2.8571428571rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-2ef87e01]{padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis;padding-right:3.738317757rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-2ef87e01]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-2ef87e01]{font-size:1.1214953271rem}}.input-group.size-lg .link[data-v-2ef87e01]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .link[data-v-2ef87e01]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-2ef87e01]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-2ef87e01]{padding:0 .7619047619rem;height:2.8571428571rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-2ef87e01]{padding:0 1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-2ef87e01]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-2ef87e01]{font-size:1.1214953271rem}}.input-group.size-sm .link[data-v-2ef87e01]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .link[data-v-2ef87e01]{right:1.4953271028rem}}.input-group .label[data-v-2ef87e01]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-2ef87e01]{font-size:1.308411215rem}}.input-group .input[data-v-2ef87e01]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:0 1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:2.8571428571rem;width:100%;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-2ef87e01]{border-radius:.7476635514rem;padding:0 1.4953271028rem;height:4.2990654206rem;text-overflow:ellipsis}}@media (max-width:479px){.input-group .input[data-v-2ef87e01]{font-size:1.4953271028rem}}.input-group .input[data-v-2ef87e01]:disabled{-webkit-text-fill-color:#68596e;opacity:1}.input-group .input[data-v-2ef87e01]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-2ef87e01]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-2ef87e01]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-2ef87e01]:hover{border-color:#afa2ba}.input-group .input[data-v-2ef87e01]:active,.input-group .input[data-v-2ef87e01]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-2ef87e01]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-2ef87e01]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-2ef87e01]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-2ef87e01]{background:#f8f7fc;border-color:#dfdae4!important;color:#afa2ba;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-2ef87e01]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-2ef87e01]::placeholder{color:#dfdae4;opacity:1;-webkit-text-fill-color:#68596e;opacity:1}.input-group.is-disabled .input[disabled][data-v-2ef87e01]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-2ef87e01]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-2ef87e01]{color:#dfdae4}input[data-v-2ef87e01]::-webkit-inner-spin-button,input[data-v-2ef87e01]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-2ef87e01]{-moz-appearance:textfield!important}',map:void 0,media:void 0})}),{name:"Input",directives:{mask:a},components:{Icon:w,Button:x},props:{
|
|
321
321
|
/**
|
|
322
322
|
* Nome do campo, utilizado no callback do evento<br>
|
|
323
323
|
* Example: `Name`
|
|
@@ -405,7 +405,7 @@ var o=i.length-2,r=i.substring(0,o),d=i.substring(o),n=0,s=o-7,l=o;l>=1;l--)n+=r
|
|
|
405
405
|
/**
|
|
406
406
|
* Evento disparado sempre que o campo CPF for alterado.<br>
|
|
407
407
|
* Retorna um objeto com target (name do campo), value e o valor do erro.
|
|
408
|
-
*/this.$emit("update",e)},onChangeAddress:function(t){var e=this;return
|
|
408
|
+
*/this.$emit("update",e)},onChangeAddress:function(t){var e=this;return A(T().mark((function a(){var o,r,d,n;return T().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t.e,o=t.target,r=o.value,n=i.create(),!(r.length>=9)){a.next=8;break}return a.next=6,n.get("https://api.pagar.me/1/zipcodes/".concat(r),{progress:!1}).then((function(t){d={target:o.name,value:o.value,address:t.data}})).catch((function(t){d={target:o.name,value:o.value,address:null}}));case 6:a.next=9;break;case 8:d={target:o.name,value:o.value,address:null};case 9:
|
|
409
409
|
/**
|
|
410
410
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
411
411
|
* Retorna um objeto com target (name do campo), value e um nó com dados do endereço.
|
|
@@ -415,7 +415,7 @@ e.$emit("update",d);case 10:case"end":return a.stop()}}),a)})))()},onChange:func
|
|
|
415
415
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
416
416
|
* Retorna um objeto com target (name do campo) e value.
|
|
417
417
|
*/
|
|
418
|
-
this.$emit("update",a)},routeToLink:function(){window.open(this.link,"_blank")}}},"data-v-2ef87e01",!1,void 0,!1,g,void 0,void 0),I=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-edit"},[a("div",{staticClass:"form-group"},[a("Input",{attrs:{value:t.finalValue,label:t.label,type:t.type,name:t.label,disabled:t.fieldIsDisabled,error:t.error},on:{update:t.ChangeFinalValue}}),t._v(" "),t.fieldIsDisabled?a("Button",{staticClass:"btn-edit",attrs:{kind:"link",size:"md",width:"liquid",disabled:!1},on:{click:t.openBox}},[t._v("\n\t\t\tEDITAR\n\t\t")]):t._e()],1),t._v(" "),t.fieldIsDisabled?t._e():a("div",{staticClass:"edit-button"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.Submit}},[t._v("SALVAR EDIÇÃO")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.Cancel}},[t._v("CANCELAR")])],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-9b612d34_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-9b612d34]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-9b612d34]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-9b612d34]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-9b612d34]{font-size:14px}}@media (min-width:1024px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-9b612d34]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-9b612d34]{font-size:1.56vw}}html[data-v-9b612d34]{box-sizing:border-box}*[data-v-9b612d34],[data-v-9b612d34]::after,[data-v-9b612d34]::before{box-sizing:border-box}.input-edit .form-group[data-v-9b612d34]{position:relative}.input-edit .form-group .btn-edit[data-v-9b612d34]{position:absolute;right:.4761904762rem;bottom:0;height:2.8571428571rem}@media (max-width:479px){.input-edit .form-group .btn-edit[data-v-9b612d34]{bottom:0;height:4.2990654206rem;right:.9345794393rem}}@media (max-width:479px){.input-edit .form-group input[data-v-9b612d34]{text-overflow:ellipsis;padding-right:3.738317757rem}}.input-edit .edit-button[data-v-9b612d34]{display:flex;justify-content:flex-end;text-align:right;margin-top:.7619047619rem}@media (max-width:479px){.input-edit .edit-button[data-v-9b612d34]{justify-content:space-between;margin-top:1.4953271028rem}.input-edit .edit-button button[data-v-9b612d34]{width:50%}}.input-edit .edit-button .btn-ghost[data-v-9b612d34]{margin-left:.380952381rem}@media (max-width:479px){.input-edit .edit-button .btn-ghost[data-v-9b612d34]{margin-left:.7476635514rem}}',map:void 0,media:void 0})}),{name:"InputEdit",components:{Input:
|
|
418
|
+
this.$emit("update",a)},routeToLink:function(){window.open(this.link,"_blank")}}},"data-v-2ef87e01",!1,void 0,!1,g,void 0,void 0),I=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-edit"},[a("div",{staticClass:"form-group"},[a("Input",{attrs:{value:t.finalValue,label:t.label,type:t.type,name:t.label,disabled:t.fieldIsDisabled,error:t.error},on:{update:t.ChangeFinalValue}}),t._v(" "),t.fieldIsDisabled?a("Button",{staticClass:"btn-edit",attrs:{kind:"link",size:"md",width:"liquid",disabled:!1},on:{click:t.openBox}},[t._v("\n\t\t\tEDITAR\n\t\t")]):t._e()],1),t._v(" "),t.fieldIsDisabled?t._e():a("div",{staticClass:"edit-button"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.Submit}},[t._v("SALVAR EDIÇÃO")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.Cancel}},[t._v("CANCELAR")])],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-9b612d34_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-9b612d34]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-9b612d34]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-9b612d34]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-9b612d34]{font-size:14px}}@media (min-width:1024px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-9b612d34]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-9b612d34]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-9b612d34]{font-size:1.56vw}}html[data-v-9b612d34]{box-sizing:border-box}*[data-v-9b612d34],[data-v-9b612d34]::after,[data-v-9b612d34]::before{box-sizing:border-box}.input-edit .form-group[data-v-9b612d34]{position:relative}.input-edit .form-group .btn-edit[data-v-9b612d34]{position:absolute;right:.4761904762rem;bottom:0;height:2.8571428571rem}@media (max-width:479px){.input-edit .form-group .btn-edit[data-v-9b612d34]{bottom:0;height:4.2990654206rem;right:.9345794393rem}}@media (max-width:479px){.input-edit .form-group input[data-v-9b612d34]{text-overflow:ellipsis;padding-right:3.738317757rem}}.input-edit .edit-button[data-v-9b612d34]{display:flex;justify-content:flex-end;text-align:right;margin-top:.7619047619rem}@media (max-width:479px){.input-edit .edit-button[data-v-9b612d34]{justify-content:space-between;margin-top:1.4953271028rem}.input-edit .edit-button button[data-v-9b612d34]{width:50%}}.input-edit .edit-button .btn-ghost[data-v-9b612d34]{margin-left:.380952381rem}@media (max-width:479px){.input-edit .edit-button .btn-ghost[data-v-9b612d34]{margin-left:.7476635514rem}}',map:void 0,media:void 0})}),{name:"InputEdit",components:{Input:B,Button:x},props:{
|
|
419
419
|
/**
|
|
420
420
|
* Nome do campo, utilizado no callback do evento<br>
|
|
421
421
|
* Example: `Name`
|
|
@@ -467,7 +467,7 @@ immediate:!0,handler:function(t,e){""===this.initialValue&&(this.initialValue=t)
|
|
|
467
467
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
468
468
|
* Retorna um objeto com target (name do campo) e value.
|
|
469
469
|
*/
|
|
470
|
-
this.fieldIsDisabled=!0,this.initialValue=this.finalValue,this.$emit("submitSave",t)},ChangeFinalValue:function(t){this.finalValue=t.value;var e={value:this.finalValue};this.$emit("update",e)}}},"data-v-9b612d34",!1,void 0,!1,g,void 0,void 0),F=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"input-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("label",{staticClass:"label show-desk",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"name-input-list"},[a("div",{staticClass:"name-input-group firstname-input-group"},[a("label",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("Qual seu nome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Nome",name:"name",value:t.name,maxlength:"50"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.name&&t.name.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1),t._v(" "),a("div",{staticClass:"name-input-group lastname-input-group"},[a("label",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("E o sobrenome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Sobrenome",name:"lastname",value:t.lastName,maxlength:"100"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.lastName&&t.lastName.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1)]),t._v(" "),t.helper||t.error?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error?t.error:t.helper)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-47d6c910_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-47d6c910]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-47d6c910]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-47d6c910]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-47d6c910]{font-size:14px}}@media (min-width:1024px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-47d6c910]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-47d6c910]{font-size:1.56vw}}html[data-v-47d6c910]{box-sizing:border-box}*[data-v-47d6c910],[data-v-47d6c910]::after,[data-v-47d6c910]::before{box-sizing:border-box}.show-desk[data-v-47d6c910]{display:block}@media (max-width:479px){.show-desk[data-v-47d6c910]{display:none!important}}.show-mobile[data-v-47d6c910]{display:none}@media (max-width:479px){.show-mobile[data-v-47d6c910]{display:block}}.input-group[data-v-47d6c910]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group.error-active .input[data-v-47d6c910]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-47d6c910]{color:#ff4641!important}.input-group .label[data-v-47d6c910]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-47d6c910]{font-size:1.308411215rem}}.input-group .helper[data-v-47d6c910]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-47d6c910]{font-size:1.1214953271rem}}.input-group .name-input-list[data-v-47d6c910]{display:flex;width:100%;max-width:100%;justify-content:space-between}@media (max-width:479px){.input-group .name-input-list[data-v-47d6c910]{flex-direction:column}}.input-group .name-input-list .name-input-group[data-v-47d6c910]{flex:0 0 50%;max-width:50%;position:relative}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-47d6c910]{flex:0 0 100%;max-width:100%}}.input-group .name-input-list .name-input-group[data-v-47d6c910] input{width:100%}.input-group .name-input-list .name-input-group[data-v-47d6c910] .validation{top:-1.0476190476rem}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-47d6c910] .validation{top:.2803738318rem}}.input-group .name-input-list .firstname-input-group[data-v-47d6c910]{padding-right:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .firstname-input-group[data-v-47d6c910]{padding-right:0}}.input-group .name-input-list .lastname-input-group[data-v-47d6c910]{padding-left:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .lastname-input-group[data-v-47d6c910]{padding-left:0;margin-top:1.4953271028rem}}.validation[data-v-47d6c910]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-47d6c910]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-47d6c910].inactive .close path{fill:#ff4641}.validation[data-v-47d6c910] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-47d6c910] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-47d6c910] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-47d6c910] svg path{fill:#dfdae4}.validation[data-v-47d6c910].active svg path{fill:#00cf72}.validation[data-v-47d6c910].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputName",components:{Input:
|
|
470
|
+
this.fieldIsDisabled=!0,this.initialValue=this.finalValue,this.$emit("submitSave",t)},ChangeFinalValue:function(t){this.finalValue=t.value;var e={value:this.finalValue};this.$emit("update",e)}}},"data-v-9b612d34",!1,void 0,!1,g,void 0,void 0),F=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"input-group",class:{"error-active":t.error,"is-disabled":t.disabled}},"div",t.$attrs,!1),t.$listeners),[t.label?a("label",{staticClass:"label show-desk",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"name-input-list"},[a("div",{staticClass:"name-input-group firstname-input-group"},[a("label",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("Qual seu nome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Nome",name:"name",value:t.name,maxlength:"50"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.name&&t.name.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1),t._v(" "),a("div",{staticClass:"name-input-group lastname-input-group"},[a("label",{staticClass:"label show-mobile",style:{color:t.labelColor}},[t._v("E o sobrenome?")]),t._v(" "),a("Input",{attrs:{placeholder:"Sobrenome",name:"lastname",value:t.lastName,maxlength:"100"},on:{update:t.onChange}}),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.lastName&&t.lastName.length>=2?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()],1)]),t._v(" "),t.helper||t.error?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error?t.error:t.helper)}}):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-47d6c910_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-47d6c910]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-47d6c910]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-47d6c910]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-47d6c910]{font-size:14px}}@media (min-width:1024px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-47d6c910]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-47d6c910]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-47d6c910]{font-size:1.56vw}}html[data-v-47d6c910]{box-sizing:border-box}*[data-v-47d6c910],[data-v-47d6c910]::after,[data-v-47d6c910]::before{box-sizing:border-box}.show-desk[data-v-47d6c910]{display:block}@media (max-width:479px){.show-desk[data-v-47d6c910]{display:none!important}}.show-mobile[data-v-47d6c910]{display:none}@media (max-width:479px){.show-mobile[data-v-47d6c910]{display:block}}.input-group[data-v-47d6c910]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-group.error-active .input[data-v-47d6c910]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-47d6c910]{color:#ff4641!important}.input-group .label[data-v-47d6c910]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-47d6c910]{font-size:1.308411215rem}}.input-group .helper[data-v-47d6c910]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-47d6c910]{font-size:1.1214953271rem}}.input-group .name-input-list[data-v-47d6c910]{display:flex;width:100%;max-width:100%;justify-content:space-between}@media (max-width:479px){.input-group .name-input-list[data-v-47d6c910]{flex-direction:column}}.input-group .name-input-list .name-input-group[data-v-47d6c910]{flex:0 0 50%;max-width:50%;position:relative}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-47d6c910]{flex:0 0 100%;max-width:100%}}.input-group .name-input-list .name-input-group[data-v-47d6c910] input{width:100%}.input-group .name-input-list .name-input-group[data-v-47d6c910] .validation{top:-1.0476190476rem}@media (max-width:479px){.input-group .name-input-list .name-input-group[data-v-47d6c910] .validation{top:.2803738318rem}}.input-group .name-input-list .firstname-input-group[data-v-47d6c910]{padding-right:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .firstname-input-group[data-v-47d6c910]{padding-right:0}}.input-group .name-input-list .lastname-input-group[data-v-47d6c910]{padding-left:.1904761905rem}@media (max-width:479px){.input-group .name-input-list .lastname-input-group[data-v-47d6c910]{padding-left:0;margin-top:1.4953271028rem}}.validation[data-v-47d6c910]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-47d6c910]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-47d6c910].inactive .close path{fill:#ff4641}.validation[data-v-47d6c910] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-47d6c910] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-47d6c910] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-47d6c910] svg path{fill:#dfdae4}.validation[data-v-47d6c910].active svg path{fill:#00cf72}.validation[data-v-47d6c910].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputName",components:{Input:B,Icon:w},props:{
|
|
471
471
|
/**
|
|
472
472
|
* Label do campo, caso vazio, label não é exibida<br>
|
|
473
473
|
* Example: `Label`
|
|
@@ -517,7 +517,7 @@ validationCheck:{type:Boolean,required:!1,default:!1}},data:function(){return{}}
|
|
|
517
517
|
* Evento disparado sempre que o valor for alterado.<br>
|
|
518
518
|
* Retorna um objeto com target (name do campo), value ativo.
|
|
519
519
|
*/
|
|
520
|
-
this.$emit("update",t)}}},"data-v-47d6c910",!1,void 0,!1,g,void 0,void 0),q=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"email-input-group"},"div",t.$attrs,!1),t.$listeners),[a("Input",{attrs:{placeholder:"Digite seu email",name:"email",label:t.label,labelColor:t.labelColor,value:t.email,error:t.error,helper:t.helper,helperColor:t.helperColor,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),t.showDatalist?a("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showDatalist=!1},expression:"() => (showDatalist = false)"}],staticClass:"email-list"},t._l(t.domains,(function(e){return a("div",{key:e.key,on:{click:function(a){return t.setDomain(e)}}},[t._v("\n\t\t\t@"+t._s(e)+"\n\t\t")])})),0):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-8e86fcba_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-8e86fcba]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-8e86fcba]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-8e86fcba]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-8e86fcba]{font-size:14px}}@media (min-width:1024px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-8e86fcba]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-8e86fcba]{font-size:1.56vw}}html[data-v-8e86fcba]{box-sizing:border-box}*[data-v-8e86fcba],[data-v-8e86fcba]::after,[data-v-8e86fcba]::before{box-sizing:border-box}.email-input-group[data-v-8e86fcba]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.email-input-group.error-active .input[data-v-8e86fcba]{border-color:#ff4641!important}.email-input-group.error-active .helper[data-v-8e86fcba]{color:#ff4641!important}.email-input-group .label[data-v-8e86fcba]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.email-input-group .label[data-v-8e86fcba]{font-size:1.308411215rem}}.email-input-group .helper[data-v-8e86fcba]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.email-input-group .helper[data-v-8e86fcba]{font-size:1.1214953271rem}}.email-input-group input[data-v-8e86fcba]{width:100%}.email-list[data-v-8e86fcba]{display:block;position:absolute;background:#fff;z-index:90;width:100%;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);transform:translateY(-.9523809524rem);padding:.2380952381rem;top:5.2380952381rem;font-family:Roboto}@media (max-width:479px){.email-list[data-v-8e86fcba]{transform:translateY(.6542056075rem);padding:.4672897196rem;width:auto}}.email-list div[data-v-8e86fcba]{color:#68596e;padding:.4285714286rem .5714285714rem;font-size:.6666666667rem}@media (max-width:479px){.email-list div[data-v-8e86fcba]{font-size:1.4953271028rem;padding:.8411214953rem 1.1214953271rem}}.email-list div[data-v-8e86fcba]:hover{background:rgba(60,211,215,.2);cursor:pointer}',map:void 0,media:void 0})}),{name:"InputEmail",components:{Input:
|
|
520
|
+
this.$emit("update",t)}}},"data-v-47d6c910",!1,void 0,!1,g,void 0,void 0),q=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",t._g(t._b({staticClass:"email-input-group"},"div",t.$attrs,!1),t.$listeners),[a("Input",{attrs:{placeholder:"Digite seu email",name:"email",label:t.label,labelColor:t.labelColor,value:t.email,error:t.error,helper:t.helper,helperColor:t.helperColor,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),t.showDatalist?a("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:function(){return t.showDatalist=!1},expression:"() => (showDatalist = false)"}],staticClass:"email-list"},t._l(t.domains,(function(e){return a("div",{key:e.key,on:{click:function(a){return t.setDomain(e)}}},[t._v("\n\t\t\t@"+t._s(e)+"\n\t\t")])})),0):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-8e86fcba_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-8e86fcba]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-8e86fcba]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-8e86fcba]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-8e86fcba]{font-size:14px}}@media (min-width:1024px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-8e86fcba]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-8e86fcba]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-8e86fcba]{font-size:1.56vw}}html[data-v-8e86fcba]{box-sizing:border-box}*[data-v-8e86fcba],[data-v-8e86fcba]::after,[data-v-8e86fcba]::before{box-sizing:border-box}.email-input-group[data-v-8e86fcba]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.email-input-group.error-active .input[data-v-8e86fcba]{border-color:#ff4641!important}.email-input-group.error-active .helper[data-v-8e86fcba]{color:#ff4641!important}.email-input-group .label[data-v-8e86fcba]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.email-input-group .label[data-v-8e86fcba]{font-size:1.308411215rem}}.email-input-group .helper[data-v-8e86fcba]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1.5;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.email-input-group .helper[data-v-8e86fcba]{font-size:1.1214953271rem}}.email-input-group input[data-v-8e86fcba]{width:100%}.email-list[data-v-8e86fcba]{display:block;position:absolute;background:#fff;z-index:90;width:100%;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);transform:translateY(-.9523809524rem);padding:.2380952381rem;top:5.2380952381rem;font-family:Roboto}@media (max-width:479px){.email-list[data-v-8e86fcba]{transform:translateY(.6542056075rem);padding:.4672897196rem;width:auto}}.email-list div[data-v-8e86fcba]{color:#68596e;padding:.4285714286rem .5714285714rem;font-size:.6666666667rem}@media (max-width:479px){.email-list div[data-v-8e86fcba]{font-size:1.4953271028rem;padding:.8411214953rem 1.1214953271rem}}.email-list div[data-v-8e86fcba]:hover{background:rgba(60,211,215,.2);cursor:pointer}',map:void 0,media:void 0})}),{name:"InputEmail",components:{Input:B},directives:{clickOutside:o.directive},props:{
|
|
521
521
|
/**
|
|
522
522
|
* Label do campo, caso vazio, label não é exibida<br>
|
|
523
523
|
* Example: `Label`
|
|
@@ -621,7 +621,7 @@ validationCheckValue:{type:Boolean,required:!1,default:!1}},data:function(){retu
|
|
|
621
621
|
* Evento disparado sempre que o valor for alterado.<br>
|
|
622
622
|
* Retorna um objeto com target (name do campo), key ativo e value ativo.
|
|
623
623
|
*/
|
|
624
|
-
this.$emit("update",a)}}},"data-v-83b5a3d2",!1,void 0,!1,g,void 0,void 0),$=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.haveNumber},"size-"+t.size]},[t.label?a("label",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},[a("Input",{attrs:{type:t.finalType,size:t.size,placeholder:t.placeholder,name:"number",value:t.finalValue,disabled:t.haveNumber,maxlength:6},on:{change:t.onChange}}),t._v(" "),"number"===t.type?a("div",{staticClass:"radius",class:t.haveNumber?"is-selected":"",on:{click:function(e){return e.preventDefault(),t.setHaveNumber()}}},[t._m(0),t._v(" "),a("label",[t._v("Sem número")])]):t._e()],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"radius-indicator-group"},[e("div",{staticClass:"radius-indicator"},[e("div",{staticClass:"radius-indicator-inner"})])])}]},(function(t){t&&t("data-v-5571ed90_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-5571ed90]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-5571ed90]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-5571ed90]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-5571ed90]{font-size:14px}}@media (min-width:1024px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-5571ed90]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-5571ed90]{font-size:1.56vw}}html[data-v-5571ed90]{box-sizing:border-box}*[data-v-5571ed90],[data-v-5571ed90]::after,[data-v-5571ed90]::before{box-sizing:border-box}.input-area[data-v-5571ed90]{position:relative}.radius[data-v-5571ed90]{display:flex;align-items:center;justify-content:center;position:absolute;padding-right:.1904761905rem;cursor:pointer;z-index:2;right:1.1428571429rem;height:100%;bottom:0}@media (max-width:479px){.radius[data-v-5571ed90]{right:1.4953271028rem}}.radius[data-v-5571ed90]:hover{cursor:pointer;border-color:#afa2ba}.radius:hover .radius-indicator[data-v-5571ed90],.radius:hover .radius-indicator-inner[data-v-5571ed90]{transition:all .3s;border-color:#afa2ba}.radius:hover .radius-indicator-inner[data-v-5571ed90]{background:#afa2ba!important}.radius.is-selected[data-v-5571ed90]{border-color:#12d3db}.radius.is-selected .radius-indicator[data-v-5571ed90],.radius.is-selected .radius-indicator-inner[data-v-5571ed90]{transition:all .3s;border-color:#12d3db}.radius.is-selected .radius-indicator-inner[data-v-5571ed90]{background:#12d3db!important}.radius.is-selected label[data-v-5571ed90]{color:#12d3db}.radius label[data-v-5571ed90]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}@media (max-width:479px){.radius label[data-v-5571ed90]{font-size:.9345794393rem}}.radius-indicator[data-v-5571ed90]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-5571ed90]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-5571ed90]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-5571ed90]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-5571ed90]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.input-group .input-area[data-v-5571ed90]{position:relative;width:100%}.input-group .input-area .link[data-v-5571ed90]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-5571ed90] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-5571ed90]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-5571ed90]{color:#ff4641!important}.input-group.size-lg .label[data-v-5571ed90]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-5571ed90]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-5571ed90]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-5571ed90]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-5571ed90]{font-size:1.1214953271rem}}.input-group.size-lg .radius[data-v-5571ed90]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .radius[data-v-5571ed90]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-5571ed90]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-5571ed90]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-5571ed90]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-5571ed90]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-5571ed90]{font-size:1.1214953271rem}}.input-group.size-sm .radius[data-v-5571ed90]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .radius[data-v-5571ed90]{right:1.4953271028rem}}.input-group .label[data-v-5571ed90]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-5571ed90]{font-size:1.308411215rem}}.input-group .input[data-v-5571ed90]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-5571ed90]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-5571ed90]{font-size:1.308411215rem}}.input-group .input[data-v-5571ed90]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-5571ed90]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5571ed90]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5571ed90]:hover{border-color:#afa2ba}.input-group .input[data-v-5571ed90]:active,.input-group .input[data-v-5571ed90]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-5571ed90]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-5571ed90]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-5571ed90]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-5571ed90]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5571ed90]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5571ed90]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-5571ed90]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5571ed90]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-5571ed90]{color:#dfdae4}.validation[data-v-5571ed90]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-5571ed90]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-5571ed90].inactive .close path{fill:#ff4641}.validation[data-v-5571ed90] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-5571ed90] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-5571ed90] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-5571ed90] svg path{fill:#dfdae4}.validation[data-v-5571ed90].active svg path{fill:#00cf72}.validation[data-v-5571ed90].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputAddressNumber",directives:{mask:a},components:{Input:A,Select:j},props:R(R(R(R(R(R(R(R(R(R({
|
|
624
|
+
this.$emit("update",a)}}},"data-v-83b5a3d2",!1,void 0,!1,g,void 0,void 0),$=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-group",class:[{"error-active":t.error,"is-disabled":t.haveNumber},"size-"+t.size]},[t.label?a("label",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"input-area"},[a("Input",{attrs:{type:t.finalType,size:t.size,placeholder:t.placeholder,name:"number",value:t.finalValue,disabled:t.haveNumber,maxlength:6},on:{change:t.onChange}}),t._v(" "),"number"===t.type?a("div",{staticClass:"radius",class:t.haveNumber?"is-selected":"",on:{click:function(e){return e.preventDefault(),t.setHaveNumber()}}},[t._m(0),t._v(" "),a("label",[t._v("Sem número")])]):t._e()],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"radius-indicator-group"},[e("div",{staticClass:"radius-indicator"},[e("div",{staticClass:"radius-indicator-inner"})])])}]},(function(t){t&&t("data-v-5571ed90_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-5571ed90]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-5571ed90]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-5571ed90]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-5571ed90]{font-size:14px}}@media (min-width:1024px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-5571ed90]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-5571ed90]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-5571ed90]{font-size:1.56vw}}html[data-v-5571ed90]{box-sizing:border-box}*[data-v-5571ed90],[data-v-5571ed90]::after,[data-v-5571ed90]::before{box-sizing:border-box}.input-area[data-v-5571ed90]{position:relative}.radius[data-v-5571ed90]{display:flex;align-items:center;justify-content:center;position:absolute;padding-right:.1904761905rem;cursor:pointer;z-index:2;right:1.1428571429rem;height:100%;bottom:0}@media (max-width:479px){.radius[data-v-5571ed90]{right:1.4953271028rem}}.radius[data-v-5571ed90]:hover{cursor:pointer;border-color:#afa2ba}.radius:hover .radius-indicator[data-v-5571ed90],.radius:hover .radius-indicator-inner[data-v-5571ed90]{transition:all .3s;border-color:#afa2ba}.radius:hover .radius-indicator-inner[data-v-5571ed90]{background:#afa2ba!important}.radius.is-selected[data-v-5571ed90]{border-color:#12d3db}.radius.is-selected .radius-indicator[data-v-5571ed90],.radius.is-selected .radius-indicator-inner[data-v-5571ed90]{transition:all .3s;border-color:#12d3db}.radius.is-selected .radius-indicator-inner[data-v-5571ed90]{background:#12d3db!important}.radius.is-selected label[data-v-5571ed90]{color:#12d3db}.radius label[data-v-5571ed90]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}@media (max-width:479px){.radius label[data-v-5571ed90]{font-size:.9345794393rem}}.radius-indicator[data-v-5571ed90]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-5571ed90]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-5571ed90]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-5571ed90]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-5571ed90]{transition:all .3s;display:flex;flex-direction:column;width:100%;position:relative}.input-group .input-area[data-v-5571ed90]{position:relative;width:100%}.input-group .input-area .link[data-v-5571ed90]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-5571ed90] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-5571ed90]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-5571ed90]{color:#ff4641!important}.input-group.size-lg .label[data-v-5571ed90]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-5571ed90]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-5571ed90]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-5571ed90]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-5571ed90]{font-size:1.1214953271rem}}.input-group.size-lg .radius[data-v-5571ed90]{right:1.1428571429rem}@media (max-width:479px){.input-group.size-lg .radius[data-v-5571ed90]{right:1.4953271028rem}}.input-group.size-sm .label[data-v-5571ed90]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-5571ed90]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-5571ed90]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-5571ed90]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-5571ed90]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-5571ed90]{font-size:1.1214953271rem}}.input-group.size-sm .radius[data-v-5571ed90]{right:.7619047619rem}@media (max-width:479px){.input-group.size-sm .radius[data-v-5571ed90]{right:1.4953271028rem}}.input-group .label[data-v-5571ed90]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-5571ed90]{font-size:1.308411215rem}}.input-group .input[data-v-5571ed90]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-5571ed90]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-5571ed90]{font-size:1.308411215rem}}.input-group .input[data-v-5571ed90]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-5571ed90]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5571ed90]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-5571ed90]:hover{border-color:#afa2ba}.input-group .input[data-v-5571ed90]:active,.input-group .input[data-v-5571ed90]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-5571ed90]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-5571ed90]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-5571ed90]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-5571ed90]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5571ed90]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5571ed90]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-5571ed90]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-5571ed90]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-5571ed90]{color:#dfdae4}.validation[data-v-5571ed90]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-5571ed90]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-5571ed90].inactive .close path{fill:#ff4641}.validation[data-v-5571ed90] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-5571ed90] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-5571ed90] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-5571ed90] svg path{fill:#dfdae4}.validation[data-v-5571ed90].active svg path{fill:#00cf72}.validation[data-v-5571ed90].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputAddressNumber",directives:{mask:a},components:{Input:B,Select:j},props:R(R(R(R(R(R(R(R(R(R({
|
|
625
625
|
/**
|
|
626
626
|
* Nome do campo, utilizado no callback do evento<br>
|
|
627
627
|
* Example: `Name`
|
|
@@ -715,7 +715,7 @@ validationCheckValue:{type:Boolean,required:!1,default:!1}},data:function(){retu
|
|
|
715
715
|
/**
|
|
716
716
|
* Evento disparado sempre que o valor for alterado.<br>
|
|
717
717
|
* Retorna um objeto com target (name do campo), key ativo e value ativo.
|
|
718
|
-
*/this.$emit("update",a)}}},"data-v-45da7d39",!1,void 0,!1,g,void 0,void 0),V=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.address?a("div",{staticClass:"address-box"},[t.isNew?t._e():a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Identificação do Endereço",helper:"Ex: Meu Apartamento",name:"addressLabel",value:t.address.addressLabel,disabled:!1,error:t.errors.addressLabel,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressLabel&&t.address.addressLabel.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Options",{attrs:{selected:t.selectedType?t.selectedType.key:0,grouped:!1,name:"addressTypeName",label:"Tipo do local",placeholder:"Selecione um tipo",options:t.optionTypes,error:t.errorsAddress.selectedType,disabled:!1,validationCheck:t.isNew,validationCheckValue:!(!t.selectedType||!t.selectedType.key||1!==t.selectedType.key&&2!==t.selectedType.key&&3!==t.selectedType.key)},on:{update:t.onChangeType}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"address",label:"CEP",name:"zipPostalCode",value:t.postalZipCode,disabled:!1,error:t.errorsAddress.postalZipCode,link:"http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm",linkLabel:"Não sabe o CEP?",validationCheck:t.isNew,validationCheckValue:!!(t.postalZipCode&&t.postalZipCode.length>8)},on:{update:t.onChangeZipCode}})],1),t._v(" "),t.openAddressField?t._e():a("div",{staticClass:"action-address"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.onChangeConfirmCep}},[t._v("\n\t\t\tCONFIRMAR CEP\n\t\t")])],1),t._v(" "),t.openAddressField?a("div",[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Endereço",name:"address1",value:t.address.address1,disabled:!1,error:t.errors.address1,validationCheck:t.isNew,validationCheckValue:!!(t.address.address1&&t.address.address1.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("InputAddressNumber",{attrs:{type:"number",label:"Número",name:"addressNumber",value:t.address.addressNumber,disabled:!1,error:t.errors.addressNumber,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressNumber&&t.address.addressNumber.length>1)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Complemento",name:"address2",helper:"Bloco, sala, conjunto, andar, etc.",value:t.address.address2,disabled:!1,maxlegnth:100,error:t.errors.complement},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",helper:"Nos informe lugares próximos para facilitar sua entrega",label:"Referência",name:"addressReference",value:t.address.addressReference,disabled:!1,error:t.errors.reference},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"}),t._v(" "),a("div",{staticClass:"form-group state-city"},[a("div",{staticClass:"city"},[a("Input",{attrs:{type:"text",label:"Cidade",name:"city",value:t.address.city,disabled:!1,error:t.errors.city,validationCheck:t.isNew,validationCheckValue:!!(t.address.city&&t.address.city.length>0)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"state"},[a("Select",{attrs:{selected:t.address.stateId,name:"stateId",label:"Estado",placeholder:"Estado",options:t.optionStates,error:t.errors.typeState,validationCheck:t.isNew,validationCheckValue:!!(t.address.stateId&&t.address.stateId.length>0),disabled:!1},on:{update:t.onChange}})],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Bairro",name:"district",value:t.address.district,disabled:!1,error:t.errors.district,validationCheck:t.isNew,validationCheckValue:!!(t.address.district&&t.address.district.length>0)},on:{update:t.onChange}})],1)]):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-07f457a1_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-07f457a1]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-07f457a1]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-07f457a1]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-07f457a1]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-07f457a1]{font-size:14px}}@media (min-width:1024px){[data-v-07f457a1]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-07f457a1]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-07f457a1]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-07f457a1]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-07f457a1]{font-size:1.56vw}}html[data-v-07f457a1]{box-sizing:border-box}*[data-v-07f457a1],[data-v-07f457a1]::after,[data-v-07f457a1]::before{box-sizing:border-box}.form-group[data-v-07f457a1]{margin-bottom:.7619047619rem}.action-address[data-v-07f457a1]{text-align:right}.input-area[data-v-07f457a1]{position:relative}.check[data-v-07f457a1]{display:flex;position:absolute;right:.1904761905rem;bottom:1.1428571429rem;align-items:center;padding-right:.1904761905rem;cursor:pointer;z-index:2}.check[data-v-07f457a1]:hover{cursor:pointer;border-color:#afa2ba}.check:hover .radius-indicator[data-v-07f457a1],.check:hover .radius-indicator-inner[data-v-07f457a1]{transition:all .3s;border-color:#afa2ba}.check:hover .radius-indicator-inner[data-v-07f457a1]{background:#afa2ba!important}.check.is-selected[data-v-07f457a1]{border-color:#12d3db}.check.is-selected .radius-indicator[data-v-07f457a1],.check.is-selected .radius-indicator-inner[data-v-07f457a1]{transition:all .3s;border-color:#12d3db}.check.is-selected .radius-indicator-inner[data-v-07f457a1]{background:#12d3db!important}.check.is-selected label[data-v-07f457a1]{color:#12d3db}.check label[data-v-07f457a1]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}.radius-indicator[data-v-07f457a1]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-07f457a1]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-07f457a1]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-07f457a1]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-07f457a1]{transition:all .3s;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-07f457a1]{position:relative;width:100%}.input-group .input-area .link[data-v-07f457a1]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-07f457a1] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-07f457a1]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-07f457a1]{color:#ff4641!important}.input-group.size-lg .label[data-v-07f457a1]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-07f457a1]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-07f457a1]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-07f457a1]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-07f457a1]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-07f457a1]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-07f457a1]{font-size:1.1214953271rem}}.input-group.size-sm .label[data-v-07f457a1]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-07f457a1]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-07f457a1]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-07f457a1]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-07f457a1]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-07f457a1]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-07f457a1]{font-size:1.1214953271rem}}.input-group .label[data-v-07f457a1]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-07f457a1]{font-size:1.308411215rem}}.input-group .input[data-v-07f457a1]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-07f457a1]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-07f457a1]{font-size:1.308411215rem}}.input-group .input[data-v-07f457a1]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-07f457a1]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-07f457a1]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-07f457a1]:hover{border-color:#afa2ba}.input-group .input[data-v-07f457a1]:active,.input-group .input[data-v-07f457a1]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-07f457a1]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-07f457a1]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-07f457a1]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-07f457a1]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-07f457a1]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-07f457a1]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-07f457a1]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-07f457a1]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-07f457a1]{color:#dfdae4}.state-city[data-v-07f457a1]{display:flex}.state-city .city[data-v-07f457a1]{width:62%;margin-right:4%}.state-city .state[data-v-07f457a1]{width:34%}',map:void 0,media:void 0})}),{name:"Address",directives:{mask:a},components:{Input:A,Select:j,Options:O,InputAddressNumber:$,Button:x},props:{
|
|
718
|
+
*/this.$emit("update",a)}}},"data-v-45da7d39",!1,void 0,!1,g,void 0,void 0),V=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.address?a("div",{staticClass:"address-box"},[t.isNew?t._e():a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Identificação do Endereço",helper:"Ex: Meu Apartamento",name:"addressLabel",value:t.address.addressLabel,disabled:!1,error:t.errors.addressLabel,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressLabel&&t.address.addressLabel.length>3)},on:{update:t.onChange}})],1),t._v(" "),t.isActiveTypeAndReference?a("div",{staticClass:"form-group"},[a("Options",{attrs:{selected:t.selectedType?t.selectedType.key:0,grouped:!1,name:"addressTypeName",label:"Tipo do local",placeholder:"Selecione um tipo",options:t.optionTypes,error:t.errorsAddress.selectedType,disabled:!1,validationCheck:t.isNew,validationCheckValue:!(!t.selectedType||!t.selectedType.key||1!==t.selectedType.key&&2!==t.selectedType.key&&3!==t.selectedType.key)},on:{update:t.onChangeType}})],1):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"address",label:"CEP",name:"zipPostalCode",value:t.postalZipCode,disabled:!1,error:t.errorsAddress.postalZipCode,link:"http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm",linkLabel:"Não sabe o CEP?",validationCheck:t.isNew,validationCheckValue:!!(t.postalZipCode&&t.postalZipCode.length>8)},on:{update:t.onChangeZipCode}})],1),t._v(" "),t.openAddressField?t._e():a("div",{staticClass:"action-address"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.onChangeConfirmCep}},[t._v("\n CONFIRMAR CEP\n ")])],1),t._v(" "),t.openAddressField?a("div",[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Endereço",name:"address1",value:t.address.address1,disabled:!1,error:t.errors.address1,validationCheck:t.isNew,validationCheckValue:!!(t.address.address1&&t.address.address1.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("InputAddressNumber",{attrs:{type:"number",label:"Número",name:"addressNumber",value:t.address.addressNumber,disabled:!1,error:t.errors.addressNumber,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressNumber&&t.address.addressNumber.length>1)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Complemento",name:"address2",helper:"Bloco, sala, conjunto, andar, etc.",value:t.address.address2,disabled:!1,maxlegnth:100,error:t.errors.complement},on:{update:t.onChange}})],1),t._v(" "),t.isActiveTypeAndReference?a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",helper:"Nos informe lugares próximos para facilitar sua entrega",label:"Referência",name:"addressReference",value:t.address.addressReference,disabled:!1,error:t.errors.reference},on:{update:t.onChange}})],1):t._e(),t._v(" "),a("div",{staticClass:"form-group"}),t._v(" "),a("div",{staticClass:"form-group state-city"},[a("div",{staticClass:"city"},[a("Input",{attrs:{type:"text",label:"Cidade",name:"city",value:t.address.city,disabled:!1,error:t.errors.city,validationCheck:t.isNew,validationCheckValue:!!(t.address.city&&t.address.city.length>0)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"state"},[a("Select",{attrs:{selected:t.address.stateId,name:"stateId",label:"Estado",placeholder:"Estado",options:t.optionStates,error:t.errors.typeState,validationCheck:t.isNew,validationCheckValue:!!(t.address.stateId&&t.address.stateId.length>0),disabled:!1},on:{update:t.onChange}})],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Bairro",name:"district",value:t.address.district,disabled:!1,error:t.errors.district,validationCheck:t.isNew,validationCheckValue:!!(t.address.district&&t.address.district.length>0)},on:{update:t.onChange}})],1)]):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-f084876a_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-f084876a]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-f084876a]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-f084876a]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-f084876a]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-f084876a]{font-size:14px}}@media (min-width:1024px){[data-v-f084876a]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-f084876a]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-f084876a]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-f084876a]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-f084876a]{font-size:1.56vw}}html[data-v-f084876a]{box-sizing:border-box}*[data-v-f084876a],[data-v-f084876a]::after,[data-v-f084876a]::before{box-sizing:border-box}.form-group[data-v-f084876a]{margin-bottom:.7619047619rem}.action-address[data-v-f084876a]{text-align:right}.input-area[data-v-f084876a]{position:relative}.check[data-v-f084876a]{display:flex;position:absolute;right:.1904761905rem;bottom:1.1428571429rem;align-items:center;padding-right:.1904761905rem;cursor:pointer;z-index:2}.check[data-v-f084876a]:hover{cursor:pointer;border-color:#afa2ba}.check:hover .radius-indicator[data-v-f084876a],.check:hover .radius-indicator-inner[data-v-f084876a]{transition:all .3s;border-color:#afa2ba}.check:hover .radius-indicator-inner[data-v-f084876a]{background:#afa2ba!important}.check.is-selected[data-v-f084876a]{border-color:#12d3db}.check.is-selected .radius-indicator[data-v-f084876a],.check.is-selected .radius-indicator-inner[data-v-f084876a]{transition:all .3s;border-color:#12d3db}.check.is-selected .radius-indicator-inner[data-v-f084876a]{background:#12d3db!important}.check.is-selected label[data-v-f084876a]{color:#12d3db}.check label[data-v-f084876a]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}.radius-indicator[data-v-f084876a]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-f084876a]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-f084876a]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-f084876a]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-f084876a]{transition:all .3s;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-f084876a]{position:relative;width:100%}.input-group .input-area .link[data-v-f084876a]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-f084876a] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-f084876a]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-f084876a]{color:#ff4641!important}.input-group.size-lg .label[data-v-f084876a]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-f084876a]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-f084876a]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-f084876a]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-f084876a]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-f084876a]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-f084876a]{font-size:1.1214953271rem}}.input-group.size-sm .label[data-v-f084876a]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-f084876a]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-f084876a]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-f084876a]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-f084876a]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-f084876a]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-f084876a]{font-size:1.1214953271rem}}.input-group .label[data-v-f084876a]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-f084876a]{font-size:1.308411215rem}}.input-group .input[data-v-f084876a]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-f084876a]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-f084876a]{font-size:1.308411215rem}}.input-group .input[data-v-f084876a]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-f084876a]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-f084876a]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-f084876a]:hover{border-color:#afa2ba}.input-group .input[data-v-f084876a]:active,.input-group .input[data-v-f084876a]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-f084876a]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-f084876a]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-f084876a]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-f084876a]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-f084876a]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-f084876a]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-f084876a]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-f084876a]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-f084876a]{color:#dfdae4}.state-city[data-v-f084876a]{display:flex}.state-city .city[data-v-f084876a]{width:62%;margin-right:4%}.state-city .state[data-v-f084876a]{width:34%}',map:void 0,media:void 0})}),{name:"Address",directives:{mask:a},components:{Input:B,Select:j,Options:O,InputAddressNumber:$,Button:x},props:{
|
|
719
719
|
/**
|
|
720
720
|
* Nome do campo, utilizado no callback do evento<br>
|
|
721
721
|
* Example: `Name`
|
|
@@ -729,7 +729,7 @@ errors:{type:Object},
|
|
|
729
729
|
// * Valor do campo<br>
|
|
730
730
|
// * Example: `Value`
|
|
731
731
|
// * */
|
|
732
|
-
isNew:{type:Boolean,default:!1}},data:function(){return{openAddressField:!1,errorsAddress:{selectedType:null,postalZipCode:null},selectedType:null,postalZipCode:null,optionTypes:{value1:{key:1,value:1,label:"Apartamento"},value2:{key:2,value:2,label:"Casa"},value3:{key:3,value:3,label:"Comercial"}},optionStates:{type1:{value:"AC",key:"AC"},type2:{value:"AL",key:"AL"},type3:{value:"AP",key:"AP"},type4:{value:"AM",key:"AM"},type5:{value:"BA",key:"BA"},type6:{value:"CE",key:"CE"},type7:{value:"DF",key:"DF"},type8:{value:"ES",key:"ES"},type9:{value:"GO",key:"GO"},type10:{value:"MA",key:"MA"},type11:{value:"MT",key:"MT"},type12:{value:"MS",key:"MS"},type13:{value:"MG",key:"MG"},type14:{value:"PA",key:"PA"},type15:{value:"PB",key:"PB"},type16:{value:"PR",key:"PR"},type17:{value:"PE",key:"PE"},type18:{value:"PI",key:"PI"},type19:{value:"RJ",key:"RJ"},type20:{value:"RN",key:"RN"},type21:{value:"RS",key:"RS"},type22:{value:"RO",key:"RO"},type23:{value:"RR",key:"RR"},type24:{value:"SC",key:"SC"},type25:{value:"SP",key:"SP"},type26:{value:"SE",key:"SE"},type27:{value:"TO",key:"TO"}}}},mounted:function(){this.address&&this.address.id&&(this.openAddressField=!0,this.address.addressTypeId&&(this.selectedType=this.address.addressTypeId),this.address.zipPostalCode&&(this.postalZipCode=this.address.zipPostalCode))},updated:function(){this.address&&this.address.id&&(this.openAddressField=!0,this.$emit("showFields"))},methods:{onChangeConfirmCep:function(t){var e=!0;this.errorsAddress={selectedType:null,postalZipCode:null},this.selectedType||(this.errorsAddress.selectedType="Selecione o tipo do local",e=!1),(!this.postalZipCode||this.postalZipCode.length<9)&&(this.errorsAddress.postalZipCode="O CEP está incorreto",e=!1),e&&(this.postalZipCode&&this.postalZipCode.length>8&&(this.openAddressField=!0,this.$emit("showFields"))
|
|
732
|
+
isNew:{type:Boolean,default:!1},isActiveTypeAndReference:{type:Boolean,default:!0}},data:function(){return{openAddressField:!1,errorsAddress:{selectedType:null,postalZipCode:null},selectedType:null,postalZipCode:null,optionTypes:{value1:{key:1,value:1,label:"Apartamento"},value2:{key:2,value:2,label:"Casa"},value3:{key:3,value:3,label:"Comercial"}},optionStates:{type1:{value:"AC",key:"AC"},type2:{value:"AL",key:"AL"},type3:{value:"AP",key:"AP"},type4:{value:"AM",key:"AM"},type5:{value:"BA",key:"BA"},type6:{value:"CE",key:"CE"},type7:{value:"DF",key:"DF"},type8:{value:"ES",key:"ES"},type9:{value:"GO",key:"GO"},type10:{value:"MA",key:"MA"},type11:{value:"MT",key:"MT"},type12:{value:"MS",key:"MS"},type13:{value:"MG",key:"MG"},type14:{value:"PA",key:"PA"},type15:{value:"PB",key:"PB"},type16:{value:"PR",key:"PR"},type17:{value:"PE",key:"PE"},type18:{value:"PI",key:"PI"},type19:{value:"RJ",key:"RJ"},type20:{value:"RN",key:"RN"},type21:{value:"RS",key:"RS"},type22:{value:"RO",key:"RO"},type23:{value:"RR",key:"RR"},type24:{value:"SC",key:"SC"},type25:{value:"SP",key:"SP"},type26:{value:"SE",key:"SE"},type27:{value:"TO",key:"TO"}}}},mounted:function(){this.address&&this.address.id&&(this.openAddressField=!0,this.address.addressTypeId&&(this.selectedType=this.address.addressTypeId),this.address.zipPostalCode&&(this.postalZipCode=this.address.zipPostalCode))},updated:function(){this.address&&this.address.id&&(this.openAddressField=!0,this.$emit("showFields"))},methods:{onChangeConfirmCep:function(t){var e=!0;this.errorsAddress={selectedType:null,postalZipCode:null},1==this.isActiveTypeAndReference&&(this.selectedType||(this.errorsAddress.selectedType="Selecione o tipo do local",e=!1)),(!this.postalZipCode||this.postalZipCode.length<9)&&(this.errorsAddress.postalZipCode="O CEP está incorreto",e=!1),e&&(this.postalZipCode&&this.postalZipCode.length>8&&(this.openAddressField=!0,this.$emit("showFields"))
|
|
733
733
|
/**
|
|
734
734
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
735
735
|
* Retorna um objeto com target (name do campo) e value.
|
|
@@ -749,7 +749,7 @@ this.$emit("update",t)},onChangeZipCode:function(t){this.postalZipCode=t.value,t
|
|
|
749
749
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
750
750
|
* Retorna um objeto com target (name do campo) e value.
|
|
751
751
|
*/
|
|
752
|
-
this.$emit("update",t)}}},"data-v-
|
|
752
|
+
this.$emit("update",t)}}},"data-v-f084876a",!1,void 0,!1,g,void 0,void 0),U=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.address?a("div",{staticClass:"address-box"},[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"address",label:"CEP",name:"zipPostalCode",value:t.address.zipPostalCode,disabled:!1,error:t.errors.zipPostalCode,link:"http://www.buscacep.correios.com.br/sistemas/buscacep/buscaCepEndereco.cfm",linkLabel:"Não sabe o CEP?",validationCheck:t.isNew,validationCheckValue:!!(t.address.zipPostalCode&&t.address.zipPostalCode.length>8)},on:{update:t.onChangeZipCode}})],1),t._v(" "),t.openAddressField?t._e():a("div",{staticClass:"action-address"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.onChangeConfirmCep}},[t._v("\n\t\t\t\tCONFIRMAR CEP\n\t\t\t")])],1),t._v(" "),t.openAddressField?a("div",[a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Endereço",name:"address1",value:t.address.address1,disabled:!1,error:t.errors.address1,validationCheck:t.isNew,validationCheckValue:!!(t.address.address1&&t.address.address1.length>3)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"},[a("InputAddressNumber",{attrs:{type:"number",label:"Número",name:"addressNumber",value:t.address.addressNumber,disabled:!1,error:t.errors.addressNumber,validationCheck:t.isNew,validationCheckValue:!!(t.address.addressNumber&&t.address.addressNumber.length>1)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"form-group"}),t._v(" "),a("div",{staticClass:"form-group state-city"},[a("div",{staticClass:"city"},[a("Input",{attrs:{type:"text",label:"Cidade",name:"city",value:t.address.city,disabled:!1,error:t.errors.city,validationCheck:t.isNew,validationCheckValue:!!(t.address.city&&t.address.city.length>0)},on:{update:t.onChange}})],1),t._v(" "),a("div",{staticClass:"state"},[a("Select",{attrs:{selected:t.address.stateId,name:"stateId",label:"Estado",placeholder:"Estado",options:t.optionStates,error:t.errors.typeState,validationCheck:t.isNew,validationCheckValue:!!(t.address.stateId&&t.address.stateId.length>0),disabled:!1},on:{update:t.onChange}})],1)]),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{type:"text",label:"Bairro",name:"district",value:t.address.district,disabled:!1,error:t.errors.district,validationCheck:t.isNew,validationCheckValue:!!(t.address.district&&t.address.district.length>0)},on:{update:t.onChange}})],1)]):t._e()]):t._e()},staticRenderFns:[]},(function(t){t&&t("data-v-f1c8834e_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-f1c8834e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-f1c8834e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-f1c8834e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-f1c8834e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-f1c8834e]{font-size:14px}}@media (min-width:1024px){[data-v-f1c8834e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-f1c8834e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-f1c8834e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-f1c8834e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-f1c8834e]{font-size:1.56vw}}html[data-v-f1c8834e]{box-sizing:border-box}*[data-v-f1c8834e],[data-v-f1c8834e]::after,[data-v-f1c8834e]::before{box-sizing:border-box}.form-group[data-v-f1c8834e]{margin-bottom:.7619047619rem}.action-address[data-v-f1c8834e]{text-align:right;padding-top:1.1428571429rem}.input-area[data-v-f1c8834e]{position:relative}.check[data-v-f1c8834e]{display:flex;position:absolute;right:.1904761905rem;bottom:1.1428571429rem;align-items:center;padding-right:.1904761905rem;cursor:pointer;z-index:2}.check[data-v-f1c8834e]:hover{cursor:pointer;border-color:#afa2ba}.check:hover .radius-indicator[data-v-f1c8834e],.check:hover .radius-indicator-inner[data-v-f1c8834e]{transition:all .3s;border-color:#afa2ba}.check:hover .radius-indicator-inner[data-v-f1c8834e]{background:#afa2ba!important}.check.is-selected[data-v-f1c8834e]{border-color:#12d3db}.check.is-selected .radius-indicator[data-v-f1c8834e],.check.is-selected .radius-indicator-inner[data-v-f1c8834e]{transition:all .3s;border-color:#12d3db}.check.is-selected .radius-indicator-inner[data-v-f1c8834e]{background:#12d3db!important}.check.is-selected label[data-v-f1c8834e]{color:#12d3db}.check label[data-v-f1c8834e]{font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;color:#afa2ba}.radius-indicator[data-v-f1c8834e]{width:1.1428571429rem;height:1.1428571429rem;border:1px solid #dfdae4;background:#fff;border-radius:50%;margin-right:.1904761905rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.radius-indicator[data-v-f1c8834e]{width:2.2429906542rem;height:2.2429906542rem}}.radius-indicator .radius-indicator-inner[data-v-f1c8834e]{width:.7619047619rem;height:.7619047619rem;background:#dfdae4;border-radius:50%}@media (max-width:479px){.radius-indicator .radius-indicator-inner[data-v-f1c8834e]{width:1.4953271028rem;height:1.4953271028rem}}.input-group[data-v-f1c8834e]{transition:all .3s;display:flex;flex-direction:column;width:100%}.input-group .input-area[data-v-f1c8834e]{position:relative;width:100%}.input-group .input-area .link[data-v-f1c8834e]{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-group .input-area .link[data-v-f1c8834e] button{color:#12d3db;text-decoration-line:underline}.input-group.error-active .input[data-v-f1c8834e]{border-color:#ff4641!important}.input-group.error-active .helper[data-v-f1c8834e]{color:#ff4641!important}.input-group.size-lg .label[data-v-f1c8834e]{font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .label[data-v-f1c8834e]{font-size:1.308411215rem}}.input-group.size-lg .input[data-v-f1c8834e]{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-group.size-lg .input[data-v-f1c8834e]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-lg .input[data-v-f1c8834e]{font-size:1.308411215rem}}.input-group.size-lg .helper[data-v-f1c8834e]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-lg .helper[data-v-f1c8834e]{font-size:1.1214953271rem}}.input-group.size-sm .label[data-v-f1c8834e]{font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .label[data-v-f1c8834e]{font-size:1.308411215rem}}.input-group.size-sm .input[data-v-f1c8834e]{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-group.size-sm .input[data-v-f1c8834e]{padding:1.4953271028rem}}@media (max-width:479px){.input-group.size-sm .input[data-v-f1c8834e]{font-size:1.308411215rem}}.input-group.size-sm .helper[data-v-f1c8834e]{font-size:.5714285714rem}@media (max-width:479px){.input-group.size-sm .helper[data-v-f1c8834e]{font-size:1.1214953271rem}}.input-group .label[data-v-f1c8834e]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .label[data-v-f1c8834e]{font-size:1.308411215rem}}.input-group .input[data-v-f1c8834e]{transition:all .3s;-webkit-appearance:none;-moz-appearance:none;text-overflow:"";padding:1.1428571429rem;border:2px solid #dfdae4;border-radius:.380952381rem;background:#fff;height:3.3333333333rem;font-family:Roboto,sans-serif;color:#68596e;font-size:.7619047619rem;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .input[data-v-f1c8834e]{border-radius:.7476635514rem;padding:1.4953271028rem;height:4.2990654206rem}}@media (max-width:479px){.input-group .input[data-v-f1c8834e]{font-size:1.308411215rem}}.input-group .input[data-v-f1c8834e]::placeholder{color:#afa2ba;opacity:1}.input-group .input[data-v-f1c8834e]:-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-f1c8834e]::-ms-input-placeholder{color:#afa2ba}.input-group .input[data-v-f1c8834e]:hover{border-color:#afa2ba}.input-group .input[data-v-f1c8834e]:active,.input-group .input[data-v-f1c8834e]:focus{border-color:#12d3db;outline:0}.input-group .helper[data-v-f1c8834e]{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-group .helper[data-v-f1c8834e]{font-size:1.1214953271rem}}.input-group.is-disabled .label[data-v-f1c8834e]{color:#68596e}.input-group.is-disabled .input[disabled][data-v-f1c8834e]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-f1c8834e]:hover{border-color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-f1c8834e]::placeholder{color:#dfdae4;opacity:1}.input-group.is-disabled .input[disabled][data-v-f1c8834e]:-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .input[disabled][data-v-f1c8834e]::-ms-input-placeholder{color:#dfdae4}.input-group.is-disabled .helper[data-v-f1c8834e]{color:#dfdae4}.state-city[data-v-f1c8834e]{display:flex}.state-city .city[data-v-f1c8834e]{width:62%;margin-right:4%}.state-city .state[data-v-f1c8834e]{width:34%}',map:void 0,media:void 0})}),{name:"Address",directives:{mask:a},components:{Input:B,Select:j,Options:O,InputAddressNumber:$,Button:x},props:{
|
|
753
753
|
/**
|
|
754
754
|
* Nome do campo, utilizado no callback do evento<br>
|
|
755
755
|
* Example: `Name`
|
|
@@ -777,7 +777,7 @@ this.$emit("update",t)},onChangeZipCode:function(t){9===t.value.length&&(this.op
|
|
|
777
777
|
/**
|
|
778
778
|
* Evento disparado sempre que o valor do campo for alterado.<br>
|
|
779
779
|
* Retorna um objeto com target (name do campo) e value.
|
|
780
|
-
*/,this.$emit("update",t)}}},"data-v-f1c8834e",!1,void 0,!1,g,void 0,void 0),H=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-card-number-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size]},[t.label?a("label",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{name:t.name,value:t.value,type:"cc-number",numeric:!0,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),a("div",{staticClass:"card-icon"},["agi-plan"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#C3171E",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#013158",d:"M16.442 13.107L9 20v-4.13l5.213-4.828c1.5-1.39 4.864-1.39 6.364 0L24 14.212l-2.229 2.065-3.423-3.17c-.45-.416-1.457-.416-1.906 0"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.558 21.893L28 15v4.13l-5.213 4.828c-1.5 1.39-4.864 1.39-6.364 0L13 20.788l2.229-2.065 3.423 3.17c.45.417 1.457.416 1.906 0"}})])]):t._e(),t._v(" "),"american-express"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#007ECD",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M31.624 17.474h-1.58v-.796h1.379s.503.059.503-.273c0-.312-.752-.288-.752-.288s-1.226.106-1.226-1.03c0-1.128 1.107-1.064 1.107-1.064h1.7v.808h-1.368s-.474-.095-.474.246c0 .285.646.244.646.244s1.355-.099 1.355.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.107-.005-.107-.005zm-7.885.006v-3.45h2.77v.8h-1.877v.532h1.83v.784h-1.83v.586h1.877v.748h-2.77zm4.753-.006h-1.58v-.796h1.385s.497.059.497-.273c0-.312-.752-.288-.752-.288s-1.225.106-1.225-1.03c0-1.128 1.107-1.064 1.107-1.064h1.706v.808h-1.374s-.474-.095-.474.246c0 .285.645.244.645.244s1.356-.099 1.356.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.108-.005-.108-.005zm-11.976.006h-.775l-.941-1.024-.947 1.024h-3.304v-3.462h3.232l1.019 1.1 1.024-1.094h.68v-.006h2.155s1.125-.123 1.125 1.017c0 1.018-.373 1.334-1.521 1.334h-.87v1.111h-.877zm-1.112-1.701l1.1 1.204v-2.404l-1.1 1.2zm-3.96.953h1.87l.876-.953-.876-.948h-1.87v.531h1.823v.785h-1.824v.585zm5.949-1.265h.917c.267 0 .486-.146.486-.327 0-.18-.22-.327-.486-.327h-.917v.654zm5.044 2.019v-.673s-.037-.526-.593-.526h-.864v1.199h-.888v-3.457h2.155s1.125-.134 1.125 1.012c0 .597-.498.807-.498.807s.427.199.427.783v.855h-.864zm-1.457-2.012h.918c.266 0 .485-.146.485-.328 0-.181-.219-.327-.485-.327h-.918v.655zm-.669-2.72h.893V9.288h-.893v3.468zm-6.879-.011V9.287h2.77v.806h-1.876v.533h1.83v.783h-1.83v.586h1.877v.748h-2.77zm-1.391 0v-2.386l-1.113 2.386H10.2l-1.119-2.375v2.375H7.33l-.308-.725H5.399l-.314.725h-.97l1.473-3.457h1.25l1.35 3.176V9.286H9.59l.977 2.147.97-2.147h1.404v3.457h-.9zm-6.263-1.609h.864l-.432-1.029-.432 1.03zm23.708 1.609l-1.408-2.31v2.31h-1.74l-.314-.725h-1.622l-.308.725h-1.392s-1.195-.17-1.195-1.632c0-1.918 1.356-1.842 1.403-1.854l1.095.03v.777l-.9.012s-.586 0-.657.755a2.464 2.464 0 0 0-.011.24c.003 1.168 1.026.806 1.06.795l1.1-2.58h1.243l1.332 3.135V9.286h1.255l1.391 2.276V9.286h.895v3.457h-1.227zm-4.705-1.609h.864l-.426-1.029-.438 1.03zm-5.773 1.609v-.673s-.035-.526-.591-.526h-.865v1.199h-.888V9.286h2.155s1.125-.134 1.125 1.012c0 .597-.497.807-.497.807s.432.2.432.784v.854h-.87zm-1.456-2.012h.918c.266 0 .485-.146.485-.328 0-.18-.219-.327-.485-.327h-.918v.655z"}})])]):"diners-club"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#2183CB",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M19.309 20.342h-2.635c-3.984-.065-7.196-3.384-7.196-7.419-.129-4.035 2.955-7.419 6.875-7.549h2.956c4.112-.065 7.453 3.319 7.517 7.484v.065c-.128 4.1-3.405 7.419-7.517 7.419zM16.867 6.676c-3.341 0-6.104 2.798-6.104 6.182 0 3.384 2.763 6.182 6.104 6.182s6.104-2.798 6.104-6.182c0-3.384-2.763-6.182-6.104-6.182zm.964 10.347V8.758c2.249.586 3.662 2.863 3.084 5.141-.386 1.562-1.542 2.733-3.084 3.124zm-1.928 0c-2.249-.586-3.598-2.929-3.02-5.206a4.253 4.253 0 0 1 3.02-3.059v8.265z"}})])]):"elo"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#231F20",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFCA05",d:"M8.374 9.43a3.095 3.095 0 0 1 1.003-.166c1.53 0 2.807 1.111 3.1 2.589l2.168-.453C14.148 8.89 11.978 7 9.377 7c-.596 0-1.169.1-1.705.282l.702 2.147z"}}),t._v(" "),a("path",{attrs:{fill:"#00A4DF",d:"M5.815 16.618l1.466-1.696A3.261 3.261 0 0 1 6.213 12.5c0-.964.413-1.83 1.067-2.422L5.813 8.381A5.542 5.542 0 0 0 4 12.499c0 1.64.702 3.112 1.815 4.12"}}),t._v(" "),a("path",{attrs:{fill:"#EE4123",d:"M12.476 13.148c-.294 1.477-1.57 2.586-3.1 2.586a3.08 3.08 0 0 1-1.003-.166l-.703 2.148a5.27 5.27 0 0 0 1.707.282c2.599 0 4.768-1.887 5.267-4.395l-2.168-.455z"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.875 14.325l-.001.002-.062-.043a1.754 1.754 0 0 1-.805.689c-.665.296-1.282.22-1.724-.178l-.041.064-.001-.001-.756 1.155c.188.133.39.246.6.336.835.355 1.688.339 2.53-.036a3.13 3.13 0 0 0 1.41-1.201l-1.15-.787zm-2.357-2.851c-.703.309-1.065.983-.99 1.773l2.976-1.31c-.512-.615-1.178-.82-1.986-.463zm-1.976 3.52a3.98 3.98 0 0 1-.226-.445 3.333 3.333 0 0 1-.07-2.47c.319-.888.928-1.568 1.715-1.914.99-.436 2.084-.35 3.032.226.603.353 1.03.899 1.354 1.67.041.1.078.205.113.295l-5.918 2.638zM24.529 8.463v6.424l.976.405-.554 1.324-1.078-.459a1.23 1.23 0 0 1-.532-.456 1.461 1.461 0 0 1-.208-.796V8.463h1.396zM27.059 13.25c0-.546.236-1.037.61-1.37l-1.002-1.143a3.38 3.38 0 0 0-1.108 2.512c-.001 1 .426 1.9 1.105 2.515l1-1.144a1.835 1.835 0 0 1-.605-1.37M28.839 15.074c-.198 0-.388-.034-.565-.094l-.478 1.455c.327.112.677.173 1.041.174 1.586.001 2.911-1.15 3.218-2.68l-1.47-.308c-.168.83-.886 1.454-1.746 1.453M28.843 9.896c-.364 0-.714.06-1.04.17l.474 1.457a1.76 1.76 0 0 1 .564-.093c.863 0 1.581.628 1.745 1.46l1.47-.305c-.302-1.533-1.626-2.688-3.213-2.69"}})])]):"hipercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("path",{attrs:{fill:"#C1272D",d:"M0 8.31A3.31 3.31 0 0 1 3.322 5h29.356A3.323 3.323 0 0 1 36 8.31v19.095a3.31 3.31 0 0 1-3.322 3.31H3.322A3.323 3.323 0 0 1 0 27.404V8.31zm2 14.42a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.084 94.084 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06zm12.264-10.234c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zm-1.74 10.234a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zm6.666-.704c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536zM14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068zm10.56-8.746c.143.006.34.01.589.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912zm-.142.66a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02zm5.145 3.816c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M30.157 22.73c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06zM25.012 18.914a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M25.153 18.254c.144.006.34.01.59.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M19.19 22.026c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M12.524 22.73a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zM14.264 12.496c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zM2 22.73a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.085 94.085 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06z"}})])]):"jcb"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#076BB3",rx:"3.316"}}),t._v(" "),a("rect",{attrs:{width:"26",height:"18",x:"5",y:"8.857",fill:"#FFF",rx:"2"}}),t._v(" "),a("path",{attrs:{fill:"#1162A9",d:"M7 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003H7V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#D01036",d:"M15 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#3CA537",d:"M23 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}})])]):"mastercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#353A48",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FF5E00",d:"M18.19 7.584a6.931 6.931 0 0 1 4.547-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696 6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#ED0006",d:"M18.19 7.584a7.122 7.122 0 0 0-2.464 5.404c0 2.164.956 4.101 2.463 5.404a6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#F9A000",d:"M18.19 18.392a7.122 7.122 0 0 0 2.463-5.404 7.122 7.122 0 0 0-2.464-5.404 6.931 6.931 0 0 1 4.548-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696z"}})])]):"visa"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#224DBA",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M12.266 17.15h-2.11L8.574 10.98c-.075-.284-.234-.535-.469-.653a6.763 6.763 0 0 0-1.934-.653v-.238H9.57c.469 0 .82.357.88.772l.82 4.451 2.109-5.223h2.05l-3.163 7.715zm4.336 0H14.61l1.64-7.715h1.993l-1.64 7.715zm4.218-5.578c.059-.415.41-.653.821-.653.645-.06 1.348.06 1.934.356l.352-1.66a4.946 4.946 0 0 0-1.817-.358c-1.934 0-3.34 1.069-3.34 2.552 0 1.128.996 1.72 1.7 2.078.76.356 1.054.593.995.95 0 .533-.586.77-1.171.77a4.932 4.932 0 0 1-2.051-.475l-.352 1.663a5.637 5.637 0 0 0 2.168.415c2.168.059 3.516-1.009 3.516-2.611 0-2.019-2.755-2.137-2.755-3.027zm9.728 5.578l-1.582-7.715h-1.7a.883.883 0 0 0-.82.594l-2.93 7.121h2.051l.41-1.127h2.52l.234 1.127h1.817zm-2.988-5.637l.585 2.908h-1.64l1.055-2.908z"}})])]):a("svg",{staticClass:"card-default",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"35.079",height:"24.793",x:".461",y:"5.461",fill:"#FFF",stroke:"#000","stroke-width":"2",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#000",d:"M0 13h36v4H0zM5 23h8v1H5z"}})])])])],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-780c27ab_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-780c27ab]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-780c27ab]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-780c27ab]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-780c27ab]{font-size:14px}}@media (min-width:1024px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-780c27ab]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-780c27ab]{font-size:1.56vw}}html[data-v-780c27ab]{box-sizing:border-box}*[data-v-780c27ab],[data-v-780c27ab]::after,[data-v-780c27ab]::before{box-sizing:border-box}.hide[data-v-780c27ab]{display:none}.input-card-number-group[data-v-780c27ab]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-card-number-group[data-v-780c27ab] .input-area{position:relative;width:100%}.input-card-number-group[data-v-780c27ab] .input-area .link{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-card-number-group[data-v-780c27ab] .input-area .link button{color:#12d3db;text-decoration-line:underline;font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;text-transform:none}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .input-area .link button{font-size:.9345794393rem}}.input-card-number-group[data-v-780c27ab].error-active .input{border-color:#ff4641!important}.input-card-number-group[data-v-780c27ab].error-active .helper{color:#ff4641!important}.input-card-number-group[data-v-780c27ab].size-lg .label{font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .label{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-lg .input{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .input{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-lg .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-780c27ab].size-sm .label{font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .label{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-sm .input{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .input{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-sm .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-780c27ab] .label{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .label{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab] .form-group{position:relative}.input-card-number-group[data-v-780c27ab] .form-group .card-icon{position:absolute;top:0;right:1.2380952381rem;width:1.7142857143rem;height:100%;display:flex;align-items:center}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .form-group .card-icon{top:.8411214953rem;width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-780c27ab] .form-group .card-icon svg{width:1.7142857143rem;height:1.619047619rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .form-group .card-icon svg{width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default rect{stroke:#dfdae4}.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:first-child,.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:nth-child(2){stroke:#dfdae4}.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:last-child,.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:nth-child(2){fill:#dfdae4}.input-card-number-group[data-v-780c27ab] .helper{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-780c27ab].is-disabled .label{color:#68596e}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]:hover{border-color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]::placeholder{color:#dfdae4;opacity:1}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]:-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]::-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .helper{color:#dfdae4}input[data-v-780c27ab]::-webkit-inner-spin-button,input[data-v-780c27ab]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-780c27ab]{-moz-appearance:textfield!important}.validation[data-v-780c27ab]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-780c27ab]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-780c27ab].inactive .close path{fill:#ff4641}.validation[data-v-780c27ab] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-780c27ab] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-780c27ab] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-780c27ab] svg path{fill:#dfdae4}.validation[data-v-780c27ab].active svg path{fill:#00cf72}.validation[data-v-780c27ab].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputCardNumber",components:{Input:A},props:{
|
|
780
|
+
*/,this.$emit("update",t)}}},"data-v-f1c8834e",!1,void 0,!1,g,void 0,void 0),H=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-card-number-group",class:[{"error-active":t.error,"is-disabled":t.disabled},"size-"+t.size]},[t.label?a("label",{staticClass:"label",style:{color:t.labelColor},domProps:{innerHTML:t._s(t.label)}}):t._e(),t._v(" "),a("div",{staticClass:"form-group"},[a("Input",{attrs:{name:t.name,value:t.value,type:"cc-number",numeric:!0,disabled:t.disabled},on:{update:t.onChange}}),t._v(" "),a("div",{staticClass:"card-icon"},["agi-plan"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#C3171E",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#013158",d:"M16.442 13.107L9 20v-4.13l5.213-4.828c1.5-1.39 4.864-1.39 6.364 0L24 14.212l-2.229 2.065-3.423-3.17c-.45-.416-1.457-.416-1.906 0"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.558 21.893L28 15v4.13l-5.213 4.828c-1.5 1.39-4.864 1.39-6.364 0L13 20.788l2.229-2.065 3.423 3.17c.45.417 1.457.416 1.906 0"}})])]):t._e(),t._v(" "),"american-express"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#007ECD",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M31.624 17.474h-1.58v-.796h1.379s.503.059.503-.273c0-.312-.752-.288-.752-.288s-1.226.106-1.226-1.03c0-1.128 1.107-1.064 1.107-1.064h1.7v.808h-1.368s-.474-.095-.474.246c0 .285.646.244.646.244s1.355-.099 1.355.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.107-.005-.107-.005zm-7.885.006v-3.45h2.77v.8h-1.877v.532h1.83v.784h-1.83v.586h1.877v.748h-2.77zm4.753-.006h-1.58v-.796h1.385s.497.059.497-.273c0-.312-.752-.288-.752-.288s-1.225.106-1.225-1.03c0-1.128 1.107-1.064 1.107-1.064h1.706v.808h-1.374s-.474-.095-.474.246c0 .285.645.244.645.244s1.356-.099 1.356.942c0 1.116-.873 1.216-1.183 1.216-.067 0-.108-.005-.108-.005zm-11.976.006h-.775l-.941-1.024-.947 1.024h-3.304v-3.462h3.232l1.019 1.1 1.024-1.094h.68v-.006h2.155s1.125-.123 1.125 1.017c0 1.018-.373 1.334-1.521 1.334h-.87v1.111h-.877zm-1.112-1.701l1.1 1.204v-2.404l-1.1 1.2zm-3.96.953h1.87l.876-.953-.876-.948h-1.87v.531h1.823v.785h-1.824v.585zm5.949-1.265h.917c.267 0 .486-.146.486-.327 0-.18-.22-.327-.486-.327h-.917v.654zm5.044 2.019v-.673s-.037-.526-.593-.526h-.864v1.199h-.888v-3.457h2.155s1.125-.134 1.125 1.012c0 .597-.498.807-.498.807s.427.199.427.783v.855h-.864zm-1.457-2.012h.918c.266 0 .485-.146.485-.328 0-.181-.219-.327-.485-.327h-.918v.655zm-.669-2.72h.893V9.288h-.893v3.468zm-6.879-.011V9.287h2.77v.806h-1.876v.533h1.83v.783h-1.83v.586h1.877v.748h-2.77zm-1.391 0v-2.386l-1.113 2.386H10.2l-1.119-2.375v2.375H7.33l-.308-.725H5.399l-.314.725h-.97l1.473-3.457h1.25l1.35 3.176V9.286H9.59l.977 2.147.97-2.147h1.404v3.457h-.9zm-6.263-1.609h.864l-.432-1.029-.432 1.03zm23.708 1.609l-1.408-2.31v2.31h-1.74l-.314-.725h-1.622l-.308.725h-1.392s-1.195-.17-1.195-1.632c0-1.918 1.356-1.842 1.403-1.854l1.095.03v.777l-.9.012s-.586 0-.657.755a2.464 2.464 0 0 0-.011.24c.003 1.168 1.026.806 1.06.795l1.1-2.58h1.243l1.332 3.135V9.286h1.255l1.391 2.276V9.286h.895v3.457h-1.227zm-4.705-1.609h.864l-.426-1.029-.438 1.03zm-5.773 1.609v-.673s-.035-.526-.591-.526h-.865v1.199h-.888V9.286h2.155s1.125-.134 1.125 1.012c0 .597-.497.807-.497.807s.432.2.432.784v.854h-.87zm-1.456-2.012h.918c.266 0 .485-.146.485-.328 0-.18-.219-.327-.485-.327h-.918v.655z"}})])]):"diners-club"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#2183CB",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M19.309 20.342h-2.635c-3.984-.065-7.196-3.384-7.196-7.419-.129-4.035 2.955-7.419 6.875-7.549h2.956c4.112-.065 7.453 3.319 7.517 7.484v.065c-.128 4.1-3.405 7.419-7.517 7.419zM16.867 6.676c-3.341 0-6.104 2.798-6.104 6.182 0 3.384 2.763 6.182 6.104 6.182s6.104-2.798 6.104-6.182c0-3.384-2.763-6.182-6.104-6.182zm.964 10.347V8.758c2.249.586 3.662 2.863 3.084 5.141-.386 1.562-1.542 2.733-3.084 3.124zm-1.928 0c-2.249-.586-3.598-2.929-3.02-5.206a4.253 4.253 0 0 1 3.02-3.059v8.265z"}})])]):"elo"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#231F20",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFCA05",d:"M8.374 9.43a3.095 3.095 0 0 1 1.003-.166c1.53 0 2.807 1.111 3.1 2.589l2.168-.453C14.148 8.89 11.978 7 9.377 7c-.596 0-1.169.1-1.705.282l.702 2.147z"}}),t._v(" "),a("path",{attrs:{fill:"#00A4DF",d:"M5.815 16.618l1.466-1.696A3.261 3.261 0 0 1 6.213 12.5c0-.964.413-1.83 1.067-2.422L5.813 8.381A5.542 5.542 0 0 0 4 12.499c0 1.64.702 3.112 1.815 4.12"}}),t._v(" "),a("path",{attrs:{fill:"#EE4123",d:"M12.476 13.148c-.294 1.477-1.57 2.586-3.1 2.586a3.08 3.08 0 0 1-1.003-.166l-.703 2.148a5.27 5.27 0 0 0 1.707.282c2.599 0 4.768-1.887 5.267-4.395l-2.168-.455z"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M20.875 14.325l-.001.002-.062-.043a1.754 1.754 0 0 1-.805.689c-.665.296-1.282.22-1.724-.178l-.041.064-.001-.001-.756 1.155c.188.133.39.246.6.336.835.355 1.688.339 2.53-.036a3.13 3.13 0 0 0 1.41-1.201l-1.15-.787zm-2.357-2.851c-.703.309-1.065.983-.99 1.773l2.976-1.31c-.512-.615-1.178-.82-1.986-.463zm-1.976 3.52a3.98 3.98 0 0 1-.226-.445 3.333 3.333 0 0 1-.07-2.47c.319-.888.928-1.568 1.715-1.914.99-.436 2.084-.35 3.032.226.603.353 1.03.899 1.354 1.67.041.1.078.205.113.295l-5.918 2.638zM24.529 8.463v6.424l.976.405-.554 1.324-1.078-.459a1.23 1.23 0 0 1-.532-.456 1.461 1.461 0 0 1-.208-.796V8.463h1.396zM27.059 13.25c0-.546.236-1.037.61-1.37l-1.002-1.143a3.38 3.38 0 0 0-1.108 2.512c-.001 1 .426 1.9 1.105 2.515l1-1.144a1.835 1.835 0 0 1-.605-1.37M28.839 15.074c-.198 0-.388-.034-.565-.094l-.478 1.455c.327.112.677.173 1.041.174 1.586.001 2.911-1.15 3.218-2.68l-1.47-.308c-.168.83-.886 1.454-1.746 1.453M28.843 9.896c-.364 0-.714.06-1.04.17l.474 1.457a1.76 1.76 0 0 1 .564-.093c.863 0 1.581.628 1.745 1.46l1.47-.305c-.302-1.533-1.626-2.688-3.213-2.69"}})])]):"hipercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("path",{attrs:{fill:"#C1272D",d:"M0 8.31A3.31 3.31 0 0 1 3.322 5h29.356A3.323 3.323 0 0 1 36 8.31v19.095a3.31 3.31 0 0 1-3.322 3.31H3.322A3.323 3.323 0 0 1 0 27.404V8.31zm2 14.42a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.084 94.084 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06zm12.264-10.234c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zm-1.74 10.234a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zm6.666-.704c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536zM14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068zm10.56-8.746c.143.006.34.01.589.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912zm-.142.66a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02zm5.145 3.816c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M30.157 22.73c.365-1.441.657-2.807.882-4.1.224-1.293.367-2.425.433-3.392.135.022.261.034.37.045a3.266 3.266 0 0 0 .63 0c.113-.01.236-.023.365-.045a6.33 6.33 0 0 0-.19.715 8.764 8.764 0 0 0-.128.78c.333-.525.69-.929 1.073-1.218.38-.287.748-.43 1.104-.43.062 0 .128.005.196.015.065.01.136.026.208.047a5.407 5.407 0 0 0-.214 1.304 9.568 9.568 0 0 0-.423-.081 1.883 1.883 0 0 0-.3-.027c-.69 0-1.218.444-1.588 1.333-.373.886-.688 2.57-.95 5.054-.17-.024-.317-.042-.438-.055a3.062 3.062 0 0 0-.322-.02c-.058 0-.134.005-.224.015-.091.01-.252.03-.484.06zM25.012 18.914a11.23 11.23 0 0 0-.043.498 8.03 8.03 0 0 0-.014.485c0 .735.173 1.298.523 1.691.35.394.849.592 1.499.592.407 0 .798-.096 1.176-.286.375-.19.77-.496 1.183-.913l.184.154a4.66 4.66 0 0 0-.201.485c-.063.17-.119.346-.166.529a5.346 5.346 0 0 1-1.222.607c-.39.13-.793.196-1.206.196-.982 0-1.766-.302-2.35-.905-.582-.604-.874-1.415-.874-2.432 0-1.298.375-2.387 1.128-3.266.754-.879 1.703-1.317 2.849-1.317.841 0 1.498.271 1.977.811.476.54.715 1.288.715 2.244 0 .053-.005.149-.015.295l-.038.532h-.345c-1.12-.021-1.917-.031-2.382-.031-.099 0-.418.002-.96.01s-1.012.016-1.418.02z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M25.153 18.254c.144.006.34.01.59.016.591.01.982.016 1.173.016.222 0 .653-.006 1.292-.016.252-.005.446-.01.582-.016.015-.167.028-.31.035-.427.008-.117.01-.22.01-.305 0-.587-.126-1.045-.375-1.38-.252-.333-.6-.5-1.04-.5-.527 0-.995.232-1.4.7-.406.466-.695 1.104-.867 1.912z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M14.594 27a74.13 74.13 0 0 0 1.287-5.454c.4-2.001.758-4.102 1.073-6.308a7.817 7.817 0 0 0 .634.047 9.1 9.1 0 0 0 .7-.047l-.28 1.093c.374-.433.772-.754 1.192-.965.42-.21.879-.318 1.378-.318.82 0 1.47.28 1.954.84.481.56.723 1.319.723 2.275 0 1.358-.38 2.49-1.144 3.392-.763.899-1.722 1.35-2.878 1.35-.476 0-.91-.151-1.302-.451-.39-.3-.663-.69-.814-1.176l-.332 1.75c-.02.096-.05.247-.088.45A85.764 85.764 0 0 0 16.07 27a12.027 12.027 0 0 0-.418-.068 1.766 1.766 0 0 0-.255-.023c-.103 0-.221.008-.357.023a5.8 5.8 0 0 0-.446.068z"}}),t._v(" "),a("path",{attrs:{fill:"#C1272D",d:"M19.19 22.026c.756 0 1.388-.388 1.894-1.165.506-.774.76-1.738.76-2.888 0-.667-.146-1.189-.438-1.57-.292-.377-.695-.568-1.206-.568-.783 0-1.433.389-1.954 1.168-.522.78-.784 1.744-.784 2.894 0 .7.146 1.233.436 1.593.29.356.72.536 1.292.536z"}}),t._v(" "),a("path",{attrs:{fill:"#FEFEFE",d:"M12.524 22.73a60.49 60.49 0 0 0 .962-4.376c.23-1.299.353-2.336.373-3.116.148.022.284.034.413.045a4.665 4.665 0 0 0 .755 0c.137-.01.275-.023.418-.045-.398 1.48-.71 2.86-.934 4.135-.224 1.277-.358 2.395-.4 3.357-.227-.03-.398-.05-.514-.06a3.439 3.439 0 0 0-.3-.016 3.19 3.19 0 0 0-.272.016c-.113.01-.28.03-.5.06zM14.264 12.496c0-.227.07-.412.212-.553a.727.727 0 0 1 .541-.21c.232 0 .411.067.54.2.128.133.19.32.19.563 0 .217-.07.4-.213.548a.71.71 0 0 1-.532.224.697.697 0 0 1-.526-.219.765.765 0 0 1-.212-.553zM2 22.73a70.789 70.789 0 0 0 1.136-4.927c.36-1.822.68-3.74.96-5.758.246.031.422.05.528.06a2.679 2.679 0 0 0 .597 0c.131-.013.3-.031.506-.06-.232.751-.466 1.715-.702 2.897l-.036.166-.302 1.507a94.085 94.085 0 0 0 2.662.06c.577 0 1.524-.018 2.841-.052a3.3 3.3 0 0 0 .267-.008l.353-1.72c.128-.658.221-1.194.276-1.612.058-.417.101-.831.131-1.238.202.031.366.05.489.06.126.01.24.016.337.016.068 0 .162-.005.277-.016.116-.01.295-.029.542-.06a98.917 98.917 0 0 0-1.347 5.85c-.36 1.842-.612 3.456-.756 4.835a12.782 12.782 0 0 0-.533-.065 2.644 2.644 0 0 0-.235-.01c-.098 0-.212.005-.343.015a9.21 9.21 0 0 0-.529.06 94.7 94.7 0 0 0 .482-1.905c.133-.553.234-.996.302-1.332l.406-2.062c-.45 0-.986-.003-1.612-.008-.628-.006-1.033-.008-1.214-.008-.497 0-.985 0-1.461.002-.479.003-.972.009-1.483.014l-.356 1.733a56.573 56.573 0 0 0-.284 1.66c-.09.59-.182 1.223-.275 1.906a18.159 18.159 0 0 0-.476-.057 3.155 3.155 0 0 0-.64-.003 9.14 9.14 0 0 0-.508.06z"}})])]):"jcb"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"36",height:"25.714",y:"5",fill:"#076BB3",rx:"3.316"}}),t._v(" "),a("rect",{attrs:{width:"26",height:"18",x:"5",y:"8.857",fill:"#FFF",rx:"2"}}),t._v(" "),a("path",{attrs:{fill:"#1162A9",d:"M7 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003H7V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#D01036",d:"M15 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}}),t._v(" "),a("path",{attrs:{fill:"#3CA537",d:"M23 13.86a3.004 3.004 0 0 1 3-3.003h3v10.997a3.004 3.004 0 0 1-3 3.003h-3V13.86z"}})])]):"mastercard"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#353A48",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FF5E00",d:"M18.19 7.584a6.931 6.931 0 0 1 4.547-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696 6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#ED0006",d:"M18.19 7.584a7.122 7.122 0 0 0-2.464 5.404c0 2.164.956 4.101 2.463 5.404a6.931 6.931 0 0 1-4.547 1.696c-3.872 0-7.01-3.179-7.01-7.1 0-3.922 3.138-7.1 7.01-7.1 1.735 0 3.323.638 4.547 1.696z"}}),t._v(" "),a("path",{attrs:{fill:"#F9A000",d:"M18.19 18.392a7.122 7.122 0 0 0 2.463-5.404 7.122 7.122 0 0 0-2.464-5.404 6.931 6.931 0 0 1 4.548-1.696c3.872 0 7.01 3.178 7.01 7.1 0 3.921-3.138 7.1-7.01 7.1a6.931 6.931 0 0 1-4.548-1.696z"}})])]):"visa"===t.flag?a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd",transform:"translate(0 5)"}},[a("rect",{attrs:{width:"36",height:"25.714",fill:"#224DBA",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#FFF",d:"M12.266 17.15h-2.11L8.574 10.98c-.075-.284-.234-.535-.469-.653a6.763 6.763 0 0 0-1.934-.653v-.238H9.57c.469 0 .82.357.88.772l.82 4.451 2.109-5.223h2.05l-3.163 7.715zm4.336 0H14.61l1.64-7.715h1.993l-1.64 7.715zm4.218-5.578c.059-.415.41-.653.821-.653.645-.06 1.348.06 1.934.356l.352-1.66a4.946 4.946 0 0 0-1.817-.358c-1.934 0-3.34 1.069-3.34 2.552 0 1.128.996 1.72 1.7 2.078.76.356 1.054.593.995.95 0 .533-.586.77-1.171.77a4.932 4.932 0 0 1-2.051-.475l-.352 1.663a5.637 5.637 0 0 0 2.168.415c2.168.059 3.516-1.009 3.516-2.611 0-2.019-2.755-2.137-2.755-3.027zm9.728 5.578l-1.582-7.715h-1.7a.883.883 0 0 0-.82.594l-2.93 7.121h2.051l.41-1.127h2.52l.234 1.127h1.817zm-2.988-5.637l.585 2.908h-1.64l1.055-2.908z"}})])]):a("svg",{staticClass:"card-default",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[a("rect",{attrs:{width:"35.079",height:"24.793",x:".461",y:"5.461",fill:"#FFF",stroke:"#000","stroke-width":"2",rx:"3.316"}}),t._v(" "),a("path",{attrs:{fill:"#000",d:"M0 13h36v4H0zM5 23h8v1H5z"}})])])])],1),t._v(" "),t.helper||t.error&&t.error.length>0?a("span",{staticClass:"helper",style:{color:t.helperColor},domProps:{innerHTML:t._s(t.error&&!t.disabled?t.error:t.helper)}}):t._e(),t._v(" "),t.validationCheck?a("div",{staticClass:"validation",class:t.validationCheckValue?"active":"inactive"},[t.error&&t.error.length>1?a("svg",{staticClass:"close",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M24.48 6.7a1.77 1.77 0 00-2.506-.001L16 12.66l-5.974-5.975a1.77 1.77 0 00-2.506 0 1.77 1.77 0 000 2.507l5.974 5.974L7.52 21.14a1.77 1.77 0 000 2.506 1.77 1.77 0 002.506 0L16 17.673l5.974 5.974a1.77 1.77 0 002.506 0 1.77 1.77 0 000-2.506l-5.974-5.974 5.974-5.974c.68-.68.68-1.814 0-2.494z"}})]):a("svg",{staticClass:"check",attrs:{viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[a("path",{attrs:{d:"M7.845 16.462L12 20.617 24.702 7.93c.78-.78 2.042-.78 2.823 0 .78.78.78 2.042 0 2.822L13.418 24.858c-.78.78-2.042.78-2.823 0l-5.573-5.573a1.994 1.994 0 010-2.823c.78-.78 2.042-.78 2.823 0z"}})])]):t._e()])},staticRenderFns:[]},(function(t){t&&t("data-v-780c27ab_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-780c27ab]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-780c27ab]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-780c27ab]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-780c27ab]{font-size:14px}}@media (min-width:1024px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-780c27ab]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-780c27ab]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-780c27ab]{font-size:1.56vw}}html[data-v-780c27ab]{box-sizing:border-box}*[data-v-780c27ab],[data-v-780c27ab]::after,[data-v-780c27ab]::before{box-sizing:border-box}.hide[data-v-780c27ab]{display:none}.input-card-number-group[data-v-780c27ab]{transition:all .3s;position:relative;display:flex;flex-direction:column;width:100%}.input-card-number-group[data-v-780c27ab] .input-area{position:relative;width:100%}.input-card-number-group[data-v-780c27ab] .input-area .link{position:absolute;top:0;bottom:0;right:16px;margin-top:auto;margin-bottom:auto;display:flex;align-content:center}.input-card-number-group[data-v-780c27ab] .input-area .link button{color:#12d3db;text-decoration-line:underline;font-family:Roboto;font-weight:700;font-size:.5714285714rem;line-height:1.25;text-align:right;text-transform:none}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .input-area .link button{font-size:.9345794393rem}}.input-card-number-group[data-v-780c27ab].error-active .input{border-color:#ff4641!important}.input-card-number-group[data-v-780c27ab].error-active .helper{color:#ff4641!important}.input-card-number-group[data-v-780c27ab].size-lg .label{font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .label{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-lg .input{padding:1.1428571429rem;font-size:.7619047619rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .input{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-lg .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-lg .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-780c27ab].size-sm .label{font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .label{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-sm .input{padding:.7619047619rem;font-size:.6666666667rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .input{padding:1.4953271028rem}}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .input{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab].size-sm .helper{font-size:.5714285714rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab].size-sm .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-780c27ab] .label{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .label{font-size:1.308411215rem}}.input-card-number-group[data-v-780c27ab] .form-group{position:relative}.input-card-number-group[data-v-780c27ab] .form-group .card-icon{position:absolute;top:0;right:1.2380952381rem;width:1.7142857143rem;height:100%;display:flex;align-items:center}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .form-group .card-icon{top:.8411214953rem;width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-780c27ab] .form-group .card-icon svg{width:1.7142857143rem;height:1.619047619rem}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .form-group .card-icon svg{width:2.9906542056rem;height:2.8037383178rem}}.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default rect{stroke:#dfdae4}.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:first-child,.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:nth-child(2){stroke:#dfdae4}.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:last-child,.input-card-number-group[data-v-780c27ab] .form-group .card-icon .card-default path:nth-child(2){fill:#dfdae4}.input-card-number-group[data-v-780c27ab] .helper{font-family:Roboto,sans-serif;color:#afa2ba;line-height:1;font-size:.5714285714rem;margin-top:.1904761905rem;text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.input-card-number-group[data-v-780c27ab] .helper{font-size:1.1214953271rem}}.input-card-number-group[data-v-780c27ab].is-disabled .label{color:#68596e}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]{background:#f8f7fc;border-color:#dfdae4!important;color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]:hover{border-color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]::placeholder{color:#dfdae4;opacity:1}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]:-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .input[disabled]::-ms-input-placeholder{color:#dfdae4}.input-card-number-group[data-v-780c27ab].is-disabled .helper{color:#dfdae4}input[data-v-780c27ab]::-webkit-inner-spin-button,input[data-v-780c27ab]::-webkit-outer-spin-button{-webkit-appearance:none!important}input[type=number][data-v-780c27ab]{-moz-appearance:textfield!important}.validation[data-v-780c27ab]{position:absolute;border-radius:50%;width:.7619047619rem;height:.7619047619rem;right:0;top:0}@media (max-width:479px){.validation[data-v-780c27ab]{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-780c27ab].inactive .close path{fill:#ff4641}.validation[data-v-780c27ab] .icon{width:.7619047619rem;height:.7619047619rem;display:flex}.validation[data-v-780c27ab] svg{width:.7619047619rem;height:.7619047619rem}@media (max-width:479px){.validation[data-v-780c27ab] svg{width:1.4953271028rem;height:1.4953271028rem}}.validation[data-v-780c27ab] svg path{fill:#dfdae4}.validation[data-v-780c27ab].active svg path{fill:#00cf72}.validation[data-v-780c27ab].active .close path{fill:#ff4641}',map:void 0,media:void 0})}),{name:"InputCardNumber",components:{Input:B},props:{
|
|
781
781
|
/**
|
|
782
782
|
* Nome do campo, utilizado no callback do evento<br>
|
|
783
783
|
* Example: `Name`
|
|
@@ -862,7 +862,7 @@ dataObject:{type:[Object,String]}},data:function(){return{}},methods:{onActive:f
|
|
|
862
862
|
* Evento disparado sempre que o campo for acionado.<br>
|
|
863
863
|
* Retorna um objeto com a prop dataObject.
|
|
864
864
|
*/
|
|
865
|
-
this.$emit("update",this.dataObject)}}},"data-v-1919f0c4",!1,void 0,!1,g,void 0,void 0),W=[],X=[],G=(new Date).getFullYear(),Y=1;Y<=31;Y++)W.push({key:Y,value:Y,name:Y});for(var J=0;J<18;J++)X.push({key:G-J,value:G-J,name:G-J});X.push({key:"outro",value:"Outro",name:"Outro"});for(var K=[{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}],Q=u({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("label",{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-18614788_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-18614788]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-18614788]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-18614788]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-18614788]{font-size:14px}}@media (min-width:1024px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-18614788]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-18614788]{font-size:1.56vw}}html[data-v-18614788]{box-sizing:border-box}*[data-v-18614788],[data-v-18614788]::after,[data-v-18614788]::before{box-sizing:border-box}.birthday-group[data-v-18614788]{transition:all .3s;display:flex;flex-direction:column;width:100%}.birthday-group.error-active .select[data-v-18614788]{border-color:#ff4641!important}.birthday-group.error-active .helper[data-v-18614788]{color:#ff4641}.birthday-group .birthday-select-list[data-v-18614788]{display:flex;width:100%;max-width:100%}.birthday-group .birthday-select-list .birthday-select-group[data-v-18614788]{flex:0 0 30%;max-width:30%}.birthday-group .birthday-select-list .birthday-select-group[data-v-18614788]:nth-child(2){flex:0 0 40%;max-width:40%;padding:0 .380952381rem}.birthday-group .birthday-select-list .birthday-select-group input[data-v-18614788],.birthday-group .birthday-select-list .birthday-select-group select[data-v-18614788]{width:100%}.birthday-group .label[data-v-18614788]{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-18614788]{font-size:1.308411215rem}}.birthday-group .helper[data-v-18614788]{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-18614788]{font-size:1.1214953271rem}}.birthday-group.is-disabled .label[data-v-18614788]{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-18614788]{background:#f8f7fc;border-color:#dfdae4!important}.birthday-group.is-disabled .select[disabled][data-v-18614788]:hover{border-color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-18614788]::placeholder{color:#dfdae4;opacity:1}.birthday-group.is-disabled .select[disabled][data-v-18614788]:-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-18614788]::-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .helper[data-v-18614788]{color:#dfdae4}',map:void 0,media:void 0})}),{name:"Birthday",components:{Select:j,Input:
|
|
865
|
+
this.$emit("update",this.dataObject)}}},"data-v-1919f0c4",!1,void 0,!1,g,void 0,void 0),W=[],X=[],G=(new Date).getFullYear(),Y=1;Y<=31;Y++)W.push({key:Y,value:Y,name:Y});for(var J=0;J<18;J++)X.push({key:G-J,value:G-J,name:G-J});X.push({key:"outro",value:"Outro",name:"Outro"});for(var K=[{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}],Q=u({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("label",{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-18614788_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-18614788]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-18614788]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-18614788]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-18614788]{font-size:14px}}@media (min-width:1024px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-18614788]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-18614788]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-18614788]{font-size:1.56vw}}html[data-v-18614788]{box-sizing:border-box}*[data-v-18614788],[data-v-18614788]::after,[data-v-18614788]::before{box-sizing:border-box}.birthday-group[data-v-18614788]{transition:all .3s;display:flex;flex-direction:column;width:100%}.birthday-group.error-active .select[data-v-18614788]{border-color:#ff4641!important}.birthday-group.error-active .helper[data-v-18614788]{color:#ff4641}.birthday-group .birthday-select-list[data-v-18614788]{display:flex;width:100%;max-width:100%}.birthday-group .birthday-select-list .birthday-select-group[data-v-18614788]{flex:0 0 30%;max-width:30%}.birthday-group .birthday-select-list .birthday-select-group[data-v-18614788]:nth-child(2){flex:0 0 40%;max-width:40%;padding:0 .380952381rem}.birthday-group .birthday-select-list .birthday-select-group input[data-v-18614788],.birthday-group .birthday-select-list .birthday-select-group select[data-v-18614788]{width:100%}.birthday-group .label[data-v-18614788]{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-18614788]{font-size:1.308411215rem}}.birthday-group .helper[data-v-18614788]{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-18614788]{font-size:1.1214953271rem}}.birthday-group.is-disabled .label[data-v-18614788]{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-18614788]{background:#f8f7fc;border-color:#dfdae4!important}.birthday-group.is-disabled .select[disabled][data-v-18614788]:hover{border-color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-18614788]::placeholder{color:#dfdae4;opacity:1}.birthday-group.is-disabled .select[disabled][data-v-18614788]:-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .select[disabled][data-v-18614788]::-ms-input-placeholder{color:#dfdae4}.birthday-group.is-disabled .helper[data-v-18614788]{color:#dfdae4}',map:void 0,media:void 0})}),{name:"Birthday",components:{Select:j,Input:B},props:{
|
|
866
866
|
/**
|
|
867
867
|
* Dia do nascimento<br>
|
|
868
868
|
* Example: 05
|
|
@@ -941,7 +941,7 @@ labelColor:{type:String,default:"#68596E"},
|
|
|
941
941
|
* Exibir mensagem de erro ou não<br>
|
|
942
942
|
* Example: `true`
|
|
943
943
|
* */
|
|
944
|
-
error:{type:Boolean,default:!1}},components:{Input:
|
|
944
|
+
error:{type:Boolean,default:!1}},components:{Input:B,Button:x,ScrollPicker:r,ScrollPickerGroup:d},data:function(){return{days:tt,months:rt,years:et,maxAgeAllowed:18,currentYear:at,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-205630f9",!1,void 0,!1,g,void 0,void 0),nt=u({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("label",{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-379eaa0e_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-379eaa0e]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-379eaa0e]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-379eaa0e]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-379eaa0e]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-379eaa0e]{font-size:14px}}@media (min-width:1024px){[data-v-379eaa0e]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-379eaa0e]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-379eaa0e]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-379eaa0e]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-379eaa0e]{font-size:1.56vw}}html[data-v-379eaa0e]{box-sizing:border-box}*[data-v-379eaa0e],[data-v-379eaa0e]::after,[data-v-379eaa0e]::before{box-sizing:border-box}.textarea-group[data-v-379eaa0e]{transition:all .3s;display:flex;flex-direction:column;width:100%}.textarea-group.error-active .textarea[data-v-379eaa0e]{border-color:#ff4641!important}.textarea-group.error-active .helper[data-v-379eaa0e]{color:#ff4641!important}.textarea-group .label[data-v-379eaa0e]{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-379eaa0e]{font-size:1.308411215rem}}.textarea-group .textarea[data-v-379eaa0e]{transition:all .3s;padding:.7619047619rem;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.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (max-width:479px){.textarea-group .textarea[data-v-379eaa0e]{padding:1.4953271028rem}}@media (max-width:479px){.textarea-group .textarea[data-v-379eaa0e]{font-size:1.308411215rem;min-height:12.1495327103rem;padding:1.4953271028rem}}.textarea-group .textarea[data-v-379eaa0e]::placeholder{color:#afa2ba;opacity:1}.textarea-group .textarea[data-v-379eaa0e]:-ms-input-placeholder{color:#afa2ba}.textarea-group .textarea[data-v-379eaa0e]::-ms-input-placeholder{color:#afa2ba}.textarea-group .textarea[data-v-379eaa0e]::-ms-expand{display:none}.textarea-group .textarea[data-v-379eaa0e]:hover{border-color:#afa2ba}.textarea-group .textarea[data-v-379eaa0e]:active,.textarea-group .textarea[data-v-379eaa0e]:focus{border-color:#12d3db}.textarea-group .helper-group[data-v-379eaa0e]{display:flex;justify-content:space-between}.textarea-group .helper-group .helper[data-v-379eaa0e]{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-379eaa0e]{font-size:1.1214953271rem}}.textarea-group .counter[data-v-379eaa0e]{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-379eaa0e]{margin-right:.380952381rem;font-size:1.1214953271rem}}.textarea-group.is-disabled .label[data-v-379eaa0e]{color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-379eaa0e]{background:#f8f7fc;border-color:#dfdae4!important}.textarea-group.is-disabled .textarea[disabled][data-v-379eaa0e]:hover{border-color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-379eaa0e]::placeholder{color:#dfdae4;opacity:1}.textarea-group.is-disabled .textarea[disabled][data-v-379eaa0e]:-ms-input-placeholder{color:#dfdae4}.textarea-group.is-disabled .textarea[disabled][data-v-379eaa0e]::-ms-input-placeholder{color:#dfdae4}',map:void 0,media:void 0})}),{name:"TextArea",props:{
|
|
945
945
|
/**
|
|
946
946
|
* Nome do campo, utilizado no callback do evento<br>
|
|
947
947
|
* Example: `Name`
|
|
@@ -1141,7 +1141,7 @@ color:{type:String,default:"#68596E"},
|
|
|
1141
1141
|
* Type of font<br>
|
|
1142
1142
|
* Example: `Regular | Bold`
|
|
1143
1143
|
**/
|
|
1144
|
-
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-9c585934",!1,void 0,!1,g,void 0,void 0),ht=u({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,t.dir],attrs:{dir:t.dir}},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog",class:t.bottomFixed?"":"modal-with-scroll"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items",class:t.divider?"divider":""},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon close-icon",on:{click:t.closeModal}},[a("Icon",{attrs:{name:"close",size:"md",fill:"#DFDAE4",stroke:"transparent"}})],1):t._e()])]),t._v(" "),a("div",{staticClass:"modal-header-content"},[a("Heading",{attrs:{kind:"h4",size:t.headingSize,color:t.headingColor}},[t._v(t._s(t.heading))]),t._v(" "),t.paragraph?a("Paragraph",{attrs:{size:t.paragraphSize,color:"'#ccc'"},domProps:{innerHTML:t._s(t.paragraph)}}):t._e()],1),t._v(" "),t._t("header")],2),t._v(" "),a("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),a("div",{staticClass:"modal-footer-items",class:t.bottomFixed?"":"modal-footer-relative"},[t._t("footer")],2)])])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-79d73da1_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-79d73da1]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-79d73da1]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-79d73da1]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-79d73da1]{font-size:14px}}@media (min-width:1024px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-79d73da1]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-79d73da1]{font-size:1.56vw}}html[data-v-79d73da1]{box-sizing:border-box}*[data-v-79d73da1],[data-v-79d73da1]::after,[data-v-79d73da1]::before{box-sizing:border-box}.modal[data-v-79d73da1]{display:block;position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow-y:auto;outline:0;font-family:Nunito,sans-serif;display:flex;align-items:center;justify-content:center}.modal-dialog[data-v-79d73da1]{transition:all .5s ease}.modal-backdrop[data-v-79d73da1]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-79d73da1]{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-79d73da1]{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-79d73da1]{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-79d73da1]{max-width:27.5238095238rem}.modal-container.size-lg .modal-dialog[data-v-79d73da1]{max-width:37.1428571429rem}.modal-container .modal-dialog[data-v-79d73da1]{width:100%;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-container .modal-dialog.modal-with-scroll[data-v-79d73da1]{margin-bottom:0!important;margin-top:168px!important;max-width:100%!important;overflow:auto!important;padding-bottom:80px}.modal-container .modal-dialog.modal-with-scroll .modal-content[data-v-79d73da1]{position:relative}}@media (max-width:479px){.modal-container .modal-dialog[data-v-79d73da1]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-79d73da1]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items.divider[data-v-79d73da1]{padding-bottom:1.1428571429rem;border-bottom:1px solid #dfdae4}@media (max-width:479px){.modal-header-items.divider[data-v-79d73da1]{padding-bottom:0;border-bottom:none}}.modal-header-items .modal-header-close[data-v-79d73da1]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-79d73da1]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-79d73da1]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-79d73da1] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-79d73da1]{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-79d73da1]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-79d73da1]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-79d73da1]{padding:1.4953271028rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-79d73da1]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-79d73da1]{width:100%;margin:0}hr[data-v-79d73da1]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-79d73da1]{display:none}}.modal-body[data-v-79d73da1]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-79d73da1]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-79d73da1]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem;border-top:1px solid #dfdae4}@media (max-width:479px){.modal-footer-items[data-v-79d73da1]{background:#fff;padding:1.4018691589rem 6.6666666667vw;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64);box-shadow:0 0 26px 0 #d7d1ef}}@media (max-width:479px){.modal-footer-items.modal-footer-relative[data-v-79d73da1]{position:relative;box-shadow:none}}.modal-footer-items[data-v-79d73da1] div:first-child{display:flex;justify-content:flex-start;flex-direction:row;width:100%}@media (max-width:479px){.modal-footer-items[data-v-79d73da1] div:first-child{flex-wrap:wrap;justify-content:center}}@media (max-width:479px){.modal-footer-items[data-v-79d73da1] div:first-child .btn-secondary{width:100%!important;margin-bottom:.7476635514rem}}.modal-footer-items[data-v-79d73da1] div:first-child .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-79d73da1] div:first-child .btn-ghost{width:100%!important;margin-left:0}}.rtl .modal-header-close[data-v-79d73da1]{right:auto;left:1.4953271028rem}.rtl .modal-footer-items[data-v-79d73da1] div button:first-child{margin-left:.380952381rem!important}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:x,Heading:z,Paragraph:C,Icon:w},props:{kind:{type:String,default:"primary"},size:{type:String,default:"lg"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},divider:{type:Boolean,required:!1},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0},bottomFixed:{type:Boolean,default:!0},dir:{type:String,default:"ltr",required:!1}},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-79d73da1",!1,void 0,!1,g,void 0,void 0),gt=require("axios"),vt=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-tool",class:[t.sidebarOpen?"active":"inactive",!t.isMobile&&t.toolbarAnimate?"shake":"stop-shake"],style:t.colorsVar},[t.isMobile?t._e():a("div",{staticClass:"backdrop",on:{click:function(e){"active"==t.sidebarOpen&&t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.sidebarOpen?"active":"inactive"],style:t.colorsVar},[a("div",{staticClass:"box-close",on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icons-close size-lg"},[t.preview_color?a("Icon",{attrs:{name:"close",fill:t.preview_color,stroke:t.preview_color,size:"md"}}):t._e()],1),t._v(" "),a("span",{staticClass:"icon icon-edit-menu size-lg"},[a("Icon",{attrs:{name:"edit",fill:"#fff",size:"md",stroke:"transparent"}})],1)]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:t.isMobile?"xs":"sm",color:"#68596E"}},[t._v(t._s(t.lang.editArea))])],1),t._v(" "),a("HR",{attrs:{height:"1px",color:t.preview_color}}),t._v(" "),t.properties?a("div",{staticClass:"itens-properties"},t._l(t.properties,(function(e,i){return a("div",{key:i,staticClass:"item",on:{click:function(a){return t.showModal(e)}}},[a("div",{staticClass:"text-list"},["nome"==e.code||24==e.property_id?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.dedication))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.moonerLabelSidebar))]):t._e(),t._v(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.pet))]):t._e(),t._v(" "),"numero"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label)+" - "+t._s(e.code))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Roteiro")]):t._e(),t._v(" "),"nome"==e.code||24==e.property_id?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?a("Paragraph",{staticClass:"dedication-text tool-value",attrs:{size:"sm"}},[t._v("\n "+t._s(t.dedicationFirstEdit?"Escreva uma dedicatória":t.current_dedication_text)+"\n ")]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e()],1),t._v(" "),a("Icon",{attrs:{name:"edit",size:"md",fill:t.preview_color,stroke:"transparent"}})],1)})),0):t._e(),t._v(" "),t.isMobile?a("Button",{staticClass:"continue-mobile-tools",attrs:{kind:"primary",size:"md",icon:"right",width:"fluid"},on:{click:t.clickContinue}},[a("Icon",{attrs:{name:"chevron-right",size:"md",stroke:"transparent"}}),t._v(" "),a("span",[t._v("Continuar")])],1):t._e()],1)]),t._v(" "),t.modalName?a("Modal",{attrs:{heading:t.lang.kidName,headingColor:t.preview_color,paragraph:"Para a personalização ficar mais legal use apenas o primeiro nome.",size:"md",bottomFixed:!1},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"name",label:t.lang.kidName,placeholder:"",helper:t.lang.recommendName,value:t.current_character_name,disabled:!1,maxlength:"20"},on:{update:t.updateName}}),t._v(" "),a("div",{staticClass:"name-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.saveName()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),t.isMobile?t._e():a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)],1):t._e(),t._v(" "),t.modalDedication?a("Modal",{attrs:{size:"md",heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication,bottomFixed:!1},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.current_dedication_text,label:t.lang.messageDedication,placeholder:t.lang.dedcationPlaceholder,maxlength:400,counter:!0,disabled:!1},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},update:t.updateDedicationText}}),t._v(" "),a("div",{staticClass:"dedication-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.saveDedication()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),t.isMobile?t._e():a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)],1):t._e(),t._v(" "),t.modalShirtNumber?a("Modal",{attrs:{heading:t.lang.editShirt},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"number",label:t.lang.shirtNumber,placeholder:"",helper:t.reccomendName,value:t.currentShirtNumber,disabled:!1},on:{change:t.updateShirtNumber}}),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)],1):t._e(),t._v(" "),t.modalLayout?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.layouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==e?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.image,alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLayout==e?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalLanguage?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.languages,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:e==t.currentLanguage?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.Image,alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.label))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLanguage==i?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalBirthdate?a("Modal",{attrs:{heading:t.lang.editDateBirth,size:"md"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[t.selectedBirthDay?a("div",{staticClass:"day"},[a("Select",{attrs:{selected:t.selectedBirthDay,name:"day",label:"Dia",placeholder:"Dia",options:t.days},on:{change:t.onChangeDay}})],1):t._e(),t._v(" "),t.selectedBirthMonth?a("div",{staticClass:"month"},[a("Select",{attrs:{selected:t.selectedBirthMonth,name:"month",label:"Mês",placeholder:"Mês",options:t.months},on:{change:t.onChangeMonth}})],1):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalPet?a("Modal",{staticClass:"modal-pet",attrs:{heading:"Altere o bichinho da história",headingColor:t.preview_color,paragraph:"Esse bichinho acompanhará <span>"+t.current_character_name+"</span> em toda a história.",size:"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[t.currentPet?a("div",{staticClass:"selected-pet",class:[t.currentPet?"active":"inactive",t.petAnimation?"fade-in-image":"inactive-pet"]},[t.currentPet&&t.currentPet.assets&&t.currentPet.assets.asset?a("div",[t.currentPetColor.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPetColor.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-pet").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-pet").value.name=e.target.value.toUpperCase()}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.selectPet))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"full-list",class:[t.currentPet?"active":"inactive"]},[t.listPet?a("div",{staticClass:"pet-list"},t._l(t.listPet.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentPet===e?"active":"inactive",on:{click:function(a){return t.setPet(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e(),t._v(" "),t.currentPet?a("div",{staticClass:"colors-list"},t._l(t.currentPet.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentPetColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),t.searchExtraProperty("nome-pet").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-pet").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-pet").value.newPet.assets.asset,alt:""}}),t._v(" "),a("br")]):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalMooner?a("Modal",{staticClass:"modal-mooner",attrs:{size:"lg",heading:t.currentTitleMooney,paragraph:t.currentParagraphMooney,divider:!0,headingColor:t.preview_color,haveClose:!0,bottomFixed:!1,paragraphSize:t.isMobile?"sm":"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"mooner-view"},[a("div",{staticClass:"mooner-selectors",style:t.currentMooner?"width: 60%;":""},[a("div",{staticClass:"mooney-align-center"},[a("label",{staticClass:"mooner-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"mooner-combo-list"},[a("div",{staticClass:"full-list",class:t.currentMooner?"active":"inactive"},[t.listMooner?a("div",{staticClass:"mooner-list",class:t.currentComboClassList},t._l(t.listMooner.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentMooner===e?"active":"inactive",on:{click:function(a){return t.setMooner(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e(),t._v(" "),t.currentMooner?a("div",{staticClass:"colors-list"},t._l(t.currentMooner.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentMoonerColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])])]),t._v(" "),t.currentMooner?a("div",{staticClass:"selected-mooner",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e()]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:0==t.currentMoonerName.length,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n "+t._s(t.isCreated?t.lang.moonerCtaFirstOpen:t.lang.moonerCta)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return e.preventDefault(),t.closeModal.apply(null,arguments)}}},[t._v("\n "+t._s(t.isCreated?"Escolher depois":"Fechar")+"\n ")])],1)]):t._e(),t._v(" "),t.modalFantasy?a("Modal",{staticClass:"modal-fantasy",attrs:{heading:"Fantasia",headingColor:t.preview_color,paragraph:"Descrição fantasia",haveClose:!1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"fantasy-view"},[a("div",{staticClass:"selected-fantasy",class:[t.currentFantasy?"active":"inactive",t.fantasyAnimation?"fade-in-image":"inactive-pet"]},[a("div",{staticClass:"fantasy-items"},[t.currentFantasy&&t.currentFantasy.assets&&t.currentFantasy.assets.asset?a("div",{staticClass:"clip-avatar"},[t.currentFantasy.assets.asset?a("img",{class:t.fantasyInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentFantasy.assets.asset,alt:""}}):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"avatar-fantasy"},t._l(t.avatarFantasy,(function(e,i){return a("div",{key:i,staticClass:"avatar-item"},[a("img",{attrs:{src:e.assets.asset,alt:""}}),t._v(" "),a("br")])})),0)])]),t._v(" "),a("div",[a("div",{staticClass:"pet-selectors",style:t.currentFantasy?"width: 100%;":""},[a("label",{staticClass:"pet-label"},[t._v("Fatansia")]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[t.listFantasy?a("div",{staticClass:"pet-list",class:t.currentFantasy?"active":"inactive"},t._l(t.listFantasy,(function(e,i){return a("div",{key:i,class:t.currentFantasy===e?"active":"inactive",on:{click:function(a){return t.setFantasy(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])])])]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!t.currentFantasy,inverted:!1},on:{click:function(e){return t.changeFantasyLayout()}}},[t._v("\n Prontinho salvar história\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n Escolher depois\n ")])],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-1e41a02b_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-1e41a02b]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-1e41a02b]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-1e41a02b]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-1e41a02b]{font-size:14px}}@media (min-width:1024px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-1e41a02b]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-1e41a02b]{font-size:1.56vw}}html[data-v-1e41a02b]{box-sizing:border-box}*[data-v-1e41a02b],[data-v-1e41a02b]::after,[data-v-1e41a02b]::before{box-sizing:border-box}.modal-pet[data-v-1e41a02b]{background-color:#000}.modal-pet .paragraph span[data-v-1e41a02b]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-pet .modal-content[data-v-1e41a02b]{padding-bottom:500px;overflow-y:scroll}}.modal-pet .pet-view[data-v-1e41a02b]{width:100%;display:flex}.modal-pet .pet-view .selected-pet[data-v-1e41a02b]{max-width:10.8571428571rem;width:100%;overflow:hidden}.modal-pet .pet-view .selected-pet .clip-mooney img[data-v-1e41a02b]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-pet .pet-view .selected-pet img[data-v-1e41a02b]{margin-top:-3.8095238095rem}.modal-pet .pet-view .pet-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.modal-pet .pet-view .pet-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-pet .pet-selectors[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors p[data-v-1e41a02b]{margin:0;font-size:.7619047619rem}.modal-pet .pet-selectors .input-text-group[data-v-1e41a02b]{padding-bottom:0}.modal-pet .pet-selectors .pet-combo-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list[data-v-1e41a02b]{flex-direction:column-reverse}}.modal-pet .pet-selectors .pet-combo-list .selected-pet[data-v-1e41a02b]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-1e41a02b]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-1e41a02b]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney img[data-v-1e41a02b]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-pet .pet-selectors .pet-combo-list .selected-pet img[data-v-1e41a02b]{margin-top:-.9523809524rem;opacity:0}.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-1e41a02b]{width:40%}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-1e41a02b]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .full-list[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors .pet-combo-list .full-list.active[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-1e41a02b]{transition:all .5s;width:100%;align-items:center;display:flex}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-1e41a02b]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .pet-list.inactive[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors .pet-combo-list .colors-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-pet .pet-selectors .pet-combo-list .color-selector[data-v-1e41a02b]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative}.modal-pet .pet-selectors .pet-combo-list .color-selector .main-color[data-v-1e41a02b]{width:100%;height:100%;display:block}.modal-pet .pet-selectors .pet-combo-list .color-selector .auxiliary[data-v-1e41a02b]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-pet .pet-list[data-v-1e41a02b]{width:100%;display:flex}.modal-pet .pet-list div[data-v-1e41a02b]{margin:.2380952381rem;cursor:pointer}.modal-pet .pet-list .inactive[data-v-1e41a02b]{opacity:.3}.modal-pet .pet-list img[data-v-1e41a02b]{width:100%}.modal-mooner[data-v-1e41a02b]{background-color:#000}.modal-mooner .paragraph span[data-v-1e41a02b]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-mooner .modal-content[data-v-1e41a02b]{padding-bottom:500px;overflow-y:scroll}}.modal-mooner .mooner-view[data-v-1e41a02b]{width:100%;display:flex}.modal-mooner .mooner-view .selected-mooner[data-v-1e41a02b]{max-width:40%;width:100%;overflow:hidden;padding-left:1.5238095238rem;padding-right:1.5238095238rem}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner[data-v-1e41a02b]{margin-top:0;padding-left:0;padding-right:0;max-width:100%;display:flex;justify-content:center}.modal-mooner .mooner-view .selected-mooner div[data-v-1e41a02b]{max-width:60%}}.modal-mooner .mooner-view .selected-mooner .clip-mooney img[data-v-1e41a02b]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-mooner .mooner-view .selected-mooner img[data-v-1e41a02b]{display:block}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner img[data-v-1e41a02b]{margin-top:.380952381rem;margin-bottom:-1.5238095238rem}}.modal-mooner .mooner-view .mooner-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.modal-mooner .mooner-view .mooner-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-mooner[data-v-1e41a02b] .modal-header-content b{font-weight:700!important;color:var(--preview-color)!important}.modal-mooner .mooner-selectors[data-v-1e41a02b]{width:100%;display:flex;align-items:center}@media (max-width:990px){.modal-mooner .mooner-selectors[data-v-1e41a02b]{width:100%!important}}.modal-mooner .mooner-selectors p[data-v-1e41a02b]{margin:0;font-size:.7619047619rem}.modal-mooner .mooner-selectors .input-text-group[data-v-1e41a02b]{padding-bottom:0}.modal-mooner .mooner-selectors .mooner-combo-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list[data-v-1e41a02b]{flex-direction:column-reverse}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner[data-v-1e41a02b]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-1e41a02b]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-1e41a02b]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney img[data-v-1e41a02b]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner img[data-v-1e41a02b]{margin-top:-.9523809524rem;opacity:0}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-1e41a02b]{width:40%}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-1e41a02b]{width:100%}}.modal-mooner .mooner-selectors .mooner-combo-list .full-list[data-v-1e41a02b]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .full-list.active[data-v-1e41a02b]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .colors-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector[data-v-1e41a02b]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .main-color[data-v-1e41a02b]{width:100%;height:100%;display:block}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .auxiliary[data-v-1e41a02b]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-mooner .mooner-list[data-v-1e41a02b]{width:100%;display:flex;align-items:flex-start;align-content:flex-start;gap:.380952381rem .380952381rem;align-self:stretch;flex-wrap:wrap}.modal-mooner .mooner-list div[data-v-1e41a02b]{cursor:pointer;width:23.572%;border-radius:.380952381rem;border:.0952380952rem solid var(--color-brand-primary-medium,#12d3db);background:#fff}@media (max-width:990px){.modal-mooner .mooner-list div[data-v-1e41a02b]{border-radius:.7476635514rem;border:.1869158879rem solid var(--color-brand-primary-medium,#12d3db);box-shadow:0 8px 14px 0 #dfdae4}}@media (max-width:990px){.modal-mooner .mooner-list.is-three[data-v-1e41a02b]{gap:.7476635514rem .7476635514rem}.modal-mooner .mooner-list.is-three div[data-v-1e41a02b]{width:31.6%}}.modal-mooner .mooner-list .inactive[data-v-1e41a02b]{border:2px solid var(--color-brand-primary-medium,#dfdae4);box-shadow:none!important}.modal-mooner .mooner-list img[data-v-1e41a02b]{width:100%}.main-tool[data-v-1e41a02b]{position:fixed;width:100%;height:100%}.main-tool.shake[data-v-1e41a02b]{-webkit-animation:shake-data-v-1e41a02b 1.6s ease-in-out infinite;animation:shake-data-v-1e41a02b 1.6s ease-in-out infinite}@media (max-width:990px){.main-tool[data-v-1e41a02b]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-1e41a02b]{content:"";width:100vw;height:100vh;background:rgba(104,89,110,0);backdrop-filter:blur(0);position:fixed;transition:all 1s ease;opacity:0;top:0}.main-tool.active[data-v-1e41a02b]{z-index:24;max-width:100%}.main-tool.active .backdrop[data-v-1e41a02b]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-1e41a02b]{display:none}}.main-tool.inactive[data-v-1e41a02b]{z-index:24;top:0;max-width:48px;right:0}.custom-properties[data-v-1e41a02b]{right:0;text-align:left;top:0;max-width:16.1904761905rem;font-family:Roboto;width:100%;position:fixed;z-index:3;overflow:initial;height:100vh;transition:all 1s ease;transform:translateX(100%)}@media (max-width:990px){.custom-properties[data-v-1e41a02b]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100%;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-1e41a02b]{opacity:0}.custom-properties.inactive .icon-edit[data-v-1e41a02b]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-1e41a02b]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-1e41a02b]{opacity:1}.custom-properties.active .icon-edit-menu[data-v-1e41a02b]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-1e41a02b]{background:#fff}.custom-properties .list-properties[data-v-1e41a02b]{background-color:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);width:100%;background-color:#fff;position:relative;height:100vh;z-index:3;padding:1.1428571429rem 2.7777777778vw}.custom-properties .list-properties hr[data-v-1e41a02b]{border-color:var(--preview-color)!important;margin-top:.7619047619rem;margin-bottom:0}@media (max-width:990px){.custom-properties .list-properties hr[data-v-1e41a02b]{margin-top:.3738317757rem;margin-bottom:0}}@media (max-width:990px){.custom-properties .list-properties[data-v-1e41a02b]{width:100%;height:auto;background-color:#fff;position:relative;border-radius:0;padding:2.2429906542rem 6.6666666667vw}}.custom-properties .title-custom-properties[data-v-1e41a02b]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-1e41a02b]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-1e41a02b]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;align-content:center;align-items:center}.custom-properties .itens-properties .item[data-v-1e41a02b]:last-child{border-bottom:0}@media (max-width:990px){.custom-properties .itens-properties .item[data-v-1e41a02b]:last-child{border-bottom:1px solid #dfdae4}}.custom-properties .itens-properties .item .text-list[data-v-1e41a02b]{width:90%}.custom-properties .itens-properties .item .text-list .tool-value[data-v-1e41a02b]{text-transform:uppercase}.custom-properties .itens-properties .paragraph[data-v-1e41a02b]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.custom-properties .itens-properties hr[data-v-1e41a02b]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-1e41a02b]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-1e41a02b]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-1e41a02b]{display:flex}.layout-option[data-v-1e41a02b]{background:#fff;border-radius:.4761904762rem;border:2px solid transparent;margin-top:5px;margin-bottom:5px;cursor:pointer;position:relative;flex-basis:100%;-webkit-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);-moz-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);margin:1%;overflow:hidden}.layout-option .panel-title[data-v-1e41a02b]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-1e41a02b]{font-family:Roboto;color:#68596e;width:8.3333333333vw;justify-content:center;align-self:center;align-items:center;font-size:.6666666667rem;padding-left:.4761904762rem}.layout-option .panel-title .flag[data-v-1e41a02b]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-1e41a02b]{border-radius:5px;border:solid 2px #e9eaed;background-color:#fff;width:1.4285714286rem;height:1.4285714286rem;display:flex;justify-content:center;align-self:center;align-items:center}.layout-option .panel-title .flag .icon svg[data-v-1e41a02b]{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon svg path[data-v-1e41a02b]{fill:#e9eaed!important}.layout-option.active[data-v-1e41a02b]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-1e41a02b]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-1e41a02b]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag svg path[data-v-1e41a02b]{fill:#fff!important}.color[data-v-1e41a02b]{height:1.9047619048rem;width:1.9047619048rem;display:block;border-radius:100%;margin-left:.2857142857rem;margin-right:.2857142857rem;padding:.1428571429rem;border:.0952380952rem solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;cursor:pointer}.color.is-selected[data-v-1e41a02b]{border-color:#01dfa1}.color .secondary-color[data-v-1e41a02b]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-1e41a02b]{width:100%;display:flex}.footer-pet .cancel[data-v-1e41a02b]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.mooner-view[data-v-1e41a02b]{width:100%;display:flex}@media (max-width:479px){.mooner-view[data-v-1e41a02b]{flex-wrap:wrap}}.mooner-view .selected-pet[data-v-1e41a02b]{max-width:10.8571428571rem;width:100%;overflow:hidden}.mooner-view .selected-pet .clip-mooney img[data-v-1e41a02b]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.mooner-view .selected-pet img[data-v-1e41a02b]{margin-top:-3.8095238095rem}.mooner-view .mooner-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:.7619047619rem;margin-bottom:.1904761905rem;display:block}@media (max-width:479px){.mooner-view .mooner-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.box-dates-columns[data-v-1e41a02b]{display:flex}.box-dates-columns .day[data-v-1e41a02b]{width:11.1111111111vw}.box-dates-columns .month[data-v-1e41a02b]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-1e41a02b]{width:2.4761904762rem;height:2.2857142857rem;top:.7619047619rem;background:var(--preview-color);box-shadow:4px 4px 16px rgba(175,162,186,.24);position:absolute;left:-2.2857142857rem;display:flex;justify-content:center;align-items:center;z-index:2;border-radius:50% 0 0 50%;cursor:pointer;transition:all .3s ease;animation-delay:.5s}@media (max-width:479px){.box-close[data-v-1e41a02b]{display:none}}.box-close .icon[data-v-1e41a02b]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s;display:flex;align-items:center;justify-content:center;color:#fff}.box-close .icon.icons-close[data-v-1e41a02b]{color:#12d3db}.box-close .icon.icons-close .icon[data-v-1e41a02b]{color:#12d3db}@media (max-width:990px){[data-v-1e41a02b] .name-footer button{width:100%!important;text-align:center}[data-v-1e41a02b] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-1e41a02b] .dedication-footer button{width:100%!important;text-align:center}[data-v-1e41a02b] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.fade-in-image-init[data-v-1e41a02b]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-1e41a02b]{animation:fadeIn-data-v-1e41a02b .5s;-webkit-animation:fadeIn-data-v-1e41a02b .5s;-moz-animation:fadeIn-data-v-1e41a02b .5s;-o-animation:fadeIn-data-v-1e41a02b .5s;-ms-animation:fadeIn-data-v-1e41a02b .5s}@keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}.bottom-bar-area[data-v-1e41a02b]{position:absolute;z-index:4;width:100%;bottom:0;left:0}.avatar[data-v-1e41a02b]{position:relative}.avatar .avatar-item[data-v-1e41a02b]{position:absolute;left:0;top:0}.fantasy-view[data-v-1e41a02b]{display:flex}.fantasy-view .pet-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.fantasy-view .pet-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.fantasy-view .selected-fantasy[data-v-1e41a02b]{position:relative;width:6.0952380952rem;height:9.5238095238rem}.fantasy-view .selected-fantasy .fantasy-items[data-v-1e41a02b]{width:6.0952380952rem;position:relative}.fantasy-view .selected-fantasy .fantasy-items .clip-avatar[data-v-1e41a02b]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:3}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy[data-v-1e41a02b]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:2}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item[data-v-1e41a02b]{position:absolute;left:0;top:0;width:6.0952380952rem}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item img[data-v-1e41a02b]{width:100%}@keyframes shake-data-v-1e41a02b{0%{-webkit-transform:translateX(0)}40%{-webkit-transform:translateX(-20px)}50%{-webkit-transform:translateX(0)}60%{-webkit-transform:translateX(-20px)}100%{-webkit-transform:translateX(0)}}.continue-mobile-tools[data-v-1e41a02b]{background-color:var(--preview-color)!important;margin-top:1.4953271028rem;margin-bottom:4.4859813084rem}.continue-mobile-tools span[data-v-1e41a02b]{color:#fff;position:relative;z-index:2}.continue-mobile-tools[data-v-1e41a02b]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-secondary[data-v-1e41a02b]{background-color:var(--preview-color)!important}.modal-footer-items .btn-secondary.is-disabled[data-v-1e41a02b]{background-color:#dfdae4!important}.modal-footer-items .btn-secondary span[data-v-1e41a02b]{color:#fff;position:relative;z-index:2}.modal-footer-items .btn-secondary[data-v-1e41a02b]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-ghost[data-v-1e41a02b]{color:var(--preview-color)!important;background-color:#fff!important;border:1px solid var(--preview-color)!important}.modal-footer-items .btn-ghost span[data-v-1e41a02b]{position:relative;z-index:2}.modal-footer-items .btn-ghost[data-v-1e41a02b]:hover:before{content:"";width:100%;height:100%;background-color:var(--preview-color)!important;display:block;position:absolute;opacity:.1}',map:void 0,media:void 0})}),{name:"PreviewTools",components:{Vue:n,Heading:z,Paragraph:C,Icon:w,Modal:ht,Input:A,Button:x,TextArea:nt,Select:j},props:{
|
|
1144
|
+
type:{type:String,default:"regular"}},data:function(){return{}}},"data-v-9c585934",!1,void 0,!1,g,void 0,void 0),ht=u({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,t.dir],attrs:{dir:t.dir}},[a("div",{staticClass:"modal"},[a("div",{staticClass:"modal-dialog",class:t.bottomFixed?"":"modal-with-scroll"},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header-items",class:t.divider?"divider":""},[a("div",{staticClass:"modal-header-close"},[a("div",{staticClass:"header-close"},[t.haveClose?a("span",{staticClass:"icon close-icon",on:{click:t.closeModal}},[a("Icon",{attrs:{name:"close",size:"md",fill:"#DFDAE4",stroke:"transparent"}})],1):t._e()])]),t._v(" "),a("div",{staticClass:"modal-header-content"},[a("Heading",{attrs:{kind:"h4",size:t.headingSize,color:t.headingColor}},[t._v(t._s(t.heading))]),t._v(" "),t.paragraph?a("Paragraph",{attrs:{size:t.paragraphSize,color:"'#ccc'"},domProps:{innerHTML:t._s(t.paragraph)}}):t._e()],1),t._v(" "),t._t("header")],2),t._v(" "),a("div",{staticClass:"modal-body"},[t._t("default")],2),t._v(" "),a("div",{staticClass:"modal-footer-items",class:t.bottomFixed?"":"modal-footer-relative"},[t._t("footer")],2)])])]),t._v(" "),a("div",{staticClass:"modal-backdrop",on:{click:t.closeModal}})])])},staticRenderFns:[]},(function(t){t&&t("data-v-79d73da1_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-79d73da1]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-79d73da1]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-79d73da1]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-79d73da1]{font-size:14px}}@media (min-width:1024px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-79d73da1]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-79d73da1]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-79d73da1]{font-size:1.56vw}}html[data-v-79d73da1]{box-sizing:border-box}*[data-v-79d73da1],[data-v-79d73da1]::after,[data-v-79d73da1]::before{box-sizing:border-box}.modal[data-v-79d73da1]{display:block;position:fixed;top:0;left:0;z-index:1050;width:100%;height:100%;overflow-y:auto;outline:0;font-family:Nunito,sans-serif;display:flex;align-items:center;justify-content:center}.modal-dialog[data-v-79d73da1]{transition:all .5s ease}.modal-backdrop[data-v-79d73da1]{transition:opacity .5s ease,backdrop-filter .5s ease}.modal-backdrop[data-v-79d73da1]{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-79d73da1]{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-79d73da1]{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-79d73da1]{max-width:27.5238095238rem}.modal-container.size-lg .modal-dialog[data-v-79d73da1]{max-width:37.1428571429rem}.modal-container .modal-dialog[data-v-79d73da1]{width:100%;border-radius:.7619047619rem!important;overflow:hidden!important;position:relative;pointer-events:none;margin:5% auto;box-shadow:#bbb}@media (max-width:479px){.modal-container .modal-dialog.modal-with-scroll[data-v-79d73da1]{margin-bottom:0!important;margin-top:168px!important;max-width:100%!important;overflow:auto!important;padding-bottom:80px}.modal-container .modal-dialog.modal-with-scroll .modal-content[data-v-79d73da1]{position:relative}}@media (max-width:479px){.modal-container .modal-dialog[data-v-79d73da1]{max-width:100%!important;margin-top:0!important;margin-bottom:0!important}}.modal-header-items[data-v-79d73da1]{align-items:center;color:#68596e;padding-top:16px 0}.modal-header-items.divider[data-v-79d73da1]{padding-bottom:1.1428571429rem;border-bottom:1px solid #dfdae4}@media (max-width:479px){.modal-header-items.divider[data-v-79d73da1]{padding-bottom:0;border-bottom:none}}.modal-header-items .modal-header-close[data-v-79d73da1]{padding:0 16px;padding-top:16px;text-align:right}@media (max-width:479px){.modal-header-items .modal-header-close[data-v-79d73da1]{padding:0;position:absolute;top:-3.4579439252rem;right:1.4953271028rem;width:100%}}.modal-header-items .modal-header-close .header-close[data-v-79d73da1]{display:flex;justify-content:flex-end;cursor:pointer}.modal-header-items .modal-header-close .header-close:hover span[data-v-79d73da1] svg path{fill:#12d3db}.modal-header-items .modal-header-close .header-close span[data-v-79d73da1]{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-79d73da1]{max-width:2.2429906542rem;max-height:2.2429906542rem;width:100%}}.modal-header-items .modal-header-content[data-v-79d73da1]{padding:0 1.9047619048rem}@media (max-width:479px){.modal-header-items .modal-header-content[data-v-79d73da1]{padding:1.4953271028rem 6.6666666667vw 0}}.modal-header-items .modal-header-content .heading[data-v-79d73da1]{width:100%;margin:0}.modal-header-items .modal-header-content .paragraph[data-v-79d73da1]{width:100%;margin:0}hr[data-v-79d73da1]{margin:0;height:1px;background-color:#dfdae4;border:0}@media (max-width:479px){hr[data-v-79d73da1]{display:none}}.modal-body[data-v-79d73da1]{padding:.7619047619rem 1.9047619048rem}@media (max-width:479px){.modal-body[data-v-79d73da1]{padding:1.4953271028rem 6.6666666667vw 16px}}.modal-footer-items[data-v-79d73da1]{display:flex;justify-content:flex-start;flex-direction:row;padding:.7619047619rem 1.9047619048rem;border-top:1px solid #dfdae4}@media (max-width:479px){.modal-footer-items[data-v-79d73da1]{background:#fff;padding:1.4018691589rem 6.6666666667vw;position:fixed;width:100%;bottom:0;border-top:solid 1px rgba(223,218,228,.64);box-shadow:0 0 26px 0 #d7d1ef}}@media (max-width:479px){.modal-footer-items.modal-footer-relative[data-v-79d73da1]{position:relative;box-shadow:none}}.modal-footer-items[data-v-79d73da1] div:first-child{display:flex;justify-content:flex-start;flex-direction:row;width:100%}@media (max-width:479px){.modal-footer-items[data-v-79d73da1] div:first-child{flex-wrap:wrap;justify-content:center}}@media (max-width:479px){.modal-footer-items[data-v-79d73da1] div:first-child .btn-secondary{width:100%!important;margin-bottom:.7476635514rem}}.modal-footer-items[data-v-79d73da1] div:first-child .btn-ghost{margin-left:.380952381rem}@media (max-width:479px){.modal-footer-items[data-v-79d73da1] div:first-child .btn-ghost{width:100%!important;margin-left:0}}.rtl .modal-header-close[data-v-79d73da1]{right:auto;left:1.4953271028rem}.rtl .modal-footer-items[data-v-79d73da1] div button:first-child{margin-left:.380952381rem!important}',map:void 0,media:void 0})}),{name:"Modal",components:{Button:x,Heading:z,Paragraph:C,Icon:w},props:{kind:{type:String,default:"primary"},size:{type:String,default:"lg"},heading:{type:String,required:!0},headingSize:{type:String,default:"sm"},headingColor:{type:String,default:"#68596E"},divider:{type:Boolean,required:!1},paragraph:{type:String},paragraphSize:{type:String,default:"lg"},haveClose:{type:Boolean,default:!0},bottomFixed:{type:Boolean,default:!0},dir:{type:String,default:"ltr",required:!1}},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-79d73da1",!1,void 0,!1,g,void 0,void 0),gt=require("axios"),vt=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"main-tool",class:[t.sidebarOpen?"active":"inactive",!t.isMobile&&t.toolbarAnimate?"shake":"stop-shake"],style:t.colorsVar},[t.isMobile?t._e():a("div",{staticClass:"backdrop",on:{click:function(e){"active"==t.sidebarOpen&&t.toggleSidebar()}}}),t._v(" "),a("div",{staticClass:"custom-properties",class:[t.sidebarOpen?"active":"inactive"],style:t.colorsVar},[a("div",{staticClass:"box-close",on:{click:function(e){return t.toggleSidebar()}}},[a("span",{staticClass:"icon icons-close size-lg"},[t.preview_color?a("Icon",{attrs:{name:"close",fill:t.preview_color,stroke:t.preview_color,size:"md"}}):t._e()],1),t._v(" "),a("span",{staticClass:"icon icon-edit-menu size-lg"},[a("Icon",{attrs:{name:"edit",fill:"#fff",size:"md",stroke:"transparent"}})],1)]),t._v(" "),a("div",{staticClass:"list-properties"},[a("div",{staticClass:"title-custom-properties"},[a("Heading",{attrs:{kind:"h4",size:t.isMobile?"xs":"sm",color:"#68596E"}},[t._v(t._s(t.lang.editArea))])],1),t._v(" "),a("HR",{attrs:{height:"1px",color:t.preview_color}}),t._v(" "),t.properties?a("div",{staticClass:"itens-properties"},t._l(t.properties,(function(e,i){return a("div",{key:i,staticClass:"item",on:{click:function(a){return t.showModal(e)}}},[a("div",{staticClass:"text-list"},["nome"==e.code||24==e.property_id?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.name))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.dedication))]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.moonerLabelSidebar))]):t._e(),t._v(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.pet))]):t._e(),t._v(" "),"numero"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label)+" - "+t._s(e.code))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v(t._s(t.lang.birthday_label))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Fantasia")]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{attrs:{size:"xs",color:"#AFA2BA"}},[t._v("Roteiro")]):t._e(),t._v(" "),"nome"==e.code||24==e.property_id?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"dedicatoria"==e.code||26==e.property_id?a("Paragraph",{staticClass:"dedication-text tool-value",attrs:{size:"sm"}},[t._v("\n "+t._s(t.dedicationFirstEdit?"Escreva uma dedicatória":t.current_dedication_text)+"\n ")]):t._e(),t._v(" "),"nome-do-mooner"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"nome-pet"==e.code?a("Paragraph",{attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"birthday"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"fantasy"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"languages"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e(),t._v(" "),"layouts"==e.code?a("Paragraph",{staticClass:"tool-value",attrs:{size:"sm"}},[t._v(t._s(e.value))]):t._e()],1),t._v(" "),a("Icon",{attrs:{name:"edit",size:"md",fill:t.preview_color,stroke:"transparent"}})],1)})),0):t._e(),t._v(" "),t.isMobile?a("Button",{staticClass:"continue-mobile-tools",attrs:{kind:"primary",size:"md",icon:"right",width:"fluid"},on:{click:t.clickContinue}},[a("Icon",{attrs:{name:"chevron-right",size:"md",stroke:"transparent"}}),t._v(" "),a("span",[t._v("Continuar")])],1):t._e()],1)]),t._v(" "),t.modalName?a("Modal",{attrs:{heading:t.lang.kidName,headingColor:t.preview_color,paragraph:"Para a personalização ficar mais legal use apenas o primeiro nome.",size:"md",bottomFixed:!1},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"name",label:t.lang.kidName,placeholder:"",helper:t.lang.recommendName,value:t.current_character_name,disabled:!1,maxlength:"20"},on:{update:t.updateName}}),t._v(" "),a("div",{staticClass:"name-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.saveName()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),t.isMobile?t._e():a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)],1):t._e(),t._v(" "),t.modalDedication?a("Modal",{attrs:{size:"md",heading:t.lang.dedicationFree,headingColor:t.preview_color,paragraph:t.lang.cusutomDedication,bottomFixed:!1},on:{closeModal:t.closeModal}},[a("TextArea",{attrs:{name:"dedication",value:t.current_dedication_text,label:t.lang.messageDedication,placeholder:t.lang.dedcationPlaceholder,maxlength:400,counter:!0,disabled:!1},on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:void e.preventDefault()},update:t.updateDedicationText}}),t._v(" "),a("div",{staticClass:"dedication-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.saveDedication()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),t.isMobile?t._e():a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)],1):t._e(),t._v(" "),t.modalShirtNumber?a("Modal",{attrs:{heading:t.lang.editShirt},on:{closeModal:t.closeModal}},[a("Input",{attrs:{type:"text",numeric:!1,name:"number",label:t.lang.shirtNumber,placeholder:"",helper:t.reccomendName,value:t.currentShirtNumber,disabled:!1},on:{change:t.updateShirtNumber}}),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)],1):t._e(),t._v(" "),t.modalLayout?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.layouts,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:t.currentLayout==e?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.image,alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.name))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLayout==e?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalLanguage?a("Modal",{attrs:{heading:t.lang.chooseScript,paragraph:t.lang.choosePetLabel1+" <b>"+t.current_character_name+"</b> "+t.lang.choosePetLabel1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"layout-boxes"},t._l(t.languages,(function(e,i){return a("div",{key:i,staticClass:"layout-option",class:e==t.currentLanguage?"active":"inactive",on:{click:function(e){return t.setCurrentLayout(i)}}},[a("div",{staticClass:"imagem"},[a("img",{attrs:{width:"100%",src:e.Image,alt:""}})]),t._v(" "),a("div",{staticClass:"panel-title"},[a("div",{staticClass:"title"},[t._v(t._s(e.label))]),t._v(" "),a("div",{staticClass:"flag",class:t.currentLanguage==i?"active":"inactive"},[a("Icon",{attrs:{name:"check"}})],1)])])})),0),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalBirthdate?a("Modal",{attrs:{heading:t.lang.editDateBirth,size:"md"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"box-dates-columns"},[t.selectedBirthDay?a("div",{staticClass:"day"},[a("Select",{attrs:{selected:t.selectedBirthDay,name:"day",label:"Dia",placeholder:"Dia",options:t.days},on:{change:t.onChangeDay}})],1):t._e(),t._v(" "),t.selectedBirthMonth?a("div",{staticClass:"month"},[a("Select",{attrs:{selected:t.selectedBirthMonth,name:"month",label:"Mês",placeholder:"Mês",options:t.months},on:{change:t.onChangeMonth}})],1):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalPet?a("Modal",{staticClass:"modal-pet",attrs:{heading:"Altere o bichinho da história",headingColor:t.preview_color,paragraph:"Esse bichinho acompanhará <span>"+t.current_character_name+"</span> em toda a história.",size:"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"pet-view"},[t.currentPet?a("div",{staticClass:"selected-pet",class:[t.currentPet?"active":"inactive",t.petAnimation?"fade-in-image":"inactive-pet"]},[t.currentPet&&t.currentPet.assets&&t.currentPet.assets.asset?a("div",[t.currentPetColor.assets.asset?a("img",{class:t.petInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentPetColor.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"pet-selectors",style:t.currentPetColor?"width: 70%;":""},[a("div",{},[a("Input",{attrs:{value:t.searchExtraProperty("nome-pet").value.name,error:"",helper:"",label:t.lang.typePetname,name:"currentPetName"},on:{input:function(e){t.searchExtraProperty("nome-pet").value.name=e.target.value.toUpperCase()}}})],1),t._v(" "),a("label",{staticClass:"pet-label"},[t._v(t._s(t.lang.selectPet))]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[a("div",{staticClass:"full-list",class:[t.currentPet?"active":"inactive"]},[t.listPet?a("div",{staticClass:"pet-list"},t._l(t.listPet.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentPet===e?"active":"inactive",on:{click:function(a){return t.setPet(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e(),t._v(" "),t.currentPet?a("div",{staticClass:"colors-list"},t._l(t.currentPet.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentPetColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])]),t._v(" "),t.searchExtraProperty("nome-pet").value.newPet?a("div",{staticClass:"pet-avatar",style:t.searchExtraProperty("nome-pet").value.newPet?"width: 30%;":""},[a("img",{attrs:{src:t.searchExtraProperty("nome-pet").value.newPet.assets.asset,alt:""}}),t._v(" "),a("br")]):t._e()]),t._v(" "),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n "+t._s(t.lang.update)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n "+t._s(t.lang.cancel)+"\n ")])],1)]):t._e(),t._v(" "),t.modalMooner?a("Modal",{staticClass:"modal-mooner",attrs:{size:"lg",heading:t.currentTitleMooney,paragraph:t.currentParagraphMooney,divider:!0,headingColor:t.preview_color,haveClose:!0,bottomFixed:!1,paragraphSize:t.isMobile?"sm":"lg"},on:{closeModal:t.closeModal}},[a("div",{staticClass:"mooner-view"},[a("div",{staticClass:"mooner-selectors",style:t.currentMooner?"width: 60%;":""},[a("div",{staticClass:"mooney-align-center"},[a("label",{staticClass:"mooner-label"},[t._v(t._s(t.lang.moonerLabelSelector))]),t._v(" "),a("div",{staticClass:"mooner-combo-list"},[a("div",{staticClass:"full-list",class:t.currentMooner?"active":"inactive"},[t.listMooner?a("div",{staticClass:"mooner-list",class:t.currentComboClassList},t._l(t.listMooner.assets.subcategories,(function(e,i){return a("div",{key:i,class:t.currentMooner===e?"active":"inactive",on:{click:function(a){return t.setMooner(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e(),t._v(" "),t.currentMooner?a("div",{staticClass:"colors-list"},t._l(t.currentMooner.assets.colors,(function(e,i){return a("div",{key:i,class:t.currentMoonerColor===e?"active":"inactive",on:{click:function(a){return t.setColor(e)}}},[a("div",{staticClass:"color-selector"},[a("span",{staticClass:"main-color",style:"background-color:"+e.hexa+";"}),t._v(" "),a("span",{staticClass:"auxiliary",style:"background-color:"+e.auxiliary+";"})]),t._v(" "),a("br")])})),0):t._e()])])])]),t._v(" "),t.currentMooner?a("div",{staticClass:"selected-mooner",class:[t.currentMooner?"active":"inactive",t.moonerAnimation?"fade-in-image":"inactive-pet"]},[t.currentMooner&&t.currentMooner.assets&&t.currentMooner.assets.asset?a("div",[t.currentMooner.assets.asset?a("img",{class:t.moonerInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentMooner.assets.asset,width:"100%",alt:""}}):t._e()]):t._e()]):t._e()]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:0==t.currentMoonerName.length,inverted:!1},on:{click:function(e){return t.changeMoonerLayout()}}},[t._v("\n "+t._s(t.isCreated?t.lang.moonerCtaFirstOpen:t.lang.moonerCta)+"\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:function(e){return e.preventDefault(),t.closeModal.apply(null,arguments)}}},[t._v("\n "+t._s(t.isCreated?"Escolher depois":"Fechar")+"\n ")])],1)]):t._e(),t._v(" "),t.modalFantasy?a("Modal",{staticClass:"modal-fantasy",attrs:{heading:"Fantasia",headingColor:t.preview_color,paragraph:"Descrição fantasia",haveClose:!1},on:{closeModal:t.closeModal}},[a("div",{staticClass:"fantasy-view"},[a("div",{staticClass:"selected-fantasy",class:[t.currentFantasy?"active":"inactive",t.fantasyAnimation?"fade-in-image":"inactive-pet"]},[a("div",{staticClass:"fantasy-items"},[t.currentFantasy&&t.currentFantasy.assets&&t.currentFantasy.assets.asset?a("div",{staticClass:"clip-avatar"},[t.currentFantasy.assets.asset?a("img",{class:t.fantasyInitAnimation?"fade-in-image-init":"",attrs:{src:t.currentFantasy.assets.asset,alt:""}}):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"avatar-fantasy"},t._l(t.avatarFantasy,(function(e,i){return a("div",{key:i,staticClass:"avatar-item"},[a("img",{attrs:{src:e.assets.asset,alt:""}}),t._v(" "),a("br")])})),0)])]),t._v(" "),a("div",[a("div",{staticClass:"pet-selectors",style:t.currentFantasy?"width: 100%;":""},[a("label",{staticClass:"pet-label"},[t._v("Fatansia")]),t._v(" "),a("div",{staticClass:"pet-combo-list"},[t.listFantasy?a("div",{staticClass:"pet-list",class:t.currentFantasy?"active":"inactive"},t._l(t.listFantasy,(function(e,i){return a("div",{key:i,class:t.currentFantasy===e?"active":"inactive",on:{click:function(a){return t.setFantasy(e)}}},[a("img",{attrs:{src:e.assets.icon,alt:""}}),t._v(" "),a("br")])})),0):t._e()])])])]),t._v(" "),a("div",{staticClass:"mooner-footer",attrs:{slot:"footer"},slot:"footer"},[a("Button",{attrs:{kind:"secondary",size:"md",width:"liquid",disabled:!t.currentFantasy,inverted:!1},on:{click:function(e){return t.changeFantasyLayout()}}},[t._v("\n Prontinho salvar história\n ")]),t._v(" "),a("Button",{attrs:{kind:"ghost",size:"md",width:"liquid",disabled:!1,inverted:!1},on:{click:t.closeModal}},[t._v("\n Escolher depois\n ")])],1)]):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-1e41a02b_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-1e41a02b]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-1e41a02b]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-1e41a02b]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-1e41a02b]{font-size:14px}}@media (min-width:1024px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-1e41a02b]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-1e41a02b]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-1e41a02b]{font-size:1.56vw}}html[data-v-1e41a02b]{box-sizing:border-box}*[data-v-1e41a02b],[data-v-1e41a02b]::after,[data-v-1e41a02b]::before{box-sizing:border-box}.modal-pet[data-v-1e41a02b]{background-color:#000}.modal-pet .paragraph span[data-v-1e41a02b]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-pet .modal-content[data-v-1e41a02b]{padding-bottom:500px;overflow-y:scroll}}.modal-pet .pet-view[data-v-1e41a02b]{width:100%;display:flex}.modal-pet .pet-view .selected-pet[data-v-1e41a02b]{max-width:10.8571428571rem;width:100%;overflow:hidden}.modal-pet .pet-view .selected-pet .clip-mooney img[data-v-1e41a02b]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-pet .pet-view .selected-pet img[data-v-1e41a02b]{margin-top:-3.8095238095rem}.modal-pet .pet-view .pet-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.modal-pet .pet-view .pet-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-pet .pet-selectors[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors p[data-v-1e41a02b]{margin:0;font-size:.7619047619rem}.modal-pet .pet-selectors .input-text-group[data-v-1e41a02b]{padding-bottom:0}.modal-pet .pet-selectors .pet-combo-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list[data-v-1e41a02b]{flex-direction:column-reverse}}.modal-pet .pet-selectors .pet-combo-list .selected-pet[data-v-1e41a02b]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-1e41a02b]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney[data-v-1e41a02b]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet .clip-mooney img[data-v-1e41a02b]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-pet .pet-selectors .pet-combo-list .selected-pet img[data-v-1e41a02b]{margin-top:-.9523809524rem;opacity:0}.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-1e41a02b]{width:40%}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .selected-pet.active[data-v-1e41a02b]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .full-list[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors .pet-combo-list .full-list.active[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-1e41a02b]{transition:all .5s;width:100%;align-items:center;display:flex}@media (max-width:990px){.modal-pet .pet-selectors .pet-combo-list .pet-list[data-v-1e41a02b]{width:100%}}.modal-pet .pet-selectors .pet-combo-list .pet-list.inactive[data-v-1e41a02b]{width:100%}.modal-pet .pet-selectors .pet-combo-list .colors-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-pet .pet-selectors .pet-combo-list .color-selector[data-v-1e41a02b]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative}.modal-pet .pet-selectors .pet-combo-list .color-selector .main-color[data-v-1e41a02b]{width:100%;height:100%;display:block}.modal-pet .pet-selectors .pet-combo-list .color-selector .auxiliary[data-v-1e41a02b]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-pet .pet-list[data-v-1e41a02b]{width:100%;display:flex}.modal-pet .pet-list div[data-v-1e41a02b]{margin:.2380952381rem;cursor:pointer}.modal-pet .pet-list .inactive[data-v-1e41a02b]{opacity:.3}.modal-pet .pet-list img[data-v-1e41a02b]{width:100%}.modal-mooner[data-v-1e41a02b]{background-color:#000}.modal-mooner .paragraph span[data-v-1e41a02b]{color:var(--preview-color);font-weight:700}@media (max-width:990px){.modal-mooner .modal-content[data-v-1e41a02b]{padding-bottom:500px;overflow-y:scroll}}.modal-mooner .mooner-view[data-v-1e41a02b]{width:100%;display:flex}.modal-mooner .mooner-view .selected-mooner[data-v-1e41a02b]{max-width:40%;width:100%;overflow:hidden;padding-left:1.5238095238rem;padding-right:1.5238095238rem}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner[data-v-1e41a02b]{margin-top:0;padding-left:0;padding-right:0;max-width:100%;display:flex;justify-content:center}.modal-mooner .mooner-view .selected-mooner div[data-v-1e41a02b]{max-width:60%}}.modal-mooner .mooner-view .selected-mooner .clip-mooney img[data-v-1e41a02b]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.modal-mooner .mooner-view .selected-mooner img[data-v-1e41a02b]{display:block}@media (max-width:479px){.modal-mooner .mooner-view .selected-mooner img[data-v-1e41a02b]{margin-top:.380952381rem;margin-bottom:-1.5238095238rem}}.modal-mooner .mooner-view .mooner-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.modal-mooner .mooner-view .mooner-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.modal-mooner[data-v-1e41a02b] .modal-header-content b{font-weight:700!important;color:var(--preview-color)!important}.modal-mooner .mooner-selectors[data-v-1e41a02b]{width:100%;display:flex;align-items:center}@media (max-width:990px){.modal-mooner .mooner-selectors[data-v-1e41a02b]{width:100%!important}}.modal-mooner .mooner-selectors p[data-v-1e41a02b]{margin:0;font-size:.7619047619rem}.modal-mooner .mooner-selectors .input-text-group[data-v-1e41a02b]{padding-bottom:0}.modal-mooner .mooner-selectors .mooner-combo-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list[data-v-1e41a02b]{flex-direction:column-reverse}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner[data-v-1e41a02b]{width:0%;transition:width .5s;max-height:9.5238095238rem}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-1e41a02b]{max-height:11.619047619rem;overflow:hidden;display:block}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney[data-v-1e41a02b]{max-height:22.8037383178rem;overflow:hidden;display:flex;justify-content:center}}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner .clip-mooney img[data-v-1e41a02b]{max-width:80%;margin:0 auto;margin-top:-1.4285714286rem}}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner img[data-v-1e41a02b]{margin-top:-.9523809524rem;opacity:0}.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-1e41a02b]{width:40%}@media (max-width:990px){.modal-mooner .mooner-selectors .mooner-combo-list .selected-mooner.active[data-v-1e41a02b]{width:100%}}.modal-mooner .mooner-selectors .mooner-combo-list .full-list[data-v-1e41a02b]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .full-list.active[data-v-1e41a02b]{width:100%}.modal-mooner .mooner-selectors .mooner-combo-list .colors-list[data-v-1e41a02b]{display:flex;flex-wrap:wrap;justify-content:space-evenly;max-width:100%;justify-content:flex-start}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector[data-v-1e41a02b]{width:1.619047619rem;height:1.619047619rem;border-radius:500px;overflow:hidden;cursor:pointer;margin-right:.7619047619rem;border:2px solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .main-color[data-v-1e41a02b]{width:100%;height:100%;display:block}.modal-mooner .mooner-selectors .mooner-combo-list .color-selector .auxiliary[data-v-1e41a02b]{width:50%;height:100%;position:absolute;right:0;top:0}.modal-mooner .mooner-list[data-v-1e41a02b]{width:100%;display:flex;align-items:flex-start;align-content:flex-start;gap:.380952381rem .380952381rem;align-self:stretch;flex-wrap:wrap}.modal-mooner .mooner-list div[data-v-1e41a02b]{cursor:pointer;width:23.572%;border-radius:.380952381rem;border:.0952380952rem solid var(--color-brand-primary-medium,#12d3db);background:#fff}@media (max-width:990px){.modal-mooner .mooner-list div[data-v-1e41a02b]{border-radius:.7476635514rem;border:.1869158879rem solid var(--color-brand-primary-medium,#12d3db);box-shadow:0 8px 14px 0 #dfdae4}}@media (max-width:990px){.modal-mooner .mooner-list.is-three[data-v-1e41a02b]{gap:.7476635514rem .7476635514rem}.modal-mooner .mooner-list.is-three div[data-v-1e41a02b]{width:31.6%}}.modal-mooner .mooner-list .inactive[data-v-1e41a02b]{border:2px solid var(--color-brand-primary-medium,#dfdae4);box-shadow:none!important}.modal-mooner .mooner-list img[data-v-1e41a02b]{width:100%}.main-tool[data-v-1e41a02b]{position:fixed;width:100%;height:100%}.main-tool.shake[data-v-1e41a02b]{-webkit-animation:shake-data-v-1e41a02b 1.6s ease-in-out infinite;animation:shake-data-v-1e41a02b 1.6s ease-in-out infinite}@media (max-width:990px){.main-tool[data-v-1e41a02b]{position:relative;width:100%!important;max-width:100%!important}}.main-tool .backdrop[data-v-1e41a02b]{content:"";width:100vw;height:100vh;background:rgba(104,89,110,0);backdrop-filter:blur(0);position:fixed;transition:all 1s ease;opacity:0;top:0}.main-tool.active[data-v-1e41a02b]{z-index:24;max-width:100%}.main-tool.active .backdrop[data-v-1e41a02b]{background:rgba(104,89,110,.8);backdrop-filter:blur(8px);cursor:pointer;opacity:1}@media (max-width:990px){.main-tool.active .backdrop[data-v-1e41a02b]{display:none}}.main-tool.inactive[data-v-1e41a02b]{z-index:24;top:0;max-width:48px;right:0}.custom-properties[data-v-1e41a02b]{right:0;text-align:left;top:0;max-width:16.1904761905rem;font-family:Roboto;width:100%;position:fixed;z-index:3;overflow:initial;height:100vh;transition:all 1s ease;transform:translateX(100%)}@media (max-width:990px){.custom-properties[data-v-1e41a02b]{max-width:100%;width:100%;left:0;bottom:0;border-radius:0;top:0;background:0 0;height:100%;transform:translateX(0);position:relative}}.custom-properties.inactive .icon-close[data-v-1e41a02b]{opacity:0}.custom-properties.inactive .icon-edit[data-v-1e41a02b]{opacity:1;transform:rotate(0)}.custom-properties.active[data-v-1e41a02b]{z-index:10;transform:translateX(0)}.custom-properties.active .icon-close[data-v-1e41a02b]{opacity:1}.custom-properties.active .icon-edit-menu[data-v-1e41a02b]{opacity:0;transform:rotate(-180deg)}.custom-properties.active .box-close[data-v-1e41a02b]{background:#fff}.custom-properties .list-properties[data-v-1e41a02b]{background-color:#fff;box-shadow:4px 4px 16px rgba(175,162,186,.24);width:100%;background-color:#fff;position:relative;height:100vh;z-index:3;padding:1.1428571429rem 2.7777777778vw}.custom-properties .list-properties hr[data-v-1e41a02b]{border-color:var(--preview-color)!important;margin-top:.7619047619rem;margin-bottom:0}@media (max-width:990px){.custom-properties .list-properties hr[data-v-1e41a02b]{margin-top:.3738317757rem;margin-bottom:0}}@media (max-width:990px){.custom-properties .list-properties[data-v-1e41a02b]{width:100%;height:auto;background-color:#fff;position:relative;border-radius:0;padding:2.2429906542rem 6.6666666667vw}}.custom-properties .title-custom-properties[data-v-1e41a02b]{padding-bottom:.7619047619rem 0;width:100%;line-height:15px}.custom-properties .title-custom-properties span[data-v-1e41a02b]{font-family:Nunito;font-size:14px;color:#68596e}.custom-properties .itens-properties .item[data-v-1e41a02b]{position:relative;padding:.7619047619rem 0;border-bottom:1px solid #dfdae4;cursor:pointer;width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;align-content:center;align-items:center}.custom-properties .itens-properties .item[data-v-1e41a02b]:last-child{border-bottom:0}@media (max-width:990px){.custom-properties .itens-properties .item[data-v-1e41a02b]:last-child{border-bottom:1px solid #dfdae4}}.custom-properties .itens-properties .item .text-list[data-v-1e41a02b]{width:90%}.custom-properties .itens-properties .item .text-list .tool-value[data-v-1e41a02b]{text-transform:uppercase}.custom-properties .itens-properties .paragraph[data-v-1e41a02b]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.custom-properties .itens-properties hr[data-v-1e41a02b]{margin:0!important;margin-bottom:10px!important;margin-top:10px!important}.custom-properties .itens-properties .flex[data-v-1e41a02b]{cursor:pointer;position:relative}.custom-properties .itens-properties .flex svg[data-v-1e41a02b]{position:absolute;right:0;top:.8571428571rem}.layout-boxes[data-v-1e41a02b]{display:flex}.layout-option[data-v-1e41a02b]{background:#fff;border-radius:.4761904762rem;border:2px solid transparent;margin-top:5px;margin-bottom:5px;cursor:pointer;position:relative;flex-basis:100%;-webkit-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);-moz-box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);box-shadow:-1px 2px 22px -14px rgba(0,0,0,.75);margin:1%;overflow:hidden}.layout-option .panel-title[data-v-1e41a02b]{display:flex;padding-bottom:.4761904762rem}.layout-option .panel-title .title[data-v-1e41a02b]{font-family:Roboto;color:#68596e;width:8.3333333333vw;justify-content:center;align-self:center;align-items:center;font-size:.6666666667rem;padding-left:.4761904762rem}.layout-option .panel-title .flag[data-v-1e41a02b]{text-align:center;width:2.7777777778vw}.layout-option .panel-title .flag .icon[data-v-1e41a02b]{border-radius:5px;border:solid 2px #e9eaed;background-color:#fff;width:1.4285714286rem;height:1.4285714286rem;display:flex;justify-content:center;align-self:center;align-items:center}.layout-option .panel-title .flag .icon svg[data-v-1e41a02b]{width:1.4285714286rem;height:1.4285714286rem}.layout-option .panel-title .flag .icon svg path[data-v-1e41a02b]{fill:#e9eaed!important}.layout-option.active[data-v-1e41a02b]{border:2px solid #01dfa1}.layout-option.active .panel-title .title[data-v-1e41a02b]{color:#68596e}.layout-option.active .panel-title .flag span[data-v-1e41a02b]{border:solid 2px #2dd3d8;background-color:#2dd3d8}.layout-option.active .panel-title .flag svg path[data-v-1e41a02b]{fill:#fff!important}.color[data-v-1e41a02b]{height:1.9047619048rem;width:1.9047619048rem;display:block;border-radius:100%;margin-left:.2857142857rem;margin-right:.2857142857rem;padding:.1428571429rem;border:.0952380952rem solid #efefef;-webkit-transition:border-color .3s cubic-bezier(.4,0,.2,1);transition:border-color .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden;cursor:pointer}.color.is-selected[data-v-1e41a02b]{border-color:#01dfa1}.color .secondary-color[data-v-1e41a02b]{width:50%;position:absolute;right:0;height:100%;top:0}.footer-pet[data-v-1e41a02b]{width:100%;display:flex}.footer-pet .cancel[data-v-1e41a02b]{margin-left:20px;background-color:none;background-image:none;box-shadow:none;padding:0;border-radius:0;color:#68596e;background:0 0}.mooner-view[data-v-1e41a02b]{width:100%;display:flex}@media (max-width:479px){.mooner-view[data-v-1e41a02b]{flex-wrap:wrap}}.mooner-view .selected-pet[data-v-1e41a02b]{max-width:10.8571428571rem;width:100%;overflow:hidden}.mooner-view .selected-pet .clip-mooney img[data-v-1e41a02b]{margin-top:0;margin-left:-1.9047619048rem;margin-bottom:-1.9047619048rem}.mooner-view .selected-pet img[data-v-1e41a02b]{margin-top:-3.8095238095rem}.mooner-view .mooner-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:.7619047619rem;margin-bottom:.1904761905rem;display:block}@media (max-width:479px){.mooner-view .mooner-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.box-dates-columns[data-v-1e41a02b]{display:flex}.box-dates-columns .day[data-v-1e41a02b]{width:11.1111111111vw}.box-dates-columns .month[data-v-1e41a02b]{padding-left:.7619047619rem;width:22.2222222222vw}.box-close[data-v-1e41a02b]{width:2.4761904762rem;height:2.2857142857rem;top:.7619047619rem;background:var(--preview-color);box-shadow:4px 4px 16px rgba(175,162,186,.24);position:absolute;left:-2.2857142857rem;display:flex;justify-content:center;align-items:center;z-index:2;border-radius:50% 0 0 50%;cursor:pointer;transition:all .3s ease;animation-delay:.5s}@media (max-width:479px){.box-close[data-v-1e41a02b]{display:none}}.box-close .icon[data-v-1e41a02b]{width:1.5238095238rem;height:1.5238095238rem;position:absolute;transition:all .5s ease;animation-delay:.5s;display:flex;align-items:center;justify-content:center;color:#fff}.box-close .icon.icons-close[data-v-1e41a02b]{color:#12d3db}.box-close .icon.icons-close .icon[data-v-1e41a02b]{color:#12d3db}@media (max-width:990px){[data-v-1e41a02b] .name-footer button{width:100%!important;text-align:center}[data-v-1e41a02b] .name-footer button div{width:100%;text-align:center!important;display:block!important}}@media (max-width:990px){[data-v-1e41a02b] .dedication-footer button{width:100%!important;text-align:center}[data-v-1e41a02b] .dedication-footer button div{width:100%;text-align:center!important;display:block!important}}.fade-in-image-init[data-v-1e41a02b]{transition:all .5s;opacity:1!important}.fade-in-image[data-v-1e41a02b]{animation:fadeIn-data-v-1e41a02b .5s;-webkit-animation:fadeIn-data-v-1e41a02b .5s;-moz-animation:fadeIn-data-v-1e41a02b .5s;-o-animation:fadeIn-data-v-1e41a02b .5s;-ms-animation:fadeIn-data-v-1e41a02b .5s}@keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}@-ms-keyframes fadeIn-data-v-1e41a02b{0%{opacity:0}100%{opacity:1}}.bottom-bar-area[data-v-1e41a02b]{position:absolute;z-index:4;width:100%;bottom:0;left:0}.avatar[data-v-1e41a02b]{position:relative}.avatar .avatar-item[data-v-1e41a02b]{position:absolute;left:0;top:0}.fantasy-view[data-v-1e41a02b]{display:flex}.fantasy-view .pet-label[data-v-1e41a02b]{font-family:Roboto,sans-serif;color:#68596e;line-height:1.5;font-size:.7619047619rem;text-align:left;margin-top:1.1428571429rem;display:block}@media (max-width:479px){.fantasy-view .pet-label[data-v-1e41a02b]{font-size:1.308411215rem;margin-top:1.4953271028rem}}.fantasy-view .selected-fantasy[data-v-1e41a02b]{position:relative;width:6.0952380952rem;height:9.5238095238rem}.fantasy-view .selected-fantasy .fantasy-items[data-v-1e41a02b]{width:6.0952380952rem;position:relative}.fantasy-view .selected-fantasy .fantasy-items .clip-avatar[data-v-1e41a02b]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:3}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy[data-v-1e41a02b]{width:100%;height:100%;top:0;position:absolute;left:0;z-index:2}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item[data-v-1e41a02b]{position:absolute;left:0;top:0;width:6.0952380952rem}.fantasy-view .selected-fantasy .fantasy-items .avatar-fantasy .avatar-item img[data-v-1e41a02b]{width:100%}@keyframes shake-data-v-1e41a02b{0%{-webkit-transform:translateX(0)}40%{-webkit-transform:translateX(-20px)}50%{-webkit-transform:translateX(0)}60%{-webkit-transform:translateX(-20px)}100%{-webkit-transform:translateX(0)}}.continue-mobile-tools[data-v-1e41a02b]{background-color:var(--preview-color)!important;margin-top:1.4953271028rem;margin-bottom:4.4859813084rem}.continue-mobile-tools span[data-v-1e41a02b]{color:#fff;position:relative;z-index:2}.continue-mobile-tools[data-v-1e41a02b]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-secondary[data-v-1e41a02b]{background-color:var(--preview-color)!important}.modal-footer-items .btn-secondary.is-disabled[data-v-1e41a02b]{background-color:#dfdae4!important}.modal-footer-items .btn-secondary span[data-v-1e41a02b]{color:#fff;position:relative;z-index:2}.modal-footer-items .btn-secondary[data-v-1e41a02b]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.modal-footer-items .btn-ghost[data-v-1e41a02b]{color:var(--preview-color)!important;background-color:#fff!important;border:1px solid var(--preview-color)!important}.modal-footer-items .btn-ghost span[data-v-1e41a02b]{position:relative;z-index:2}.modal-footer-items .btn-ghost[data-v-1e41a02b]:hover:before{content:"";width:100%;height:100%;background-color:var(--preview-color)!important;display:block;position:absolute;opacity:.1}',map:void 0,media:void 0})}),{name:"PreviewTools",components:{Vue:n,Heading:z,Paragraph:C,Icon:w,Modal:ht,Input:B,Button:x,TextArea:nt,Select:j},props:{
|
|
1145
1145
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1146
1146
|
uuid:{type:String,required:!0},
|
|
1147
1147
|
/** Slug of product on builder `bb-a-grande-viagem` */
|
|
@@ -1231,7 +1231,7 @@ this.currentPetColor=t},showModal:function(t){
|
|
|
1231
1231
|
// console.log(modalName);
|
|
1232
1232
|
"nome"!=t.code&&24!=t.property_id||(this.modalName=!0),"dedicatoria"!=t.code&&26!=t.property_id||(this.modalDedication=!0),"nome-do-mooner"==t.code&&(this.modalMooner=!0),"nome-pet"==t.code&&(this.modalPet=!0),"script"==t.code&&(this.modalLayout=!0),"camisa"==t.code&&(this.modalShirtNumber=!0),"birthday"==t.code&&(this.modalBirthdate=!0),"fantasy"==t.code&&(this.modalFantasy=!0),"languages"==t.code&&(this.modalLanguage=!0),"layouts"==t.code&&(this.modalLayout=!0)},showModalName:function(){this.modalName=!0},showmodalLayout:function(){this.modalLayout=!0},showModalDedication:function(){this.modalDedication=!0},showModalShirtNumber:function(){this.modalShirtNumber=!0},showModalBirthdate:function(){this.modalBirthdate=!0},showModalPet:function(){
|
|
1233
1233
|
|
|
1234
|
-
},searchExtraProperty:function(t){var e=null;return Object.entries(this.properties).forEach((function(a){a[1].code===t&&(e=a[1])})),e},searchCustomUserDataProperty:function(t){var e=null;return Object.entries(t).forEach((function(t){"nome-do-mooner"==t[0]&&(e=t[1])})),e},searchCategoryProperty:function(t,e){var a=null;return Object.keys(t).forEach((function(i){t[i].code.includes(e)&&(a=t[i]),console.log(i+" - "+t[i])})),a},getTreeList:function(){var t=this;return
|
|
1234
|
+
},searchExtraProperty:function(t){var e=null;return Object.entries(this.properties).forEach((function(a){a[1].code===t&&(e=a[1])})),e},searchCustomUserDataProperty:function(t){var e=null;return Object.entries(t).forEach((function(t){"nome-do-mooner"==t[0]&&(e=t[1])})),e},searchCategoryProperty:function(t,e){var a=null;return Object.keys(t).forEach((function(i){t[i].code.includes(e)&&(a=t[i]),console.log(i+" - "+t[i])})),a},getTreeList:function(){var t=this;return A(T().mark((function e(){var a,i;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:
|
|
1235
1235
|
// Todo Guto
|
|
1236
1236
|
return i="https://builder.dentrodahistoria.com.br/api/v2/characters/"+(a=t).character_id+"/categories/assets/treelist?character_type_id="+a.type_id+"&subscription="+a.is_subscription+"&product_id="+parseInt(a.product_id),a.character_position_id&&(i=i+"&character_position_id="+parseInt(a.character_position_id)),e.abrupt("return",gt.get(i).then((function(t){var e=[];t.data.character_categories_assets&&t.data.character_categories_assets[0]&&t.data.character_categories_assets[0].characters_extra&&(
|
|
1237
1237
|
// Get mooner from extra character customization
|
|
@@ -1243,7 +1243,7 @@ t.data.character_categories_assets[0].characters_extra.forEach((function(t){"pet
|
|
|
1243
1243
|
//Get pet from extra character customization
|
|
1244
1244
|
t.data.character_categories_assets[0].characters_extra.forEach((function(t){"fantasia"===t.code&&(a.typeRead||(a.modalFantasy=!0,
|
|
1245
1245
|
// Criar categorias com ou sem cadeirante
|
|
1246
|
-
t.assets.subcategories.forEach((function(t){(1==a.haveWheelChair&&1==t.name.includes("cadeirante")||0==a.haveWheelChair&&0==t.name.includes("cadeirante"))&&e.push(t)})))),a.listFantasy=e,a.setFantasy(a.listFantasy[0])})))})).catch((function(t){console.log(t)})));case 4:case"end":return e.stop()}}),e)})))()},closeModal:function(){this.modalLayout=!1,this.modalName=!1,this.modalDedication=!1,this.modalShirtNumber=!1,this.modalPet=!1,this.modalMooner=!1,this.modalBirthdate=!1,this.modalFantasy=!1,this.modalLanguage=!1},setCurrentLayout:function(t){this.currentLayout=t,this.firstBookSelected=!0},initMounted:function(){var t=this;return
|
|
1246
|
+
t.assets.subcategories.forEach((function(t){(1==a.haveWheelChair&&1==t.name.includes("cadeirante")||0==a.haveWheelChair&&0==t.name.includes("cadeirante"))&&e.push(t)})))),a.listFantasy=e,a.setFantasy(a.listFantasy[0])})))})).catch((function(t){console.log(t)})));case 4:case"end":return e.stop()}}),e)})))()},closeModal:function(){this.modalLayout=!1,this.modalName=!1,this.modalDedication=!1,this.modalShirtNumber=!1,this.modalPet=!1,this.modalMooner=!1,this.modalBirthdate=!1,this.modalFantasy=!1,this.modalLanguage=!1},setCurrentLayout:function(t){this.currentLayout=t,this.firstBookSelected=!0},initMounted:function(){var t=this;return A(T().mark((function e(){var a;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,e.next=3,a.getProductInfo();case 3:a.getCustomCharacter();
|
|
1247
1247
|
//alert("deu load novamente");
|
|
1248
1248
|
// self.getProductInfo();
|
|
1249
1249
|
// self.getTreeList();
|
|
@@ -1267,7 +1267,7 @@ t.setHeaderMoonner()),t.properties.numero&&t.properties.mes){t.selectedBirthDay=
|
|
|
1267
1267
|
// Linguagens
|
|
1268
1268
|
if(e.data.assets.forEach((function(e,a){e.assets.name.includes("roupa-cadeirante")&&(t.haveWheelChair=!0)})),e.data.assets.forEach((function(a,i){if(a.assets.name.includes("fantasia")){var o={code:"fantasy",value:a.assets.name};t.properties.fantasy=o,t.avatarFantasy=e.data.assets}})),t.languages&&t.language){t.languages.forEach((function(e){e.Slug==t.language&&(t.currentLanguage=e)}));var o={code:"languages",value:t.currentLanguage.Label};t.properties.languages=o}
|
|
1269
1269
|
// Layouts
|
|
1270
|
-
if(t.layouts&&t.layout){t.layouts.forEach((function(e){e.builderProductId==t.layout&&(t.currentLayout=e)}));var r={code:"layouts",value:t.currentLayout.name};t.properties.layouts=r}t.getTreeList()})).catch((function(t){console.log(t)}))},getProductInfo:function(){var t=this;return
|
|
1270
|
+
if(t.layouts&&t.layout){t.layouts.forEach((function(e){e.builderProductId==t.layout&&(t.currentLayout=e)}));var r={code:"layouts",value:t.currentLayout.name};t.properties.layouts=r}t.getTreeList()})).catch((function(t){console.log(t)}))},getProductInfo:function(){var t=this;return A(T().mark((function e(){var a;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,e.abrupt("return",gt.get(t.lang.urlBuilder+"/api/products/info/"+a.product_id).then((function(t){a.pageNum=t.data.product.pages,a.isPagesNumLoaded=!0,a.availableLayouts=t.data.product.layout})).catch((function(t){console.log(t)})));case 2:case"end":return e.stop()}}),e)})))()},changeMoonerLayout:function(){var t=this;if(t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1),t.defaultMooner==t.currentMooner&&t.defaultMoonerName==t.currentMoonerName)return t.closeModal(),t.sidebarOpen=!1,!1;var e=t.dedicationFirstEdit?"":t.current_dedication_text,a={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:e}}},uuid:t.uuid}};if(t.currentMooner&&t.properties["nome-do-mooner"]){var i={property_id:t.properties["nome-do-mooner"].property_id,value:t.currentMoonerName,code:t.properties["nome-do-mooner"].code};a.custom_character.user_data.properties["nome-do-mooner"]=i}
|
|
1271
1271
|
// Envio da custom porperties dynamic
|
|
1272
1272
|
gt.post(this.lang.urlBuilder+"/api/customs_characters/changePropertiesDynamic",a).then((function(e){t.custom=JSON.parse(e.data.custom.customCharacter.data);var a=!1,i=null;t.custom.categories.forEach((function(e){if(e.parent_id===t.currentMooner.parent_id){a=!0;var i=t.custom.categories.indexOf(e);t.custom.categories[i]={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id}}})),t.defaultMoonerName=t.currentMoonerName,t.defaultMooner=t.currentMooner,t.isCreated=!1,t.sidebarOpen=!1,t.properties["nome-do-mooner"].value=t.currentMoonerName,t.setHeaderMoonner(),!1===a&&(i={parent_id:t.currentMooner.parent_id,id:t.currentMooner.id},t.custom.categories.push(i)),t.sendCustomCharacter()})).catch((function(t){console.log(t)}))},changeFantasyLayout:function(){var t=this;t.callingLayout=!0,t.closeModal(),t.isLoadingMethod(!1);var e={custom_character:{character_id:t.character_id,product_id:t.product_id,type_id:t.type_id,user_data:{type:t.type_id,properties:{nome:{code:"nome",property_id:24,value:t.current_character_name},dedicatoria:{code:"dedicatoria",property_id:26,value:t.dedicationText}}},uuid:t.uuid}};t.currentFantasy&&
|
|
1273
1273
|
///var property = self.searchExtraProperty("nome-do-mooner");
|
|
@@ -1348,7 +1348,7 @@ window.removeEventListener("scroll",this.handleScroll)},methods:{handleScroll:fu
|
|
|
1348
1348
|
// Update the windowScrollPosition data property with the current scroll position
|
|
1349
1349
|
t>=e&&(this.floatingSubmenu=!0,0==this.oldMenuMobilePosition&&(this.oldMenuMobilePosition=e)),t<this.oldMenuMobilePosition&&(this.floatingSubmenu=!1)},detectSize:function(){this.isMobile=!1,window.innerWidth<990&&(this.isMobile=!0)},onClick:function(t){this.$emit("click",t)},onClickMenu:function(t){this.$emit("clickMenu",t)},clickContinue:function(){this.$emit("clickContinue",null)}}},"data-v-7a0e2d5c",!1,void 0,!1,g,void 0,void 0),wt=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bottom-bar",class:t.dir,style:t.colorsVar},[t.isMobile?t._e():a("div",{staticClass:"book-area"},[a("div",{staticClass:"book-cover"},[t.imageAsset?a("img",{attrs:{src:t.imageAsset,width:"46",alt:""}}):a("div",{staticClass:"placeholder-loading"},[t._m(0),t._v(" "),"livro"===t.productType?a("div",["a4"==t.book_format?a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-a4.jpg",width:"46",alt:""}}):a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-square.jpg",width:"46",alt:""}})]):t._e(),t._v(" "),"wallpaper"===t.productType?a("div",[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-wallpaper-loading.jpg",width:"44",alt:""}})]):t._e(),t._v(" "),"poster"===t.productType?a("div",[a("img",{attrs:{src:"https://brave.dentrodahistoria.com.br/images/placeholder-poster-loading.jpg",width:"46",alt:""}})]):t._e()])]),t._v(" "),a("div",{staticClass:"book-info"},[a("div",[t.book_brand?a("Paragraph",{attrs:{size:"sm",color:"#68596E"}},[t._v(t._s(t.book_brand))]):t._e(),t._v(" "),t.book_name?a("Paragraph",{attrs:{size:"sm",color:"#68596E",type:"bold"}},[t._v(t._s(t.book_name))]):t._e()],1)])]),t._v(" "),a("div",{staticClass:"btn-foward"},[a("Button",{attrs:{kind:"primary",size:"md",width:"fluid"},on:{click:t.action}},[a("span",[t._v(t._s(t.continueLabelText))])])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"loading-bg"},[e("div",{staticClass:"loading book-loading"})])}]},(function(t){t&&t("data-v-b0406f10_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-b0406f10]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-b0406f10]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-b0406f10]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-b0406f10]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-b0406f10]{font-size:14px}}@media (min-width:1024px){[data-v-b0406f10]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-b0406f10]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-b0406f10]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-b0406f10]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-b0406f10]{font-size:1.56vw}}html[data-v-b0406f10]{box-sizing:border-box}*[data-v-b0406f10],[data-v-b0406f10]::after,[data-v-b0406f10]::before{box-sizing:border-box}.bottom-bar[data-v-b0406f10]{position:relative;width:100%;bottom:0;left:0;box-shadow:0 10px 26px rgba(104,89,110,.24);padding-top:.7619047619rem;padding-bottom:.7619047619rem;display:flex;flex-wrap:wrap;align-items:center;width:100%;justify-content:space-between;padding-left:1.7142857143rem;padding-right:1.7142857143rem;z-index:4;position:absolute;z-index:23;bottom:0;background-color:#fff}.bottom-bar.rtl .book-info[data-v-b0406f10]{padding-right:.7619047619rem}@media (max-width:990px){.bottom-bar[data-v-b0406f10]{position:relative!important}}.bottom-bar .book-area[data-v-b0406f10]{display:flex;align-content:center;flex-wrap:wrap}.bottom-bar .book-area .book-cover[data-v-b0406f10]{display:flex;align-content:center;flex-wrap:wrap;border-radius:4px;overflow:hidden;height:3.0476190476rem}.bottom-bar .book-area .book-cover img[data-v-b0406f10]{height:100%;width:auto}.bottom-bar .book-area .book-info[data-v-b0406f10]{display:flex;padding-left:.7619047619rem;flex-wrap:nowrap;align-items:center}.bottom-bar .book-area .book-info p[data-v-b0406f10]{width:100%}.bottom-bar .btn-foward[data-v-b0406f10]{display:flex;width:27.7777777778vw}@media (max-width:990px){.bottom-bar .btn-foward[data-v-b0406f10]{width:100%}}.bottom-bar .btn-foward button[data-v-b0406f10]{background-color:var(--preview-color)!important}.bottom-bar .btn-foward button span[data-v-b0406f10]{z-index:2;position:relative}.bottom-bar .btn-foward button[data-v-b0406f10]:hover{background-color:var(--preview-color)!important}.bottom-bar .btn-foward button[data-v-b0406f10]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.24)}.loading-bg[data-v-b0406f10]{position:absolute}.loading[data-v-b0406f10]{border:2px solid #f3f3f3;border-top:2px solid #42cda1;border-radius:50%;width:.7142857143rem;height:.7142857143rem;animation:spin-data-v-b0406f10 .6s linear infinite}@media (max-width:479px){.loading[data-v-b0406f10]{border:2px solid #f3f3f3;border-top:2px solid #42cda1;width:.9345794393rem;height:.9345794393rem}}.placeholder-loading[data-v-b0406f10]{width:100%;position:relative;height:100%}.placeholder-loading .loading-bg[data-v-b0406f10]{position:absolute;left:0;bottom:0;top:0;margin:auto;height:15px;width:100%;margin-left:auto;margin-right:auto;margin-top:auto;margin-bottom:auto;display:flex;justify-content:center}.placeholder-loading img[data-v-b0406f10]{width:100%;max-height:3.0476190476rem}@keyframes spin-data-v-b0406f10{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}',map:void 0,media:void 0})}),{name:"BottomBar",components:{Button:x,Heading:z,Paragraph:C,Icon:w,Stepper:ft,VLazyImage:t},props:{uuid:{type:String,required:!1},book_name:{type:String,required:!1},book_brand:{type:String,required:!1},preview_color:{type:String,default:"#12d3db",required:!1},book_format:{type:String,required:!0},typeLanguage:{type:String,required:!1,default:"pt"},productType:{type:String,required:!1,default:"livro"},dir:{type:String,default:"ltr",required:!1},continueLabel:{type:String,required:!1}},data:function(){return{isMobile:null,
|
|
1350
1350
|
//coverLoading: true,
|
|
1351
|
-
imageAsset:null,lang:st[this.typeLanguage],routes:[{path:"index",stepperName:"Etapa 2"},{path:"second",stepperName:"5 - Próximos personagens"}],continueLabelText:""}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),t.getBase64("https://builder.dentrodahistoria.com.br/api/builder/getpreview/"+t.uuid+"?page=1&w=120&v=0&noCache=true"),t.continueLabel&&t.continueLabel.length>1?t.continueLabelText=t.continueLabel:t.continueLabelText=t.lang.continue},methods:R(R(R({detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},onClick:function(){this.$emit("click")},action:function(){this.$emit("changeUrl")}},"detectSize",(function(){var t=!1;return window.innerWidth<990&&(t=!0),t})),"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")})),"getBase64",(function(t){var e=this;i.get(t,{responseType:"arraybuffer"}).then((function(t){e.imageAsset="data:image/png;base64,"+Buffer.from(t.data,"binary").toString("base64")}))})),computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}}},"data-v-b0406f10",!1,void 0,!1,g,void 0,void 0);!function(t){function e(t,e,a){if(!a[0]||"object"==N(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 d=1-r,n=d*d*d,s=r*r*r;return o(Math.round(n*t.x+3*r*d*d*e.x+3*r*r*d*a.x+s*i.x),Math.round(n*t.y+3*r*d*d*e.y+3*r*r*d*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 d(t){return" rotate("+t+"deg) "}function n(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 d,n=[];if("-webkit-"==g){for(d=0;d<r;d++)n.push("color-stop("+i[d][0]+", "+i[d][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+n.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;d=a.y-e.y;var l=Math.atan2(d,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(d*d+s*s),a=o(a.x<e.x?t.width():0,a.y<e.y?t.height():0),Math.tan(l));for(a=(d=-1/p)*(p=(d*a.x-a.y-p*e.x+e.y)/(d-p))-d*a.x+a.y,e=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(a-e.y,2)),d=0;d<r;d++)n.push(" "+i[d][1]+" "+100*(e+s*i[d][0])/c+"%");t.css({"background-image":g+"linear-gradient("+-l+"rad,"+n.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="",v=Math.PI,f=v/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"],_=["ltr","rtl"],k={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},z={cornerSize:100},C={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(),d=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(C._touchStart,this),touchMove:t.proxy(C._touchMove,this),touchEnd:t.proxy(C._touchEnd,this),start:t.proxy(C._eventStart,this)},e.when)for(i in e.when)n(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<d.length;i++)"1"!=t(d[i]).attr("ignore")&&this.turn("addPage",d[i],++a);return t(this).bind(w.down,o.eventHandlers.touchStart).bind("end",C._eventEnd).bind("pressed",C._eventPressed).bind("released",C._eventReleased).bind("flip",C._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(),d=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==d)o=!0;else if(a>d)throw p('Page "'+a+'" cannot be inserted')}else a=d,o=!0;return 1<=a&&a<=d&&(i="double"==r.display?a%2?" odd":" even":"",r.done&&this.turn("stop"),a in r.pageObjs&&C._movePages.call(this,a,1),o&&(r.totalPages=d),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"),C._addPage.call(this,a),C._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(C._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=C._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&C._makeFlip.call(this,e)}else a.pagePlace[e]=0,a.pageObjs[e]&&a.pageObjs[e].remove()},hasPage:function(t){return n(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"==N(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,d=Math.round(i.width*r*e);i=Math.round(i.height*r*e);for(a.zoom=e,t(this).turn("stop").turn("size",d,i),a.opts.autoCenter&&this.turn("center"),C._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 d=t%2;i.top=(r-i.height)/2,"ltr"==a.direction?(i[d?"right":"left"]=o-i.width,i[d?"left":"right"]="auto"):(i[d?"left":"right"]=o-i.width,i[d?"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(C._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),C._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++)C._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=C._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)n(t,e.pageWrap)&&!C._necessPage.call(this,t)&&C._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]),C._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"),C._removePageFromDOM.call(this,t),delete e.pageObjs[t]),C._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,C._fitPage.call(this,e.totalPages)):(C._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,o=this.data(),r="single"==o.display,d=function(t){var a=t+e,d=a%2,n=d?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+n)),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(C._pageSize.call(i,a,!0)).attr("page",a),o.pages[t]&&(o.pages[a]=o.pages[t].flip("options",{page:a,next:r||d?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--)d(a);else for(a=t;a<=o.totalPages;a++)d(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"),C._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,_))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(n(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)n(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)n(a,o.pageWrap)&&(i=C._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);C._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();C._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=C._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,C._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(C._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);C._removeFromDOM.call(this),C._makeRange.call(this),C._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],d=this.turn("view"),n=this.turn("view",e);if(o.page!=e){var s=o.page;if("prevented"==c("turning",this,[e,n]))return void(s==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,n)&&this.trigger("first"),-1!=t.inArray(o.totalPages,n)&&this.trigger("last")}"single"==o.display?(a=d[0],i=n[0]):d[1]&&e>d[1]?(a=d[1],i=n[0]):d[0]&&e<d[0]&&(a=d[0],i=n[1]),r=o.opts.turnCorners.split(","),n=(d=o.pages[a].data().f).opts,s=d.point,C._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,C._makeRange.call(this),o.tpage=i,n.next!=i&&(n.next=i,n.force=!0),this.turn("update"),d.point=s,"hard"==d.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"))?C._turnPage.call(this,e):C._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,C._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,C._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(),C._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),C._addMotionPage.call(t.target)),C._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,C._fitPage.call(e,i||a.next,!0)):(C._removeMv.call(e,a.page),C._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,d=r.data();i="single"==d.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(),C._turnPage.call(r,o.opts.next)),d.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(n(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)n(t,e.pages)&&M._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)n(t,e.pages)&&M._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,d=this.data(),n=(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=d.pages[a].data().f.opts.next,o=d.pagePlace[a],c(a),c(i),a=d.pagePlace[i]==i?i:a,l.pageZ[a]=d.totalPages-Math.abs(n-a),l.partZ[o]=2*d.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"),d=this.turn("view"),s=this.turn("view",a.tpage);for(e in a.pageWrap)n(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!=d[0]&&e!=d[1]))}else for(e in a.pageWrap)n(e,a.pageWrap)&&(o=C._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(),d=this.height(),n="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:n,height:d,top:0,left:n});break;case 2:o.shadow.css({width:n,height:d,top:0,left:0});break;case 3:o.shadow.css({width:r,height:d,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)n(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||z,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 d=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,d))&&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),n=this.width(),s=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*n):Math.max(Math.min(t.x,n),-n);var c,p,m,u,b,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},_=i.x?(i.x-t.x)/n:t.x/n,k=90*_,z=90>k;switch(t.corner){case"l":u="0% 50%",b="100% 50%",z?(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,n=-n,z?(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("+n+"px) rotateY("+(180+k)+"deg)",u),e.parent.css(y),z?(_=1-_,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(_-=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*_+")"}).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,S,P,L,N,T,E,B=this,A=0,I=o(0,0),F=o(0,0),q=o(0,0),D=M._foldingPage.call(this),R=a.opts.acceleration,j=e.wrapper.height(),$="t"==t.corner.substr(0,1),O="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),d=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,d.x=O?n-r.x/2:t.x+r.x/2,d.y=r.y/2;var l=f-Math.atan2(r.y,r.x),c=l-Math.atan2(d.y,d.x);c=Math.max(0,Math.sin(c)*Math.sqrt(Math.pow(d.x,2)+Math.pow(d.y,2)));return A=l/v*180,q=o(c*Math.sin(l),c*Math.cos(l)),l>f&&(q.x+=Math.abs(q.y*r.y/r.x),q.y=0,Math.round(q.x*Math.tan(v-l))<s)?(t.y=Math.sqrt(Math.pow(s,2)+2*d.x*r.x),$&&(t.y=s-t.y),e()):(l>f&&(r=v-l,d=j-s/Math.sin(r),I=o(Math.round(d*Math.cos(r)),Math.round(d*Math.sin(r))),O&&(I.x=-I.x),$&&(I.y=-I.y)),C=Math.round(q.y/Math.tan(l)+q.x),d=(r=n-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round(O?r-d:C+d),Math.round($?c:s-c)),a.opts.gradients&&(N=r*Math.sin(l),r=M._c2.call(B,t.corner),r=Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))/n,E=Math.sin(f*(1<r?2-r:r)),T=Math.min(r,1),L=100<N?(N-100)/N:0,S=o(N*Math.sin(l)/n*100,N*Math.cos(l)/s*100),M._backGradient.call(B)&&(P=o(1.2*N*Math.sin(l)/n*100,1.2*N*Math.cos(l)/s*100),O||(P.x=100-P.x),$||(P.y=100-P.y))),q.x=Math.round(q.x),q.y=Math.round(q.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(n-j)*c[0]/100,h=(s-j)*c[1]/100,g=(i={left:m[i[0]],top:m[i[1]],right:m[i[2]],bottom:m[i[3]]},m={},90!=p&&-90!=p?O?-1:1:0),v=c[0]+"% "+c[1]+"%";B.css(i).transform(d(p)+r(t.x+g,t.y,R),v),e.fpage.css(i).transform(d(p)+r(t.x+F.x-I.x-n*c[0]/100,t.y+F.y-I.y-s*c[1]/100,R)+d((180/p-2)*p),v),e.wrapper.transform(r(-t.x+u-g,-t.y+h,R)+d(-p),v),e.fwrapper.transform(r(-t.x+I.x+u,-t.y+I.y+h,R)+d(-p),v),a.opts.gradients&&(c[0]&&(S.x=100-S.x),c[1]&&(S.y=100-S.y),m["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*E+")",D.css(m),l(e.ashadow,o(O?100:0,$?0:100),o(S.x,S.y),[[L,"rgba(0,0,0,0)"],[.8*(1-L)+L,"rgba(0,0,0,"+.2*T+")"],[1,"rgba(255,255,255,"+.2*T+")"]],3),M._backGradient.call(B)&&l(e.bshadow,o(O?0:100,$?0:100),o(P.x,P.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*T+")"],[1,"rgba(0,0,0,0)"]],3))},t.corner){case"tl":t.x=Math.max(t.x,1),V(),c(q,[1,0,0,1],[100,0],A);break;case"tr":t.x=Math.min(t.x,n-1),V(),c(o(-q.x,q.y),[0,0,0,1],[0,0],-A);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(q.x,-q.y),[1,1,0,0],[100,100],-A);break;case"br":t.x=Math.min(t.x,n-1),V(),c(o(-q.x,-q.y),[0,1,1,0],[0,100],A)}}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=(d=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,d=i.point&&i.point.corner==t.corner?i.point:M._c.call(this,t.corner,1);this.animatef({from:[d.x,d.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),d.effect&&!d.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,d=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var n=M._c.call(this,r.corner),s=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-n.y)/2:Math.max(0,r.y-n.y)/2,o(r.x,r.y+t)),l=o(n.x,n.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,s,l,n,t),r.x=t.x,r.y=t.y,M._fold.call(a,r)},complete:d,duration:800,hiding:!0})}else this.animatef(!1),d()}},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)),d=M._c2.call(this,t.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(a){a=i(r,r,d,d,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]),C,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,d=this,n=(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()-n),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,d.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}(s),function(t){function e(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function a(t,e,a){return d&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function i(t,e){return d&&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 d,n={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({},n,a)).flipbook||!a.flipbook.turn("is"))throw e("options.flipbook is required");if(d="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"),d=(e=i.opts.flipbook).turn("direction"),n=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"==d?0:c.width,e=o("ltr"==d?s.left-l.left:s.left-l.left+c.width,s.top-l.top)):(c.width=e.width()/2,a="ltr"==d?c.width:0,e=o("ltr"==d?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}),(d=p.join(","))!=i.zoomerView)for(i.zoomerView=d,i.zoomer.find("*").remove(),d=0;d<p.length;d++)if(p[d]){l=n.pageObjs[p[d]].offset();var m=t(n.pageObjs[p[d]]);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,d=this.data().zoom,n=d.opts.flipbook,l=d.opts.max();n.offset();var c=this.offset();if(d.zoomIn)return this;n.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=s._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=n.data().opts.autoCenter;d.scale=l,n.data().noCenter=!0,(0>(e=void 0!==e?"x"in e&&"y"in e?o(e.x-m.x,e.y-m.y):t.isTouch?o(e.originalEvent.touches[0].pageX-m.x-c.left,e.originalEvent.touches[0].pageY-m.y-c.top):o(e.pageX-m.x-c.left,e.pageY-m.y-c.top):o(u.x,u.y)).x||0>e.y||e.x>f.width||e.y>f.height)&&(e.x=u.x,e.y=u.y);var v=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),f=(e=o(f.size.width*l>this.width()?e.x-v.x:0,f.size.height*l>this.height()?e.y-v.y:0),v=o(Math.abs(f.size.width*l-this.width()),Math.abs(f.size.height*l-this.height())),o(Math.min(0,f.size.width*l-this.width()),Math.min(0,f.size.height*l-this.height()))),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y);b.y>v.y?e.y=b.y-v.y+e.y:b.y<f.y&&(e.y=b.y-f.y+e.y),b.x>v.x?e.x=b.x-v.x+e.x:b.x<f.x&&(e.x=b.x-f.x+e.x),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y),(m={})[p+"transition"]=p+"transform "+d.opts.easeFunction+" "+d.opts.duration+"ms";var w=function(){r.trigger("zoom.zoomIn"),d.zoomIn=!0,d.flipPosition=o(n.css("left"),n.css("top")),n.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=n.offset();d.axis=o(e.left-c.left,e.top-c.top),g&&"double"==n.turn("display")&&("ltr"==n.turn("direction")&&!n.turn("view")[0]||"rtl"==n.turn("direction")&&!n.turn("view")[1])&&(d.axis.x+=n.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,d.mouseupEvent),r.bind("mousewheel",s._eMouseWheel),setTimeout((function(){d.zoomer.hide(),d.zoomer.remove(),d.zoomer=null,d.zoomerView=null}),50)};return d.zoomer.css(m).show(),h?d.zoomer.bind(h,(function(){t(this).unbind(h),w()})):setTimeout(w,d.opts.duration),d.zoomer.transform(a(e.x,e.y,!0)+i(l,!0)),this},zoomOut:function(e){var r,d=this,n=this.data().zoom,l=n.opts.flipbook,c=1/n.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:n.opts.duration,n.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;n.zoomIn=!1,n.scale=1,l.data().noCenter=!1,d.unbind(t.mouseEvents.down,s._eMouseDown),d.unbind(t.mouseEvents.move,s._eMouseMove),t(document).unbind(t.mouseEvents.up,n.mouseupEvent),d.unbind("mousewheel",s._eMouseWheel),(u={})[p+"transition"]=p+"transform "+n.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:n.flipPosition.y,left:n.flipPosition.x,width:l.width()*c,height:l.height()*c,background:"blue"}}).appendTo(l.parent());u=o(h.offset().left-r.left,h.offset().top-r.top);h.remove();var g=l.data().opts.autoCenter;g&&"double"==l.turn("display")&&(l.turn("view")[0]?l.turn("view")[1]||(u.x="ltr"==l.turn("direction")?u.x+h.width()/4:u.x-h.width()/4):u.x="ltr"==l.turn("direction")?u.x-h.width()/4:u.x+h.width()/4);var v=t.findPos(l[0]);r=o(-l.width()/2-v.left+h.width()/2+u.x+r.left,-l.height()/2-v.top+h.height()/2+u.y+r.top);var f=function(){l[0].style.removeProperty?(l[0].style.removeProperty(p+"transition"),l.transform(l.turn("options").acceleration?a(0,0,!0):"").turn("zoom",1),l[0].style.removeProperty("margin"),l.css({position:"relative",top:n.flipPosition.y,left:n.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:n.flipPosition.y,left:n.flipPosition.x,position:"relative"}),g&&l.turn("center"),d.trigger("zoom.zoomOut")};return 0===e?f():(m?l.bind(m,(function(){t(this).unbind(m),f()})):setTimeout(f,e),l.transform(a(r.x,r.y,!0)+i(c,!0))),this}},flipbookWidth:function(){var t=this.data().zoom.opts.flipbook,e=t.turn("view");return"double"!=t.turn("display")||e[0]&&e[1]?t.width():t.width()/2},scroll:function(e,i,r){var n=this.data().zoom,s=n.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(d){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",s.css(p),s.transform(a(-n.axis.x-e.x,-n.axis.y-e.y,!0))}else s.css({top:-n.axis.y-e.y,left:-n.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)}n.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,d=(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/(d-a.touch.timestamp):(a.touch.speed.x+a.touch.motion.x/(d-a.touch.timestamp))/2,a.touch.last=e,a.touch.timestamp=d)},_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"==N(a[0]))return s.init.apply(t(this[0]),a);if(s[a[0]])return s[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(s);var xt=s,yt=require("axios"),_t=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-box"},[a("div",{staticClass:"flipbook-container",class:t.book_format},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[!t.isLoading&&t.loader?a("div",{staticClass:"arrow-animate"},[a("Icon",{attrs:{name:"arrow-right",size:"lg",fill:t.preview_color,stroke:"transparent"}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-desktop",class:t.isLoading?"invisible":"visible",attrs:{dir:"ltr"}},[a("div",{staticClass:"flipbook-lib",class:[t.formato],attrs:{id:"flipbook"}})])])]),t._v(" "),t.controls&&0==t.isLoading?a("div",{staticClass:"controls"},[a("div",[1!=t.currentPage?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheLeft}},[a("Icon",{attrs:{name:"chevron-left",stroke:"transparent",size:"md",fill:t.preview_color}})],1):t._e()],1),t._v(" "),a("div",[t.currentPage!=t.pages?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheRight}},[a("Icon",{attrs:{name:"chevron-right",stroke:"transparent",fill:t.preview_color,size:"md"}})],1):t._e()],1)]):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-277d56a0_0",{source:'.storybook-6[data-v-277d56a0]{width:columns("lg", 6)}.storybook-12[data-v-277d56a0]{width:columns("lg", 12)}.storybook-25[data-v-277d56a0]{width:columns("lg", 25)}',map:void 0,media:void 0}),t("data-v-277d56a0_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-277d56a0]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-277d56a0]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-277d56a0]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-277d56a0]{font-size:14px}}@media (min-width:1024px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-277d56a0]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-277d56a0]{font-size:1.56vw}}html[data-v-277d56a0]{box-sizing:border-box}*[data-v-277d56a0],[data-v-277d56a0]::after,[data-v-277d56a0]::before{box-sizing:border-box}.flipbook-viewport[data-v-277d56a0]{margin-top:30px;width:100%}.flipbook-viewport .container-book[data-v-277d56a0]{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook[data-v-277d56a0]{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page[data-v-277d56a0]{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page[data-v-277d56a0]{-webkit-box-shadow:0 0 20px rgba(0,0,0,.2);-moz-box-shadow:0 0 20px rgba(0,0,0,.2);-ms-box-shadow:0 0 20px rgba(0,0,0,.2);-o-box-shadow:0 0 20px rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2)}#flipbook-viewport .page img[data-v-277d56a0]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.flipbook-viewport .shadow[data-v-277d56a0]{-webkit-transition:-webkit-box-shadow .5s;-moz-transition:-moz-box-shadow .5s;-o-transition:-webkit-box-shadow .5s;-ms-transition:-ms-box-shadow .5s;-webkit-box-shadow:0 0 20px #ccc;-moz-box-shadow:0 0 20px #ccc;-o-box-shadow:0 0 20px #ccc;-ms-box-shadow:0 0 20px #ccc;box-shadow:0 0 20px #ccc}.even[data-v-277d56a0]{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.odd[data-v-277d56a0]{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.even[data-v-277d56a0]:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to left,#000,transparent 7%);opacity:.15}.odd[data-v-277d56a0]:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to right,#000,transparent 7%);opacity:.15}#flipbook .page-wrapper[data-v-277d56a0]{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img[data-v-277d56a0]{height:100%}#flipbook img.loading-blur[data-v-277d56a0]{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img[data-v-277d56a0]{height:100%}#flipbook.square img[data-v-277d56a0]{width:100%;height:100%}.zoom-in #flipbook img[data-v-277d56a0]{height:100%!important}.preview-desktop[data-v-277d56a0]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-277d56a0]{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-277d56a0]{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-277d56a0 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-277d56a0]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-277d56a0{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-277d56a0]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-277d56a0]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-277d56a0]{transition:all .7s ease-in-out;position:relative}.flipbook-container[data-v-277d56a0]{position:absolute;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;transition:all .3s;min-width:210px;min-height:210px;height:30.8571428571rem;left:0;right:0;top:0;bottom:0;margin:auto;margin-top:1.9047619048rem;z-index:3}.flipbook-container.square[data-v-277d56a0]{margin-top:2.2857142857rem;padding-top:.7619047619rem}@media (max-width:479px){.flipbook-container[data-v-277d56a0]{display:none}}.flipbook-container.zoom-in[data-v-277d56a0]{height:100vh}.controls[data-v-277d56a0]{margin:0 auto;display:block;width:100%;display:flex;position:absolute;display:flex;justify-content:space-between;top:0;bottom:0;flex-wrap:wrap;height:3.0476190476rem;margin-top:auto;margin-bottom:auto;padding-left:2.7777777778vw;padding-right:2.7777777778vw}.controls div[data-v-277d56a0]{position:relative;z-index:102}.controls .btn-primary button[data-v-277d56a0]{background-color:var(--preview-color);position:relative}.controls .btn-primary button:hover span[data-v-277d56a0]{color:#fff;position:relative;z-index:2}.controls .btn-primary button[data-v-277d56a0]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.controls .info-space[data-v-277d56a0]{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-277d56a0]{width:60px;white-space:nowrap;line-height:1;transition:all .5s ease}.controls .current-pages .list[data-v-277d56a0]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-277d56a0]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-277d56a0]:first-child{margin:0 16px}.controls .current-pages span[data-v-277d56a0]:last-child{margin:0 16px}.info-pages[data-v-277d56a0]{text-align:center}@keyframes arrow-animation-data-v-277d56a0{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-277d56a0]{opacity:1}.invisible[data-v-277d56a0]{opacity:0}[data-v-277d56a0] .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-277d56a0] .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-277d56a0 .6s linear infinite}@media (max-width:479px){[data-v-277d56a0] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-277d56a0{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.preview-box[data-v-277d56a0]{width:100vw;height:100%;position:relative;display:flex;justify-content:center;align-items:center}.arrow-animate[data-v-277d56a0]{position:absolute;top:0;bottom:0;height:40px;margin-top:auto;margin-bottom:auto;left:38%;animation:arrow-animation-data-v-277d56a0 1.8s infinite both}@keyframes arrow-animation-data-v-277d56a0{0%,100%,48%{-webkit-transform:translateX(0);transform:translateX(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}8%{-webkit-transform:translateX(-30%);transform:translateX(-30%)}16%{-webkit-transform:translateX(15%);transform:translateX(15%)}24%{-webkit-transform:translateX(-15%);transform:translateX(-15%)}32%{-webkit-transform:translateX(9%);transform:translateX(9%)}40%{-webkit-transform:translateX(-6%);transform:translateX(-6%)}}#flipbook .even[data-v-277d56a0]{background:-webkit-gradient(linear,left top,right top,color-stop(.95,#fff),color-stop(1,#dadada));background-image:-webkit-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-moz-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-ms-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-o-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:linear-gradient(to left,#fff 95%,#dadada 100%)}#flipbook .odd[data-v-277d56a0]{background:-webkit-gradient(linear,right top,left top,color-stop(.95,#fff),color-stop(1,#cacaca));background-image:-webkit-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-moz-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-ms-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-o-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:linear-gradient(to right,#fff 95%,#cacaca 100%)}[data-v-277d56a0].flipbook-lib .page.odd:not(.p1):before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:20px 0 20px -10px rgba(0,0,0,.2) inset;z-index:4}[data-v-277d56a0].flipbook-lib .page.even:before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.2) inset}[data-v-277d56a0].flipbook-lib img{height:100%!important}[data-v-277d56a0] .page-wrapper{right:1px!important}[data-v-277d56a0] .loading-blur{filter:blur(4px);background:rgba(104,89,110,.8)}[data-v-277d56a0] .page{cursor:pointer!important}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:w,Button:x},props:{
|
|
1351
|
+
imageAsset:null,lang:st[this.typeLanguage],routes:[{path:"index",stepperName:"Etapa 2"},{path:"second",stepperName:"5 - Próximos personagens"}],continueLabelText:""}},mounted:function(){var t=this;t.isMobile=t.detectSize(),window.addEventListener("resize",(function(e){t.isMobile=t.detectSize()})),t.getBase64("https://builder.dentrodahistoria.com.br/api/builder/getpreview/"+t.uuid+"?page=1&w=120&v=0&noCache=true"),t.continueLabel&&t.continueLabel.length>1?t.continueLabelText=t.continueLabel:t.continueLabelText=t.lang.continue},methods:R(R(R({detectSize:function(){var t=!1;return window.innerWidth<990&&(t=!0),t},onClick:function(){this.$emit("click")},action:function(){this.$emit("changeUrl")}},"detectSize",(function(){var t=!1;return window.innerWidth<990&&(t=!0),t})),"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")})),"getBase64",(function(t){var e=this;i.get(t,{responseType:"arraybuffer"}).then((function(t){e.imageAsset="data:image/png;base64,"+Buffer.from(t.data,"binary").toString("base64")}))})),computed:{colorsVar:function(){return{"--preview-color":this.preview_color}}}},"data-v-b0406f10",!1,void 0,!1,g,void 0,void 0);!function(t){function e(t,e,a){if(!a[0]||"object"==N(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 d=1-r,n=d*d*d,s=r*r*r;return o(Math.round(n*t.x+3*r*d*d*e.x+3*r*r*d*a.x+s*i.x),Math.round(n*t.y+3*r*d*d*e.y+3*r*r*d*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 d(t){return" rotate("+t+"deg) "}function n(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 d,n=[];if("-webkit-"==g){for(d=0;d<r;d++)n.push("color-stop("+i[d][0]+", "+i[d][1]+")");t.css({"background-image":"-webkit-gradient(linear, "+e.x+"% "+e.y+"%,"+a.x+"% "+a.y+"%, "+n.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;d=a.y-e.y;var l=Math.atan2(d,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(d*d+s*s),a=o(a.x<e.x?t.width():0,a.y<e.y?t.height():0),Math.tan(l));for(a=(d=-1/p)*(p=(d*a.x-a.y-p*e.x+e.y)/(d-p))-d*a.x+a.y,e=Math.sqrt(Math.pow(p-e.x,2)+Math.pow(a-e.y,2)),d=0;d<r;d++)n.push(" "+i[d][1]+" "+100*(e+s*i[d][0])/c+"%");t.css({"background-image":g+"linear-gradient("+-l+"rad,"+n.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="",v=Math.PI,f=v/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"],_=["ltr","rtl"],k={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},z={cornerSize:100},C={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(),d=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(C._touchStart,this),touchMove:t.proxy(C._touchMove,this),touchEnd:t.proxy(C._touchEnd,this),start:t.proxy(C._eventStart,this)},e.when)for(i in e.when)n(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<d.length;i++)"1"!=t(d[i]).attr("ignore")&&this.turn("addPage",d[i],++a);return t(this).bind(w.down,o.eventHandlers.touchStart).bind("end",C._eventEnd).bind("pressed",C._eventPressed).bind("released",C._eventReleased).bind("flip",C._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(),d=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==d)o=!0;else if(a>d)throw p('Page "'+a+'" cannot be inserted')}else a=d,o=!0;return 1<=a&&a<=d&&(i="double"==r.display?a%2?" odd":" even":"",r.done&&this.turn("stop"),a in r.pageObjs&&C._movePages.call(this,a,1),o&&(r.totalPages=d),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"),C._addPage.call(this,a),C._removeFromDOM.call(this)),this},_addPage:function(e){var a=this.data(),i=a.pageObjs[e];if(i)if(C._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=C._pageSize.call(this,e,!0);i.css({width:o.width,height:o.height}),a.pageWrap[e].css(o)}a.pagePlace[e]==e&&C._makeFlip.call(this,e)}else a.pagePlace[e]=0,a.pageObjs[e]&&a.pageObjs[e].remove()},hasPage:function(t){return n(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"==N(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,d=Math.round(i.width*r*e);i=Math.round(i.height*r*e);for(a.zoom=e,t(this).turn("stop").turn("size",d,i),a.opts.autoCenter&&this.turn("center"),C._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 d=t%2;i.top=(r-i.height)/2,"ltr"==a.direction?(i[d?"right":"left"]=o-i.width,i[d?"left":"right"]="auto"):(i[d?"left":"right"]=o-i.width,i[d?"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(C._pageSize.call(this,t)).flip({page:t,next:i||a?t+1:t-1,turn:this}).flip("disable",e.disabled),C._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++)C._addPage.call(this,t)},range:function(t){var e,a,i,o=this.data();t=t||o.tpage||o.page||1;if(i=C._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)n(t,e.pageWrap)&&!C._necessPage.call(this,t)&&C._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]),C._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"),C._removePageFromDOM.call(this,t),delete e.pageObjs[t]),C._movePages.call(this,t,-1),e.totalPages-=1,e.page>e.totalPages?(e.page=null,C._fitPage.call(this,e.totalPages)):(C._makeRange.call(this),this.turn("update"))}return this},_movePages:function(t,e){var a,i=this,o=this.data(),r="single"==o.display,d=function(t){var a=t+e,d=a%2,n=d?" odd ":" even ";o.pageObjs[t]&&(o.pageObjs[a]=o.pageObjs[t].removeClass("p"+t+" odd even").addClass("p"+a+n)),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(C._pageSize.call(i,a,!0)).attr("page",a),o.pages[t]&&(o.pages[a]=o.pages[t].flip("options",{page:a,next:r||d?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--)d(a);else for(a=t;a<=o.totalPages;a++)d(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"),C._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,_))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(n(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)n(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)n(a,o.pageWrap)&&(i=C._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);C._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();C._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=C._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,C._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(C._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);C._removeFromDOM.call(this),C._makeRange.call(this),C._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],d=this.turn("view"),n=this.turn("view",e);if(o.page!=e){var s=o.page;if("prevented"==c("turning",this,[e,n]))return void(s==o.page&&-1!=t.inArray(r,o.pageMv)&&o.pages[r].flip("hideFoldedPage",!0));-1!=t.inArray(1,n)&&this.trigger("first"),-1!=t.inArray(o.totalPages,n)&&this.trigger("last")}"single"==o.display?(a=d[0],i=n[0]):d[1]&&e>d[1]?(a=d[1],i=n[0]):d[0]&&e<d[0]&&(a=d[0],i=n[1]),r=o.opts.turnCorners.split(","),n=(d=o.pages[a].data().f).opts,s=d.point,C._missing.call(this,e),o.pageObjs[e]&&(this.turn("stop"),o.page=e,C._makeRange.call(this),o.tpage=i,n.next!=i&&(n.next=i,n.force=!0),this.turn("update"),d.point=s,"hard"==d.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"))?C._turnPage.call(this,e):C._fitPage.call(this,e)),this;throw p("The page "+e+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,C._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,C._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(),C._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),C._addMotionPage.call(t.target)),C._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,C._fitPage.call(e,i||a.next,!0)):(C._removeMv.call(e,a.page),C._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,d=r.data();i="single"==d.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(),C._turnPage.call(r,o.opts.next)),d.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(n(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)n(t,e.pages)&&M._eventMove.apply(e.pages[t],arguments)},_touchEnd:function(){var t,e=this.data();for(t in e.pages)n(t,e.pages)&&M._eventEnd.apply(e.pages[t],arguments)},calculateZ:function(t){var e,a,i,o,r=this,d=this.data(),n=(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=d.pages[a].data().f.opts.next,o=d.pagePlace[a],c(a),c(i),a=d.pagePlace[i]==i?i:a,l.pageZ[a]=d.totalPages-Math.abs(n-a),l.partZ[o]=2*d.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"),d=this.turn("view"),s=this.turn("view",a.tpage);for(e in a.pageWrap)n(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!=d[0]&&e!=d[1]))}else for(e in a.pageWrap)n(e,a.pageWrap)&&(o=C._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(),d=this.height(),n="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:n,height:d,top:0,left:n});break;case 2:o.shadow.css({width:n,height:d,top:0,left:0});break;case 3:o.shadow.css({width:r,height:d,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)n(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||z,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 d=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,d))&&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),n=this.width(),s=this.height();switch(e.effect){case"hard":t.x="l"==t.corner?Math.min(Math.max(t.x,0),2*n):Math.max(Math.min(t.x,n),-n);var c,p,m,u,b,w=a.totalPages,x=e.opts["z-index"]||w,y={overflow:"visible"},_=i.x?(i.x-t.x)/n:t.x/n,k=90*_,z=90>k;switch(t.corner){case"l":u="0% 50%",b="100% 50%",z?(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,n=-n,z?(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("+n+"px) rotateY("+(180+k)+"deg)",u),e.parent.css(y),z?(_=1-_,e.wrapper.css({zIndex:x+1}),e.fpage.css({zIndex:x})):(_-=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*_+")"}).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,S,P,L,N,T,E,A=this,B=0,I=o(0,0),F=o(0,0),q=o(0,0),D=M._foldingPage.call(this),R=a.opts.acceleration,j=e.wrapper.height(),$="t"==t.corner.substr(0,1),O="l"==t.corner.substr(1,1),V=function e(){var r=o(0,0),d=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,d.x=O?n-r.x/2:t.x+r.x/2,d.y=r.y/2;var l=f-Math.atan2(r.y,r.x),c=l-Math.atan2(d.y,d.x);c=Math.max(0,Math.sin(c)*Math.sqrt(Math.pow(d.x,2)+Math.pow(d.y,2)));return B=l/v*180,q=o(c*Math.sin(l),c*Math.cos(l)),l>f&&(q.x+=Math.abs(q.y*r.y/r.x),q.y=0,Math.round(q.x*Math.tan(v-l))<s)?(t.y=Math.sqrt(Math.pow(s,2)+2*d.x*r.x),$&&(t.y=s-t.y),e()):(l>f&&(r=v-l,d=j-s/Math.sin(r),I=o(Math.round(d*Math.cos(r)),Math.round(d*Math.sin(r))),O&&(I.x=-I.x),$&&(I.y=-I.y)),C=Math.round(q.y/Math.tan(l)+q.x),d=(r=n-C)*Math.cos(2*l),c=r*Math.sin(2*l),F=o(Math.round(O?r-d:C+d),Math.round($?c:s-c)),a.opts.gradients&&(N=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))/n,E=Math.sin(f*(1<r?2-r:r)),T=Math.min(r,1),L=100<N?(N-100)/N:0,S=o(N*Math.sin(l)/n*100,N*Math.cos(l)/s*100),M._backGradient.call(A)&&(P=o(1.2*N*Math.sin(l)/n*100,1.2*N*Math.cos(l)/s*100),O||(P.x=100-P.x),$||(P.y=100-P.y))),q.x=Math.round(q.x),q.y=Math.round(q.y),!0)};switch(c=function(t,i,c,p){var m=["0","auto"],u=(n-j)*c[0]/100,h=(s-j)*c[1]/100,g=(i={left:m[i[0]],top:m[i[1]],right:m[i[2]],bottom:m[i[3]]},m={},90!=p&&-90!=p?O?-1:1:0),v=c[0]+"% "+c[1]+"%";A.css(i).transform(d(p)+r(t.x+g,t.y,R),v),e.fpage.css(i).transform(d(p)+r(t.x+F.x-I.x-n*c[0]/100,t.y+F.y-I.y-s*c[1]/100,R)+d((180/p-2)*p),v),e.wrapper.transform(r(-t.x+u-g,-t.y+h,R)+d(-p),v),e.fwrapper.transform(r(-t.x+I.x+u,-t.y+I.y+h,R)+d(-p),v),a.opts.gradients&&(c[0]&&(S.x=100-S.x),c[1]&&(S.y=100-S.y),m["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*E+")",D.css(m),l(e.ashadow,o(O?100:0,$?0:100),o(S.x,S.y),[[L,"rgba(0,0,0,0)"],[.8*(1-L)+L,"rgba(0,0,0,"+.2*T+")"],[1,"rgba(255,255,255,"+.2*T+")"]],3),M._backGradient.call(A)&&l(e.bshadow,o(O?0:100,$?0:100),o(P.x,P.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*T+")"],[1,"rgba(0,0,0,0)"]],3))},t.corner){case"tl":t.x=Math.max(t.x,1),V(),c(q,[1,0,0,1],[100,0],B);break;case"tr":t.x=Math.min(t.x,n-1),V(),c(o(-q.x,q.y),[0,0,0,1],[0,0],-B);break;case"bl":t.x=Math.max(t.x,1),V(),c(o(q.x,-q.y),[1,1,0,0],[100,100],-B);break;case"br":t.x=Math.min(t.x,n-1),V(),c(o(-q.x,-q.y),[0,1,1,0],[0,100],B)}}e.point=t},_moveFoldingPage:function(t){var e=this.data().f;if(e){var a=e.opts.turn,i=a.data(),o=i.pagePlace;t?(o[i=e.opts.next]!=e.opts.page&&(e.folding&&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=(d=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,d=i.point&&i.point.corner==t.corner?i.point:M._c.call(this,t.corner,1);this.animatef({from:[d.x,d.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),d.effect&&!d.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,d=function(){e.point=null,e.status="",a.flip("hide"),a.trigger("end",[e.opts,!1])};if(t){var n=M._c.call(this,r.corner),s=(t="t"==r.corner.substr(0,1)?Math.min(0,r.y-n.y)/2:Math.max(0,r.y-n.y)/2,o(r.x,r.y+t)),l=o(n.x,n.y-t);this.animatef({from:0,to:1,frame:function(t){t=i(r,s,l,n,t),r.x=t.x,r.y=t.y,M._fold.call(a,r)},complete:d,duration:800,hiding:!0})}else this.animatef(!1),d()}},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)),d=M._c2.call(this,t.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(a){a=i(r,r,d,d,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]),C,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,d=this,n=(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()-n),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,d.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}(s),function(t){function e(t){function e(t){this.name="TurnJsError",this.message=t}return e.prototype=Error(),e.prototype.constructor=e,new e(t)}function a(t,e,a){return d&&a?" translate3d("+t+"px,"+e+"px, 0px) ":" translate("+t+"px, "+e+"px) "}function i(t,e){return d&&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 d,n={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({},n,a)).flipbook||!a.flipbook.turn("is"))throw e("options.flipbook is required");if(d="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"),d=(e=i.opts.flipbook).turn("direction"),n=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"==d?0:c.width,e=o("ltr"==d?s.left-l.left:s.left-l.left+c.width,s.top-l.top)):(c.width=e.width()/2,a="ltr"==d?c.width:0,e=o("ltr"==d?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}),(d=p.join(","))!=i.zoomerView)for(i.zoomerView=d,i.zoomer.find("*").remove(),d=0;d<p.length;d++)if(p[d]){l=n.pageObjs[p[d]].offset();var m=t(n.pageObjs[p[d]]);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,d=this.data().zoom,n=d.opts.flipbook,l=d.opts.max();n.offset();var c=this.offset();if(d.zoomIn)return this;n.turn("stop");var p=t.Event("zoom.change");if(this.trigger(p,[l]),p.isDefaultPrevented())return this;var m=(f=s._prepareZoom.call(this)).pos,u=o(f.size.width/2,f.size.height/2),h=(p=t.cssPrefix(),t.cssTransitionEnd()),g=n.data().opts.autoCenter;d.scale=l,n.data().noCenter=!0,(0>(e=void 0!==e?"x"in e&&"y"in e?o(e.x-m.x,e.y-m.y):t.isTouch?o(e.originalEvent.touches[0].pageX-m.x-c.left,e.originalEvent.touches[0].pageY-m.y-c.top):o(e.pageX-m.x-c.left,e.pageY-m.y-c.top):o(u.x,u.y)).x||0>e.y||e.x>f.width||e.y>f.height)&&(e.x=u.x,e.y=u.y);var v=o((e.x-u.x)*l+u.x,(e.y-u.y)*l+u.y),f=(e=o(f.size.width*l>this.width()?e.x-v.x:0,f.size.height*l>this.height()?e.y-v.y:0),v=o(Math.abs(f.size.width*l-this.width()),Math.abs(f.size.height*l-this.height())),o(Math.min(0,f.size.width*l-this.width()),Math.min(0,f.size.height*l-this.height()))),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y);b.y>v.y?e.y=b.y-v.y+e.y:b.y<f.y&&(e.y=b.y-f.y+e.y),b.x>v.x?e.x=b.x-v.x+e.x:b.x<f.x&&(e.x=b.x-f.x+e.x),b=o(u.x*l-u.x-m.x-e.x,u.y*l-u.y-m.y-e.y),(m={})[p+"transition"]=p+"transform "+d.opts.easeFunction+" "+d.opts.duration+"ms";var w=function(){r.trigger("zoom.zoomIn"),d.zoomIn=!0,d.flipPosition=o(n.css("left"),n.css("top")),n.turn("zoom",l).css({position:"absolute",margin:"",top:0,left:0});var e=n.offset();d.axis=o(e.left-c.left,e.top-c.top),g&&"double"==n.turn("display")&&("ltr"==n.turn("direction")&&!n.turn("view")[0]||"rtl"==n.turn("direction")&&!n.turn("view")[1])&&(d.axis.x+=n.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,d.mouseupEvent),r.bind("mousewheel",s._eMouseWheel),setTimeout((function(){d.zoomer.hide(),d.zoomer.remove(),d.zoomer=null,d.zoomerView=null}),50)};return d.zoomer.css(m).show(),h?d.zoomer.bind(h,(function(){t(this).unbind(h),w()})):setTimeout(w,d.opts.duration),d.zoomer.transform(a(e.x,e.y,!0)+i(l,!0)),this},zoomOut:function(e){var r,d=this,n=this.data().zoom,l=n.opts.flipbook,c=1/n.scale,p=t.cssPrefix(),m=t.cssTransitionEnd();if(r=this.offset(),e=void 0!==e?e:n.opts.duration,n.zoomIn){var u=t.Event("zoom.change");if(this.trigger(u,[1]),u.isDefaultPrevented())return this;n.zoomIn=!1,n.scale=1,l.data().noCenter=!1,d.unbind(t.mouseEvents.down,s._eMouseDown),d.unbind(t.mouseEvents.move,s._eMouseMove),t(document).unbind(t.mouseEvents.up,n.mouseupEvent),d.unbind("mousewheel",s._eMouseWheel),(u={})[p+"transition"]=p+"transform "+n.opts.easeFunction+" "+e+"ms",l.css(u);var h=t("<div />",{css:{position:"relative",top:n.flipPosition.y,left:n.flipPosition.x,width:l.width()*c,height:l.height()*c,background:"blue"}}).appendTo(l.parent());u=o(h.offset().left-r.left,h.offset().top-r.top);h.remove();var g=l.data().opts.autoCenter;g&&"double"==l.turn("display")&&(l.turn("view")[0]?l.turn("view")[1]||(u.x="ltr"==l.turn("direction")?u.x+h.width()/4:u.x-h.width()/4):u.x="ltr"==l.turn("direction")?u.x-h.width()/4:u.x+h.width()/4);var v=t.findPos(l[0]);r=o(-l.width()/2-v.left+h.width()/2+u.x+r.left,-l.height()/2-v.top+h.height()/2+u.y+r.top);var f=function(){l[0].style.removeProperty?(l[0].style.removeProperty(p+"transition"),l.transform(l.turn("options").acceleration?a(0,0,!0):"").turn("zoom",1),l[0].style.removeProperty("margin"),l.css({position:"relative",top:n.flipPosition.y,left:n.flipPosition.x})):l.transform("none").turn("zoom",1).css({margin:"",top:n.flipPosition.y,left:n.flipPosition.x,position:"relative"}),g&&l.turn("center"),d.trigger("zoom.zoomOut")};return 0===e?f():(m?l.bind(m,(function(){t(this).unbind(m),f()})):setTimeout(f,e),l.transform(a(r.x,r.y,!0)+i(c,!0))),this}},flipbookWidth:function(){var t=this.data().zoom.opts.flipbook,e=t.turn("view");return"double"!=t.turn("display")||e[0]&&e[1]?t.width():t.width()/2},scroll:function(e,i,r){var n=this.data().zoom,s=n.opts.flipbook,l=this.zoom("flipbookWidth"),c=t.cssPrefix();if(d){var p={};p[c+"transition"]=r?c+"transform 200ms":"none",s.css(p),s.transform(a(-n.axis.x-e.x,-n.axis.y-e.y,!0))}else s.css({top:-n.axis.y-e.y,left:-n.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)}n.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,d=(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/(d-a.touch.timestamp):(a.touch.speed.x+a.touch.motion.x/(d-a.touch.timestamp))/2,a.touch.last=e,a.touch.timestamp=d)},_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"==N(a[0]))return s.init.apply(t(this[0]),a);if(s[a[0]])return s[a[0]].apply(t(this[0]),Array.prototype.slice.call(a,1));throw e(a[0]+" is not a method")}})}(s);var xt=s,yt=require("axios"),_t=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-box"},[a("div",{staticClass:"flipbook-container",class:t.book_format},[t.isLoading&&t.loader?a("div",{staticClass:"loading-box"},[a("div",{attrs:{id:"loading"}}),t._v(" "),a("small",[t._v(t._s(t.lang.justASecond))]),t._v(" "),a("h4",[t._v(t._s(t.lang.loadingPhrase))])]):t._e(),t._v(" "),a("div",{staticClass:"book-centered",style:t.centered?{"margin-left":t.isCover+"px"}:null},[!t.isLoading&&t.loader?a("div",{staticClass:"arrow-animate"},[a("Icon",{attrs:{name:"arrow-right",size:"lg",fill:t.preview_color,stroke:"transparent"}})],1):t._e(),t._v(" "),a("div",{staticClass:"preview-desktop",class:t.isLoading?"invisible":"visible",attrs:{dir:"ltr"}},[a("div",{staticClass:"flipbook-lib",class:[t.formato],attrs:{id:"flipbook"}})])])]),t._v(" "),t.controls&&0==t.isLoading?a("div",{staticClass:"controls"},[a("div",[1!=t.currentPage?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheLeft}},[a("Icon",{attrs:{name:"chevron-left",stroke:"transparent",size:"md",fill:t.preview_color}})],1):t._e()],1),t._v(" "),a("div",[t.currentPage!=t.pages?a("Button",{attrs:{kind:"primary",size:"xl",width:"circle",inverted:!0},on:{click:t.toTheRight}},[a("Icon",{attrs:{name:"chevron-right",stroke:"transparent",fill:t.preview_color,size:"md"}})],1):t._e()],1)]):t._e()])},staticRenderFns:[]},(function(t){t&&(t("data-v-277d56a0_0",{source:'.storybook-6[data-v-277d56a0]{width:columns("lg", 6)}.storybook-12[data-v-277d56a0]{width:columns("lg", 12)}.storybook-25[data-v-277d56a0]{width:columns("lg", 25)}',map:void 0,media:void 0}),t("data-v-277d56a0_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-277d56a0]:root{--column-width:6.6666666667vw}@media (min-width:0px){[data-v-277d56a0]:root{--column-width:6.6666666667vw}}@media (min-width:480px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:0px){html[data-v-277d56a0]{font-size:2.9166666667vw}}@media (min-width:480px){html[data-v-277d56a0]{font-size:14px}}@media (min-width:1024px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:1920px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:2620px){[data-v-277d56a0]:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html[data-v-277d56a0]{font-size:1.5648854962vw}}@media (min-width:2620px){html[data-v-277d56a0]{font-size:1.56vw}}html[data-v-277d56a0]{box-sizing:border-box}*[data-v-277d56a0],[data-v-277d56a0]::after,[data-v-277d56a0]::before{box-sizing:border-box}.flipbook-viewport[data-v-277d56a0]{margin-top:30px;width:100%}.flipbook-viewport .container-book[data-v-277d56a0]{top:50%;margin:auto;position:relative;z-index:5}.flipbook-viewport #flipbook[data-v-277d56a0]{top:0;margin-left:auto!important;margin-right:auto}.flipbook-viewport .page[data-v-277d56a0]{width:461px;height:600px;background-color:#fff;background-repeat:no-repeat;background-size:100% 100%;position:relative;cursor:pointer}#flipbook .page[data-v-277d56a0]{-webkit-box-shadow:0 0 20px rgba(0,0,0,.2);-moz-box-shadow:0 0 20px rgba(0,0,0,.2);-ms-box-shadow:0 0 20px rgba(0,0,0,.2);-o-box-shadow:0 0 20px rgba(0,0,0,.2);box-shadow:0 0 20px rgba(0,0,0,.2)}#flipbook-viewport .page img[data-v-277d56a0]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin:0}.flipbook-viewport .shadow[data-v-277d56a0]{-webkit-transition:-webkit-box-shadow .5s;-moz-transition:-moz-box-shadow .5s;-o-transition:-webkit-box-shadow .5s;-ms-transition:-ms-box-shadow .5s;-webkit-box-shadow:0 0 20px #ccc;-moz-box-shadow:0 0 20px #ccc;-o-box-shadow:0 0 20px #ccc;-ms-box-shadow:0 0 20px #ccc;box-shadow:0 0 20px #ccc}.even[data-v-277d56a0]{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.odd[data-v-277d56a0]{box-shadow:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;-o-box-shadow:none!important;-ms-box-shadow:none!important;box-shadow:none!important}.even[data-v-277d56a0]:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,right top,left top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to left,#000,transparent 7%);opacity:.15}.odd[data-v-277d56a0]:before{content:"";position:absolute;width:100%;height:100%;background-image:-webkit-gradient(linear,left top,right top,from(black),color-stop(7%,transparent));background-image:linear-gradient(to right,#000,transparent 7%);opacity:.15}#flipbook .page-wrapper[data-v-277d56a0]{-webkit-perspective:2000px;-moz-perspective:2000px;-ms-perspective:2000px;perspective:2000px}#flipbook img[data-v-277d56a0]{height:100%}#flipbook img.loading-blur[data-v-277d56a0]{filter:blur(8px);-webkit-filter:blur(8px)}.zoom-in #flipbook img[data-v-277d56a0]{height:100%}#flipbook.square img[data-v-277d56a0]{width:100%;height:100%}.zoom-in #flipbook img[data-v-277d56a0]{height:100%!important}.preview-desktop[data-v-277d56a0]{text-align:center;margin:0 auto;transition:all .7s ease-in-out}.loading-box[data-v-277d56a0]{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-277d56a0]{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-277d56a0 .6s linear infinite}@media (max-width:479px){.loading-box #loading[data-v-277d56a0]{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem;font-family:Roboto}}@keyframes spin-data-v-277d56a0{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.loading-box small[data-v-277d56a0]{display:block;width:100%;font-size:14px;font-weight:700;font-family:Nunito,sans-serif;margin-top:16px}.loading-box h4[data-v-277d56a0]{font-size:18px;margin-top:8px;font-weight:400}.book-centered[data-v-277d56a0]{transition:all .7s ease-in-out;position:relative}.flipbook-container[data-v-277d56a0]{position:absolute;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;transition:all .3s;min-width:210px;min-height:210px;height:30.8571428571rem;left:0;right:0;top:0;bottom:0;margin:auto;margin-top:1.9047619048rem;z-index:3}.flipbook-container.square[data-v-277d56a0]{margin-top:2.2857142857rem;padding-top:.7619047619rem}@media (max-width:479px){.flipbook-container[data-v-277d56a0]{display:none}}.flipbook-container.zoom-in[data-v-277d56a0]{height:100vh}.controls[data-v-277d56a0]{margin:0 auto;display:block;width:100%;display:flex;position:absolute;display:flex;justify-content:space-between;top:0;bottom:0;flex-wrap:wrap;height:3.0476190476rem;margin-top:auto;margin-bottom:auto;padding-left:2.7777777778vw;padding-right:2.7777777778vw}.controls div[data-v-277d56a0]{position:relative;z-index:102}.controls .btn-primary button[data-v-277d56a0]{background-color:var(--preview-color);position:relative}.controls .btn-primary button:hover span[data-v-277d56a0]{color:#fff;position:relative;z-index:2}.controls .btn-primary button[data-v-277d56a0]:hover:after{right:0;bottom:0;top:0;left:0;display:block;content:"";position:absolute;background-color:rgba(0,0,0,.2)}.controls .info-space[data-v-277d56a0]{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-277d56a0]{width:60px;white-space:nowrap;line-height:1;transition:all .5s ease}.controls .current-pages .list[data-v-277d56a0]{position:relative;transition:all .5s ease}.controls .current-pages span[data-v-277d56a0]{width:30px;display:inline-block;text-align:center;font-size:16px}.controls .current-pages span[data-v-277d56a0]:first-child{margin:0 16px}.controls .current-pages span[data-v-277d56a0]:last-child{margin:0 16px}.info-pages[data-v-277d56a0]{text-align:center}@keyframes arrow-animation-data-v-277d56a0{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-277d56a0]{opacity:1}.invisible[data-v-277d56a0]{opacity:0}[data-v-277d56a0] .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-277d56a0] .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-277d56a0 .6s linear infinite}@media (max-width:479px){[data-v-277d56a0] .loading-bg .loading{border:6px solid #f3f3f3;border-top:6px solid #42cda1;width:1.9047619048rem;height:1.9047619048rem}}@keyframes spin-data-v-277d56a0{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.preview-box[data-v-277d56a0]{width:100vw;height:100%;position:relative;display:flex;justify-content:center;align-items:center}.arrow-animate[data-v-277d56a0]{position:absolute;top:0;bottom:0;height:40px;margin-top:auto;margin-bottom:auto;left:38%;animation:arrow-animation-data-v-277d56a0 1.8s infinite both}@keyframes arrow-animation-data-v-277d56a0{0%,100%,48%{-webkit-transform:translateX(0);transform:translateX(0);-webkit-transform-origin:50% 50%;transform-origin:50% 50%}8%{-webkit-transform:translateX(-30%);transform:translateX(-30%)}16%{-webkit-transform:translateX(15%);transform:translateX(15%)}24%{-webkit-transform:translateX(-15%);transform:translateX(-15%)}32%{-webkit-transform:translateX(9%);transform:translateX(9%)}40%{-webkit-transform:translateX(-6%);transform:translateX(-6%)}}#flipbook .even[data-v-277d56a0]{background:-webkit-gradient(linear,left top,right top,color-stop(.95,#fff),color-stop(1,#dadada));background-image:-webkit-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-moz-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-ms-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:-o-linear-gradient(to left,#fff 95%,#dadada 100%);background-image:linear-gradient(to left,#fff 95%,#dadada 100%)}#flipbook .odd[data-v-277d56a0]{background:-webkit-gradient(linear,right top,left top,color-stop(.95,#fff),color-stop(1,#cacaca));background-image:-webkit-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-moz-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-ms-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:-o-linear-gradient(to right,#fff 95%,#cacaca 100%);background-image:linear-gradient(to right,#fff 95%,#cacaca 100%)}[data-v-277d56a0].flipbook-lib .page.odd:not(.p1):before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:20px 0 20px -10px rgba(0,0,0,.2) inset;z-index:4}[data-v-277d56a0].flipbook-lib .page.even:before{content:"";position:absolute;display:block;height:100%;width:100%;top:0;left:0;box-shadow:-20px 0 20px -10px rgba(0,0,0,.2) inset}[data-v-277d56a0].flipbook-lib img{height:100%!important}[data-v-277d56a0] .page-wrapper{right:1px!important}[data-v-277d56a0] .loading-blur{filter:blur(4px);background:rgba(104,89,110,.8)}[data-v-277d56a0] .page{cursor:pointer!important}',map:void 0,media:void 0}))}),{name:"Preview",components:{Icon:w,Button:x},props:{
|
|
1352
1352
|
/** Character uuid. `ddh5e177ff920f15` */
|
|
1353
1353
|
uuid:{type:String,required:!0},
|
|
1354
1354
|
/** Number of pages. `32` */
|
|
@@ -1366,11 +1366,11 @@ controls:{type:Boolean,default:!0},
|
|
|
1366
1366
|
/** Center book on first and last page */
|
|
1367
1367
|
centered:{type:Boolean,default:!0},
|
|
1368
1368
|
/** Show loader */
|
|
1369
|
-
loader:{type:Boolean,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"},goToPage:{type:Number,required:!1},dedication_page:{type:Number,required:!1},preview_color:{type:String,default:"#12d3db",required:!1},typeRead:{type:Boolean,required:!1,default:!1}},data:function(){return{formato:"a4",bookDimensions:{widthPlaceholder:100,width:800},flipbookWidth:null,flipbookHeight:null,isCover:0,currentPage:1,loadedPages:5,numberPositions:0,isLoading:!0,lang:st[this.typeLanguage]}},mounted:function(){var t=this;return
|
|
1369
|
+
loader:{type:Boolean,default:!0},apiUrl:{type:String,required:!1,default:"https://builder.dentrodahistoria.com.br"},goToPage:{type:Number,required:!1},dedication_page:{type:Number,required:!1},preview_color:{type:String,default:"#12d3db",required:!1},typeRead:{type:Boolean,required:!1,default:!1}},data:function(){return{formato:"a4",bookDimensions:{widthPlaceholder:100,width:800},flipbookWidth:null,flipbookHeight:null,isCover:0,currentPage:1,loadedPages:5,numberPositions:0,isLoading:!0,lang:st[this.typeLanguage]}},mounted:function(){var t=this;return A(T().mark((function e(){var a,i;return T().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(),xt((function(){window.addEventListener("resize",(function(t){if(xt("#flipbook").length>0){var e=a.resize();xt("#flipbook").turn("size",e.width,e.height),xt("#flipbook").turn("resize"),a.updated()}}))})),t.loader,
|
|
1370
1370
|
//setTimeout(function () {
|
|
1371
1371
|
a.isLoading=!1,i=a.resize(),xt("#flipbook").turn("size",i.width,i.height),xt("#flipbook").turn("resize"),a.zoom&&t.activateZoom());case 6:case"end":return e.stop()}}),e)})))()},methods:{started:function(){
|
|
1372
1372
|
//this.cleanClickPages();
|
|
1373
|
-
this.$emit("started")},updated:function(){this.$emit("updated")},completed:function(t){t.success&&this.$emit("completed")},getImagePuzzle:function(t){var e=this;return
|
|
1373
|
+
this.$emit("started")},updated:function(){this.$emit("updated")},completed:function(t){t.success&&this.$emit("completed")},getImagePuzzle:function(t){var e=this;return A(T().mark((function a(){var i,o,r,d;return T().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return i=e,o=new Date,r=o.getMilliseconds(),d=i.apiUrl+"/api/builder/getpreview/"+i.uuid+"?page="+t+"&update="+r+"&w=533&v=0&noCache=true",a.next=6,yt.get(d,{responseType:"arraybuffer"}).then((function(t){return Buffer.from(t.data,"binary").toString("base64")}));case 6:return a.abrupt("return",a.sent);case 7:case"end":return a.stop()}}),a)})))()},createInitialPages:function(){var t=this;return A(T().mark((function e(){var a,i,o,r,d;return T().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);
|
|
1374
1374
|
o="",r=1;case 5:if(!(r<6)){e.next=13;break}return e.next=8,a.getImagePuzzle(r);case 8:d=e.sent,o+="<div class='hard'><img src='data:image/png;base64,"+d+"' alt='' width='100%' firstPage='true'></div>";case 10:r++,e.next=5;break;case 13:return xt("#flipbook").html(o),e.abrupt("return",!0);case 15:case"end":return e.stop()}}),e)})))()},initBook:function(){var t=this,e=t.resize();
|
|
1375
1375
|
// this.flipbookWidth = self.formato === "square" ? "100vh" : "100vh";
|
|
1376
1376
|
//this.flipbookHeight = document.getElementsByClassName("top-bar")[0].offsetHeight
|
|
@@ -1541,7 +1541,7 @@ t.getProductInfo()},methods:{resize:function(){var t=this,e=0;document.getElemen
|
|
|
1541
1541
|
// document.documentElement.scrollHeight,
|
|
1542
1542
|
// document.documentElement.offsetHeight
|
|
1543
1543
|
// );
|
|
1544
|
-
var a=window.innerHeight-e,i=1064*(100*a/72)/100;t.$nextTick((function(){t.width=i,t.height=a}))},updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this;Pt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pages=e.data.product.pages,e.data.product.extra&&e.data.product.extra.size&&(t.book_format=e.data.product.extra.size),e.data.product.layout&&t.layout&&e.data.product.layout.forEach((function(a,i){a.id===t.layout&&a.dedication_pages&&a.dedication_pages.length>0&&(t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0]))})),!t.dedication_page&&e.data.product.layout&&e.data.product.layout[0].id&&e.data.product.layout[0].dedication_pages[0]&&(t.currentLayout=e.data.product.layout[0].id,t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0])),t.getPoster()})).catch((function(t){console.log(t)}))},getPoster:function(){var t=this;return
|
|
1544
|
+
var a=window.innerHeight-e,i=1064*(100*a/72)/100;t.$nextTick((function(){t.width=i,t.height=a}))},updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this;Pt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pages=e.data.product.pages,e.data.product.extra&&e.data.product.extra.size&&(t.book_format=e.data.product.extra.size),e.data.product.layout&&t.layout&&e.data.product.layout.forEach((function(a,i){a.id===t.layout&&a.dedication_pages&&a.dedication_pages.length>0&&(t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0]))})),!t.dedication_page&&e.data.product.layout&&e.data.product.layout[0].id&&e.data.product.layout[0].dedication_pages[0]&&(t.currentLayout=e.data.product.layout[0].id,t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0])),t.getPoster()})).catch((function(t){console.log(t)}))},getPoster:function(){var t=this;return A(T().mark((function e(){var a,i,o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i=new Date,i.getMilliseconds(),//alert("teste");
|
|
1545
1545
|
// var url =
|
|
1546
1546
|
// self.apiUrl +
|
|
1547
1547
|
// "/api/builder/getpreview/" +
|
|
@@ -1621,7 +1621,7 @@ t.getProductInfo()},methods:{resize:function(){var t=this,e=0;document.getElemen
|
|
|
1621
1621
|
// document.documentElement.scrollHeight,
|
|
1622
1622
|
// document.documentElement.offsetHeight
|
|
1623
1623
|
// );
|
|
1624
|
-
var a=window.innerHeight-e,i=1064*(100*a/72)/100;t.$nextTick((function(){t.width=i,t.height=a}))},updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this;Nt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pages=e.data.product.pages,e.data.product.extra&&e.data.product.extra.size&&(t.book_format=e.data.product.extra.size),e.data.product.layout&&t.layout&&e.data.product.layout.forEach((function(a,i){a.id===t.layout&&a.dedication_pages&&a.dedication_pages.length>0&&(t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0]))})),!t.dedication_page&&e.data.product.layout&&e.data.product.layout[0].id&&e.data.product.layout[0].dedication_pages[0]&&(t.currentLayout=e.data.product.layout[0].id,t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0])),t.getWallpaper()})).catch((function(t){console.log(t)}))},getWallpaper:function(){var t=this;return
|
|
1624
|
+
var a=window.innerHeight-e,i=1064*(100*a/72)/100;t.$nextTick((function(){t.width=i,t.height=a}))},updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this;Nt.get(this.lang.urlBuilder+"/api/products/info/"+t.product_id).then((function(e){t.pages=e.data.product.pages,e.data.product.extra&&e.data.product.extra.size&&(t.book_format=e.data.product.extra.size),e.data.product.layout&&t.layout&&e.data.product.layout.forEach((function(a,i){a.id===t.layout&&a.dedication_pages&&a.dedication_pages.length>0&&(t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0]))})),!t.dedication_page&&e.data.product.layout&&e.data.product.layout[0].id&&e.data.product.layout[0].dedication_pages[0]&&(t.currentLayout=e.data.product.layout[0].id,t.dedication_page=parseInt(e.data.product.layout[0].dedication_pages[0])),t.getWallpaper()})).catch((function(t){console.log(t)}))},getWallpaper:function(){var t=this;return A(T().mark((function e(){var a,i,o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,i=new Date,i.getMilliseconds(),//alert("teste");
|
|
1625
1625
|
// var url =
|
|
1626
1626
|
// self.apiUrl +
|
|
1627
1627
|
// "/api/builder/getpreview/" +
|
|
@@ -1667,7 +1667,7 @@ this.$emit("completedDedication",t)},completedBirthday:function(t){
|
|
|
1667
1667
|
/**
|
|
1668
1668
|
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1669
1669
|
*/
|
|
1670
|
-
this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,g,void 0,void 0),Et=require("axios"),
|
|
1670
|
+
this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,g,void 0,void 0),Et=require("axios"),At=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[t.isLoaded?a("div",{staticClass:"top-bar-area",attrs:{dir:t.dir}},[a("TopBar",{attrs:{breadcrumbs:t.breadcrumbs,steps:t.steps,isMobile:t.isMobile,have_button:!0,color:(t.isMobile,"#afa2ba"),preview_color:"transparent",dir:t.dir,colors:t.colors},on:{click:t.changeRoute,clickContinue:t.changeRouteContinue}})],1):t._e(),t._v(" "),t.isLoaded?a("div",["book"===t.type||"livro"===t.type?a("div",[a("PreviewBook",{attrs:{uuid:t.uuid,slug:t.slug,have_tools:t.have_tools,dedication_text:t.dedication_text,have_dedication:t.have_dedication,character_id:t.character_id,product_id:t.product_id,gender:t.gender,preview_color:t.preview_color,book_name:t.book_name,book_brand:t.book_brand,character_position_id:t.character_position_id,language:t.language,languages:t.languages,layout:t.layout,layouts:t.layouts,breadcrumbs:t.breadcrumbs,steps:t.steps,is_created:t.is_created},on:{completed:t.completed}})],1):t._e(),t._v(" "),"wallpaper"===t.type?a("div",{staticClass:"preview-height"},[a("PreviewWallpaper",{attrs:{uuid:t.uuid,slug:t.slug,have_tools:t.have_tools,dedication_text:t.dedication_text,have_dedication:t.have_dedication,character_id:t.character_id,product_id:t.product_id,gender:t.gender,preview_color:t.preview_color,book_name:t.book_name,book_brand:t.book_brand,character_position_id:t.character_position_id,language:t.language,languages:t.languages,layout:t.layout,layouts:t.layouts,breadcrumbs:t.breadcrumbs,steps:t.steps,is_created:t.is_created},on:{completed:t.completed}})],1):t._e(),t._v(" "),"poster"===t.type?a("div",{staticClass:"preview-height"},[a("PreviewPoster",{attrs:{uuid:t.uuid,slug:t.slug,have_tools:t.have_tools,dedication_text:t.dedication_text,have_dedication:t.have_dedication,character_id:t.character_id,product_id:t.product_id,gender:t.gender,preview_color:t.preview_color,book_name:t.book_name,book_brand:t.book_brand,character_position_id:t.character_position_id,language:t.language,languages:t.languages,layout:t.layout,layouts:t.layouts,breadcrumbs:t.breadcrumbs,steps:t.steps,is_created:t.is_created},on:{completed:t.completed}})],1):t._e()]):t._e(),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[a("PreviewTools",{directives:[{name:"show",rawName:"v-show",value:t.isLoaded&&t.have_tools,expression:"isLoaded && have_tools"}],attrs:{dedication_text:t.dedication_text,uuid:t.uuid,slug:t.slug,character_id:t.character_id,have_dedication:t.have_dedication,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,language:t.language,languages:t.languages,layout:t.currentLayout,layouts:t.layouts,preview_color:t.preview_color,character_position_id:t.character_position_id,typeRead:t.typeRead,custom_mes:t.custom_mes,custom_numero:t.custom_numero,is_created:t.is_created},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid,changeName:t.changeName,changeDedication:t.changeDedication,changeBirthday:t.changeBirthday,clickContinue:t.changeRouteContinue}})],1),t._v(" "),t.isMobile?t._e():a("div",{staticClass:"bottom-bar-area",attrs:{dir:t.dir}},[t.isLoaded?a("BottomBar",{attrs:{uuid:t.uuid,book_brand:t.book_brand,book_name:t.book_name,preview_color:t.preview_color,book_format:t.book_format,typeLanguage:t.typeLanguage,productType:t.type,dir:t.dir,continueLabel:t.continueLabel},on:{changeUrl:t.changeUrl}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-7539cf38_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.top-bar-area{position:absolute;width:100%;top:0;left:0}@media (max-width:990px){.top-bar-area{position:relative;background-color:#fff}}body{margin:0}.storybook-6{width:16.6666666667vw}.storybook-12{width:33.3333333333vw}.storybook-25{width:69.4444444444vw}.invisible{opacity:0}.preview-full{height:100vh;background-color:#ebe6ee;overflow-y:hidden}@media (max-width:990px){.preview-full{overflow-y:auto;height:auto}}.preview-mobile-area{width:100%;position:relative}.preview-desktop-area{position:relative;z-index:4;height:calc(100vh - 4.619047619rem);display:flex;justify-content:center}@media (max-width:990px){.preview-mobile-tools{position:relative;z-index:20}}.custom-properties{position:absolute;top:30px}.preview-height{height:42.0560747664rem}',map:void 0,media:void 0})}),{name:"PreviewWithTools",components:{PreviewBook:St,PreviewPoster:Lt,PreviewWallpaper:Tt,PreviewTools:vt,TopBar:bt,BottomBar:wt},props:{type:{type:String,
|
|
1671
1671
|
//required: false,
|
|
1672
1672
|
default:"book"},dedication_text:{type:String,required:!1},
|
|
1673
1673
|
/** Product id of Builder. `595` */
|
|
@@ -1722,7 +1722,7 @@ this.$emit("completedDedication",t)},completedBirthday:function(t){
|
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1724
1724
|
*/
|
|
1725
|
-
this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,g,void 0,void 0),
|
|
1725
|
+
this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,g,void 0,void 0),Bt=(require("axios"),u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[t.isLoaded&&!t.isMobile?a("Preview",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage,apiUrl:t.apiUrl}}):t._e(),t._v(" "),t.isLoaded&&t.isMobile?a("PreviewMobile",{attrs:{uuid:t.uuid,pages:t.pages,age:t.age,product_id:t.product_id,typeLanguage:t.typeLanguage,apiUrl:t.apiUrl}}):t._e()],1)},staticRenderFns:[]},(function(t){t&&t("data-v-616f1522_0",{source:'.storybook-6{width:columns("lg", 6)}.storybook-12{width:columns("lg", 12)}.storybook-25{width:columns("lg", 25)}.custom-properties{position:absolute;top:30px}',map:void 0,media:void 0})}),{name:"PreviewFull",components:{Preview:_t,PreviewMobile:Ct},props:{
|
|
1726
1726
|
/** Name of protagonist. `Diego` */
|
|
1727
1727
|
current_name:{type:String,required:!0},pages:{type:String,required:!0},age:{type:String,required:!0},
|
|
1728
1728
|
/** Product id of Builder. `595` */
|
|
@@ -1792,7 +1792,7 @@ t.assets.asset,this.selectedSubcategory.z_index,this.selectedSubcategory.disable
|
|
|
1792
1792
|
//optionNameAuxiliary2,
|
|
1793
1793
|
i,o,r){var d=arguments.length>6&&void 0!==arguments[6]&&arguments[6],n=arguments.length>7&&void 0!==arguments[7]&&arguments[7],s=arguments.length>8&&void 0!==arguments[8]&&arguments[8];console.log("Cor selecionada:",t);var l=this.customization;l||(l={categoryId:this.category.id,categoryZIndex:this.category.z_index,relatedCategoryId:this.category.depends_category},this.removableCategory&&(l.categoryId=s)),l.optionId=e,l.optionName=a,l.optionAsset=i,l.optionZIndex=o,t&&t.auxiliary&&(l.auxiliary=t.auxiliary),t&&t.auxiliary2&&(l.auxiliary2=t.auxiliary2),this.removableCategory&&(this.customization=l),this.$emit("update:customization",{customization:l,categoriesToDisable:r,removeGroup:d,firstGroup:n,removableCategory:!!this.removableCategory})},isDisabled:function(t,e){
|
|
1794
1794
|
//aaaa;
|
|
1795
|
-
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,g,void 0,void 0),Rt=require("axios"),jt=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-panel",class:"rtl"===t.dir?"rtl":""},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-panel-head"},[a("div",{staticClass:"customization-panel-heading"},[t._v("\n "+t._s(t.lang.editCharacter)+" "+t._s(t.characterIsMale?t.lang.do:t.lang.da)+"\n "),a("b",[t._v(t._s(t.characterName))])]),t._v(" "),a("div",{staticClass:"customization-categories"},[t._l(t.categoriesAssets.categories,(function(e){return a("a",{directives:[{name:"show",rawName:"v-show",value:"mooner"!==e.code&&"pet"!==e.code,expression:"category.code !== 'mooner' && category.code !== 'pet'"}],key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedCategory,"is-disabled":t.isCategoryDisabled(e)},"category-"+e.code],attrs:{id:e.code},on:{click:function(a){return t.handleSelectCategory(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n "+t._s(t.lang[e.name])+"\n ")])],1)})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("a",{key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedGroup},"category-"+e.code],on:{click:function(a){return t.handleSelectGroup(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n "+t._s(t.lang[e.name])+"\n ")])],1)}))],2)]),t._v(" "),a("div",{staticClass:"customization-panel-body",attrs:{id:"customization-panel-body"}},[t._l(t.visibleCategoriesCustomizations,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedCategory,expression:"selectedCategory"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.id),relatedCustomization:t.getCustomizationByCategoryId(e.depends_category),disabledCategories:t.disabledCategories,removableCategory:!e.required},on:{"update:customization":t.handleUpdateCustomization}})})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedGroup,expression:"selectedGroup"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.assets.subcategories[0].parent_id),removableCategory:!e.required,customizations:t.customizations},on:{"update:customization":t.handleUpdateCustomization}})}))],2),t._v(" "),a("div",{staticClass:"helper"},[a("div",{ref:"error",staticClass:"error",domProps:{innerHTML:t._s(t.error)}}),t._v(" "),a("div",{staticClass:"btn-avatar",class:t.dir,on:{click:t.generateAvatar}},[a("div",{staticClass:"btn-avatar-preload"},[a("span",[t._v(t._s(t.lang.continue))]),t._v(" "),a("Icon",{attrs:{name:"chevron-right",fill:"#fff",size:"md",stroke:"transparent"}})],1),t._v(" "),a("div",{staticClass:"btn-avatar-loading"},[a("span",{staticClass:"btn-avatar-loading-content",domProps:{innerHTML:t._s(t.loadingContent)}}),t._v(" "),a("span",{staticClass:"btn-avatar-loading-icon"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("path",{attrs:{fill:"#000","fill-rule":"evenodd",d:"M26.383 12.728c-.433-.47-.986-.727-1.48-.728-.293 0-.569.092-.776.29l-2.306 2.179v-.002l-3.136 2.963c-.055.052-.093.109-.13.16l-3.008 2.841-3.545-3.855c-.217-.235-.526-.347-.858-.347-.47 0-.992.217-1.424.625-.465.44-.719 1-.72 1.5 0 .298.092.576.287.788l3.25 3.533 1.823 1.981c.214.235.52.344.85.344.147 0 .295-.021.448-.061l.085.002c.292.001.566-.087.776-.284l5.44-5.14c.054-.052.094-.11.13-.162l4.567-4.315c.234-.22.344-.532.344-.87 0-.474-.215-1.002-.617-1.442z"}})])])])])])])},staticRenderFns:[]},(function(t){t&&t("data-v-2ca543a8_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.postingCharacter{height:100vh}.customization-panel-heading b{font-weight:400;color:#923fda;text-transform:capitalize}.customization-panel{z-index:100;position:fixed;width:520px;height:100%;top:0;right:0;background:#f8f7fc;border-left:1px solid #dfdae4;transition:all .3s;overflow:hidden}.customization-panel.rtl{left:0;right:auto}.customization-panel.rtl .btn-avatar .icon{right:auto;left:0;transform:rotate(180deg)}@media (max-width:992px){.customization-panel{width:100%;bottom:0;top:unset;min-height:180px;height:auto}}.customization-panel-head{background:#fff;border-bottom:1px solid #f0ebf5;box-shadow:0 10px 26px 0 #d7d1ef;position:relative;z-index:150}@media (max-width:992px){.customization-panel-head{box-shadow:0 0 26px 0 #d7d1ef}}.customization-panel-heading{height:80px;max-width:100%;line-height:80px;text-align:center;font-family:Roboto,sans-serif;color:#afa2ba;background:#fff;border-bottom:1px solid #dfdae4;font-size:16px}@media (max-width:992px){.customization-panel-heading{display:none}}.customization-panel-body{height:70%;scroll-behavior:smooth;padding-bottom:70px;z-index:20;overflow-y:auto;position:relative}.customization-panel-body::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.customization-panel-body::-webkit-scrollbar{width:7px;background-color:transparent}.customization-panel-body::-webkit-scrollbar-thumb{border-radius:20px;background-color:#e4e4e4}@media (max-width:992px){.customization-panel-body{padding-bottom:0;z-index:0}}.customization-panel .helper{position:absolute;bottom:0;width:100%;background:#fff;border-top:1px solid #dfdae4;box-shadow:0 0 26px 0 #d7d1ef;padding:.7619047619rem 1.1428571429rem;display:flex;align-items:center;justify-content:center;z-index:999}@media (max-width:992px){.customization-panel .helper{display:none;z-index:0}}.customization-panel .helper .error{background:red;width:100%;color:#fff;font-family:Roboto,sans-serif;font-size:14px;padding:15px 0;text-align:center;text-transform:uppercase;position:absolute;transition:all .3s;top:-45px;opacity:0}.btn-avatar{width:100%;height:65px;font-family:Nunito;font-weight:900;padding:0!important;background:#12d3db;background-size:200%;background-position-x:99%;box-shadow:0 .2381rem .95238rem 0 #89e6e8;border-radius:1.90476rem;color:#fff;transition:all .2s cubic-bezier(.4,0,.2,1);border:0;font-size:14px;letter-spacing:.0381rem;line-height:1.2rem;position:relative;display:flex;align-items:center;justify-content:center}.btn-avatar:hover{box-shadow:0 .2381rem .95238rem 0 #89e6e8;-webkit-transform:translateY(-.09524rem);transform:translateY(-.09524rem);cursor:pointer;background-position-x:0;-webkit-transform:translateY(-.14286rem);transform:translateY(-.14286rem);color:#fff}.btn-avatar:active,.btn-avatar:focus{outline:0;box-shadow:0 0 0 #89e6e8;background-position-x:0;-webkit-transform:translateY(.14286rem) scale(.97);transform:translateY(.14286rem) scale(.97)}.btn-avatar .icon{position:absolute;display:flex;justify-content:center;align-items:center;right:0;top:0;margin:15px!important;bottom:0}.btn-avatar .icon path,.btn-avatar .icon svg{fill:#fff;stroke:#fff}@media (max-width:992px){.btn-avatar{display:none!important}}.btn-avatar-mobile{display:none!important;border:500px;background:#12d3db;border-radius:500px;position:fixed;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#fff;line-height:1;height:2rem;padding:0 .7619047619rem!important;font-size:.4761904762rem;padding:.7619047619rem 1.1428571429rem;width:fit-content;box-shadow:none}@media (max-width:479px){.btn-avatar-mobile{display:flex!important;font-size:1.1214953271rem;padding:1.4953271028rem 2.2429906542rem!important;height:3.9252336449rem;font-size:.9345794393rem;padding:0 1.4953271028rem!important;top:.7476635514rem!important;right:2.2429906542rem!important;z-index:9999}.btn-avatar-mobile .icon{display:none!important}}.btn-avatar-mobile.width-circle{line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-avatar-mobile.width-circle{width:4.1121495327rem;height:4.1121495327rem}}.btn-avatar-mobile.is-inverted{background:#fff;color:#12d3db}.btn-avatar-mobile.is-inverted path,.btn-avatar-mobile.is-inverted svg{fill:#12d3db;stroke:transparent}.btn-avatar-mobile:hover{cursor:pointer}.btn-avatar-mobile:hover:not(.is-inverted){background:#17b8bc}.btn-avatar-mobile:hover.is-inverted{opacity:.8}.btn-avatar-mobile:active,.btn-avatar-mobile:focus{outline:0}.btn-avatar-mobile:active:not(.is-inverted),.btn-avatar-mobile:focus:not(.is-inverted){background:#17b8bc}.btn-avatar-mobile:active.is-inverted,.btn-avatar-mobile:focus.is-inverted{opacity:.8}.btn-avatar-mobile.is-disabled,.btn-avatar-mobile[disabled]{pointer-events:none;background-color:#dfdae4;color:#fff}.btn-avatar-mobile.is-disabled path,.btn-avatar-mobile.is-disabled svg,.btn-avatar-mobile[disabled] path,.btn-avatar-mobile[disabled] svg{fill:#fff;stroke:transparent}.btn-avatar-mobile.rtl{right:0;margin-left:8px}.customization-categories{display:flex;align-items:center;align-content:center;padding:.7619047619rem .7619047619rem}@media (max-width:992px){.customization-categories{padding:0}}.customization-categories .category-vestuario{display:none!important}.customization-categories-item{position:relative;font-size:inherit;flex-basis:0;flex-grow:1;max-width:100%;height:100%;text-align:center}.customization-categories-item:hover{cursor:pointer}.customization-categories-item:hover .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item{height:50px;display:flex;justify-content:center;align-items:center;border:0}}.customization-categories-item-icon{height:52px;width:52px;display:block;border-radius:30px;margin:auto}.customization-categories-item-icon-placeholder{background-color:#dfdae4;border-radius:2px}@media (max-width:992px){.customization-categories-item-icon{display:none}}.customization-categories-item-label{font-weight:400;display:block;font-size:12px;color:#000;text-transform:capitalize!important;font-family:Roboto;padding-top:.380952381rem}@media (max-width:992px){.customization-categories-item-label{margin:0}}.customization-categories-item:first-child{border-left:none}.customization-categories-item.is-selected .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item.is-selected:after{content:"";position:absolute;left:0;bottom:-2px;width:100%;height:3px;background:#12d3db}}@media (max-width:992px) and (max-width:992px){.customization-categories-item.is-selected:after{bottom:0}}.customization-categories-item.is-disabled{opacity:.6}.btn-avatar-reduced{background:#2dd4d9!important;width:65px!important;cursor:wait}@media (max-width:479px){.btn-avatar-reduced{width:40px!important;height:40px!important}}.btn-avatar-loading-completed{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-position:0 0;background-repeat:no-repeat;-webkit-animation:1s loadingCompleted;-moz-animation:1s loadingCompleted;animation:1s loadingCompleted;cursor:wait}@-webkit-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@-moz-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}.btn-avatar-loading-started{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-repeat:no-repeat;background-position:41% 0;-webkit-animation:4s loadingPosition;-moz-animation:4s loadingPosition;animation:4s loadingPosition;transition:.3s;cursor:wait}@-webkit-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@-moz-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}.btn-avatar-loading{font-size:1.4285714286rem;display:none;opacity:0;transition:all .3s;font-size:14px;cursor:wait}.btn-avatar-loading .btn-avatar-loading-icon{display:none;opacity:0;align-items:center;justify-content:center}.btn-avatar-loading .btn-avatar-loading-icon svg{width:2.1904761905rem;height:2.1904761905rem}@media (max-width:479px){.btn-avatar-loading .btn-avatar-loading-icon svg{width:3.5514018692rem;height:3.5514018692rem}}.btn-avatar-loading .btn-avatar-loading-icon path,.btn-avatar-loading .btn-avatar-loading-icon svg{fill:#fff;stroke:#fff}@media (max-width:479px){.btn-avatar-loading{font-size:12px}.btn-avatar-loading .btn-avatar-loading-content{font-size:12px}}',map:void 0,media:void 0})}),{name:"CustomizationPanel",components:{CategoryCustomizations:Dt,Caption:ut,Icon:w},props:{builderApi:{type:String,default:"https://builder.dentrodahistoria.com.br/api"},selectedCharacter:{type:Object,default:{}},characterSlug:{type:String,required:!0},characterId:{type:[Number,String],required:!0},characterTypeId:{type:[Number,String],required:!0},characterName:{type:String,required:!0},characterIsMale:{type:Boolean,required:!0},categoriesAssets:{type:Object,required:!0},disabledCategories:{type:Array,required:!1,default:function(){return[]}},customizations:{type:Array,required:!0},builderProductId:{type:[String,Number],required:!1,default:null},subscriptionId:{type:[Number,String],required:!0},stackId:{type:[Number,String],required:!0},userDataProperties:{type:Object,required:!0},builderLayoutId:{type:[Number,String],required:!1},language:{type:String,required:!1},typeLanguage:{type:String,required:!1,default:"pt"},dir:{type:String,default:"ltr",required:!1}},data:function(){return{selectedCategory:null,selectedGroup:null,selectedCollection:null,error:null,isMobile:null,lang:st[this.typeLanguage],loadingContent:screen.width<1023?"ENVIANDO":"ENVIANDO PERSONAGEM"}},mounted:function(){if(!document.body.getElementsByClassName("btn-avatar-mobile")[0]){var t=document.getElementsByClassName("btn-avatar")[0].cloneNode(!0);t.classList.add("btn-avatar-mobile"),document.body.appendChild(t),document.body.getElementsByClassName("btn-avatar-mobile")[0].addEventListener("click",this.generateAvatar)}var e=document.getElementsByClassName("top-bar")[0];if(screen.width<=1023&&e&&!e.getElementsByClassName("overlay-opacity")[0]){var a=document.getElementsByClassName("overlay-opacity")[0].cloneNode(!0);e.appendChild(a)}if(!document.body.getElementsByClassName("error-mobile")[0]){var i=document.getElementsByClassName("error")[0].cloneNode(!0);i.classList.add("error-mobile"),document.body.appendChild(i)}window.addEventListener("resize",this.screenResize),screen.width>1023?this.isMobile=!1:this.isMobile=!0},beforeDestroy:function(){document.body.getElementsByClassName("btn-avatar-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("btn-avatar-mobile")[0]),document.body.getElementsByClassName("error-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("error-mobile")[0])},computed:{showColorsCustomizations:function(){return!1},showSubcategoriesCustomizations:function(){return!1},visibleCategoriesCustomizations:function(){var t=this,e=[];return this.selectedCategory?e.push(this.selectedCategory):this.selectedCollection&&this.selectedCollection.categories.forEach((function(a){var i=t.categoriesAssets.categories.find((function(t){return t.id===a}));i&&e.push(i)})),e}},methods:{monthsHelper:function(t){switch(t){case 1:return"Janeiro";case 2:return"Fevereiro";case 3:return"Março";case 4:return"Abril";case 5:return"Maio";case 6:return"Junho";case 7:return"Julho";case 8:return"Agosto";case 9:return"Setembro";case 10:return"Outubro";case 11:return"Novembro";case 12:return"Dezembro"}},generateAvatar:function(){var t=this;return B(T().mark((function e(){var a,i,o,r,d,n,s,l,c,p,m,u;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t,o=!1,t.categoriesAssets.categories.forEach((function(e){e.required?((i=t.customizations.find((function(t){return e.id===t.categoryId})))||(i=t.disabledCategories.find((function(t){return e.id===t.categoryId}))),i||(o=!0,r=e)):(e.code.includes("mooner")||e.code.includes("pet"))&&(i=t.disabledCategories.find((function(t){return e.id===t.categoryId})))})),o){e.next=18;break}return t.$emit("startedMethod"),d=null,n=[],t.customizations.forEach((function(t){var e={parent_id:t.categoryId,id:t.optionId?t.optionId:t.relatedCategoryId};e.parent_id&&e.id&&n.push(e)})),s={properties:a.userDataProperties,type:t.characterTypeId},l={custom_character:{character_id:t.characterId,product_id:t.builderProductId,type_id:t.characterTypeId,categories:n,user_data:s}},t.builderLayoutId&&(l.custom_character.layout_id=t.builderLayoutId),t.language&&(l.custom_character.language=t.language),e.next=14,Rt({method:"POST",url:"".concat(t.builderApi,"/customs_characters/"),headers:{"Content-Type":"application/json"},data:l}).then((function(t){return t})).catch((function(t){return t}));case 14:(c=e.sent)&&(200===c.status?t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:c.data.custom.uuid,categories:n,success:!0}):(console.log("tentou pegar o segundo request"),c&&c.response&&c.response.reques&&(p=JSON.parse(c.response.request.responseText),d=p?p.error:"Não foi possível gerar o avatar. Tente novamente."),d&&(t.error=d,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)),t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:c.data.custom.uuid,categories:n,success:!1}))),e.next=22;break;case 18:m=r.code,u="pele"===m?"Necessário selecionar um tom de pele":"Necessário selecionar um tipo de ".concat(m),screen.width>1023&&("roupa"===m||"tenis"===m)?(t.error=u,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)):(document.getElementsByClassName("error")[0].style.opacity="1",document.getElementsByClassName("error")[0].textContent=u,setTimeout((function(){document.getElementsByClassName("error")[0].style.opacity="0",document.getElementsByClassName("error")[0].textContent=""}),5e3)),t.$refs[m][0].click();case 22:case"end":return e.stop()}}),e)})))()},getCustomizationTitle:function(t){var e=t?t.toLowerCase():"";switch(e){case"pele":return"Tons de pele";default:return"Tipos de ".concat(e)}},getCustomizationByCategoryId:function(t){return this.customizations.find((function(e){return e.categoryId===t}))},handleSelectCategory:function(t){if(!this.isCategoryDisabled(t)&&this.selectedCategory!==t){this.selectedCharacter.slug;var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];"cabelo"===t.code||"olhos"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):"roupa"===t.code||"tenis"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-out"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0})),this.selectedGroup=null,this.selectedCollection=null,this.selectedCategory=t}},handleSelectGroup:function(t){if(this.selectedGroup!==t){if(screen.width<=1023){var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];this.selectedCharacter.slug;"acessorio"===t.code||"acessorios"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0}))}this.selectedCategory=null,this.selectedCollection=null,this.selectedGroup=t}},handleSelectCollection:function(t){this.selectedCollection!==t&&(this.selectedCategory=null,this.selectedGroup=null,this.selectedCollection=t)},handleUpdateCustomization:function(t){this.$emit("update:customization",t)},isCategoryDisabled:function(t){return void 0!==this.disabledCategories.find((function(e){return e.categoryId===t.id}))},screenResize:function(){if(screen.width>1023){document.getElementsByClassName("customization-preview-asset");
|
|
1795
|
+
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,g,void 0,void 0),Rt=require("axios"),jt=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"customization-panel",class:"rtl"===t.dir?"rtl":""},[a("div",{staticClass:"overlay-opacity"}),t._v(" "),a("div",{staticClass:"customization-panel-head"},[a("div",{staticClass:"customization-panel-heading"},[t._v("\n "+t._s(t.lang.editCharacter)+" "+t._s(t.characterIsMale?t.lang.do:t.lang.da)+"\n "),a("b",[t._v(t._s(t.characterName))])]),t._v(" "),a("div",{staticClass:"customization-categories"},[t._l(t.categoriesAssets.categories,(function(e){return a("a",{directives:[{name:"show",rawName:"v-show",value:"mooner"!==e.code&&"pet"!==e.code,expression:"category.code !== 'mooner' && category.code !== 'pet'"}],key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedCategory,"is-disabled":t.isCategoryDisabled(e)},"category-"+e.code],attrs:{id:e.code},on:{click:function(a){return t.handleSelectCategory(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n "+t._s(t.lang[e.name])+"\n ")])],1)})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("a",{key:e.key,ref:e.code,refInFor:!0,staticClass:"customization-categories-item",class:[{"is-selected":e===t.selectedGroup},"category-"+e.code],on:{click:function(a){return t.handleSelectGroup(e)}}},[e.assets.icon?a("img",{staticClass:"customization-categories-item-icon",attrs:{src:e.assets.icon}}):a("span",{staticClass:"customization-categories-item-icon customization-categories-item-icon-placeholder"}),t._v(" "),a("Caption",{staticClass:"customization-categories-item-label",attrs:{color:"#AFA2BA"}},[t._v("\n "+t._s(t.lang[e.name])+"\n ")])],1)}))],2)]),t._v(" "),a("div",{staticClass:"customization-panel-body",attrs:{id:"customization-panel-body"}},[t._l(t.visibleCategoriesCustomizations,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedCategory,expression:"selectedCategory"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.id),relatedCustomization:t.getCustomizationByCategoryId(e.depends_category),disabledCategories:t.disabledCategories,removableCategory:!e.required},on:{"update:customization":t.handleUpdateCustomization}})})),t._v(" "),t._l(t.categoriesAssets.groups,(function(e){return a("CategoryCustomizations",{directives:[{name:"show",rawName:"v-show",value:t.selectedGroup,expression:"selectedGroup"}],key:e.id,attrs:{title:e.subtitle,category:e,categoryId:e.id,customization:t.getCustomizationByCategoryId(e.assets.subcategories[0].parent_id),removableCategory:!e.required,customizations:t.customizations},on:{"update:customization":t.handleUpdateCustomization}})}))],2),t._v(" "),a("div",{staticClass:"helper"},[a("div",{ref:"error",staticClass:"error",domProps:{innerHTML:t._s(t.error)}}),t._v(" "),a("div",{staticClass:"btn-avatar",class:t.dir,on:{click:t.generateAvatar}},[a("div",{staticClass:"btn-avatar-preload"},[a("span",[t._v(t._s(t.lang.continue))]),t._v(" "),a("Icon",{attrs:{name:"chevron-right",fill:"#fff",size:"md",stroke:"transparent"}})],1),t._v(" "),a("div",{staticClass:"btn-avatar-loading"},[a("span",{staticClass:"btn-avatar-loading-content",domProps:{innerHTML:t._s(t.loadingContent)}}),t._v(" "),a("span",{staticClass:"btn-avatar-loading-icon"},[a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"}},[a("path",{attrs:{fill:"#000","fill-rule":"evenodd",d:"M26.383 12.728c-.433-.47-.986-.727-1.48-.728-.293 0-.569.092-.776.29l-2.306 2.179v-.002l-3.136 2.963c-.055.052-.093.109-.13.16l-3.008 2.841-3.545-3.855c-.217-.235-.526-.347-.858-.347-.47 0-.992.217-1.424.625-.465.44-.719 1-.72 1.5 0 .298.092.576.287.788l3.25 3.533 1.823 1.981c.214.235.52.344.85.344.147 0 .295-.021.448-.061l.085.002c.292.001.566-.087.776-.284l5.44-5.14c.054-.052.094-.11.13-.162l4.567-4.315c.234-.22.344-.532.344-.87 0-.474-.215-1.002-.617-1.442z"}})])])])])])])},staticRenderFns:[]},(function(t){t&&t("data-v-2ca543a8_0",{source:'@charset "UTF-8";@import url(https://fonts.googleapis.com/css?family=Nunito:400,600,700,900&display=swap);@import url(https://fonts.googleapis.com/css?family=Roboto:400,600,700,900&display=swap);:root{--column-width:6.6666666667vw}@media (min-width:0px){:root{--column-width:6.6666666667vw}}@media (min-width:480px){:root{--column-width:2.7777777778vw}}@media (min-width:0px){html{font-size:2.9166666667vw}}@media (min-width:480px){html{font-size:14px}}@media (min-width:1024px){:root{--column-width:2.7777777778vw}}@media (min-width:1920px){:root{--column-width:2.7777777778vw}}@media (min-width:2620px){:root{--column-width:2.7777777778vw}}@media (min-width:1024px){html{font-size:1.5648854962vw}}@media (min-width:2620px){html{font-size:1.56vw}}html{box-sizing:border-box}*,::after,::before{box-sizing:border-box}.postingCharacter{height:100vh}.customization-panel-heading b{font-weight:400;color:#923fda;text-transform:capitalize}.customization-panel{z-index:100;position:fixed;width:520px;height:100%;top:0;right:0;background:#f8f7fc;border-left:1px solid #dfdae4;transition:all .3s;overflow:hidden}.customization-panel.rtl{left:0;right:auto}.customization-panel.rtl .btn-avatar .icon{right:auto;left:0;transform:rotate(180deg)}@media (max-width:992px){.customization-panel{width:100%;bottom:0;top:unset;min-height:180px;height:auto}}.customization-panel-head{background:#fff;border-bottom:1px solid #f0ebf5;box-shadow:0 10px 26px 0 #d7d1ef;position:relative;z-index:150}@media (max-width:992px){.customization-panel-head{box-shadow:0 0 26px 0 #d7d1ef}}.customization-panel-heading{height:80px;max-width:100%;line-height:80px;text-align:center;font-family:Roboto,sans-serif;color:#afa2ba;background:#fff;border-bottom:1px solid #dfdae4;font-size:16px}@media (max-width:992px){.customization-panel-heading{display:none}}.customization-panel-body{height:70%;scroll-behavior:smooth;padding-bottom:70px;z-index:20;overflow-y:auto;position:relative}.customization-panel-body::-webkit-scrollbar-track{border-radius:10px;background-color:transparent}.customization-panel-body::-webkit-scrollbar{width:7px;background-color:transparent}.customization-panel-body::-webkit-scrollbar-thumb{border-radius:20px;background-color:#e4e4e4}@media (max-width:992px){.customization-panel-body{padding-bottom:0;z-index:0}}.customization-panel .helper{position:absolute;bottom:0;width:100%;background:#fff;border-top:1px solid #dfdae4;box-shadow:0 0 26px 0 #d7d1ef;padding:.7619047619rem 1.1428571429rem;display:flex;align-items:center;justify-content:center;z-index:999}@media (max-width:992px){.customization-panel .helper{display:none;z-index:0}}.customization-panel .helper .error{background:red;width:100%;color:#fff;font-family:Roboto,sans-serif;font-size:14px;padding:15px 0;text-align:center;text-transform:uppercase;position:absolute;transition:all .3s;top:-45px;opacity:0}.btn-avatar{width:100%;height:65px;font-family:Nunito;font-weight:900;padding:0!important;background:#12d3db;background-size:200%;background-position-x:99%;box-shadow:0 .2381rem .95238rem 0 #89e6e8;border-radius:1.90476rem;color:#fff;transition:all .2s cubic-bezier(.4,0,.2,1);border:0;font-size:14px;letter-spacing:.0381rem;line-height:1.2rem;position:relative;display:flex;align-items:center;justify-content:center}.btn-avatar:hover{box-shadow:0 .2381rem .95238rem 0 #89e6e8;-webkit-transform:translateY(-.09524rem);transform:translateY(-.09524rem);cursor:pointer;background-position-x:0;-webkit-transform:translateY(-.14286rem);transform:translateY(-.14286rem);color:#fff}.btn-avatar:active,.btn-avatar:focus{outline:0;box-shadow:0 0 0 #89e6e8;background-position-x:0;-webkit-transform:translateY(.14286rem) scale(.97);transform:translateY(.14286rem) scale(.97)}.btn-avatar .icon{position:absolute;display:flex;justify-content:center;align-items:center;right:0;top:0;margin:15px!important;bottom:0}.btn-avatar .icon path,.btn-avatar .icon svg{fill:#fff;stroke:#fff}@media (max-width:992px){.btn-avatar{display:none!important}}.btn-avatar-mobile{display:none!important;border:500px;background:#12d3db;border-radius:500px;position:fixed;overflow:hidden;font-family:Nunito,sans-serif;font-weight:900;text-transform:uppercase;font-size:.5714285714rem;color:#fff;line-height:1;height:2rem;padding:0 .7619047619rem!important;font-size:.4761904762rem;padding:.7619047619rem 1.1428571429rem;width:fit-content;box-shadow:none}@media (max-width:479px){.btn-avatar-mobile{display:flex!important;font-size:1.1214953271rem;padding:1.4953271028rem 2.2429906542rem!important;height:3.9252336449rem;font-size:.9345794393rem;padding:0 1.4953271028rem!important;top:.7476635514rem!important;right:2.2429906542rem!important;z-index:9999}.btn-avatar-mobile .icon{display:none!important}}.btn-avatar-mobile.width-circle{line-height:1;width:2.0952380952rem;height:2.0952380952rem;display:flex;align-items:center;justify-content:center}@media (max-width:479px){.btn-avatar-mobile.width-circle{width:4.1121495327rem;height:4.1121495327rem}}.btn-avatar-mobile.is-inverted{background:#fff;color:#12d3db}.btn-avatar-mobile.is-inverted path,.btn-avatar-mobile.is-inverted svg{fill:#12d3db;stroke:transparent}.btn-avatar-mobile:hover{cursor:pointer}.btn-avatar-mobile:hover:not(.is-inverted){background:#17b8bc}.btn-avatar-mobile:hover.is-inverted{opacity:.8}.btn-avatar-mobile:active,.btn-avatar-mobile:focus{outline:0}.btn-avatar-mobile:active:not(.is-inverted),.btn-avatar-mobile:focus:not(.is-inverted){background:#17b8bc}.btn-avatar-mobile:active.is-inverted,.btn-avatar-mobile:focus.is-inverted{opacity:.8}.btn-avatar-mobile.is-disabled,.btn-avatar-mobile[disabled]{pointer-events:none;background-color:#dfdae4;color:#fff}.btn-avatar-mobile.is-disabled path,.btn-avatar-mobile.is-disabled svg,.btn-avatar-mobile[disabled] path,.btn-avatar-mobile[disabled] svg{fill:#fff;stroke:transparent}.btn-avatar-mobile.rtl{right:0;margin-left:8px}.customization-categories{display:flex;align-items:center;align-content:center;padding:.7619047619rem .7619047619rem}@media (max-width:992px){.customization-categories{padding:0}}.customization-categories .category-vestuario{display:none!important}.customization-categories-item{position:relative;font-size:inherit;flex-basis:0;flex-grow:1;max-width:100%;height:100%;text-align:center}.customization-categories-item:hover{cursor:pointer}.customization-categories-item:hover .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item{height:50px;display:flex;justify-content:center;align-items:center;border:0}}.customization-categories-item-icon{height:52px;width:52px;display:block;border-radius:30px;margin:auto}.customization-categories-item-icon-placeholder{background-color:#dfdae4;border-radius:2px}@media (max-width:992px){.customization-categories-item-icon{display:none}}.customization-categories-item-label{font-weight:400;display:block;font-size:12px;color:#000;text-transform:capitalize!important;font-family:Roboto;padding-top:.380952381rem}@media (max-width:992px){.customization-categories-item-label{margin:0}}.customization-categories-item:first-child{border-left:none}.customization-categories-item.is-selected .customization-categories-item-label{color:#12d3db!important}@media (max-width:992px){.customization-categories-item.is-selected:after{content:"";position:absolute;left:0;bottom:-2px;width:100%;height:3px;background:#12d3db}}@media (max-width:992px) and (max-width:992px){.customization-categories-item.is-selected:after{bottom:0}}.customization-categories-item.is-disabled{opacity:.6}.btn-avatar-reduced{background:#2dd4d9!important;width:65px!important;cursor:wait}@media (max-width:479px){.btn-avatar-reduced{width:40px!important;height:40px!important}}.btn-avatar-loading-completed{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-position:0 0;background-repeat:no-repeat;-webkit-animation:1s loadingCompleted;-moz-animation:1s loadingCompleted;animation:1s loadingCompleted;cursor:wait}@-webkit-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@-moz-keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}@keyframes loadingCompleted{0%{background-position:41% 0}100%{background-position:0 0}}.btn-avatar-loading-started{background-color:#2dd4d9;background-image:linear-gradient(90deg,#04bb69 50%,#00cf72 50%);background-repeat:no-repeat;background-position:41% 0;-webkit-animation:4s loadingPosition;-moz-animation:4s loadingPosition;animation:4s loadingPosition;transition:.3s;cursor:wait}@-webkit-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@-moz-keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}@keyframes loadingPosition{0%{background-position:100% 0}35%{background-position:92% 0}50%{background-position:83% 0}75%{background-position:72% 0}100%{background-position:41% 0}}.btn-avatar-loading{font-size:1.4285714286rem;display:none;opacity:0;transition:all .3s;font-size:14px;cursor:wait}.btn-avatar-loading .btn-avatar-loading-icon{display:none;opacity:0;align-items:center;justify-content:center}.btn-avatar-loading .btn-avatar-loading-icon svg{width:2.1904761905rem;height:2.1904761905rem}@media (max-width:479px){.btn-avatar-loading .btn-avatar-loading-icon svg{width:3.5514018692rem;height:3.5514018692rem}}.btn-avatar-loading .btn-avatar-loading-icon path,.btn-avatar-loading .btn-avatar-loading-icon svg{fill:#fff;stroke:#fff}@media (max-width:479px){.btn-avatar-loading{font-size:12px}.btn-avatar-loading .btn-avatar-loading-content{font-size:12px}}',map:void 0,media:void 0})}),{name:"CustomizationPanel",components:{CategoryCustomizations:Dt,Caption:ut,Icon:w},props:{builderApi:{type:String,default:"https://builder.dentrodahistoria.com.br/api"},selectedCharacter:{type:Object,default:{}},characterSlug:{type:String,required:!0},characterId:{type:[Number,String],required:!0},characterTypeId:{type:[Number,String],required:!0},characterName:{type:String,required:!0},characterIsMale:{type:Boolean,required:!0},categoriesAssets:{type:Object,required:!0},disabledCategories:{type:Array,required:!1,default:function(){return[]}},customizations:{type:Array,required:!0},builderProductId:{type:[String,Number],required:!1,default:null},subscriptionId:{type:[Number,String],required:!0},stackId:{type:[Number,String],required:!0},userDataProperties:{type:Object,required:!0},builderLayoutId:{type:[Number,String],required:!1},language:{type:String,required:!1},typeLanguage:{type:String,required:!1,default:"pt"},dir:{type:String,default:"ltr",required:!1}},data:function(){return{selectedCategory:null,selectedGroup:null,selectedCollection:null,error:null,isMobile:null,lang:st[this.typeLanguage],loadingContent:screen.width<1023?"ENVIANDO":"ENVIANDO PERSONAGEM"}},mounted:function(){if(!document.body.getElementsByClassName("btn-avatar-mobile")[0]){var t=document.getElementsByClassName("btn-avatar")[0].cloneNode(!0);t.classList.add("btn-avatar-mobile"),document.body.appendChild(t),document.body.getElementsByClassName("btn-avatar-mobile")[0].addEventListener("click",this.generateAvatar)}var e=document.getElementsByClassName("top-bar")[0];if(screen.width<=1023&&e&&!e.getElementsByClassName("overlay-opacity")[0]){var a=document.getElementsByClassName("overlay-opacity")[0].cloneNode(!0);e.appendChild(a)}if(!document.body.getElementsByClassName("error-mobile")[0]){var i=document.getElementsByClassName("error")[0].cloneNode(!0);i.classList.add("error-mobile"),document.body.appendChild(i)}window.addEventListener("resize",this.screenResize),screen.width>1023?this.isMobile=!1:this.isMobile=!0},beforeDestroy:function(){document.body.getElementsByClassName("btn-avatar-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("btn-avatar-mobile")[0]),document.body.getElementsByClassName("error-mobile")[0]&&document.body.removeChild(document.getElementsByClassName("error-mobile")[0])},computed:{showColorsCustomizations:function(){return!1},showSubcategoriesCustomizations:function(){return!1},visibleCategoriesCustomizations:function(){var t=this,e=[];return this.selectedCategory?e.push(this.selectedCategory):this.selectedCollection&&this.selectedCollection.categories.forEach((function(a){var i=t.categoriesAssets.categories.find((function(t){return t.id===a}));i&&e.push(i)})),e}},methods:{monthsHelper:function(t){switch(t){case 1:return"Janeiro";case 2:return"Fevereiro";case 3:return"Março";case 4:return"Abril";case 5:return"Maio";case 6:return"Junho";case 7:return"Julho";case 8:return"Agosto";case 9:return"Setembro";case 10:return"Outubro";case 11:return"Novembro";case 12:return"Dezembro"}},generateAvatar:function(){var t=this;return A(T().mark((function e(){var a,i,o,r,d,n,s,l,c,p,m,u;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t,o=!1,t.categoriesAssets.categories.forEach((function(e){e.required?((i=t.customizations.find((function(t){return e.id===t.categoryId})))||(i=t.disabledCategories.find((function(t){return e.id===t.categoryId}))),i||(o=!0,r=e)):(e.code.includes("mooner")||e.code.includes("pet"))&&(i=t.disabledCategories.find((function(t){return e.id===t.categoryId})))})),o){e.next=18;break}return t.$emit("startedMethod"),d=null,n=[],t.customizations.forEach((function(t){var e={parent_id:t.categoryId,id:t.optionId?t.optionId:t.relatedCategoryId};e.parent_id&&e.id&&n.push(e)})),s={properties:a.userDataProperties,type:t.characterTypeId},l={custom_character:{character_id:t.characterId,product_id:t.builderProductId,type_id:t.characterTypeId,categories:n,user_data:s}},t.builderLayoutId&&(l.custom_character.layout_id=t.builderLayoutId),t.language&&(l.custom_character.language=t.language),e.next=14,Rt({method:"POST",url:"".concat(t.builderApi,"/customs_characters/"),headers:{"Content-Type":"application/json"},data:l}).then((function(t){return t})).catch((function(t){return t}));case 14:(c=e.sent)&&(200===c.status?t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:c.data.custom.uuid,categories:n,success:!0}):(console.log("tentou pegar o segundo request"),c&&c.response&&c.response.reques&&(p=JSON.parse(c.response.request.responseText),d=p?p.error:"Não foi possível gerar o avatar. Tente novamente."),d&&(t.error=d,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)),t.$emit("completedMethod",{updatedCustomizations:t.customizations,updatedUuid:c.data.custom.uuid,categories:n,success:!1}))),e.next=22;break;case 18:m=r.code,u="pele"===m?"Necessário selecionar um tom de pele":"Necessário selecionar um tipo de ".concat(m),screen.width>1023&&("roupa"===m||"tenis"===m)?(t.error=u,t.$refs.error.style.opacity="1",setTimeout((function(){t.$refs.error.style.opacity="0"}),5e3)):(document.getElementsByClassName("error")[0].style.opacity="1",document.getElementsByClassName("error")[0].textContent=u,setTimeout((function(){document.getElementsByClassName("error")[0].style.opacity="0",document.getElementsByClassName("error")[0].textContent=""}),5e3)),t.$refs[m][0].click();case 22:case"end":return e.stop()}}),e)})))()},getCustomizationTitle:function(t){var e=t?t.toLowerCase():"";switch(e){case"pele":return"Tons de pele";default:return"Tipos de ".concat(e)}},getCustomizationByCategoryId:function(t){return this.customizations.find((function(e){return e.categoryId===t}))},handleSelectCategory:function(t){if(!this.isCategoryDisabled(t)&&this.selectedCategory!==t){this.selectedCharacter.slug;var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];"cabelo"===t.code||"olhos"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):"roupa"===t.code||"tenis"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-out"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0})),this.selectedGroup=null,this.selectedCollection=null,this.selectedCategory=t}},handleSelectGroup:function(t){if(this.selectedGroup!==t){if(screen.width<=1023){var e=document.getElementsByClassName("customization-preview-asset"),a=document.getElementsByClassName("customization-preview")[0];this.selectedCharacter.slug;"acessorio"===t.code||"acessorios"===t.code||"oculos"===t.code?(a.classList.remove("zoom-in"),a.classList.remove("zoom-out"),a.className+=" zoom-in"):(a.classList.remove("zoom-in"),a.classList.remove("zoom-out")),Array.from(e).forEach((function(t){t.style.transform=void 0}))}this.selectedCategory=null,this.selectedCollection=null,this.selectedGroup=t}},handleSelectCollection:function(t){this.selectedCollection!==t&&(this.selectedCategory=null,this.selectedGroup=null,this.selectedCollection=t)},handleUpdateCustomization:function(t){this.$emit("update:customization",t)},isCategoryDisabled:function(t){return void 0!==this.disabledCategories.find((function(e){return e.categoryId===t.id}))},screenResize:function(){if(screen.width>1023){document.getElementsByClassName("customization-preview-asset");
|
|
1796
1796
|
// const transform = "scale(1) translateY(0)"
|
|
1797
1797
|
// Array.from(avatar).forEach(piece => {
|
|
1798
1798
|
// piece.style.transform = transform
|
|
@@ -1807,7 +1807,7 @@ disabledCategories:[],
|
|
|
1807
1807
|
// Acumulara as customizações que não podem ser customizadas
|
|
1808
1808
|
isIniting:!1,isLoading:!1,selectedCharacter:{},characterId:"",characterTypeId:"",characterName:"",loadedCustomizations:[],characterIsMale:this.custom_properties.is_male,builderProductId:!1,characterHeight:null,userDataProperties:this.custom_properties.user_data.properties,languageSelected:""}},mounted:function(){var t=this;this.isIniting=!0,this.loadCustomizationTreeList().then((function(){t.isIniting=!1,t.isLoading=!0})).then(this.parseCollection).then(this.loadCustomizationCharacter).then(this.initCustomizationCharacter).then(this.initDisabledCategories).then((function(){t.isLoading=!1}))},methods:{startedMethod:function(){this.$emit("startedMethod")},completedMethod:function(t){t.success?this.$emit("completedMethod",{updatedCustomizations:t.updatedCustomizations,updatedUuid:t.updatedUuid,characterName:this.characterName,characterIsMale:this.custom_properties.is_male,
|
|
1809
1809
|
//this.characterIsMale,
|
|
1810
|
-
categories:t.categories,success:t.success}):this.$emit("completedMethod",{success:t.success})},loadCustomizationTreeList:function(){var t=this;return
|
|
1810
|
+
categories:t.categories,success:t.success}):this.$emit("completedMethod",{success:t.success})},loadCustomizationTreeList:function(){var t=this;return A(T().mark((function e(){var a,i,o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(
|
|
1811
1811
|
//aaaa;
|
|
1812
1812
|
// Verifica se foi informado a language
|
|
1813
1813
|
t.language&&(t.languageSelected="&language="+t.language),!t.treelist){e.next=5;break}if(!(t.treelist.character_categories_assets&&t.treelist.character_categories_assets.length>0)){e.next=5;break}return t.categoriesAssets=t.treelist.character_categories_assets[0],e.abrupt("return");case 5:if(!t.custom_properties.uuid){e.next=25;break}return e.next=8,Ot.get("".concat(t.builder_api,"/customs_characters/").concat(t.custom_properties.uuid));case 8:return i=e.sent,o=i.data,e.next=12,Ot.get("".concat(t.builder_api,"/characters/").concat(o.custom.character_id,"/categories/assets/treelist?character_type_id=").concat(o.custom.user_data.type,"&subscription=").concat(t.is_subscription).concat(t.languageSelected,"&product_id=").concat(t.custom_properties.product_id));case 12:a=e.sent,t.selectedCharacter.slug=a.data.character_categories_assets[0].type.code,t.characterId=o.custom.character_id,t.characterName=o.custom.user_data.properties.nome.value,t.characterIsMale=t.custom_properties.is_male,//res.data.character_categories_assets[0].type.code === 'menino' ? true : false
|
|
@@ -1857,7 +1857,7 @@ e.updateCustomizations(i.assets.subcategories[0].parent_id,null,i.assets.subcate
|
|
|
1857
1857
|
* buscar tal informação, caso contrário ele seta as informações
|
|
1858
1858
|
* default das categorias na personalização
|
|
1859
1859
|
*/
|
|
1860
|
-
loadCustomizationCharacter:function(){var t=this;return
|
|
1860
|
+
loadCustomizationCharacter:function(){var t=this;return A(T().mark((function e(){return T().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,d){var n=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=d):(c={categoryId:t,relatedCategoryId:e,optionId:a,optionName:i,optionAsset:o,optionZIndex:r,categoryZIndex:d,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&&n.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,d=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:d,optionZIndex:o}:null},getRelatedCategoryDefaultCustomization:function(t){var e,a,i,o,r,d=t.id,n=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:d,relatedCategoryId:n,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,d=void 0!==r&&r,n=t.removableCategory,s=void 0!==n&&n;
|
|
1861
1861
|
// Verifica se há outra customização que deve ser atualizada
|
|
1862
1862
|
// em função dessa atualização e atualiza essa customização
|
|
1863
1863
|
// antes
|
|
@@ -1952,7 +1952,7 @@ builderLayoutId:{type:[Number,String],required:!1},
|
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Language utilizado para selecionar o idioma do livro, este parametro deve ser informado na chamada da treelist e na criação do personagem
|
|
1954
1954
|
*/
|
|
1955
|
-
language:{type:String,required:!1},typeLanguage:{type:String,required:!1,default:"pt"},dir:{type:String,default:"ltr",required:!1}},data:function(){return{custom_properties:{}}},computed:{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"}}},created:function(){var t=this;return
|
|
1955
|
+
language:{type:String,required:!1},typeLanguage:{type:String,required:!1,default:"pt"},dir:{type:String,default:"ltr",required:!1}},data:function(){return{custom_properties:{}}},computed:{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"}}},created:function(){var t=this;return A(T().mark((function e(){var a,i;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=t,t.custom_properties={nome:{code:"nome",property_id:24,value:t.name}},t.custom_numero&&(t.custom_properties.numero={code:"numero",property_id:29,value:t.custom_numero.toString()}),t.custom_mes&&(t.custom_properties.mes={code:"mes",property_id:38,value:t.monthsHelperByName(t.custom_mes)}),t.custom_dedicatoria&&(t.custom_properties.dedicatoria={code:"dedicatoria",property_id:26,value:t.custom_dedicatoria}),t.custom_mooner&&(i="Morsax",a.uuid&&Ut.get("https://builder.dentrodahistoria.com.br/api/customs_characters/"+a.uuid).then((function(e){console.log(e),e.data.custom.user_data.properties["nome-do-mooner"]&&(i=e.data.custom.user_data.properties["nome-do-mooner"].value),t.custom_properties["nome-do-mooner"]={code:"nome-do-mooner",property_id:154,value:i}})).catch((function(t){
|
|
1956
1956
|
// let fieldError = {
|
|
1957
1957
|
// field: "error-modal",
|
|
1958
1958
|
// msg: error.response.data.message,
|
|
@@ -1971,7 +1971,7 @@ this.$emit("started")},completed:function(t){
|
|
|
1971
1971
|
/**
|
|
1972
1972
|
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1973
1973
|
*/
|
|
1974
|
-
this.$emit("completed",t)}}},"data-v-4d1416da",!1,void 0,!1,g,void 0,void 0),Zt=Object.freeze({__proto__:null,Button:x,Card:y,CardLink:_,CardOption:k,CardProduct:M,CoverProduct:S,Checkbox:P,Icon:w,Brand:L,Input:
|
|
1974
|
+
this.$emit("completed",t)}}},"data-v-4d1416da",!1,void 0,!1,g,void 0,void 0),Zt=Object.freeze({__proto__:null,Button:x,Card:y,CardLink:_,CardOption:k,CardProduct:M,CoverProduct:S,Checkbox:P,Icon:w,Brand:L,Input:B,InputEdit:I,InputName:F,InputEmail:q,InputAddressNumber:$,InputAddress:V,InputAddressBilling:U,InputCardNumber:H,Options:O,Radius:Z,Select:j,Birthday:Q,BirthdayMobile:dt,TextArea:nt,GenderSelect:lt,Tabs:ct,TabsLine:pt,Tooltip:mt,Caption:ut,Heading:z,Paragraph:C,Modal:ht,Preview:At,PreviewMobile:Ct,PreviewTools:vt,PreviewFull:Bt,HR:It,Spinner:Ft,FeedBack:qt,Avatar:Ht}),Wt=function(t){Wt.installed||(Wt.installed=!0,Object.entries(Zt).forEach((function(e){var a=m(e,2),i=a[0],o=a[1];t.component(i,o)})))},Xt={install:Wt},Gt=null;"undefined"!=typeof window?Gt=window.Vue:"undefined"!=typeof global&&(Gt=global.Vue),Gt&&Gt.use(Xt);
|
|
1975
1975
|
// // Import vue component
|
|
1976
1976
|
// import MyButton from './components/MyButton/MyButton.vue';
|
|
1977
1977
|
// import Heading from './components/Heading/Heading.vue';
|
|
@@ -1998,4 +1998,4 @@ this.$emit("completed",t)}}},"data-v-4d1416da",!1,void 0,!1,g,void 0,void 0),Zt=
|
|
|
1998
1998
|
// }
|
|
1999
1999
|
// // To allow use as module (npm/webpack/etc.) export component
|
|
2000
2000
|
// export default MyButton;
|
|
2001
|
-
export default Xt;export{Ht as Avatar,Q as Birthday,dt as BirthdayMobile,L as Brand,x as Button,ut as Caption,y as Card,_ as CardLink,k as CardOption,M as CardProduct,P as Checkbox,S as CoverProduct,qt as FeedBack,lt as GenderSelect,It as HR,z as Heading,w as Icon,
|
|
2001
|
+
export default Xt;export{Ht as Avatar,Q as Birthday,dt as BirthdayMobile,L as Brand,x as Button,ut as Caption,y as Card,_ as CardLink,k as CardOption,M as CardProduct,P as Checkbox,S as CoverProduct,qt as FeedBack,lt as GenderSelect,It as HR,z as Heading,w as Icon,B as Input,V as InputAddress,U as InputAddressBilling,$ as InputAddressNumber,H as InputCardNumber,I as InputEdit,q as InputEmail,F as InputName,ht as Modal,O as Options,C as Paragraph,At as Preview,Bt as PreviewFull,Ct as PreviewMobile,vt as PreviewTools,Z as Radius,j as Select,Ft as Spinner,ct as Tabs,pt as TabsLine,nt as TextArea,mt as Tooltip};
|