PageSourceSearch

https://portal.dupoin.co.id/ssr-common/src/micro/account-eyes/index.643f4c02.final.mjs

js dupoin.co.id collected 2026-09-24 13:05:16 UTC 11,993 bytes, 1 lines download raw bytes

1import{TmsBase as t}from"@gen/app-vue";import{defineComponent as e,onMounted as n,onUnmounted as s,watch as o}from"vue";import{Define as r,PassOnTo as a,Setup as i}from"vue-class-setup";var c,l={9472(t,e,n){n.r(e),n.d(e,{default:()=>i});var s=n(2323),o=n.n(s),r=n(2188),a=n.n(r)()(o());a.push([t.id,".account-toggle[data-v-55c8f6b6]{cursor:pointer;align-items:center;display:flex}.icon[data-v-55c8f6b6]{font-size:0}",""]);let i=a},9009(t,e,n){n.r(e),n.d(e,{default:()=>i});var s=n(2323),o=n.n(s),r=n(2188),a=n.n(r)()(o());a.push([t.id,".default-text[data-v-6d5122e4]{color:var(--theme-text-color)}",""]);let i=a},2188(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",s=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),s&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),s&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,s,o,r){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(s)for(var i=0;i<this.length;i++){var c=this[i][0];null!=c&&(a[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);s&&a[u[0]]||(void 0!==r&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]&&(u[1]="@media ".concat(u[2]," {").concat(u[1],"}")),u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),e.push(u))}},e}},2323(t){t.exports=function(t){return t[1]}},5247(t,e,n){var s=n(9472);s.__esModule&&(s=s.default),"string"==typeof s&&(s=[[t.id,s,""]]),s.locals&&(t.exports=s.locals),(0,n(4738).A)("050af95f",s,!0,{})},2206(t,e,n){var s=n(9009);s.__esModule&&(s=s.default),"string"==typeof s&&(s=[[t.id,s,""]]),s.locals&&(t.exports=s.locals),(0,n(4738).A)("68d11c7f",s,!0,{})},4738(t,e,n){function s(t,e){for(var n=[],s={},o=0;o<e.length;o++){var r=e[o],a=r[0],i={id:t+":"+o,css:r[1],media:r[2],sourceMap:r[3]};s[a]?s[a].parts.push(i):n.push(s[a]={id:a,parts:[i]})}return n}n.d(e,{A:()=>v});var o,r="u">typeof document;if("u">typeof DEBUG&&DEBUG&&!r)throw Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=r&&(document.head||document.getElementsByTagName("head")[0]),c=null,l=0,u=!1,h=function(){},f=null,d="data-vue-ssr-id",p="u">typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(t,e,n,o){u=n,f=o||{};var r=s(t,e);return g(r),function(e){for(var n=[],o=0;o<r.length;o++){var i=a[r[o].id];i.refs--,n.push(i)}e?g(r=s(t,e)):r=[];for(var o=0;o<n.length;o++){var i=n[o];if(0===i.refs){for(var c=0;c<i.parts.length;c++)i.parts[c]();delete a[i.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],s=a[n.id];if(s){s.refs++;for(var o=0;o<s.parts.length;o++)s.parts[o](n.parts[o]);for(;o<n.parts.length;o++)s.parts.push(b(n.parts[o]));s.parts.length>n.parts.length&&(s.parts.length=n.parts.length)}else{for(var r=[],o=0;o<n.parts.length;o++)r.push(b(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:r}}}}function y(){var t=document.createElement("style");return t.type="text/css",i.appendChild(t),t}function b(t){var e,n,s=document.querySelector("style["+d+'~="'+t.id+'"]');if(s)if(u)return h;else s.parentNode.removeChild(s);if(p){var o=l++;e=_.bind(null,s=c||(c=y()),o,!1),n=_.bind(null,s,o,!0)}else e=A.bind(null,s=y()),n=function(){s.parentNode.removeChild(s)};return e(t),function(s){s?(s.css!==t.css||s.media!==t.media||s.sourceMap!==t.sourceMap)&&e(t=s):n()}}
1var m=(o=[],function(t,e){return o[t]=e,o.filter(Boolean).join("\n")});function _(t,e,n,s){var o=n?"":s.css;if(t.styleSheet)t.styleSheet.cssText=m(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function A(t,e){var n=e.css,s=e.media,o=e.sourceMap;if(s&&t.setAttribute("media",s),f.ssrId&&t.setAttribute(d,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},u={};function h(t){var e=u[t];if(void 0!==e)return e.exports;var n=u[t]={id:t,exports:{}};return l[t](n,n.exports,h),n.exports}h.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return h.d(e,{a:e}),e},h.d=(t,e)=>{for(var n in e)h.o(e,n)&&!h.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},h.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),h.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var f=((c={}).AccountEyesUpdate="account-eyes-update",c);let d=new class{on(t,e){this.events[t]||(this.events[t]=[]),this.events[t].push(e)}emit(t,e){this.events[t]&&this.events[t].forEach(t=>t(e))}off(t,e){this.events[t]&&(this.events[t]=this.events[t].filter(t=>t!==e))}offAll(t){t?delete this.events[t]:this.events={}}constructor(){var t,e;e={},(t="events")in this?Object.defineProperty(this,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):this[t]=e}};class p extends t{get localKey(){return"account-eyes-manage"}getLocalValue(){try{let t=localStorage.getItem(this.localKey);t&&(this.localData=JSON.parse(t))}catch(t){console.log(t)}}$setLocalData(t){this.localData={...this.localData,...t}}obs(){d.on(f.AccountEyesUpdate,this.getLocalValue.bind(this))}unobs(){d.off(f.AccountEyesUpdate,this.getLocalValue.bind(this))}constructor(t){var e,n;super(t),n={},(e="localData")in this?Object.defineProperty(this,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):this[e]=n,this.getLocalValue()}}function v(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return'<svg width="'.concat(t.width||16,'" height="').concat(t.height||16,'" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M13.763 4.856a.49.49 0 0 1 .724-.055.575.575 0 0 1 .052.775c-.409.504-.828.956-1.257 1.356l1.22 1.628a.576.576 0 0 1-.081.773.49.49 0 0 1-.671-.027l-.052-.06-1.222-1.633a8.054 8.054 0 0 1-2.177 1.196l.61 1.786c.096.285-.042.601-.308.705a.501.501 0 0 1-.631-.26l-.029-.069-.643-1.89a6.823 6.823 0 0 1-2.564 0l-.643 1.89c-.097.285-.393.433-.66.33a.557.557 0 0 1-.326-.633l.019-.073.61-1.786a8.07 8.07 0 0 1-2.232-1.238L2.247 9.247l-.052.06a.49.49 0 0 1-.67.026.577.577 0 0 1-.124-.707l.043-.066L2.7 6.884a13.395 13.395 0 0 1-1.206-1.308.575.575 0 0 1 .052-.775.491.491 0 0 1 .725.055c1.766 2.177 3.675 3.246 5.746 3.246 2.07 0 3.98-1.069 5.747-3.246Z" fill="').concat(t.color||"currentColor",'"/>\n</svg>\n')}function g(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return'<svg width="'.concat(t.width||16,'" height="').concat(t.height||16,'" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M8.001 2.167c2.578 0 4.827 1.582 6.751 4.454a2.5 2.5 0 0 1 .09 2.611l-.004.008-.084.137-.173.252-.002.004c-1.884 2.71-4.078 4.2-6.578 4.2-2.578 0-4.828-1.582-6.752-4.454a2.5 2.5 0 0 1-.09-2.611l.004-.008.084-.137.173-.252.002-.004C3.306 3.657 5.5 2.167 8 2.167Zm0 1c-2.045 0-3.973 1.203-5.757 3.77l-.158.232-.063.1a1.5 1.5 0 0 0 .057 1.553c1.83 2.733 3.813 4.011 5.921 4.011 2.045 0 3.972-1.204 5.756-3.77l.158-.232.063-.1a1.5 1.5 0 0 0-.056-1.553C12.092 4.445 10.109 3.168 8 3.167Zm.064 2.769a2 2 0 1 1 0 4 2 2 0 0 1 0-4Z" fill="').concat(t.color||"currentColor",'"/>\n</svg>\n')}function y(t,e,n,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,s);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}class b extends r{get eyeSvgIcon(){var t;let e=this.isAccountVisible?g:v,n=null!=(t=this.size)?t:24;return e({width:n,height:n})}
1get store(){return p.get(this.$vm)}get realAccountList(){var t;return null!=(t=this.accountList)?t:[]}toggleAccountVisibility(){this.isAccountVisible=!this.isAccountVisible,this.setLocalValue(),d.emit(f.AccountEyesUpdate)}get localKey(){return"account-eyes-manage"}setLocalValue(){this.account?this.store.$setLocalData({[this.account]:{isEyesVisible:this.isAccountVisible}}):this.realAccountList.forEach(t=>{this.store.$setLocalData({[t]:{isEyesVisible:this.isAccountVisible}})}),localStorage.setItem(this.localKey,JSON.stringify(this.store.localData))}getLocalValue(){if(this.account){var t;this.isAccountVisible=null==(t=this.store.localData)||!t[this.account]||this.store.localData[this.account].isEyesVisible}else this.realAccountList&&(this.isAccountVisible=this.realAccountList.some(t=>{var e;let n=null==(e=this.store.localData)?void 0:e[t];return!n||n.isEyesVisible}))}setup(){n(()=>{this.getLocalValue(),d.on(f.AccountEyesUpdate,this.getLocalValue)}),s(()=>{d.off(f.AccountEyesUpdate,this.getLocalValue)}),o(()=>this.realAccountList.length,()=>{this.getLocalValue()})}constructor(...t){var e;super(...t),(e="isAccountVisible")in this?Object.defineProperty(this,e,{value:!0,enumerable:!0,configurable:!0,writable:!0}):this[e]=!0}}y([a()],b.prototype,"setup",null);let m=e({name:"account-eyes",...(b=y([i],b)).inject()}),_=e({...m,props:{accountList:null,account:null,size:null},setup:t=>({__sfc:!0,App:b})});function A(t,e,n,s,o,r,a,i){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),s&&(l.functional=!0),r&&(l._scopeId="data-v-"+r),a?l._ssrRegister=c=function(t){!(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&"u">typeof __VUE_SSR_CONTEXT__&&(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)}:o&&(c=i?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(t,e){return c.call(e),u(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:l}}h(5247);let E=A(_,function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",{staticClass:"account-toggle"},[e("i",{staticClass:"icon toggle-icon",attrs:{role:"button"},domProps:{innerHTML:t._s(t.eyeSvgIcon)},on:{click:function(e){return e.stopPropagation(),t.toggleAccountVisibility.apply(null,arguments)}}})])},[],!1,null,"55c8f6b6",null).exports;class x extends r{get store(){return p.get(this.$vm)}get visible(){var t,e,n;return this.account?null==(n=this.store.localData)||!n[this.account]||this.store.localData[this.account].isEyesVisible:!this.accountList||(null==(t=this.accountList)?void 0:t.length)===0||(null==(e=this.accountList)?void 0:e.some(t=>{var e;return null==(e=this.store.localData)||!e[t]||this.store.localData[t].isEyesVisible}))}get currencyFormat(){if("IDR"===this.currency)return"Rp ";if("USC"===this.currency)return"\xa2 ";if("JPY"===this.currency)return"\xa5 ";if("EUR"===this.currency)return"€ ";if("USD"===this.currency)return"$ ";else return""}}let L=e({name:"account-eyes-status",...(x=function(t,e,n,s){var o,r=arguments.length,a=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,s);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}([i],x)).inject()}),V=e({...L,props:{account:null,accountList:null,currency:null},setup:t=>({__sfc:!0,App:x})});h(2206);let C=A(V,function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"account-eyes-status"},[this.visible?this._t("default"):t("span",{staticClass:"default-text"},[this._v(this._s(this.currencyFormat)+"******")])],2)},[],!1,null,"6d5122e4",null).exports;export{f as AccountEyesEvent,E as AccountEyesMain,C as AccountEyesStatus,p as AccountEyesStore,d as accountEyesEvent};

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.