@tiddh/brave-vue 1.93.259 → 1.93.261
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/brave-vue.esm.js
CHANGED
|
@@ -1684,7 +1684,7 @@ this.$emit("completedDedication",t)},completedBirthday:function(t){
|
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Função disparada ao ser finalizada customização. Recebe um objeto.
|
|
1686
1686
|
*/
|
|
1687
|
-
this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,g,void 0,void 0),It=require("axios"),qt=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[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._v(" "),a("div",["book"===t.type||"livro"===t.type||"Combo"===t.type||"combo"===t.type?a("div",{staticClass:"preview-height"},[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,builder_apk:t.builder_apk},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,builder_apk:t.builder_apk},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,builder_apk:t.builder_apk},on:{completed:t.completed}})],1):t._e()]),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[a("PreviewTools",{directives:[{name:"show",rawName:"v-show",value:t.isLoaded&&t.have_tools,expression:"isLoaded && have_tools"}],attrs:{dedication_text:t.dedication_text,uuid:t.uuid,slug:t.slug,character_id:t.character_id,have_dedication:t.have_dedication,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,language:t.language,languages:t.languages,layout:t.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,builder_apk:t.builder_apk},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid,changeName:t.changeName,changeDedication:t.changeDedication,changeBirthday:t.changeBirthday,clickContinue:t.changeRouteContinue}})],1),t._v(" "),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,builder_apk:t.builder_apk},on:{changeUrl:t.changeUrl}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-
|
|
1687
|
+
this.$emit("completedBirthday",t)}}},void 0,!1,void 0,!1,g,void 0,void 0),It=require("axios"),qt=u({render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"preview-full"},[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._v(" "),a("div",["book"===t.type||"livro"===t.type||"Combo"===t.type||"combo"===t.type?a("div",{staticClass:"preview-height"},[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,builder_apk:t.builder_apk},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,builder_apk:t.builder_apk},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,builder_apk:t.builder_apk},on:{completed:t.completed}})],1):t._e()]),t._v(" "),a("div",{staticClass:"preview-mobile-tools",class:t.isLoaded?"":"invisible"},[a("PreviewTools",{directives:[{name:"show",rawName:"v-show",value:t.isLoaded&&t.have_tools,expression:"isLoaded && have_tools"}],attrs:{dedication_text:t.dedication_text,uuid:t.uuid,slug:t.slug,character_id:t.character_id,have_dedication:t.have_dedication,product_id:t.product_id,gender:t.gender,typeLanguage:t.typeLanguage,language:t.language,languages:t.languages,layout:t.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,builder_apk:t.builder_apk},on:{isLoadingMethod:t.isLoadingMethod,changeUuid:t.changeUuid,changeName:t.changeName,changeDedication:t.changeDedication,changeBirthday:t.changeBirthday,clickContinue:t.changeRouteContinue}})],1),t._v(" "),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,builder_apk:t.builder_apk},on:{changeUrl:t.changeUrl}}):t._e()],1)])},staticRenderFns:[]},(function(t){t&&t("data-v-1fc09046_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:#ece6ee;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:"PreviewMain",components:{PreviewBook:Mt,PreviewPoster:Lt,PreviewWallpaper:Nt,PreviewTools:bt,TopBar:wt,BottomBar:xt},props:{type:{type:String,
|
|
1688
1688
|
//required: false,
|
|
1689
1689
|
default:"book"},dedication_text:{type:String,required:!1},
|
|
1690
1690
|
/** Product id of Builder. `595` */
|
|
@@ -1716,11 +1716,7 @@ builder_apk:{type:String,required:!1}},data:function(){return{isLoaded:!1,isMobi
|
|
|
1716
1716
|
// self.isMobile = self.detectSize();
|
|
1717
1717
|
// });
|
|
1718
1718
|
// self.lang = Language[self.typeLanguage];
|
|
1719
|
-
|
|
1720
|
-
// if (self.layout) {
|
|
1721
|
-
// self.currentLayout = self.layout;
|
|
1722
|
-
// }
|
|
1723
|
-
},methods:{updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this,e=this.lang.urlBuilder+"/api/products/info/"+t.product_id;t.builder_apk&&(e+="?apk=".concat(encodeURIComponent(t.builder_apk))),It.get(e).then((function(e){t.isLoaded=!0,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]))})).catch((function(t){console.log(t)}))},detectSize:function(){if(self.isMobile=!1,window.innerWidth<990)return!0},isLoadingMethod:function(t){
|
|
1719
|
+
this.getProductInfo()},methods:{updateCurrentPage:function(t){this.currentPage=t},getProductInfo:function(){var t=this,e=this.lang.urlBuilder+"/api/products/info/"+t.product_id;t.builder_apk&&(e+="?apk=".concat(encodeURIComponent(t.builder_apk))),It.get(e).then((function(e){t.isLoaded=!0,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]))})).catch((function(t){console.log(t)}))},detectSize:function(){if(self.isMobile=!1,window.innerWidth<990)return!0},isLoadingMethod:function(t){
|
|
1724
1720
|
//self.isLoaded = payload;
|
|
1725
1721
|
},changeUuid:function(t){
|
|
1726
1722
|
//console.log("uuid", payload)
|