Free javascript Hosting


5e6aede610098b4e953d.js

Uploaded on Dec 07 2021 23:14 by premrajpaul9

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[2],{"01d3":function(e,t,o){"use strict";var a=o("0ada"),r=o.n(a);r.a},"0668":function(e,t,o){},"0ada":function(e,t,o){},"713b":function(e,t,o){"use strict";o.r(t);var a=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-layout",{attrs:{view:"hHh lpR fFf"}},[o("q-header",{staticClass:"bg-primary text-white layout-header",attrs:{elevated:"","height-hint":"99"}},[o("div",{staticClass:" row justify-between items-center no-wrap "},[e.$q.screen.xs?e._e():o("div",{staticClass:"col-auto offset-md-0 logo "},[o("q-avatar",[o("img",{attrs:{src:"https://cdn.deepsukebe.io/statics/icons/favicon-96x96_w.png"}})])],1),e.$q.screen.xs?o("div",{staticClass:"col-auto offset-md-0 mobile-menu "},[o("q-btn-dropdown",{attrs:{stretch:"",flat:"",label:e.predictorCountNewImage,icon:"menu","dropdown-icon":"img:https://cdn.deepsukebe.io/statics/icons/favicon-96x96_w.png","content-class":"text-black","content-style":"background-color: #ff0088; ",ripple:!0,"auto-close":!1}},[o("q-list",{staticClass:"list-tab-mobile",attrs:{align:"center","outside-arrows":"","mobile-arrows":"","inline-label":"",ripple:!0}},[o("q-item",{attrs:{to:"/"+this.getStrLocale+"/",clickable:""}},[o("div",{staticClass:"col justify-between items-center"},[o("q-item-label",{attrs:{header:""}},[e._v(e._s(e.$t("layout/label/top")))])],1)]),o("q-separator"),o("q-item",{attrs:{to:"/"+this.getStrLocale+"/price"}},[o("div",{staticClass:"col justify-between items-center"},[o("q-item-label",{attrs:{header:""}},[e._v(e._s(e.$t("layout/label/price")))])],1)]),o("q-separator"),o("q-item",{attrs:{to:"/"+this.getStrLocale+"/asset",clickable:""},on:{click:e.updateCountAssets}},[o("div",{staticClass:"col justify-between items-center"},[o("q-item-label",{attrs:{header:""}},[e._v(e._s(e.$t("layout/label/asset")))])],1),e.predictorCountNewImage>0?o("q-badge",{attrs:{color:"dark",label:e.predictorCountNewImage,clickable:"",floating:""},on:{click:e.updateCountAssets}}):e._e()],1),o("q-separator"),o("q-item",{attrs:{to:"/"+this.getStrLocale+"/premium"}},[o("div",{staticClass:"col justify-between items-center"},[o("q-item-label",{attrs:{header:""}},[e._v(e._s(e.$t("layout/label/premium")))])],1)])],1)],1)],1):e._e(),e.$q.screen.xs?e._e():o("div",{staticClass:"col main-tab"},[o("q-tabs",{attrs:{align:"center","outside-arrows":"","mobile-arrows":"","inline-label":""}},[o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/",label:e.$t("layout/label/top")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/price",label:e.$t("layout/label/price")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/asset",label:e.$t("layout/label/asset"),clickable:""},on:{click:e.updateCountAssets}},[e.predictorCountNewImage>0?o("q-badge",{attrs:{color:"dark",label:e.predictorCountNewImage,clickable:"",floating:""},on:{click:e.updateCountAssets}}):e._e()],1),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/premium",label:e.$t("layout/label/premium")}})],1)],1),o("div",{staticClass:"col-auto user-status"},[o("q-btn-dropdown",{attrs:{align:"right",stretch:"",flat:"",icon:e.iconUser,"content-class":"text-white","content-style":"background-color: #ff0088; "}},[o("q-list",{staticClass:" status-list"},[o("q-item",{attrs:{"manual-focus":!1,focused:!1}},[o("div",{staticClass:"col justify-between items-center"},[o("selectorLocale")],1)]),o("q-separator"),o("q-item",{attrs:{to:"/"+this.getStrLocale+"/premium","manual-focus":!1,focused:!1}},[o("div",{staticClass:"col justify-between items-center"},[o("q-item-label",{attrs:{header:""}},[e._v(e._s(e.$t("layout/label/premium")))])],1)]),o("q-separator"),o("q-item",{attrs:{to:"/"+this.getStrLocale+"/status","manual-focus":!1,focused:!1}},[o("div",{staticClass:"col justify-between items-center"},[o("q-item-label",{attrs:{header:""}},[e._v(e._s(e.$t("layout/label/status")))])],1)]),o("q-separator"),o("q-expansion-item",{staticClass:"user-status-nexttime",attrs:{"expand-separator":!1,"default-opened":!0,label:e.$t("layout/status/time_remaining"),"content-inset-level":2,"header-class":"text-white ","expand-icon":e.iconDropDown,"expanded-icon":e.iconDropUo}},[o("q-item",{attrs:{dense:!0,"manual-focus":!1}},[o("q-item-section",{attrs:{"no-wrap":""}},[e._v("\n "+e._s(e.apiNumberTimeRemainingInpaint)+"\n ")])],1)],1),o("q-expansion-item",{staticClass:"user-status-current-quota",attrs:{"expand-separator":!1,"default-opened":!0,label:e.getStrLabelQuota,"content-inset-level":2,"header-class":"text-white text-no-wrap","expand-icon":e.iconDropDown,"expanded-icon":e.iconDropUo}},[o("q-item",{attrs:{dense:!0,"manual-focus":!1}},[e._v("\n\n "+e._s(e.getApiNumberQuotaRemainingInpaint)+"\n\n ")])],1)],1)],1)],1)])]),o("q-page-container",[o("router-view")],1),o("q-footer",{staticClass:"bg-primary text-white",attrs:{elevated:"",reveal:""}},[o("div",{staticClass:" row justify-between items-center"},[e.$q.screen.xs?e._e():o("div",{staticClass:"col-offset-1 q-px-md"},[o("q-tabs",{attrs:{"no-caps":"",align:"center",dense:""}})],1),o("q-space"),o("q-tabs",{attrs:{"no-caps":"",align:"center",dense:""}},[o("div",{staticClass:"col-auto hint"},[o("q-btn-dropdown",{attrs:{align:"center",stretch:"",flat:"",label:null,"dropdown-icon":e.iconFav,"content-class":"text-white","content-style":"background-color: #ff0088; ",ripple:!1}},[o("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:function(t){return e.showDescriptionPrivacy({flg_show_always:!0})}}},[o("q-item-section",{staticClass:"text-center"},[e._v("\n "+e._s(this.$t("layout/label/privacy"))+"\n ")])],1),o("q-item",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{clickable:""},on:{click:e.show_dialog_incognito}},[o("q-item-section",{staticClass:"text-center"},[e._v("\n "+e._s(this.$t("layout/label/incognito_mode"))+"\n ")])],1)],1)],1),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/",label:"© 2020 deepsukebe.io"}}),o("q-btn-dropdown",{attrs:{"auto-close":"",stretch:"",unelevated:"",label:"","dropdown-icon":e.iconInfo,ripple:!1,"content-class":"text-white ","content-style":"background-color: #ff0088; font-size:x-large; font-weight:bold;"}},[o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/news",label:e.$t("layout/label/news/2")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/contact",label:e.$t("layout/label/contact")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/partner",label:e.$t("layout/label/partner_list")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/partner_program",label:e.$t("layout/label/partner")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/referral",label:e.$t("layout/label/referral")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/status_server",label:e.$t("layout/label/status_server")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/privacy",label:e.$t("layout/label/privacy")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/tos",label:e.$t("layout/label/tos")}}),o("q-route-tab",{attrs:{to:"/"+this.getStrLocale+"/about",label:e.$t("layout/label/about")}})],1)],1),o("q-space"),e.$q.screen.xs?e._e():o("div",{staticClass:"col-offset-12 q-px-md"})],1)])],1)},r=[],s=(o("a481"),o("456d"),o("7f7f"),o("28a5"),o("f3e3")),i=o.n(s),n=(o("ac6a"),o("cadf"),o("ffc1"),o("967e")),l=o.n(n),c=(o("551c"),o("06db"),o("96cf"),o("fa84")),u=o.n(c),d=o("06ae"),m=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("q-select",{attrs:{options:e.listMapLocaleOption,borderless:"","emit-value":"","map-options":"",behavior:"menu",color:"white","label-color":"white","popup-content-class":"bg-primary text-dark ","popup-content-style":" text-align: center;",dense:""},model:{value:e.strLocale,callback:function(t){e.strLocale=t},expression:"strLocale"}})},g=[],p={name:"selectorLocale",data:function(){return{strLocale:this.$i18n.locale,listMapLocaleOption:[{value:"en",label:"English"},{value:"de",label:"German"},{value:"zh",label:"Chinese"}]}},computed:{getListMapLocaleOption:function(){return this.listMapLocaleOption}},watch:{strLocale:function(e){var t=this.$i18n.locale,o=this.$route.params.strLocale;if(e!==t){this.$i18n.locale=e,this.$loader.modules.utils.setVal2UserStorage(this,"preference/locale",e);var a=this.$router.currentRoute.path,r="";r=void 0===o?"/".concat(e):a.replace(t,e),this.$router.push({path:r})}}},beforeCreate:function(){this.$loader.modules.utils.register_component_as_loading({vue:this,name_component:"localer"})},mounted:function(){for(var e=this.$loader.configs.mapLocale,t=[],o=0,a=Object.entries(e);o<a.length;o++){var r=i()(a[o],2),s=r[0],n=r[1],l={};l["value"]=s,l["label"]=n["label"],t.push(l)}this.listMapLocaleOption=t,this.$loader.modules.utils.deregister_component_as_loading({vue:this,name_component:"localer"})}},h=p,f=(o("01d3"),o("2877")),$=o("ddd8"),_=o("8572"),b=o("eebe"),w=o.n(b),v=Object(f["a"])(h,m,g,!1,null,null,null),y=v.exports;w()(v,"components",{QSelect:$["a"],QField:_["a"]});var k=o("337f"),C=o.n(k),L=o("b06b"),q=o("e211"),P={name:"MainLayout",components:{selectorLocale:y},data:function(){return{strLocale:this.$i18n.locale,countAssets:0,iconInfo:d["p"],iconUser:d["a"],iconDonate:d["s"],iconFeedback:d["r"],iconContact:d["m"],iconDropDown:d["e"],iconDropDown2:d["d"],iconDropUo:d["f"],iconHelp:d["o"],iconFav:d["n"],helloWorld:"",strHashFingeprint:"",numberRetryInitializeCRPInductee:0,strLabelQuota:"Quota",apiNumberTimeRemainingInpaint:0,mapTicket:{},mapAPI:{},mapCRP:{},idReferral:"",flgPrivate:!1,id_landing:"",id_payment:"",n_pricing:"",name_plan:"",str_mail:""}},watch:{$route:function(e,t){this.$loader.modules.utils.writeLog2Console(this,"Route changed from ' + ".concat(t.path," + ' to ' + ").concat(e.path))}},computed:{getStrLocale:function(){return this.$i18n.locale},getMapAPI:function(){var e=this.$store.getters["api/getMapAPI"];return e},getMapTicket:function(){var e=this.$store.getters["ticket/getMapTicket"];return e},getMapCRP:function(){var e=this.$store.getters["referral/getMapReferral"];return e},predictorCountNewImage:{get:function(){var e=this.$store.getters["predictor/getPredictedImage"],t=e.length,o=t-this.countAssets;return o>0?o:""},set:function(e){this.countAssets=e}},getApiNumberQuotaRemainingInpaint:function(){var e=this.getMapTicket,t=this.getMapAPI,o=0;return"name_plan"in e?(o=e["n_quota_inpaint_image_remaining"],o>0||(o=t["n_quota_inpaint_image_remaining"])):o=t["n_quota_inpaint_image_remaining"],o},getStrLabelQuota:function(){var e=this.getMapTicket,t=this.$t("layout/status/quota/normal");if("name_plan"in e){t=this.$t("layout/status/quota/tiket");var o=e["n_quota_inpaint_image_remaining"];o>0||(t=this.$t("layout/status/quota/free"))}else t=this.$t("layout/status/quota/free");return t}},methods:{jump_to_twitter:function(){this.$loader.configs.flgDev&&console.log("jump to twitter"),Object(L["a"])("http://twitter.com/deepsukebeio")},updateCountAssets:function(){var e=this.$store.getters["predictor/getPredictedImage"],t=e.length;this.predictorCountNewImage=t},attachTracer:function(){var e=this;return u()(l.a.mark((function t(){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=q.v4(),r=e.$loader.modules.utils.setVal2Cookie(e,"id_dbg",a);e.$loader.modules.utils.writeLog2Console(e,"generated uuid on aT in layout -> ".concat(a,", ").concat(r)),t(r)})));case 1:case"end":return t.stop()}}),t)})))()},checkHead:function(){var e=this;return u()(l.a.mark((function t(){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){Promise.resolve(e.$loader.modules.fpCollect.generateFingerprint()).then((function(o){for(var a=e.$loader.modules.fpScanner.analyseFingerprint(o),r=0,s=0,n=0,l=0,c=0,u=0,d=Object.entries(a);u<d.length;u++){var m=i()(d[u],2),g=m[0],p=m[1];l+=1;var h=p.consistent;if(1===h?r+=1:2===h?s+=1:3===h?n+=1:1,e.$loader.modules.utils.setVal2Cookie(e,"test/h/".concat(l),h),3!==l&&10!==l&&16!==l||!(g.indexOf("DR")>-1||g.indexOf("ETS")>-1)||1===h&&(c+=1),20===l){e.$loader.modules.utils.deleteKeyFromCookie(e,"test/h/21");break}}var f=!1;if(c>0&&!f)e.$loader.modules.utils.deleteAllKeyFromCookie();return e.$loader.modules.utils.setVal2Cookie(e,"test/h/s1",r),e.$loader.modules.utils.setVal2Cookie(e,"test/h/s2",s),e.$loader.modules.utils.setVal2Cookie(e,"test/h/s3",n),e.$store.commit("usercommon/setNumberSum1Head",r),t(!0)})).catch((function(t){e.$loader.modules.utils.writeLog2Console(e,"err in strFP = ".concat(t))}))})));case 1:case"end":return t.stop()}}),t)})))()},initStatusGet:function(e){var t=this;return u()(l.a.mark((function o(){var a,r;return l.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(a=e.$loader.modules.utils.getValFromUserStorage(e,"test/_hmac_e2102"),"empty"!==a&&void 0!==a&&null!==a&&""!==a){o.next=7;break}return t.$loader.modules.utils.writeLog2Console(e,"try get new in iSG due to et -> ".concat(a)),r=e.__getUrlStatus(e),o.abrupt("return",new Promise(function(){var o=u()(l.a.mark((function o(s,i){var n,c,u,d,m;return l.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return a="",o.next=3,Promise.resolve(e.$loader.modules.requests.send_request_backend_get({vue:e,str_url_backend:r}));case 3:n=o.sent,c=n.status||null,203===c?(t.$messenger.notifyWithPop(t,t.$t("predictor/ratelimiter/free/message/in_limiting/3_2")),s(!1)):200===c||201===c?(u=n.headers||{},a=u["etag"]||"",t.$store.commit("usercommon/setStrEt",a),s(a)):(d=t.$t("common/api/on_fail/unknown/1").split("<br>"),d.push(""),d.push("ISG-608"),m=t.$t("common/api/request/on_error/title/3"),t.$loader.modules.utils.showDialog(t,m,d),s(!1));case 6:case"end":return o.stop()}}),o)})));return function(e,t){return o.apply(this,arguments)}}()));case 7:return t.$loader.modules.utils.writeLog2Console(t,"skipped getting new et in iSG due to et -> ".concat(a)),o.abrupt("return",a);case 9:case"end":return o.stop()}}),o)})))()},getRectFP:function(){var e=this;return u()(l.a.mark((function t(){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=0,r="";while(1){if(r=e.$store.getters["usercommon/getStrRect"],r){e.$loader.modules.utils.writeLog2Console(e,"successfully got fprect in layout.getRectFP -> ".concat(r));break}if(a+=1,a>1e3){e.$loader.modules.utils.writeLog2Console(e,"falled to got fprect in layout.getRectFP -> ".concat(r));break}}t(r)})));case 1:case"end":return t.stop()}}),t)})))()},getFingerprint:function(e){var t=this;return u()(l.a.mark((function o(){var a,r,s,i;return l.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:a="";try{r=C.a.parse(window.navigator.userAgent),a=r["os"]["name"]}catch(n){}return"iOS"===a&&(e=!0),o.next=5,t.$loader.modules.utils.isPrivateMode();case 5:return s=o.sent,t.flgPrivate=s,i={enumerateDevices:!0,doNotTrack:!0,fontsFlash:!0,pixelRatio:!0,plugins:!0,webdriver:!0,adBlock:!0,userAgent:!0,sessionStorage:!0,localStorage:!0,indexedDb:!0,addBehavior:!0,openDatabase:!0},e&&(t.$loader.modules.utils.writeLog2Console(t,"include modifiable module for FP"),i={enumerateDevices:!0,doNotTrack:!0,fontsFlash:!0,pixelRatio:!0,plugins:!0,webdriver:!0,adBlock:!0,userAgent:!0,sessionStorage:!0,localStorage:!0,indexedDb:!0,addBehavior:!0,openDatabase:!0,webgl:!0,fonts:!0,audio:!0,screenResolution:!0,availableScreenResolution:!0,timezoneOffset:!0,timezone:!0,colorDepth:!0,language:!0}),o.abrupt("return",new Promise((function(o,a){t.$fingerprint.get({excludes:i},function(){var a=u()(l.a.mark((function a(r){var i,n,c,u,d,m,g,p,h,f,$,_,b;return l.a.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=0,n=[],r.map((function(e){(e.key.indexOf("creen")>-1||e.key.indexOf("hardwareConcurrency")>-1||e.key.indexOf("platform")>-1)&&(t.$loader.modules.utils.setVal2Cookie(t,"test/".concat(e.key),e.value),t.$loader.modules.utils.writeLog2Console(t,"wrote cookie -> ".concat(e.key," in layout")),n.push("test/".concat(e.key))),e.key.indexOf("creen")>-1&&(delete r[i],t.$loader.modules.utils.writeLog2Console(t,"deleted component -> ".concat(e.key," in layout"))),i+=1})),c=r.map((function(e){return e.value})),s?t.$loader.modules.utils.setVal2Cookie(t,"test/p","1"):t.$loader.modules.utils.setVal2Cookie(t,"test/p","0"),u=function(e){return t.$fingerprint.x64hash128(e.join(""),32)},d=u(c),t.$loader.modules.utils.setVal2Cookie(t,"f",d),t.$loader.modules.utils.setVal2UserStorage(t,"f",d),m=String(Date.now()),c.push(m),g=u(c),p=t.$loader.modules.utils.h(g),e&&""===p&&(p=Date.now()),t.$loader.modules.utils.setVal2Cookie(t,"test/_hmac_o20",p),h="",f=p,a.prev=17,a.next=20,t.initStatusGet(t);case 20:if(h=a.sent,h&&!1!==h){a.next=23;break}throw new Error({message:"failed to get status"});case 23:t.$loader.modules.utils.writeLog2Console(t,"success iSG in layout"),t.$loader.modules.utils.writeLog2Console(t,"successfully get et -> ".concat(h," in layout")),t.$loader.modules.utils.setVal2Cookie(t,"test/_hmac_e2102",h),t.$loader.modules.utils.setVal2UserStorage(t,"test/_hmac_e2102",h),f=h,a.next=36;break;case 30:throw a.prev=30,a.t0=a["catch"](17),t.$store.commit("usercommon/setStrEt","empty"),t.$messenger.notifyWithPop(t,t.$t("MLMT-ISG1451")),t.$messenger.notifyWithPop(t,t.$t("common/api/on_fail/unknown/1")),new Error({message:"failed to get status"});case 36:for($=0;$<n.length;$++)_=n[$],t.$loader.modules.utils.deleteKeyFromCookie(t,"".concat(_)),t.$loader.modules.utils.writeLog2Console(t,"deleted cookie -> ".concat(_," in layout"));t.$loader.modules.utils.setVal2Cookie(t,"test/hmac",f),b=t.$loader.modules.utils.getOrSetVal2UserStorage(t,"test/hmac",f),t.$store.commit("ticket/setFP",b),t.$loader.modules.utils.writeLog2Console(t,"gF in layout hmac -> ".concat(t.$store.getters["ticket/getFP"]," ")),t.$loader.modules.utils.writeLog2Console(t,"gF in layout et -> ".concat(h," ")),o(b);case 44:case"end":return a.stop()}}),a,null,[[17,30]])})));return function(e){return a.apply(this,arguments)}}())})));case 10:case"end":return o.stop()}}),o)})))()},showDebugMessage:function(){var e="",t=this.$loader.configs.predictor.backendHost;"deepsukebe.io"!==t?e+="host server is local, backend as "+this.$loader.configs.predictor.backendHost.slice(0,13):e="Hello!",console.warn(e)},loadStatus:function(){var e=this;return u()(l.a.mark((function t(){return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,o){var a=e.$loader.modules.utils.getMapFromUserStorage(e,"api");e.mapAPI=a,a&&e.$store.commit("api/setMapAPI",a);var r=e.$store.getters["api/getMapAPI"];e.$loader.configs.flgDev&&(console.log("mapAPINew"),console.log(r));var s=e.$loader.modules.utils.getMapFromUserStorage(e,"crp");e.mapCRP=s,s&&e.$store.commit("referral/setMapReferral",s);var i=e.$store.getters["referral/getMapReferral"];e.$loader.configs.flgDev&&(console.log("mapCRPNew"),console.log(i));var n=e.$loader.modules.utils.load_from_storage_and_set_to_inmemory(e,"ticket");e.mapTicket=n;var l=n;e.$loader.configs.flgDev&&(console.log("mapTicketNew"),console.log(l));var c=e.$loader.modules.utils.getValFromUserStorage(e,"test/_hmac_e2102");c&&(e.$store.commit("usercommon/setStrEt",c),e.$loader.modules.utils.writeLog2Console(e,"load Et from storage to inmemory -> ".concat(c)));var u=e.$store.getters["usercommon/getStrEt"];e.$loader.modules.utils.writeLog2Console(e,u);var d=e.$loader.modules.utils.getValFromUserStorage(e,"test/challenge");d&&(e.$store.commit("usercommon/setStrTokenChallenge",d),e.$loader.modules.utils.writeLog2Console(e,"load challenge token from storage to inmemory -> ".concat(d)));var m=e.$store.getters["usercommon/getStrTokenChallenge"];e.$loader.modules.utils.writeLog2Console(e,m),t(!0)})));case 1:case"end":return t.stop()}}),t)})))()},__getUrlCRP:function(e){var t=e.$loader.modules.requests.get_url_base(e),o="/initialize/crp/inductee",a=t+o;return a},_initializeCRPInductee:function(e){var t=this;return u()(l.a.mark((function o(){var a,r,s,i,n,c,u,d,m,g,p,h,f,$,_,b,w,v,y,k,C,L,q;return l.a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(a=t.__getUrlCRP(e),r=e.$loader.modules.utils.generateMapPayload(e),s=t.idReferral.trim(),r["id_crp"]=s,t.$loader.modules.utils.writeLog2Console(t,"initialize crp_inductee: idReferral = ".concat(s," ")),i=r["HMAC"],t.$loader.modules.utils.writeLog2Console(t,"initialize crp_inductee: strHMAC = ".concat(i," ")),i){o.next=15;break}return e.numberRetryInitializeCRPInductee+=1,e.$messenger.notifyWithPop(e,"ICI690"),e.$messenger.notifyWithPop(e,e.$t("common/api/on_fail/unknown/1")),e.$messenger.notifyWithPop(e,e.$t("common/api/request/on_error/something_wrong")),n=e.$loader.modules.utils.deleteKeyFromUserStorage(e,"timestamp/initialize_crp_inductee"),e.$loader.configs.flgDev&&console.log("flg_success_delete_key = "+n),o.abrupt("return",null);case 15:if(s){o.next=22;break}return e.$messenger.notifyWithPop(e,"ICI703"),e.$messenger.notifyWithPop(e,e.$t("common/api/on_fail/unknown/1")),e.$messenger.notifyWithPop(e,e.$t("common/api/request/on_error/something_wrong")),c=e.$loader.modules.utils.deleteKeyFromUserStorage(e,"timestamp/initialize_crp_inductee"),e.$loader.configs.flgDev&&console.log("flg_success_delete_key = "+c),o.abrupt("return",null);case 22:return o.next=24,Promise.resolve(e.$loader.modules.requests.send_request_backend_post(e,a,r));case 24:if(u=o.sent,d=u.data,m=u.status||u.response.status||null,e.$loader.modules.utils.writeLog2Console(e,"mapResponseCRP"),e.$loader.modules.utils.writeLog2Console(e,d),203!==m){o.next=36;break}return g=t.$t("common/api/request/on_error/title/2"),p=t.$t("predictor/ratelimiter/free/message/in_limiting/3_2").split("<br>"),t.$loader.modules.utils.showDialog(t,g,p),h=e.$loader.modules.utils.deleteKeyFromUserStorage(e,"timestamp/initialize_crp_inductee"),e.$loader.configs.flgDev&&console.log("flg_success_delete_key = "+h),o.abrupt("return",null);case 36:f=d["api"],$=0;try{$=Object.keys(f).length}catch(l){}if(f&&0!==$&&null!==d&&void 0!==d){o.next=43;break}return _=e.$loader.modules.utils.deleteKeyFromUserStorage(e,"timestamp/initialize_crp_inductee"),e.$loader.configs.flgDev&&console.log("flg_success_delete_key = "+_),o.abrupt("return",null);case 43:if(b=f["dict_status_new"],w=d["message"],v=d["flg_invalid"],y=d["flg_revisit"],e.$loader.configs.flgDev&&(console.log("mapAPI"),console.log(f)),e.$loader.configs.flgDev&&(console.log("mapStatus"),console.log(b)),!v||!w){o.next=54;break}return k=e.$loader.modules.utils.deleteKeyFromUserStorage(e,"timestamp/initialize_crp_inductee"),e.$loader.configs.flgDev&&console.log("flg_success_delete_key = "+k),e.$messenger.notifyWithPop(e,w),o.abrupt("return",null);case 54:C=e.$t("referral/descriptor/1/title"),L=[],y?L=[e.$t("referral/api/initialize/inductee/message/on_revisit/1")]:(q=b["n_quota_inpaint_image_remaining"],L=[e.$t("referral/api/initialize/inductee/message/on_success/1"),e.$t("referral/api/initialize/inductee/message/on_success/2").replace("[XXX]","[".concat(q,"]")),e.$t("referral/api/initialize/inductee/message/on_success/3")]),e.$loader.modules.utils.showDialog(e,C,L),e.$loader.modules.utils.setMap2UserStorageAndInmemory(e,"api",f),e.$loader.configs.flgDev&&console.log("Successfully initialized CRP");case 60:case"end":return o.stop()}}),o)})))()},check_referrer:function(){var e=this;return u()(l.a.mark((function t(){var o;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:o=document.referrer,o=o.trim(),o?(e.$loader.modules.utils.writeLog2Console(e,"recorded raw referre to cookie in layout.check_referrer"),e.$loader.modules.utils.setVal2Cookie(e,"ref_raw",o)):e.$loader.modules.utils.writeLog2Console(e,"skipped recording raw referre to cookie in layout.check_referrer");case 3:case"end":return t.stop()}}),t)})))()},checkQueryParameter:function(){var e=this;return u()(l.a.mark((function t(){var o,a,r,s,i,n,c,u,d,m,g,p,h,f,$;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.$loader.modules.utils.writeLog2Console(e,"check vars : idReferral=".concat(e.idReferral,", id_landing=").concat(e.id_landing,", id_payment=").concat(e.id_payment,", n_pricing=").concat(e.n_pricing,", name_plan=").concat(e.name_plan,", str_mail=").concat(e.str_mail,", in layout.check_Query_Parameter")),o=e.idReferral.trim(),a=e.id_landing.trim(),r=e.id_payment.trim(),s=e.n_pricing.trim(),i=e.name_plan.trim(),n=e.str_mail.trim(),s.length>0&&i.length>0&&(e.$store.commit("ticket/set_str_name_plan",i),e.$loader.modules.utils.writeLog2Console(e,"set name_plan to global store -> ".concat(i," in layout.mount.checkQueryParameter")),c=e.$store.getters["ticket/get_str_name_plan"],e.$loader.modules.utils.writeLog2Console(e," ".concat(c)),e.$store.commit("ticket/set_str_n_pricing",s),e.$loader.modules.utils.writeLog2Console(e,"set n_pricing to global store -> ".concat(s," in layout.mount.checkQueryParameter")),u=e.$store.getters["ticket/get_str_n_pricing"],e.$loader.modules.utils.writeLog2Console(e," ".concat(u))),n.length>0&&(e.$store.commit("ticket/set_str_mail",n),e.$loader.modules.utils.writeLog2Console(e,"set str_mail to global store -> ".concat(n," in layout.mount.checkQueryParameter")),d=e.$store.getters["ticket/get_str_mail"],e.$loader.modules.utils.writeLog2Console(e," ".concat(d))),22===r.length&&(e.$store.commit("ticket/set_str_id_payment",r),e.$loader.modules.utils.writeLog2Console(e,"set payment id to global store -> ".concat(r," in layout.mount.checkQueryParameter")),m=e.$store.getters["ticket/get_str_id_payment"],e.$loader.modules.utils.writeLog2Console(e," ".concat(m))),a&&(g=e.$route.query,e.$loader.modules.utils.writeLog2Console(e,"recorded landing id to cookie in layout.checkQueryParameter"),e.$loader.modules.utils.setVal2Cookie(e,"id_landing",a),e.$loader.modules.utils.setMap2Cookie(e,g,""),e.$loader.modules.utils.writeLog2Console(e,g)),!o){t.next=28;break}if(e.$loader.modules.utils.setVal2Cookie(e,"id_ref",o),p=e.$loader.modules.utils.setVal2UserStorage(e,"crp/id_crp_ref",o),e.$loader.configs.flgDev&&console.log("flgSuccessSetRef = ".concat(p,", idReferral = ").concat(o," ")),h=e.$loader.modules.utils.getPermissionLimitting(e,"initialize_crp_inductee",e.$loader.configs.crp.minIntervalInitCRPInductee),e.$loader.configs.flgDev&&console.log("numberTimeResidual for init CRP inductee = "+h),!(h>0)){t.next=19;break}return t.abrupt("return");case 19:if(f=e.$loader.modules.utils.getValFromUserStorage(e,"ticket"),!f){t.next=23;break}return e.$loader.configs.flgDev&&console.log("skip initializing CRP inductee due to idTicket = "+f),t.abrupt("return");case 23:if($=e.$loader.modules.utils.getValFromUserStorage(e,"crp/id_crp"),!$){t.next=27;break}return e.$loader.configs.flgDev&&console.log("skip initializing CRP inductee due to idCRP = "+$),t.abrupt("return");case 27:e._initializeCRPInductee(e);case 28:case"end":return t.stop()}}),t)})))()},showDiaogCRP:function(){var e=this,t=this.$loader.modules.utils.getPermissionLimitting(this,"show_dialog_crp_inductor",this.$loader.configs.crp.minIntervalInitCRPInductor);this.$loader.configs.flgDev&&console.log("numberTimeResidual for init CRP = "+t),t<=0&&this.$q.dialog({title:'<span class="text-primary" style="font-size:x-large; font-weight:bold; ">'+this.$t("layout/crp/dialog/title")+" </span>",message:'<span class="text-primary" style="font-size:large; font-weight:bold; text-align:left "> <br> '+this.$t("layout/crp/dialog/message/1")+"<br>"+this.$t("layout/crp/dialog/message/2_2")+"</span>",seamless:!0,html:!0,position:"bottom",ok:{push:!0,label:this.$t("layout/crp/dialog/button/ok/label")},cancel:{push:!0,label:this.$t("layout/crp/dialog/button/no/label"),color:"negative"},persistent:!0}).onOk((function(){e.$store.commit("referral/setFlgShowPage",!0),e.$router.push({path:"/".concat(e.getStrLocale,"/referral")})})).onCancel((function(){})).onDismiss((function(){}))},checkCRPInvitation:function(){var e=this.$loader.modules.utils.getValFromUserStorage(this,"test/CRLF"),t=this.$loader.modules.utils.getValFromUserStorage(this,"test/SUI"),o=this.$loader.modules.utils.getValFromUserStorage(this,"test/save"),a=this.$loader.modules.utils.getValFromUserStorage(this,"crp/id_crp");if(!a){var r=this.$loader.modules.utils.getValFromUserStorage(this,"ticket/id_ticket");r||(o>=this.$loader.configs.crp.invitationMinNumberSaveImage||t>=this.$loader.configs.crp.invitationMinNumberPredict&&e>=this.$loader.configs.crp.invitationMinNumberHitRatelimit)&&this.showDiaogCRP()}},updateDatetimeRemaining:function(){var e=this.mapTicket||{},t="id_ticket"in e,o=0,a=parseInt(e.n_quota_inpaint_image_remaining);o=t&&a>0?0:this.$loader.modules.utils.getNumberSecRemaining(this,"prediction");var r=parseInt(Math.ceil(o/60),10);this.apiNumberTimeRemainingInpaint=r+" "+this.$t("common/unit/min")},check_lang:function(){var e=this;return u()(l.a.mark((function t(){var o,a,r,s,i,n,c;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:o=e.$loader.configs.mapLocale,a="",r=e.$route.params.strLocale,a=r,s="",a in o||(s=e.$loader.modules.utils.getValFromUserStorage(e,"preference/locale"),e.$loader.configs.flgDev&&console.log("trying set user-preference-locale=".concat(s," due to path parameter is invalid : strLocalePath=").concat(r)),"no-storage-available"!==s&&null!==s&&void 0!==s&&(a=s)),i=e.$q.lang.getLocale(),i=i.split("-")[0],a in o||(e.$loader.configs.flgDev&&console.log("trying set browser-locale=".concat(i," due to all-above locale is invalid : strLocale=").concat(a,", strLocalePathPrefer=").concat(s)),a=i),a in o||(a="en",e.$loader.configs.flgDev&&console.log("set locale to en as fallback due to all above locale string is invalid : browser-locale=".concat(i," , strLocale=").concat(a,", strLocalePathPrefer=").concat(s))),e.$i18n.locale=a,n=e.$router.currentRoute.path,c=n.split("/")[1],""===c&&(e.$loader.configs.flgDev&&console.log("redirect to root path with locale due to strPath1st=".concat(c," and strLocale=").concat(a)),e.$router.push({path:"/".concat(e.$i18n.locale)})),c in["item","ticket"]?e.$loader.configs.flgDev&&console.log("no redirect happening due to strPath1st=".concat(c," and strLocale=").concat(a)):void 0===r||r in o?e._i18n.loadLanguageAsync(a):(e.$loader.configs.flgDev&&console.log("redirect to page path with locale due to strPath1st=".concat(c," and strLocale=").concat(a)),e.$router.push({path:"/".concat(e.$i18n.locale,"/").concat(r)}));case 15:case"end":return t.stop()}}),t)})))()},showDescriptionPrivacy:function(e){e.vue;var t=e.flg_show_always,o=void 0!==t&&t,a=this.$loader.modules.utils.getPermissionLimitting(this,"show_dialog_privacy_init",this.$loader.configs.message.minIntervalShowDialogPrivacyInit);if(a<=0||o){var r=this.$t("layout/privacy/deletion/dialog/title"),s=[this.$t("layout/privacy/deletion/dialog/message/1"),this.$t("layout/privacy/deletion/dialog/message/2"),"",this.$t("layout/privacy/deletion/dialog/message/3")];this.$loader.modules.utils.showDialog(this,r,s)}},show_notice_update:function(e){e.vue;var t=e.flg_show_always,o=void 0!==t&&t,a=this.$loader.modules.utils.getPermissionLimitting(this,"show_dialog_notice_update_20210325",this.$loader.configs.message.minIntervalShowOnlyOnceDAy);if(a<=0||o){var r=this.$t("common/title/update"),s=[this.$t("layout/notice/update/20210325/message/1"),this.$t("layout/notice/update/20210325/message/2"),this.$t("layout/notice/update/20210325/message/3")];this.$loader.modules.utils.showDialog(this,r,s)}},show_dialog_incognito:function(e){e.vue,e.flg_show_always;var t=this.$loader.modules.utils.getPermissionLimitting(this,"show_dialog_notice_incognito_20210329",this.$loader.configs.message.minIntervalShowOnlyOnceDAy);if(t<=0){var o=this.$t("layout/notice/incognito/title/1"),a=[this.$t("layout/notice/incognito/20210329/message/1"),this.$t("layout/notice/incognito/20210329/message/eg/1"),this.$t("layout/notice/incognito/20210329/message/eg/2"),this.$t("layout/notice/incognito/20210329/message/eg/3"),this.$t("layout/notice/incognito/20210329/message/2"),"",this.$t("layout/notice/incognito/20210329/message/3"),this.$t("layout/notice/incognito/20210329/message/4"),"",this.$t("layout/notice/incognito/20210329/message/5")];this.$loader.modules.utils.showDialog(this,o,a)}},checkBrowserFunctionality:function(e){var t=this;return u()(l.a.mark((function e(){return l.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,o){var a=t.$loader.modules.utils.checkUserStorageAvilable(t),r=t.$loader.modules.utils.Cookies.get("test")||null;if(t.$loader.modules.utils.writeLog2Console(t,"checking checkBrowserFunctionality -> ".concat(a,", ").concat(r)),!a||!r){var s=[t.$t("common/message/warn/compatibility/storage/1"),t.$t("common/message/warn/compatibility/storage/2")];t.$messenger.notifyWithPop(t,s.join("<br")),e(!1)}e(!0)})));case 1:case"end":return e.stop()}}),e)})))()},__getUrlStatus:function(e){var t=e.$loader.modules.requests.get_url_base(e),o="/status/init",a=t+o;return a},set_router_hook:function(){var e=this;this.$router.onError((function(t){var o=" ",a=e.$t("common/title/fail/loading/1"),r=[a,e.$t("404/unknow/body/1"),e.$t("404/unknow/body/1/1"),e.$t("404/unknow/body/1/2")];o=r.join("<br>"),e.$loader.modules.utils.writeLog2Console(e,"caught routing error "),e.$messenger.notifyWithPop(e,o)}))}},beforeCreate:function(){this.$loader.modules.utils.register_component_as_loading({vue:this,name_component:"layout"})},beforeMount:function(){},mounted:function(){var e=this;return u()(l.a.mark((function t(){var o,a,r,s;return l.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.idReferral=e.$route.query.ref||"",e.id_landing=e.$route.query.id_landing||"",e.id_payment=e.$route.query.id_payment||"",e.n_pricing=e.$route.query.n_pricing||"",e.name_plan=e.$route.query.name_plan||"",e.str_mail=e.$route.query.mail||"",e.$loader.modules.utils.writeLog2Console(e,"query parameters -> in laour.mounted "),e.$loader.modules.utils.writeLog2Console(e,e.$route.query),o=[],a=e.$t("common/api/request/on_error/title/2"),t.next=12,e.attachTracer(e);case 12:return r=t.sent,r?e.$loader.modules.utils.writeLog2Console(e,"success attachTracer in layout"):e.$loader.modules.utils.writeLog2Console(e,"failed attachTracer in layout"),t.next=16,e.checkBrowserFunctionality(e);case 16:return s=t.sent,s?e.$loader.modules.utils.writeLog2Console(e,"passed checkBrowserFunctionality in layout"):e.$loader.modules.utils.writeLog2Console(e,"failed to pass checkBrowserFunctionality in layout"),t.prev=18,t.next=21,e.checkHead();case 21:e.$loader.modules.utils.writeLog2Console(e,"success checkhead in layout"),t.next=29;break;case 24:t.prev=24,t.t0=t["catch"](18),e.$store.commit("usercommon/setNumberSum1Head",-999),0===o.length&&(o=e.$t("common/api/on_fail/unknown/1").split("<br>"),o.push("")),o.push("MLMT-CH1385");case 29:return t.prev=29,t.next=32,e.getFingerprint();case 32:e.$loader.modules.utils.writeLog2Console(e,"success gF in layout"),t.next=39;break;case 35:t.prev=35,t.t1=t["catch"](29),0===o.length&&(o=e.$t("common/api/on_fail/unknown/1").split("<br>"),o.push("")),o.push("MLMT-GF1393");case 39:return e.showDebugMessage(),t.prev=40,t.next=43,e.loadStatus();case 43:e.$loader.modules.utils.writeLog2Console(e,"success lS in layout"),t.next=50;break;case 46:t.prev=46,t.t2=t["catch"](40),0===o.length&&(o=e.$t("common/api/on_fail/unknown/1").split("<br>"),o.push("")),o.push("MLMT-LS1402");case 50:try{e.check_referrer(),e.$loader.modules.utils.writeLog2Console(e,"success CR in layout")}catch(i){0===o.length&&(o=e.$t("common/api/on_fail/unknown/1").split("<br>"),o.push("")),o.push("MLMT-CR-2139")}try{e.checkQueryParameter(),e.$loader.modules.utils.writeLog2Console(e,"success CQP in layout")}catch(n){0===o.length&&(o=e.$t("common/api/on_fail/unknown/1").split("<br>"),o.push("")),o.push("MLMT-CQP1408")}setInterval(e.checkCRPInvitation,6e4),e.updateDatetimeRemaining(),setInterval(e.updateDatetimeRemaining,9e3),setTimeout((function(){e.showDescriptionPrivacy(e)}),9333),e.$loader.modules.utils.deregister_component_as_loading({vue:e,name_component:"layout"});try{e.check_lang()}catch(l){0===o.length&&(o=e.$t("common/api/on_fail/unknown/1").split("<br>"),o.push("")),o.push("MLMT-CL1430")}o.length>0&&e.$loader.modules.utils.showDialog(e,a,o),e.set_router_hook();case 60:case"end":return t.stop()}}),t,null,[[18,24],[29,35],[40,46]])})))()},updated:function(){}},S=P,x=(o("83ec"),o("4d5a")),D=o("e359"),R=o("cb32"),I=o("f20b"),F=o("1c1c"),M=o("66e5"),Q=o("0170"),U=o("eb85"),T=o("58a8"),A=o("429bb"),V=o("7867"),z=o("3b73"),N=o("4074"),O=o("09e3"),j=o("7ff0"),H=o("2c91"),E=o("0016"),W=o("9c40"),B=o("9989"),G=o("7f67"),K=Object(f["a"])(S,a,r,!1,null,null,null);t["default"]=K.exports;w()(K,"components",{QLayout:x["a"],QHeader:D["a"],QAvatar:R["a"],QBtnDropdown:I["a"],QList:F["a"],QItem:M["a"],QItemLabel:Q["a"],QSeparator:U["a"],QBadge:T["a"],QTabs:A["a"],QRouteTab:V["a"],QExpansionItem:z["a"],QItemSection:N["a"],QPageContainer:O["a"],QFooter:j["a"],QSpace:H["a"],QIcon:E["a"],QBtn:W["a"],QPage:B["a"]}),w()(K,"directives",{ClosePopup:G["a"]})},"83ec":function(e,t,o){"use strict";var a=o("0668"),r=o.n(a);r.a}}]);

Back to list