1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{2824:function(t,e,a){Promise.resolve().then(a.bind(a,78189)),Promise.resolve().then(a.bind(a,48220)),Promise.resolve().then(a.t.bind(a,57930,23)),Promise.resolve().then(a.t.bind(a,85935,23))},78189:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return o}}),a(57930);var n=a(71641),r=a(2265),i=a(48401);function o(t){let{children:e}=t,a=(0,n.T)();return(0,r.useLayoutEffect)(()=>{a((0,i.qD)())}),e}},48220:function(t,e,a){"use strict";a.r(e),a.d(e,{default:function(){return W}});var n=a(57437);a(2265);var r=a(31055),i=a(68714),o=a(64079),c=a(48401),s=a(49162),u=a(59789),l=a(69561),d=a(64627),p=a(75456),h=a(73995),f=a(99238),g=a(19214),m=a(27600),y=a(81133),v=a(38487),w=a(94634),S=a(56519);let I=(0,i.xC)({reducer:{errorState:o.ZP,appState:c.ZP,myAccount:f.ZP,myPageState:u.ZP,myPageMenu:s.ZP,myDesign:l.ZP,myFavorite:d.ZP,mySubscription:p.ZP,recentlySent:h.ZP,myPurchased:g.ZP,watchDetail:m.ZP,userSignUp:y.ZP,userState:v.ZP,userDesign:w.ZP,userLike:S.ZP},middleware:t=>t({serializableCheck:{ignoredActions:["persist/PERSIST"]}})});var k=a(70746),P="persist/REHYDRATE",A="persist/REGISTER";function T(t){return function(t){if(Array.isArray(t)){for(var e=0,a=Array(t.length);e<t.length;e++)a[e]=t[e];return a}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function C(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)}return a}function b(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?C(a,!0).forEach(function(e){var n;n=a[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):C(a).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}var U={registry:[],bootstrapped:!1},Z=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case A:return b({},t,{registry:[].concat(T(t.registry),[e.key])});case P:var a=t.registry.indexOf(e.key),n=T(t.registry);return n.splice(a,1),b({},t,{registry:n,bootstrapped:0===n.length});default:return t}},W=function(t){var e,a,i,o,c,s;let{children:u}=t;return e={},a=function(){},i=(0,k.MT)(Z,U,e&&e.enhancer?e.enhancer:void 0),o=function(t){i.dispatch({type:A,key:t})},c=function(t,e,n){var r={type:P,payload:e,err:n,key:t};I.dispatch(r),i.dispatch(r),a&&s.getState().bootstrapped&&(a(),a=!1)},s=b({},i,{purge:function(){var t=[];return I.dispatch({type:"persist/PURGE",result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return I.dispatch({type:"persist/FLUSH",result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){I.dispatch({type:"persist/PAUSE"})},persist:function(){I.dispatch({type:"persist/PERSIST",register:o,rehydrate:c})}}),e&&e.manualPersist||s.persist(),(0,n.jsx)(r.zt,{store:I,children:u})}},49464:function(t,e,a){"use strict";a.d(e,{u:function(){return n}});let n=a(7908).Z.create({baseURL:"https://lapi.timeflik.com",headers:{"X-User-Agent":"mrtimemaker-mobile"}})},49079:function(t,e,a){"use strict";var n,r;t.exports=(null==(n=a.g.process)?void 0:n.env)&&"object"==typeof(null==(r=a.g.process)?void 0:r.env)?a.g.process:a(13127)},52185:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var a in e)Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}(e,{requestIdleCallback:function(){return a},cancelIdleCallback:function(){return n}});let a="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},n="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},13127:function(t){!function(){var e={229:function(t){var e,a,n,r=t.exports={};function i(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(a){try{return e.call(null,t,0)}catch(a){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{a="function"==typeof clearTimeout?clearTimeout:o}catch(t){a=o}}();var s=[],u=!1,l=-1;function d(){u&&n&&(u=!1,n.length?s=n.concat(s):l=-1,s.length&&p())}function p(){if(!u){var t=c(d);u=!0;for(var e=s.length;e;){for(n=s,s=[];++l<e;)n&&n[l].run();l=-1,e=s.length}n=null,u=!1,function(t){if(a===clearTimeout)return clearTimeout(t);if((a===o||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(t);try{a(t)}catch(e){try{return a.call(null,t)}catch(e){return a.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function f(){}r.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var a=1;a<arguments.length;a++)e[a-1]=arguments[a];s.push(new h(t,e)),1!==s.length||u||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(t){return[]},r.binding=function(t){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},a={};function n(t){var r=a[t];if(void 0!==r)return r.exports;var i=a[t]={exports:{}},o=!0;try{e[t](i,i.exports,n),o=!1}finally{o&&delete a[t]}return i.exports}n.ab="//";var r=n(229);t.exports=r}()},99270:function(t,e,a){"use strict";a.d(e,{Z:function(){return s}});var n=a(49464),r=a(26523);let i={email:"",password:""},o={email:"",nickname:"",password:"",passwordConfirmation:"",thumbnail:null},c={device:"android",token:"",userId:"",limit:30,page:1};class s{static sendResetPassword(t){return n.u.post("".concat(this.USER_API,"/reset-password"),{email:t})}static hasEmail(t){return n.u.get("".concat(this.AUTH_API,"/email/").concat(t))}static loginByToken(t){return n.u.get("".concat(this.AUTH_API,"/token/").concat(t))}static login(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return n.u.post(this.SESSION_API,t)}static signUp(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return n.u.post(this.USER_API,t)}static getWatchfacesForPurchased(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:30,page:1};return n.u.get("".concat(this.USER_API,"/me/watches/purchased"),{headers:{"X-Instant-Token":t},params:{limit:e.limit,page:e.page}})}static getHistoryForSents(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:30,page:1};return n.u.get("".concat(this.USER_API,"/me/watches/sent"),{headers:{"X-Instant-Token":t},params:{page:e.page,limit:e.limit}})}static setEulaStatus(t){return Promise.all([n.u.post("".concat(this.USER_API,"/me/agree-eula"),{},{headers:{"X-Instant-Token":t}}),n.u.post("".concat(this.USER_API,"/me/agree-eula-ios"),{},{headers:{"X-Instant-Token":t}})])}static setMyAccount(t,e){return n.u.put("".concat(this.USER_API,"/me"),e,{headers:{"X-Instant-Token":t}})}static getSubscriptions(t,e){return n.u.get("".concat(this.USER_API,"/me/subscriptions"),{params:{device:e},headers:{"X-Instant-Token":t}})}static getMe(t,e){return n.u.get("".concat(this.USER_API,"/").concat(e),{headers:{"X-Instant-Token":t}})}static getMyFavoriteWatchesByUserId(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return n.u.get("".concat(this.USER_API,"/").concat(t.userId,"/").concat((0,r.h)(t.device),"/favorites?designType=all&deviceShape=all&limit=").concat(t.limit,"&page=").concat(t.page),{headers:{"X-Instant-Token":t.token}})}static getWatchesByUserId(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return n.u.get("".concat(this.USER_API,"/").concat(t.userId,"/").concat((0,r.h)(t.device),"?limit=").concat(t.limit,"&page=").concat(t.page),{headers:{"X-Instant-Token":t.token}})}static postEmailCode(t){let{email:e,lang:a,name:r}=t;return n.u.post("".concat(this.MAIL_API,"/code"),{email:e,lang:a,name:r})}static checkEmailCode(t){let{email:e,code:a}=t;return n.u.post("".concat(this.MAIL_API,"/check"),{email:e,code:a})}
1static counts(t,e,a){let i=(0,r.D)(a)?"counts":"counts-ios";return n.u.get("".concat(this.USER_API,"/").concat(e,"/").concat(i),{headers:{"X-Instant-Token":t}})}static getAmountTotal(t){return n.u.get("".concat(this.USER_API,"/me/amount/total"),{headers:{"X-Instant-Token":t}})}static withDraw(t){return n.u.delete("".concat(this.USER_API,"/me/withdraw"),{headers:{"X-Instant-Token":t}})}static updateUserInfomation(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return n.u.put(this.USER_API+"/me",t)}static availableUserCounts(){return n.u.get("".concat(this.USER_API,"/counts"))}}s.AUTH_API="/api/auth",s.USER_API="/api/users",s.SESSION_API="/api/session",s.OAuthGoogle=s.AUTH_API+"/google",s.OAuthFacebook=s.AUTH_API+"/facebook",s.OAuthApple=s.AUTH_API+"/apple",s.MAIL_API="/api/mail"},90896:function(t,e,a){"use strict";a.d(e,{Z:function(){return i}});var n=a(49464),r=a(26523);class i{static reportByWatchfaceId(t,e,a){return n.u.post("".concat(this.getApiPathForWatchface(e),"/").concat(a,"/report"),{},{headers:{"X-Instant-Token":t}})}static getApiPathForWatchface(t){return(0,r.D)(t)?this.ANDROID_WATCHFACE:this.IOS_WATCHFACE}static async getWatchByAppId(t,e){return n.u.get("/api/watches/".concat(e),{headers:{"X-Instant-Token":t}})}static async getWatchAppIdByWatchSellId(t,e){return await n.u.get("/api/watch-sells/".concat(e),{headers:{"X-Instant-Token":t}})}static async getImageWatchByImagewatchId(t,e){return n.u.get("/api/imagewatches/".concat(e),{headers:{"X-Instant-Token":t}})}static async getWatchById(t,e,a){return n.u.get("".concat(this.getApiPathForWatchface(e),"/").concat(a),{headers:{"X-Instant-Token":t}})}static async getWatchfaceRecommendsByWatchId(t,e,a){return n.u.get("".concat(this.getApiPathForWatchface(e),"/").concat(a,"/related?limit=5"),{headers:{"X-Instant-Token":t}})}static async getWatchCommentsById(t,e,a,r,i){return n.u.get("".concat(this.getApiPathForWatchface(e),"/").concat(a,"/comments?limit=").concat(r,"&page=").concat(i),{headers:{"X-Instant-Token":t}})}static postFavoriteWatchesByUserId(t,e,a){return n.u.post("".concat(this.getApiPathForWatchface(e),"/").concat(a,"/favorite"),{},{headers:{"X-Instant-Token":t}})}static async addWatchComment(t,e,a,r){return n.u.post("".concat(this.getApiPathForWatchface(e),"/").concat(a,"/comments"),{content:r},{headers:{"X-Instant-Token":t}})}static async removeWatchComment(t,e,a,r){return n.u.delete("".concat(this.getApiPathForWatchface(e),"/").concat(a,"/comments/").concat(r),{headers:{"X-Instant-Token":t}})}}i.ANDROID_WATCHFACE="/api/watches",i.IOS_WATCHFACE="/api/imagewatches"},48401:function(t,e,a){"use strict";a.d(e,{BO:function(){return I},C:function(){return u},Gi:function(){return f},K3:function(){return y},Sk:function(){return d},c6:function(){return m},cu:function(){return s},jH:function(){return v},q8:function(){return g},qD:function(){return S},u7:function(){return h},w7:function(){return w}});var n=a(68714),r=a(99270),i=a(88343),o=a(12398),c=a(64079);let s=(0,n.hg)("appState/signIn",async(t,e)=>{try{e.dispatch(P(!0));let a=await r.Z.login(t.form);return e.dispatch(P(!1)),e.dispatch(l(a.data.instantToken)),t.success&&t.success(),a.data}catch(t){return e.dispatch((0,c.qQ)({errorKey:"signIn"})),console.error(t),Promise.reject()}}),u=(0,n.hg)("appState/signInByToken",async(t,e)=>{try{var a;let t=e.getState();e.dispatch(P(!0));let n=await r.Z.loginByToken(t.appState.instantToken||"");return e.dispatch(P(!1)),e.dispatch(l((null===(a=t.appState)||void 0===a?void 0:a.instantToken)||"")),n.data}catch(t){return console.error(t),e.dispatch(w()),Promise.reject()}}),l=(0,n.hg)("appState/getAmountTotal",async t=>{try{return(await r.Z.getAmountTotal(t)).data}catch(t){console.error(t)}}),d=(0,n.hg)("appState/eulaAgreeIosAndAndroid",async(t,e)=>{try{let a=e.getState();await r.Z.setEulaStatus(a.appState.instantToken||""),t&&t();return}catch(t){console.error(t)}}),p=(0,n.oM)({name:"appState",initialState:{notifications:[],isSignInLoading:!1,isScroll:!0,isMobile:null,mobileMainMenuVisible:!1,user:null,page:"login",device:"android",instantToken:""},reducers:{onNotifications:(t,e)=>{t.notifications.find(t=>t.notificationKey===e.payload.notificationKey)||(t.notifications=[...t.n
1otifications,e.payload])},onFinishNotifications:(t,e)=>{t.notifications=t.notifications.filter(t=>t.notificationKey!==e.payload)},onChangeSignInLoading:(t,e)=>{t.isSignInLoading=e.payload},signOut:t=>{t.user=null,t.instantToken="",t.page="login",(0,o.Oe)(),window.location.href="/"},loadInitial:t=>{t.instantToken=(0,o.th)(),t.device=(0,i.e)("device")},onChangeScrollVisible:(t,e)=>{t.isScroll=e.payload},onChangeMenuVisible:(t,e)=>{t.mobileMainMenuVisible=e.payload},onChangeIsMobile:(t,e)=>{t.isMobile=e.payload},onChangeDevice:t=>{t.device="android"===t.device?"ios":"android",(0,i.d)("device",t.device)},onChangeDeviceType:(t,e)=>{t.device=e.payload,(0,i.d)("device",t.device)},onChangePage:(t,e)=>{t.page=e.payload}},extraReducers:t=>{t.addCase(s.fulfilled,(t,e)=>{var a;t.user=e.payload,t.instantToken=e.payload.instantToken,t.page="mypage",(0,o.FJ)(null==t?void 0:null===(a=t.user)||void 0===a?void 0:a.instantToken)}),t.addCase(d.fulfilled,(t,e)=>{t.user&&(t.user.eulaAgreed&&(t.user.eulaAgreed=!0),t.user.eulaIOSAgreed&&(t.user.eulaIOSAgreed=!0))}),t.addCase(u.fulfilled,(t,e)=>{t.user=e.payload,t.page="mypage"}),t.addCase(l.fulfilled,(t,e)=>{t.user&&(t.user.ammount=e.payload.total||0)})}}),{onFinishNotifications:h,onNotifications:f,onChangeIsMobile:g,onChangeMenuVisible:m,onChangeScrollVisible:y,onChangePage:v,signOut:w,loadInitial:S,onChangeDevice:I,onChangeDeviceType:k,onChangeSignInLoading:P}=p.actions;e.ZP=p.reducer},64079:function(t,e,a){"use strict";a.d(e,{Iz:function(){return r},qQ:function(){return i}});let n=(0,a(68714).oM)({name:"errorHandler",initialState:{errors:[]},reducers:{onError:(t,e)=>{t.errors=[...t.errors,e.payload]},onErrorFix:(t,e)=>{t.errors=t.errors.filter(t=>t.errorKey!==e.payload)}}}),{onErrorFix:r,onError:i}=n.actions;e.ZP=n.reducer},71641:function(t,e,a){"use strict";a.d(e,{C:function(){return i},T:function(){return r}});var n=a(31055);let r=n.I0,i=n.v9},99238:function(t,e,a){"use strict";a.d(e,{Jq:function(){return d},YB:function(){return o},rv:function(){return c},wy:function(){return s}});var n=a(68714),r=a(99270),i=a(48401);let o=(0,n.hg)("myAccount/withDraw",async(t,e)=>{try{let a=e.getState(),n=await r.Z.withDraw(a.appState.instantToken||"");return t&&t.cb&&t.cb(),n.data}catch(t){console.error(t)}}),c=(0,n.hg)("myAccount/setMyAccount",async(t,e)=>{try{let a=e.getState();e.dispatch(p(!0));let n={nickname:a.myAccount.nickname.value,email:a.myAccount.email.value,password:a.myAccount.password.value,passwordConfirmation:a.myAccount.passwordConfirmation.value};if(t.thumbnail.length&&(n.thumbnail=t.thumbnail[0]),n.password&&n.passwordConfirmation&&n.password!==n.passwordConfirmation)return t.failtureCb(),Promise.reject();return await r.Z.setMyAccount(a.appState.instantToken||"",n),t.successCb(),e.dispatch(p(!1)),e.dispatch((0,i.C)())}catch(t){console.error(t)}}),s=(0,n.hg)("myAccount/getMyAccount",async(t,e)=>{try{var a,n,i,o;let t=e.getState(),c=await r.Z.getMe(t.appState.instantToken||"",null===(n=t.appState)||void 0===n?void 0:null===(a=n.user)||void 0===a?void 0:a.userId);return c.data.email=null===(o=t.appState)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:i.email,c.data}catch(t){console.error(t)}}),u={nickname:{value:"",valid:!1},email:{value:"",valid:!1},password:{value:"",valid:!1},passwordConfirmation:{value:"",valid:!1},visible:!1,isLoading:!1},l=(0,n.oM)({name:"myAccount",initialState:{...u},reducers:{onAccountLoading:(t,e)=>{t.isLoading=e.payload},onChangeVisibleForAccountModal:(t,e)=>{t.visible=e.payload},onChangeTextByKeyAccount:(t,e)=>{t[e.payload.key].value=e.payload.value}},extraReducers:t=>{t.addCase(o.fulfilled,(t,e)=>{({...u})}),t.addCase(s.fulfilled,(t,e)=>{t.nickname.value=e.payload.nickname,t.nickname.valid=!1,t.email.value=e.payload.email,t.email.valid=!1,t.password.value="",t.password.valid=!1,t.passwordConfirmation.value="",t.passwordConfirmation.valid=!1})}}),{onChangeTextByKeyAccount:d,onAccountLoading:p}=l.actions;e.ZP=l.reducer},69561:function(t,e,a){"use strict";a.d(e,{bK:function(){return o},hN:function(){return u}});var n=a(68714),r=a(99270),i=a(22750);let o=(0,n.hg)("myDesign/getMyWatchesByUserId",async(t,e)=>{try{var a,n;let i=e.getState();return e.dispatch(s(!0)),(await r.Z.getWatchesByUserId({...t,device:i.appState.device||"",token:i.appState.instantToken||"",userId:null===(n=i.appState)||void 0===n?void 0:null===(a=n.user)||void 0===a?void 0:a.userId})).data}catch(t){console.error(t)}}),c=(0,n.oM)({name:"myDesign",initialState:i.sv,reducers:{onChangeLoadingForDesign:i.Io,initMyWatches:i.FK},extraReducers:t=>{t.addCase(o.fulfilled,i.do)}}),{onChangeLoadingForDesign:s,initMyWatches:u}=c.actions;e.ZP=c.reducer},64627:function(t,e,a){"use strict";a.d(e,{DK:function(){return o},VP:function(){return u}});var n=a(68714),r=a(99270),i=a(22750);let o=(0,n.hg)("myFavorite/getMyFavoriteWatchesByUserId",async(t,e)=>{try{var a,n;let i=e.getState();return e.dispatch(s(!0)),(await r.Z.getMyFavoriteWatchesByUserId({...t,device:i.appState.device,token:i.appState.instantToken,userId:null===(n=i.appState)||void 0===n?void 0:null===(a=n.user)||void 0===a?void 0:a.userId})).data}catch(t){console.error(t)}}),c=(0,n.oM)({name:"myFavorite",initialState:i.sv,reducers:{onChangeLoadingForFavorite:i.Io,initMyFavoriteWatches:i.FK},extraReducers:t=>{t.addCase(o.fulfilled,i.do)}}),{onChangeLoadingForFavorite:s,initMyFavoriteWatches:u}=c.actions;e.ZP=c.reducer},59789:function(t,e,a){"use strict";a.d(e,{f1:function(){return i}});var n=a(68714),r=a(99270);let i=(0,n.hg)("myPageState/signIn",async(t,e)=>{try{var a,n;let i=e.getState();return(await r.Z.counts(i.appState.instantToken||"",null===(n=i.appState)||void 0===n?void 0:null===(a=n.user)||void 0===a?void 0:a.userId,t)).data}catch(t){console.error(t)}}),o=(0,n.oM)({name:"myPageState",initialState:{counts:{creates:0,favorites:0,followers:0,followings:0,purchased:0,storeOrderWatches:0}},reducers:{},extraReducers:t=>{t.addCase(i.fulfilled,(t,e)=>{t.counts.followers=e.payload.followers,t.counts.followings=e.payload.followings,e.payload.watches&&(t.counts.creates=e.payload.watches),e.payload.imagewatches&&(t.counts.creates=e.payload.imagewatches)})}});e.ZP=o.reducer},19214:function(t,e,a){"use strict";a.d(e,{OS:function(){return u},Zj:function(){return o}});var n=a(68714),r=a(99270),i=a(22750);let o=(0,n.hg)("myPurchasedState/getWatchfacesPurchased",async(t,e)=>{try{let a=e.getState();return e.dispatch(s(!0)),(await r.Z.getWatchfacesForPurchased(a.appState.instantToken||"",t)).data}catch(t){console.error(t)}}),c=(0,n.oM)({name:"myPurchasedState",initialState:{isLoading:!1,canScroll:!0,
1count:0,watchfaces:[]},reducers:{onChangeLoadingForPurchased:i.Io,initMyPurchasedWatches:t=>{t.isLoading=!1,t.canScroll=!0,t.count=0,t.watchfaces=[]}},extraReducers:t=>{t.addCase(o.fulfilled,(t,e)=>{t.isLoading=!1,t.count=e.payload.count,e.payload.userPurchases&&!e.payload.userPurchases.length&&(t.canScroll=!1),t.watchfaces=[...t.watchfaces,...e.payload.userPurchases.map(t=>({watchSell:t.watchSell,watch:t.watchSell.watch}))]})}}),{onChangeLoadingForPurchased:s,initMyPurchasedWatches:u}=c.actions;e.ZP=c.reducer},75456:function(t,e,a){"use strict";a.d(e,{tJ:function(){return i}});var n=a(68714),r=a(99270);let i=(0,n.hg)("mySubscriptionState/getSubscriptions",async(t,e)=>{try{let t=e.getState();return(await r.Z.getSubscriptions(t.appState.instantToken||"",t.appState.device||"android")).data}catch(t){console.error(t)}}),o=(t,e)=>t.map((t,a)=>(t.subscriptionType=e,"strap"===e?(t.id=t.subsProductId,t.description={en:"",ko:"",ja:""}):(t.id=a,t.createdAt=t.purchaseTimeMillis,t.title="title.watchface",t.description="description.watchface"),t)),c=(0,n.oM)({name:"mySubscriptionState",initialState:{subscriptions:[]},reducers:{},extraReducers:t=>{t.addCase(i.fulfilled,(t,e)=>{t.subscriptions=[...o(e.payload.watchfaces||[],"watch"),...o(e.payload.straps||[],"strap")]})}});e.ZP=c.reducer},49162:function(t,e,a){"use strict";a.d(e,{Om:function(){return r}});let n=(0,a(68714).oM)({name:"myPageMenu",initialState:{visible:!1},reducers:{onChangeVisible:(t,e)=>{t.visible=e.payload}}}),{onChangeVisible:r}=n.actions;e.ZP=n.reducer},73995:function(t,e,a){"use strict";a.d(e,{Dk:function(){return o},pk:function(){return u}});var n=a(68714),r=a(99270),i=a(22750);let o=(0,n.hg)("recentlySentState/getHistoryForSents",async(t,e)=>{try{let a=e.getState();return e.dispatch(s(!0)),(await r.Z.getHistoryForSents(a.appState.instantToken,{limit:t.limit,page:t.page})).data}catch(t){console.error(t)}}),c=(0,n.oM)({name:"recentlySentState",initialState:{isLoading:!1,count:0,canScroll:!0,watchSents:[]},reducers:{onChangeLoadingForRecentlySent:i.Io,initHistoryForSents:t=>{t.isLoading=!1,t.canScroll=!0,t.count=0,t.watchSents=[]}},extraReducers:t=>{t.addCase(o.fulfilled,(t,e)=>{t.isLoading=!1,t.count=e.payload.count,e.payload.watchSents&&!e.payload.watchSents.length&&(t.canScroll=!1),t.watchSents=[...t.watchSents,...e.payload.watchSents]})}}),{onChangeLoadingForRecentlySent:s,initHistoryForSents:u}=c.actions;e.ZP=c.reducer},22750:function(t,e,a){"use strict";a.d(e,{FK:function(){return i},Io:function(){return o},do:function(){return c},jh:function(){return r},sv:function(){return n}});let n={isLoading:!1,canScroll:!0,count:0,page:0,watches:[],imagewatches:[]},r=(t,e)=>{t.isLoading=e.payload},i=t=>{t.isLoading=!1,t.canScroll=!0,t.count=0,t.watches=[],t.imagewatches=[]},o=(t,e)=>{t.isLoading=e.payload},c=(t,e)=>{t.isLoading=!1,t.count=e.payload.count,(e.payload.watches&&!e.payload.watches.length||e.payload.imagewatches&&!e.payload.imagewatches.length)&&(t.canScroll=!1),e.payload.watches?(t.watches=[...t.watches,...e.payload.watches],t.imagewatches=[]):(t.imagewatches=[...t.imagewatches,...e.payload.imagewatches],t.watches=[])}},38487:function(t,e,a){"use strict";a.d(e,{Gq:function(){return i},IR:function(){return c}});var n=a(68714),r=a(99270);let i=(0,n.hg)("userAccount/getMyAccount",async(t,e)=>{let{userId:a,device:n,failture:i}=t;try{let t=e.getState(),[i,o]=await Promise.all([r.Z.getMe(t.appState.instantToken,a),r.Z.counts(t.appState.instantToken,a,n)]);return{account:i.data,counts:o.data}}catch(t){i(),console.error(t)}}),o=(0,n.oM)({name:"userAccount",initialState:{counts:{creates:0,followers:0,followings:0},user:null,userId:""},reducers:{initUserAccount:t=>{t.counts={creates:0,followers:0,followings:0},t.user=null,t.userId=""}},extraReducers:t=>{t.addCase(i.fulfilled,(t,e)=>{let{account:a,counts:n}=e.payload;t.user=a,t.userId=a.userId,t.counts.followers=n.followers,t.counts.followings=n.followings,(void 0!==n.imagewatches||void 0!==n.imagewatches)&&(t.counts.creates=n.imagewatches),(null!==n.watches||void 0!==n.watches)&&(t.counts.creates=n.watches)})}}),{initUserAccount:c}=o.actions;e.ZP=o.reducer},94634:function(t,e,a){"use strict";a.d(e,{HD:function(){return u},zA:function(){return o}});var n=a(68714),r=a(99270),i=a(22750);let o=(0,n.hg)("userDesign/getMadeWatchfacesByUserId",async(t,e)=>{try{let a=e.getState();return e.dispatch(s(!0)),(await r.Z.getWatchesByUserId({...t,device:a.appState.device,token:a.appState.instantToken,userId:a.userState.userId})).data}catch(t){e.dispatch(s(!1)),console.error(t)}}),c=(0,n.oM)({name:"userDesign",initialState:i.sv,reducers:{onChangeLoadingForUserDesign:i.Io,initDesignWatches:i.FK},extraReducers:t=>{t.addCase(o.fulfilled,i.do)}}),{onChangeLoadingForUserDesign:s,initDesignWatches:u}=c.actions;e.ZP=c.reducer},56519:function(t,e,a){"use strict";a.d(e,{JW:function(){return u},Ry:function(){return o}});var n=a(68714),r=a(99270),i=a(22750);let o=(0,n.hg)("userLike/getMadeWatchfacesByUserId",async(t,e)=>{try{let a=e.getState();return e.dispatch(s(!0)),(await r.Z.getMyFavoriteWatchesByUserId({...t,device:a.appState.device,token:a.appState.instantToken,userId:a.userState.userId})).data}catch(t){e.dispatch(s(!1)),console.error(t)}}),c=(0,n.oM)({name:"userLike",initialState:i.sv,reducers:{onChangeLoadingForUserFavorite:i.Io,initUserWatches:i.FK},extraReducers:t=>{t.addCase(o.fulfilled,i.do)}}),{onChangeLoadingForUserFavorite:s,initUserWatches:u}=c.actions;e.ZP=c.reducer},81133:function(t,e,a){"use strict";a.d(e,{G8:function(){return u},WR:function(){return h},et:function(){return c},qU:function(){return p},y1:function(){return o},yT:function(){return l},zu:function(){return f}});var n=a(68714),r=a(99270),i=a(64079);let o=(0,n.hg)("userSignUp/signUp",async(t,e)=>{try{let t=e.getState(),a={email:t.userSignUp.form.email.value,nickname:t.userSignUp.form.nickname.value,password:t.userSignUp.form.password.value,passwordConfirmation:t.userSignUp.form.passwordConfirm.value,eulaAgreed:!0,eulaIOSAgreed:!0};t.userSignUp.thumbnail&&(a.thumbnail=t.userSignUp.thumbnail),await r.Z.signUp(a),e.dispatch(f())}catch(t){console.error(t)}});(0,n.hg)("userSignUp/alreadySignUpEmail",async(t,e)=>{try{let t=e.getState(),a=await r.Z.hasEmail(t.userSignUp.form.email.value);e.dispatch(h(a.data)),!1===a.data&&e.dispatch(f())}catch(t){console.error(t)}});let c=(0,n.hg)("userSignUp/emailCheck",async(t,e)=>{try{let a=e.getState();return(await r.Z.checkEmailCode({code:t,email:a.userSignUp.form.email.value})).data}catch(t){return e.dispatch((0,i.qQ)({errorKey:"email-check-failture"}))}}),s=(0,n.oM)({name:"userSignUp",initialState:{page:0,thumbnail:"",emailCodeCheck:!1,form:{email:{valid:!1,has:!1,value:""},nickname:{valid:!1,value:""},password:{valid:!1,score:0,value:""},passwordConfirm:{valid:!1,value:""}}},reducers:{initPageForSignUp:t=>{t.page=0,t.thumbnail="",t.emailCodeCheck=!1,t.form={email:{valid:!1,has:!1,value:""},nickname:{valid:!1,value:""},password:{valid:!1,score:0,value:""},passwordConfirm:{valid:!1,value:""}}},onPrevPage:t=>{0!==t.page&&(t.page-=1)},onNextPage:t=>{t.page+=1},onCheckForIsAlreadySignUpEmail:(t,e)=>{t.form.email.has=e.payload,t.form.email.valid=!1!==e.payload},onChangeFileForSignUp:(t,e)=>{t.thumbnail=e.payload},onChangeTextByKeyWithValidation:(t,e)=>{let a={email:t=>!new RegExp(/^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,3}$/i).test(t),nickname:t=>new RegExp(/[~!@#$%^&*()_+|<>?:{}"'`]/i).test(t),password:t=>{let e=0;return[new RegExp(/^(?=.*[a-zA-Z])/),new RegExp(/^(?=.*[0-9])/),new RegExp(/^(?=.*[!#$%&\(\)*+,\-.:;<=>?@\[\]^_`{|}~\\])/)].filter(e=>e.test(t)).map(()=>e++),e},passwordConfirm:e=>t.form.password.value!==e};if(a[e.payload.key]){let n=a[e.payload.key](e.payload.value);"password"===e.payload.key?(t.form[e.payload.key].score=n,t.form[e.payload.key].valid=t.form[e.payload.key].value.length<6,t.form.passwordConfirm.valid=e.payload.value!==t.form.passwordConfirm.value):t.form[e.payload.key].valid=n}t.form[e.payload.key].value=e.payload.value},initEmailCodeCheck:(t,e)=>{t.emailCodeCheck=e.payload}},extraReducers:t=>{t.addCase(o.fulfilled,()=>{}),t.addCase(c.fulfilled,(t,e)=>{t.emailCodeCheck=!0})}}),{onChangeTextByKeyWithValidation:u,initEmailCodeCheck:l,onChangeFileForSignUp:d,initPageForSignUp:p,onCheckForIsAlreadySignUpEmail:h,onNextPage:f,onPrevPage:g}=s.actions;e.ZP=s.reducer},27600:function(t,e,a){"use strict";a.d(e,{CI:function(){return s},Jf:function(){return o},KW:function(){return c},RU:function(){return f},Tb:function(){return h},U$:function(){return l},c8:function(){return g},p:function(){return y},xX:function(){return u},zR:function(){return d}});var n=a(68714),r=a(90896),i=a(22750);let o=(0,n.hg)("watchDetail/getWatchById",async(t,e)=>{try{let a=e.getState();return(await r.Z.getWatchById(a.appState.instantToken||"",a.appState.device||"android",t)).data}catch(t){console.error("watchFace Error",t)}}),c=(0,n.hg)("watchDetail/getWatchCommentsById",async(t,e)=>{try{let t=e.getState();return(await r.Z.getWatchCommentsById(t.appState.instantToken||"",t.appState.device||"android",t.watchDetail.watchId,t.watchDetail.limit,t.watchDetail.page)).data}catch(t){console.error(t),e.dispatch(f())}}),s=(0,n.hg)("watchDetail/getWatchfaceRecommendsByWatchId",async(t,e)=>{try{let t=e.getState();return(await r.Z.getWatchfaceRecommendsByWatchId(t.appState.instantToken||"",t.appState.device||"android",t.watchDetail.watchId)).data}catch(t){console.error(t)}}),u=(0,n.hg)("watchDetail/updateFavoriteWatchesByUserId",async(t,e)=>{try{let t=e.getState(),a=await r.Z.postFavoriteWatchesByUserId(t.a
1ppState.instantToken||"",t.appState.device||"android",t.watchDetail.watchId);return e.dispatch(o(t.watchDetail.watchId)),a.data}catch(t){console.error(t)}}),l=(0,n.hg)("watchDetail/removeWatchComment",async(t,e)=>{try{let a=e.getState(),n=await r.Z.removeWatchComment(a.appState.instantToken||"",a.appState.device||"android",a.watchDetail.watchId,t);return e.dispatch(f()),e.dispatch(c()),n.data}catch(t){console.error(t)}}),d=(0,n.hg)("watchDetail/addWatchComment",async(t,e)=>{try{let t=e.getState(),a=await r.Z.addWatchComment(t.appState.instantToken||"",t.appState.device||"android",t.watchDetail.watchId,t.watchDetail.commentText);return e.dispatch(f()),e.dispatch(c()),a.data}catch(t){console.error(t)}}),p=(0,n.oM)({name:"watchDetailState",initialState:{isLoading:!1,watchId:"",watch:null,limit:10,page:1,comments:[],recommends:[],commentCount:0,commentText:""},reducers:{onLoadingComment:i.jh,initWatchComments:t=>{t.commentCount=0,t.comments=[],t.page=1},initWatchDetail:t=>{t.watchId="",t.watch=null},initWatchfaceRecommendsByWatchId:t=>{t.recommends=[]},onChangeComment:(t,e)=>{t.commentText=e.payload}},extraReducers:t=>{t.addCase(o.fulfilled,(t,e)=>{var a,n,r;(null===(a=e.payload)||void 0===a?void 0:a.imagewatchId)&&(t.watchId=null===(r=e.payload)||void 0===r?void 0:r.imagewatchId),(null===(n=e.payload)||void 0===n?void 0:n.appId)&&(t.watchId=e.payload.appId),t.watch=e.payload}),t.addCase(c.fulfilled,(t,e)=>{var a;t.commentCount=null===(a=e.payload)||void 0===a?void 0:a.count,t.comments=[...t.comments,...e.payload.comments],t.page=t.page+1}),t.addCase(d.fulfilled,(t,e)=>{t.commentText=""}),t.addCase(s.fulfilled,(t,e)=>{var a,n;(null===(a=e.payload)||void 0===a?void 0:a.watches)&&(t.recommends=e.payload.watches),(null===(n=e.payload)||void 0===n?void 0:n.imagewatches)&&(t.recommends=e.payload.imagewatches)})}}),{initWatchDetail:h,initWatchComments:f,onChangeComment:g,onLoadingComment:m,initWatchfaceRecommendsByWatchId:y}=p.actions;e.ZP=p.reducer},88343:function(t,e,a){"use strict";a.d(e,{d:function(){return r},e:function(){return i}});let n=new(a(52165)).Z,r=(t,e,a)=>n.set(t,e,a),i=t=>n.get(t)},12398:function(t,e,a){"use strict";a.d(e,{FJ:function(){return o},Oe:function(){return c},th:function(){return i}});var n=a(88343);let r="INSTANT_TOKEN";function i(){let t=localStorage.getItem(r);if(t){let e=JSON.parse(t);if(!e)return;if(new Date().getTime()<e.expiry)return e.token}}function o(t){let e=new Date;e.setDate(new Date().getDate()+1);let a={token:t,expiry:e.getTime()};return(0,n.d)(r,JSON.stringify(a)),localStorage.setItem(r,JSON.stringify(a))}function c(){(0,n.d)(r,void 0),localStorage.removeItem(r)}},26523:function(t,e,a){"use strict";function n(t){return"android"===t}function r(t){return n(t)?"watches":"imagewatches"}a.d(e,{D:function(){return n},h:function(){return r}})},57930:function(){}},function(t){t.O(0,[9613,5935,2971,8069,1744],function(){return t(t.s=2824)}),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.