PageSourceSearch

https://nggjewellery.com/_next/static/chunks/pages/account/preferences-36d8662354b9d8ce6e9b.js

js nggjewellery.com collected 2026-10-02 07:30:06 UTC 12,699 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7247],{4682:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var i=t(26265),r=t(85893),c=t(38347),o=t(29163),a=t(89405),l=t(47127),s=o.ZP.form.withConfig({displayName:"account__Inner",componentId:"sc-xt5xw2-0"})([""]),d=(0,o.ZP)(a.s1).withConfig({displayName:"account__Title",componentId:"sc-xt5xw2-1"})(["font-weight:400;padding-top:8px;@media ","{font-size:",";}"],l.nA.mobileL,(function(e){return e.theme.fs.h3})),u=o.ZP.div.withConfig({displayName:"account__Detail",componentId:"sc-xt5xw2-2"})(["@media ","{}@media ","{}@media ","{}padding-bottom:10px;color:",";"],l.Uh.mobileXS,l.Uh.tablet,l.Uh.laptop,(function(e){return e.fontColor})),p=o.ZP.div.withConfig({displayName:"account__SubDetail",componentId:"sc-xt5xw2-3"})(["@media ","{}@media ","{}@media ","{}font-weight:bold;padding-bottom:10px;"],l.Uh.mobileXS,l.Uh.tablet,l.Uh.laptop),f=o.ZP.a.withConfig({displayName:"account__LinkButton",componentId:"sc-xt5xw2-4"})(["@media ","{}@media ","{}@media ","{}text-decoration:none;color:black;&:active{opacity:0.5;}&:hover{cursor:pointer;}"],l.Uh.mobileXS,l.Uh.tablet,l.Uh.laptop);function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function m(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function v(e){var n=e.children,t=(0,c.Z)(e,["children"]);return(0,r.jsx)(s,m(m({},t),{},{children:n}))}v.Title=function(e){var n=e.children,t=(0,c.Z)(e,["children"]);return(0,r.jsx)(d,m(m({},t),{},{children:n}))},v.Detail=function(e){var n=e.children,t=(0,c.Z)(e,["children"]);return(0,r.jsx)(u,m(m({},t),{},{children:n}))},v.SubDetail=function(e){var n=e.children,t=(0,c.Z)(e,["children"]);return(0,r.jsx)(p,m(m({},t),{},{children:n}))},v.LinkButton=function(e){var n=e.children,t=(0,c.Z)(e,["children"]);return(0,r.jsx)(f,m(m({},t),{},{children:n}))}},66411:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(85893),r=t(38347),c=t(37119),o=t(29163),a=t(89405),l=(0,o.ZP)(a.pN).withConfig({displayName:"breadcrumb__Inner",componentId:"sc-11xilqr-0"})([""]),s=o.ZP.span.withConfig({displayName:"breadcrumb__Divider",componentId:"sc-11xilqr-1"})(["padding:0 4px;"]),d=function(e){var n=e.items,t=e.notMy3,o=(0,r.Z)(e,["items","notMy3"]);return(0,i.jsx)(l,{className:t?"":"mt-4 mb-3",children:(0,i.jsx)("div",{className:"d-flex",children:n.map((function(e,n){return(0,i.jsxs)("div",{children:[n>0&&(0,i.jsx)(s,{children:o.divider||">"}),(0,i.jsx)(c.Z.A,{to:e.href,disabled:e.disabled,children:e.text})]},n)}))})})}},63204:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var i=t(85893),r=t(809),c=t.n(r),o=t(92447),a=t(91229),l=t(26265),s=t(38347),d=t(29163),u=t(47127),p=t(89405),f=d.ZP.div.withConfig({displayName:"header__Inner",componentId:"sc-a05rte-0"})([""]),h=d.ZP.div.withConfig({displayName:"header__ImgContainer",componentId:"sc-a05rte-1"})(["@media ","{width:90px;margin-bottom:12px;}@media ","{width:170px;}"],u.Uh.mobileXS,u.Uh.tablet),m=d.ZP.div.withConfig({displayName:"header__WelcomeContainer",componentId:"sc-a05rte-2"})(["@media ","{padding-bottom:10px;}@media ","{padding-bottom:10px;}"],u.Uh.mobileXS,u.Uh.tablet),v=d.ZP.div.withConfig({displayName:"header__StatusContainer",componentId:"sc-a05rte-3"})(["text-align:right;"]),x=d.ZP.div.withConfig({displayName:"header__StatusMobileContainer",componentId:"sc-a05rte-4"})(["@media ","{display:flex;justify-content:space-around;padding:10px 0;width:100vw;background-color:#f0f0f0;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;}@media ","{display:none;}"],u.Uh.mobileXS,u.Uh.tablet),_=(0,d.ZP)(p.H2).withConfig({displayName:"header__WelcomeTitle1",componentId:"sc-a05rte-5"})([""]),g=(0,d.ZP)(p.H2).withConfig({displayName:"header__WelcomeTitle2",componentId:"sc-a05rte-6"})(["font-weight:300;"]),j=d.ZP.div.withConfig({displayName:"header__StatusTitle",componentId:"sc-a05rte-7"})([""]),b=d.ZP.div.withConfig({displayName:"header__Logout",componentId:"sc-a05rte-8"})([""]),w=t(29439),Z=t(37119);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function C(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?y(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function N(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(f,C(C({},t),{},{children:n}))}N.ImgContainer=function(e){var n=(0,a.Z)({},e);return(0,i.jsx)(h,C(C({},n),{},{children:(0,i.jsx)(w.ZP,{name:"/member/Gold.png",width:"100%"})}))},N.WelcomeContainer=function(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(m,C(C({},t),{},{children:n}))},N.StatusContainer=function(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(v,C(C({},t),{},{children:n}))},N.StatusMobileContainer=function(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(x,C(C({},t),{},{children:n}))},N.WelcomeTitle1=function(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(_,C(C({},t),{},{children:n}))},N.WelcomeTitle2=function(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(g,C(C({},t),{},{children:n}))},N.StatusTitle=function(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(j,C(C({},t),{},{children:n}))},N.Logout=function(e){var n=e.children,t=(0,s.Z)(e,["children"]);return(0,i.jsx)(b,C(C({},t),{},{children:(0,i.jsx)(Z.Z.A,{to:"/logout",underline:!0,children:n})}))};var O=t(67294),P=t(67067),S=t(78531),T=t(33780),k=t(19303),I=t(52063);function E(){var e,n,t,r,a,l=(0,O.useContext)(P.ZP).state,s=(l.profile,(0,S.Z)().t),d=(0,O.useState)(),u=d[0],p=d[1],f=(0,O.useState)(),h=f[0],m=f[1],v=(0,O.useState)(),x=v[0],_=v[1];(0,O.useEffect)((function(){g(),j()}),[null===(e=l.profile)||void 0===e?void 0:e.username]);var g=function(){var e=(0,o.Z)(c().mark((function e(){var n;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T.qk();case 2:(null===(n=e.sent)||void 0===n?void 0:n.status)===k.Z.SUCCESS_TEXT&&p(n);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=(0,o.Z)(c().mark((function e(){var n,t,i;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=l.profile)||void 0===n||!n.username){e.next=6;break}return e.next=3,T.mI((null===(t=l.profile)||void 0===t?void 0:t.username)||"");case 3:i=e.sent,m(null===i||void 0===i?void 0:i.totalActiveGoldcoins),_(null===i||void 0===i?void 0:i.totalPendingGoldcoins);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=null!==(n=l.profile)&&void 0!==n&&n.firstname?"".concat(null===(t=l.profile)||void 0===t?void 0:t.firstname," ").concat(null===(r=l.profile)||void 0===r?void 0:r.lastname):null===(a=l.profile)||void 0===a?void 0:a.tel;return(0,i.jsxs)(N,{children:[(0,i.jsx)("div",{className:"d-none d-md-block",children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-md-7 col-lg-7 d-flex align-items-end",children:(0,i.jsxs)(N.WelcomeContainer,{children:[(0,i.jsx)(N.WelcomeTitle1,{children:s("account_slide_title")}),(0,i.jsx)(N.WelcomeTitle2,{children:b})]})}),(0,i.jsx)("div",{className:"col-md-5 col-lg-5",children:(0,i.jsxs)(N.StatusContainer,{children:[(0,i.jsxs)(N.StatusTitle,{children:[s("account_page_goldprice")+": ",(0,I.Oy)(null===u||void 0===u?void 0:u.g965BG.buyBar)]}),(0,i.jsxs)(N.StatusTitle,{children:[s("account_page_pendingcoin")+": ",x," "+s("account_page_unitcoin")]}),(0,i.jsxs)(N.StatusTitle,{children:[s("account_page_youcoin")+": ",h," "+s("account_page_unitcoin")]})]})})]})}),(0,i.jsx)("div",{className:"row d-md-none",children:(0,i.jsxs)("div",{className:"col-xs-12 col-sm-12 d-flex align-items-center justify-content-between",children:[(0,i.jsxs)(N.WelcomeContainer,{children:[(0,i.jsx)(N.WelcomeTitle1,{children:s("account_slide_title")}),(0,i.jsx)(N.WelcomeTitle2,{children:b})]}),(0,i.jsxs)(N.Logout,{children:[s("account_mobile_signout")," >"]})]})}),(0,i.jsx)("div",{className:"row d-md-none",children:(0,i.jsx)("div",{className:"col-xs-12 col-sm-12 d-flex justify-content-between",children:(0,i.jsxs)(N.StatusMobileContainer,{children:[(0,i.jsxs)(N.StatusTitle,{children:[s("account_page_goldprice"),(0,i.jsx)("br",{}),(0,I.Oy)(null===u||void 0===u?void 0:u.g965BG.buyBar)]}),(0,i.jsxs)(N.StatusTitle,{children:[s("account_page_pendingcoin"),(0,i.jsx)("br",{}),x," "+s("account_page_unitcoin")]}),(0,i.jsxs)(N.StatusTitle,{children:[s("account_page_youcoin"),(0,i.jsx)("br",{}),h," "+s("account_page_unitcoin")]})]})})})]})}},58957:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Z}});var i=t(85893),r=t(11163),c=t(66411),o=t(63204),a=t(71631),l=t(809),s=t.n(l),d=t(92447),u=t(29439),p=t(78531),f=t(37141),h=t(67294),m=t(52743),v=t(67067),x=t(4682),_=t(19662),g=t(19303),j=t(18393);function b(){var e=(0,p.Z)().t,n=(0,h.useContext)(v.ZP),t=n.state,r=n.actions,c=(0,h.useState)("0"),o=c[0],a=c[1];(0,h.useEffect)((function(){var e;t.profile&&t.profile.id&&t.profile.userToken&&a(!0===(null===(e=t.profile)||void 0===e?void 0:e.isSubscription)?"1":"0")}),[t.profile]);var l=function(){var n=(0,d.Z)(s().mark((function n(i){var c,a,l,d,u,p;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i.preventDefault(),n.prev=1,d=(null===(c=t.profile)||void 0===c?void 0:c.id)||0,u=(null===(a=t.profile)||void 0===a?void 0:a.userToken)||"",n.next=6,r.updateSubscription(d,u,"1"===o);case 6:p=n.sent,(0,j.m)({action:"subscribe",actionValue:"1"===o?"follow":"unfollow"}),(null===p||void 0===p||null===(l=p.responseMessage)||void 0===l?void 0:l.code)===g.Z.SUCCESS?_.Z.success(e("account_page_preference_save_success_title"),e("account_page_preference_save_success_detail")):_.Z.error(e("account_page_preference_save_failed_title"),e("account_page_preference_save_failed_detail")),n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),_.Z.error(e("account_page_preference_save_failed_title"),e("system_error"));case 14:case"end":return n.stop()}}),n,null,[[1,11]])})));return function(e){return n.apply(this,arguments)}}();return(0,i.jsx)(x.Z,{children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsxs)("div",{className:"col-xs-12 col-sm-12 col-md-5 col-lg-5",children:[(0,i.jsx)(x.Z.Title,{children:e("account_page_preference_title")}),(0,i.jsx)(x.Z.Detail,{children:e("account_page_preference_txt")}),(0,i.jsxs)(f.Z,{fullWidth:!0,value:o,onChange:function(e){return a(e.target.value)},children:[(0,i.jsx)("option",{value:"1",children:e("account_page_preference_subscribtion")}),(0,i.jsx)("option",{value:"0",children:e("account_page_preference_unsubscription")})]}),(0,i.jsx)("div",{className:"mt-5"}),(0,i.jsx)(m.Z,{primary:!0,fullWidth:!0,onClick:l,children:e("account_page_preference_btn_save")})]}),(0,i.jsx)("div",{className:"d-none d-xs-block d-sm-block col-md-1 col-lg-1"}),(0,i.jsx)("div",{className:"d-none d-xs-block d-sm-block col-md-6 col-lg-6",children:(0,i.jsx)(u.ZP,{name:"/account/gift.png",width:"80%"})})]})})}var w=t(59023);function Z(){(0,r.useRouter)();return(0,i.jsx)(w.Z,{children:(0,i.jsxs)("div",{className:"mb-5",children:[(0,i.jsx)("div",{className:"d-none d-md-block",children:(0,i.jsx)(c.Z,{items:[{text:"Home",href:"/"},{text:"Account",href:"/account"}]})}),(0,i.jsx)(o.Z,{}),(0,i.jsx)(a.Z,{activeName:"preferences"}),(0,i.jsx)(b,{})]})})}},19662:function(e,n,t){"use strict";var i,r,c=t(86455),o=t.n(c);(r=i||(i={})).success=function(e,n){return o().fire({icon:"success",iconColor:"#AB1F2E",title:e,text:n,confirmButtonColor:"#AB1F2E",confirmButtonText:"OK"})},r.error=function(e,n){return o().fire({icon:"error",iconColor:"#AB1F2E",title:e,text:n,confirmButtonColor:"#AB1F2E",confirmButtonText:"OK"})},n.Z=i},28251:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/preferences",function(){return t(58957)}])}},function(e){e.O(0,[260,6158,8032,6455,9023,9774,2888,179],(function(){return n=28251,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.