{"version":3,"sources":["webpack:///./node_modules/core-js/modules/es.array.reduce.js","webpack:///./node_modules/core-js/modules/esnext.iterator.filter.js","webpack:///./src/api/utils.ts","webpack:///./src/api/api_usage/getMonthlyUsage.ts","webpack:///./src/api/api_usage/getRateLimit.ts","webpack:///./src/components/Modal.vue","webpack:///./src/components/Modal.vue?115c","webpack:///./node_modules/core-js/internals/environment.js","webpack:///./src/constants.ts","webpack:///./node_modules/core-js/modules/es.iterator.filter.js","webpack:///./node_modules/core-js/modules/es.iterator.reduce.js","webpack:///./node_modules/core-js/internals/environment-is-node.js","webpack:///./src/components/InputBox.vue?522a","webpack:///./node_modules/core-js/modules/esnext.iterator.reduce.js","webpack:///./node_modules/core-js/internals/array-method-is-strict.js","webpack:///./src/components/DropdownCheck.vue","webpack:///./src/components/DropdownCheck.vue?2bbc","webpack:///./src/components/Icon.vue?7b0b","webpack:///./src/components/TableSection.vue","webpack:///./src/components/TableSection.vue?2548","webpack:///./src/components/Icon.vue","webpack:///./src/components/Icon.vue?bc92","webpack:///./src/components/DropdownCheck.vue?4784","webpack:///./node_modules/core-js/internals/array-reduce.js","webpack:///./src/components/InputBox.vue","webpack:///./src/components/InputBox.vue?971e","webpack:///./src/components/TableSection.vue?2851","webpack:///./src/components/Modal.vue?54a1"],"names":["$","$reduce","left","arrayMethodIsStrict","CHROME_VERSION","IS_NODE","CHROME_BUG","FORCED","target","proto","forced","reduce","callbackfn","length","arguments","this","undefined","productName","product","nameMap","talenta","jurnal","qontak_crm","qontak_chat","klikpajak","mekari_sign","getMonthlyUsage","async","url","companySsoId","monthlyUsages","GET","mapData","MonthlyUsage","key","component_name","Object","keys","map","endpoints","data","apiUrl","api_url","usedQuota","used_quota","quota","firstData","componentName","averageUsedQuota","Math","round","sum","averageQuota","totalQuota","totalUsedQuota","getRateLimit","rateLimits","rateLimit","rate_limit","rateLimitInterval","rate_limit_interval","averageRateLimit","averageRateLimitInterval","_hoisted_1","_hoisted_2","class","_hoisted_3","_hoisted_4","_hoisted_5","_defineComponent","__name","props","width","header","isModalOpen","type","Boolean","emits","setup","__props","emit","__emit","ref","_ctx","_cache","_openBlock","_createElementBlock","_createElementVNode","style","_normalizeStyle","_toDisplayString","onClick","$event","_renderSlot","$slots","_createCommentVNode","__exports__","globalThis","userAgent","classof","userAgentStartsWith","string","slice","module","exports","Bun","version","Deno","process","window","document","PRODUCTS","id","name","call","aCallable","anObject","getIteratorDirect","createIteratorProxy","callWithSafeIterationClosing","IS_PURE","IteratorProxy","result","done","value","iterator","predicate","next","counter","real","filter","iterate","$TypeError","TypeError","reducer","record","noInitial","accumulator","IS_RECORD","ENVIRONMENT","fails","METHOD_NAME","argument","method","_hoisted_6","_hoisted_7","_mergeModels","options","optionsTitle","placeholder","default","model","_useModel","showDropdown","computed","v","find","text","join","onCheck","includes","selectAll","_createTextVNode","_Fragment","_renderList","option","checked","onChange","for","height","totalData","isLoading","size","page","body","totalDataSlot","totalPage","ceil","pageSizeOptions","navigate","direction","refresh","_body$value$getElemen","_body$value","getElementsByTagName","onUpdated","watch","ref_key","_withDirectives","opt","_vModelSelect","i","disabled","fileMap","innerHTML","toObject","IndexedObject","lengthOfArrayLike","REDUCE_EMPTY","createMethod","IS_RIGHT","that","argumentsLength","memo","O","self","index","right","rightIcon","leftIcon","maxLength","posClass","onInput","event","_normalizeClass","_unref","maxlength","_vModelText"],"mappings":"2HACA,IAAIA,EAAI,EAAQ,QACZC,EAAU,EAAQ,QAA6BC,KAC/CC,EAAsB,EAAQ,QAC9BC,EAAiB,EAAQ,QACzBC,EAAU,EAAQ,QAIlBC,GAAcD,GAAWD,EAAiB,IAAMA,EAAiB,GACjEG,EAASD,IAAeH,EAAoB,UAIhDH,EAAE,CAAEQ,OAAQ,QAASC,OAAO,EAAMC,OAAQH,GAAU,CAClDI,OAAQ,SAAgBC,GACtB,IAAIC,EAASC,UAAUD,OACvB,OAAOZ,EAAQc,KAAMH,EAAYC,EAAQA,EAAS,EAAIC,UAAU,QAAKE,O,yDCfzE,E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GAAa,CACxB,CAAC0J,OAAalE,EAAM3B,UAErB,O,iCC7CL,MAAM5B,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,U,kCCRf,W,kCCAA,W","file":"js/api-usage~monthly-usage.89d93da0.js","sourcesContent":["'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/environment-v8-version');\nvar IS_NODE = require('../internals/environment-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nrequire('../modules/es.iterator.filter');\n","import type { Product } from \"./types\";\n\nexport const productName = (product: Product): string => {\n const nameMap: Record = {\n talenta: \"Mekari Talenta\",\n jurnal: \"Mekari Jurnal\",\n qontak_crm: \"Mekari Qontak CRM\",\n qontak_chat: \"Mekari Qontak Chat\",\n klikpajak: \"Mekari Klikpajak\",\n mekari_sign: \"Mekari Sign\",\n };\n\n return nameMap[product] || \"UNKNOWN\";\n};\n","import { GET } from \"../request\";\nimport { Product } from \"../types\";\nimport { productName } from \"../utils\";\n\ntype MonthlyUsageResponse = {\n product: string;\n component_name: string;\n used_quota: number;\n quota: number;\n api_url: string;\n};\n\nexport type MonthlyUsage = {\n componentName: string;\n product: Product;\n productName: string;\n averageUsedQuota: number;\n averageQuota: number;\n totalQuota: number;\n totalUsedQuota: number;\n endpoints: MonthlyUsageEndpoint[];\n};\n\nexport type MonthlyUsageEndpoint = {\n apiUrl: string;\n usedQuota: number;\n quota: number;\n};\n\nexport const getMonthlyUsage = async (\n companySsoId: string\n): Promise => {\n const url = `/api/internal/mdc_api/api_usage/monthly/${companySsoId}`;\n const monthlyUsages = await GET(url);\n const mapData: Record = {};\n for (const MonthlyUsage of monthlyUsages) {\n const key = `${MonthlyUsage.product}:${MonthlyUsage.component_name}`;\n if (mapData[key]) mapData[key] = [...mapData[key], MonthlyUsage];\n else mapData[key] = [MonthlyUsage];\n }\n\n return Object.keys(mapData).map((key) => {\n const endpoints = mapData[key]\n .map((data) => ({\n apiUrl: data.api_url,\n usedQuota: data.used_quota,\n quota: data.quota,\n }));\n\n const firstData = mapData[key][0];\n return {\n componentName: firstData.component_name || \"Global API Monthly Limit\",\n product: firstData.product as Product,\n productName: productName(firstData.product as Product),\n endpoints,\n averageUsedQuota: Math.round(\n endpoints.reduce((sum, { usedQuota }) => (sum + usedQuota), 0) / endpoints.length\n ),\n averageQuota: Math.round(\n endpoints.reduce((sum, { quota }) => (sum + quota), 0) / endpoints.length\n ),\n totalQuota: endpoints.reduce((sum, { quota }) => (sum + quota), 0),\n totalUsedQuota: endpoints.reduce((sum, { usedQuota }) => (sum + usedQuota), 0),\n };\n });\n};\n","import { GET } from \"../request\";\nimport { Product } from \"../types\";\nimport { productName } from \"../utils\";\n\ntype RateLimitResponse = {\n id: string;\n rate_limit: number;\n used_rate_limit: number;\n rate_limit_interval: number;\n company_sso_id: string;\n api_url: string;\n component_name: string;\n product: string;\n};\n\nexport type RateLimit = {\n componentName: string;\n product: Product;\n productName: string;\n averageRateLimit: number;\n averageRateLimitInterval: number;\n endpoints: RateLimitEndpoint[];\n};\n\nexport type RateLimitEndpoint = {\n apiUrl: string;\n rateLimit: number;\n rateLimitInterval: number;\n};\n\nexport const getRateLimit = async (\n companySsoId: string\n): Promise => {\n const url = `/api/internal/mdc_api/api_usage/rate/${companySsoId}`;\n const rateLimits = await GET(url);\n const mapData: Record = {};\n for (const rateLimit of rateLimits) {\n const key = `${rateLimit.product}:${rateLimit.component_name}`;\n if (mapData[key]) mapData[key] = [...mapData[key], rateLimit];\n else mapData[key] = [rateLimit];\n }\n\n return Object.keys(mapData).map((key) => {\n const endpoints = mapData[key].map((data) => ({\n apiUrl: data.api_url,\n rateLimit: data.rate_limit,\n rateLimitInterval: data.rate_limit_interval,\n }));\n\n const firstData = mapData[key][0];\n return {\n componentName: firstData.component_name || \"Global API rate limit\",\n product: firstData.product as Product,\n productName: productName(firstData.product as Product),\n endpoints,\n averageRateLimit: Math.round(\n endpoints.reduce((sum, { rateLimit }) => (sum + rateLimit), 0) / endpoints.length\n ),\n averageRateLimitInterval: Math.round(\n endpoints.reduce((sum, { rateLimitInterval }) => (sum + rateLimitInterval), 0) /\n endpoints.length\n ),\n };\n });\n};\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { key: 0 }\nconst _hoisted_2 = { class: \"_modal-title\" }\nconst _hoisted_3 = { class: \"_wrapper\" }\nconst _hoisted_4 = { class: \"_modal-content\" }\nconst _hoisted_5 = { class: \"_modal-action\" }\n\nimport { ref } from \"vue\";\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'Modal',\n props: {\n width: {},\n header: {},\n isModalOpen: { type: Boolean }\n },\n emits: [\"close\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst modalOpen = ref(props.isModalOpen);\n\nreturn (_ctx: any,_cache: any) => {\n return (_ctx.isModalOpen)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _cache[2] || (_cache[2] = _createElementVNode(\"div\", { class: \"_backdrop\" }, null, -1)),\n _createElementVNode(\"div\", {\n class: \"_modal\",\n style: _normalizeStyle({ width: _ctx.width })\n }, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"h1\", null, _toDisplayString(props.header), 1),\n _createElementVNode(\"button\", {\n class: \"_btn _icon-button\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (emit('close')))\n }, _cache[1] || (_cache[1] = [\n _createElementVNode(\"i\", { class: \"fa-solid fa-xmark\" }, null, -1)\n ]))\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _renderSlot(_ctx.$slots, \"body\")\n ]),\n _createElementVNode(\"div\", _hoisted_5, [\n _renderSlot(_ctx.$slots, \"action\")\n ])\n ])\n ], 4)\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","import script from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./Modal.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./Modal.vue?vue&type=style&index=0&id=0f06974b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-0f06974b\"]])\n\nexport default __exports__","'use strict';\n/* global Bun, Deno -- detection */\nvar globalThis = require('../internals/global-this');\nvar userAgent = require('../internals/environment-user-agent');\nvar classof = require('../internals/classof-raw');\n\nvar userAgentStartsWith = function (string) {\n return userAgent.slice(0, string.length) === string;\n};\n\nmodule.exports = (function () {\n if (userAgentStartsWith('Bun/')) return 'BUN';\n if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';\n if (userAgentStartsWith('Deno/')) return 'DENO';\n if (userAgentStartsWith('Node.js/')) return 'NODE';\n if (globalThis.Bun && typeof Bun.version == 'string') return 'BUN';\n if (globalThis.Deno && typeof Deno.version == 'object') return 'DENO';\n if (classof(globalThis.process) === 'process') return 'NODE';\n if (globalThis.window && globalThis.document) return 'BROWSER';\n return 'REST';\n})();\n","export const PRODUCTS: { id: string; name: string }[] = [\n { id: \"talenta\", name: \"Talenta\" },\n { id: \"jurnal\", name: \"Jurnal\" },\n { id: \"qontak_crm\", name: \"Qontak CRM\" },\n { id: \"qontak_chat\", name: \"Qontak Chat\" },\n { id: \"klikpajak\", name: \"Klikpajak\" },\n { id: \"mekari_sign\", name: \"Mekari Sign\" },\n];\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar IS_PURE = require('../internals/is-pure');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n var predicate = this.predicate;\n var next = this.next;\n var result, done, value;\n while (true) {\n result = anObject(call(next, iterator));\n done = this.done = !!result.done;\n if (done) return;\n value = result.value;\n if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;\n }\n});\n\n// `Iterator.prototype.filter` method\n// https://tc39.es/ecma262/#sec-iterator.prototype.filter\n$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {\n filter: function filter(predicate) {\n anObject(this);\n aCallable(predicate);\n return new IteratorProxy(getIteratorDirect(this), {\n predicate: predicate\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\nvar $TypeError = TypeError;\n\n// `Iterator.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-iterator.prototype.reduce\n$({ target: 'Iterator', proto: true, real: true }, {\n reduce: function reduce(reducer /* , initialValue */) {\n anObject(this);\n aCallable(reducer);\n var record = getIteratorDirect(this);\n var noInitial = arguments.length < 2;\n var accumulator = noInitial ? undefined : arguments[1];\n var counter = 0;\n iterate(record, function (value) {\n if (noInitial) {\n noInitial = false;\n accumulator = value;\n } else {\n accumulator = reducer(accumulator, value, counter);\n }\n counter++;\n }, { IS_RECORD: true });\n if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value');\n return accumulator;\n }\n});\n","'use strict';\nvar ENVIRONMENT = require('../internals/environment');\n\nmodule.exports = ENVIRONMENT === 'NODE';\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./InputBox.vue?vue&type=style&index=0&id=77311141&lang=scss&scoped=true\"","'use strict';\n// TODO: Remove from `core-js@4`\nrequire('../modules/es.iterator.reduce');\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","import { useModel as _useModel, mergeModels as _mergeModels, defineComponent as _defineComponent } from 'vue'\nimport { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment } from \"vue\"\n\nconst _hoisted_1 = { class: \"_dropdown\" }\nconst _hoisted_2 = {\n key: 0,\n class: \"fa-solid fa-chevron-up sort-icon\"\n}\nconst _hoisted_3 = {\n key: 1,\n class: \"fa-solid fa-chevron-down sort-icon\"\n}\nconst _hoisted_4 = {\n key: 0,\n class: \"_input _dropdown-menu\"\n}\nconst _hoisted_5 = { class: \"_dropdown-header\" }\nconst _hoisted_6 = [\"id\", \"value\", \"checked\", \"onChange\"]\nconst _hoisted_7 = [\"for\"]\n\nimport { computed, ref } from \"vue\";\n\nexport type Option = { id: string; text: string };\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'DropdownCheck',\n props: /*@__PURE__*/_mergeModels({\n options: {},\n optionsTitle: {},\n placeholder: {}\n }, {\n \"modelValue\": { default: [] },\n \"modelModifiers\": {},\n }),\n emits: [\"update:modelValue\"],\n setup(__props: any) {\n\nconst props = __props;\n\nconst model = _useModel(__props, \"modelValue\");\n\nconst showDropdown = ref(false);\n\nconst placeholder = computed(() =>\n model.value.length === 0\n ? props.placeholder\n : model.value\n .map((v) => props.options.find(({ id }) => id == v).text)\n .join(\", \")\n);\n\nconst onCheck = (value: string) => {\n if (value == \"\") return;\n model.value = model.value.includes(value)\n ? model.value.filter((v) => v != value)\n : [...model.value, value];\n};\n\nconst selectAll = () => {\n model.value = props.options.map(({ id }) => id);\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"button\", {\n class: \"_input _dropdown-toggle\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (showDropdown.value = !showDropdown.value))\n }, [\n _createTextVNode(_toDisplayString(placeholder.value) + \" \", 1),\n (showDropdown.value)\n ? (_openBlock(), _createElementBlock(\"i\", _hoisted_2))\n : (_openBlock(), _createElementBlock(\"i\", _hoisted_3))\n ]),\n (showDropdown.value)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"p\", null, _toDisplayString(props.optionsTitle), 1),\n _createElementVNode(\"a\", { onClick: selectAll }, \"Select all\")\n ]),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(props.options, (option) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"_dropdown-item\",\n key: option.id\n }, [\n _createElementVNode(\"input\", {\n type: \"checkbox\",\n id: option.id,\n value: option.id,\n checked: model.value.find((v) => v === option.id) != undefined,\n onChange: ($event: any) => (onCheck(option.id))\n }, null, 40, _hoisted_6),\n _createElementVNode(\"label\", {\n for: option.id\n }, _toDisplayString(option.text), 9, _hoisted_7)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","import script from \"./DropdownCheck.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./DropdownCheck.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./DropdownCheck.vue?vue&type=style&index=0&id=f653583e&lang=scss&scoped=true\"\n\nimport exportComponent from \"/frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-f653583e\"]])\n\nexport default __exports__","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Icon.vue?vue&type=style&index=0&id=d6830dd2&lang=scss&scoped=true\"","import { defineComponent as _defineComponent } from 'vue'\nimport { renderSlot as _renderSlot, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, vModelSelect as _vModelSelect, withDirectives as _withDirectives, normalizeStyle as _normalizeStyle } from \"vue\"\n\nconst _hoisted_1 = { class: \"_table-pagination\" }\nconst _hoisted_2 = [\"value\"]\nconst _hoisted_3 = [\"value\"]\nconst _hoisted_4 = [\"disabled\"]\nconst _hoisted_5 = [\"disabled\"]\n\nimport { nextTick, onUpdated, ref, watch } from \"vue\";\n\nexport type Events = {\n \"change-size\": [size: number];\n next: [page: number];\n prev: [page: number];\n page: [page: number];\n};\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'TableSection',\n props: {\n height: {},\n totalData: {},\n isLoading: { type: Boolean }\n },\n emits: [\"change-size\", \"next\", \"prev\", \"page\"],\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst size = ref(10);\nconst page = ref(1);\nconst body = ref();\nconst totalDataSlot = ref(0);\nconst totalPage = ref(Math.ceil(props.totalData / size.value));\n\nconst pageSizeOptions = [10, 25, 50, 100];\n\nconst navigate = (direction: \"prev\" | \"next\") => {\n if (direction === \"next\") {\n emit(\"next\", page.value + 1);\n page.value += 1;\n } else {\n emit(\"prev\", page.value - 1);\n page.value -= 1;\n }\n};\n\nconst refresh = () => {\n totalPage.value = Math.ceil(props.totalData / size.value);\n totalDataSlot.value =\n body.value?.getElementsByTagName(\"tr\").length ?? size.value;\n};\n\nonUpdated(async () => {\n refresh();\n});\n\nwatch(size, () => {\n emit(\"change-size\", size.value);\n});\nwatch(page, () => {\n emit(\"page\", page.value);\n});\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"section\", {\n class: \"_table\",\n style: _normalizeStyle({ height: _ctx.height })\n }, [\n (props.totalData == 0)\n ? _renderSlot(_ctx.$slots, \"error\", { key: 0 })\n : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [\n _createElementVNode(\"table\", null, [\n _createElementVNode(\"thead\", null, [\n _createElementVNode(\"tr\", null, [\n _renderSlot(_ctx.$slots, \"header\")\n ])\n ]),\n _createElementVNode(\"tbody\", {\n ref_key: \"body\",\n ref: body\n }, [\n _renderSlot(_ctx.$slots, \"body\")\n ], 512)\n ]),\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", null, [\n _cache[4] || (_cache[4] = _createElementVNode(\"p\", null, \"Rows per page\", -1)),\n _withDirectives(_createElementVNode(\"select\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((size).value = $event))\n }, [\n (_openBlock(), _createElementBlock(_Fragment, null, _renderList(pageSizeOptions, (opt) => {\n return _createElementVNode(\"option\", {\n key: opt,\n value: opt\n }, _toDisplayString(opt), 9, _hoisted_2)\n }), 64))\n ], 512), [\n [_vModelSelect, size.value]\n ]),\n _createElementVNode(\"p\", null, \" Showing \" + _toDisplayString((page.value - 1) * size.value + 1) + \"-\" + _toDisplayString((page.value - 1) * size.value + totalDataSlot.value) + \" of \" + _toDisplayString(props.totalData), 1)\n ]),\n _createElementVNode(\"div\", null, [\n _withDirectives(_createElementVNode(\"select\", {\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((page).value = $event))\n }, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(totalPage.value, (i) => {\n return (_openBlock(), _createElementBlock(\"option\", {\n key: i,\n value: i\n }, _toDisplayString(i), 9, _hoisted_3))\n }), 128))\n ], 512), [\n [_vModelSelect, page.value]\n ]),\n _createElementVNode(\"p\", null, \"of \" + _toDisplayString(totalPage.value) + \" page\", 1),\n _createElementVNode(\"button\", {\n disabled: page.value == 1,\n onClick: _cache[2] || (_cache[2] = ($event: any) => (navigate('prev')))\n }, _cache[5] || (_cache[5] = [\n _createElementVNode(\"i\", { class: \"fa-solid fa-chevron-left\" }, null, -1)\n ]), 8, _hoisted_4),\n _createElementVNode(\"button\", {\n disabled: page.value == totalPage.value,\n onClick: _cache[3] || (_cache[3] = ($event: any) => (navigate('next')))\n }, _cache[6] || (_cache[6] = [\n _createElementVNode(\"i\", { class: \"fa-solid fa-chevron-right\" }, null, -1)\n ]), 8, _hoisted_5)\n ])\n ])\n ], 64))\n ], 4))\n}\n}\n\n})","import script from \"./TableSection.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./TableSection.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./TableSection.vue?vue&type=style&index=0&id=2b7e657b&lang=scss&scoped=true\"\n\nimport exportComponent from \"/frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-2b7e657b\"]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = [\"innerHTML\"]\n\nimport { Product } from \"../api/types\";\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'Icon',\n props: {\n product: {},\n size: {}\n },\n setup(__props: any) {\n\nconst fileMap: Record = {\n talenta: `\n \n \n `,\n jurnal: `\n \n \n `,\n qontak_chat: `\n \n \n `,\n qontak_crm: `\n \n \n `,\n klikpajak: `\n \n \n `,\n mekari_sign: `\n \n \n \n `,\n};\n\nconst props = __props;\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"_icon\",\n style: _normalizeStyle({ height: props.size, width: props.size }),\n innerHTML: fileMap[props.product]\n }, null, 12, _hoisted_1))\n}\n}\n\n})","import script from \"./Icon.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Icon.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./Icon.vue?vue&type=style&index=0&id=d6830dd2&lang=scss&scoped=true\"\n\nimport exportComponent from \"/frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-d6830dd2\"]])\n\nexport default __exports__","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./DropdownCheck.vue?vue&type=style&index=0&id=f653583e&lang=scss&scoped=true\"","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\nvar REDUCE_EMPTY = 'Reduce of empty array with no initial value';\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n aCallable(callbackfn);\n if (length === 0 && argumentsLength < 2) throw new $TypeError(REDUCE_EMPTY);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw new $TypeError(REDUCE_EMPTY);\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","import { useModel as _useModel, mergeModels as _mergeModels, defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, vModelText as _vModelText, createElementVNode as _createElementVNode, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = [\"placeholder\", \"maxlength\"]\n\n\nexport default /*@__PURE__*/_defineComponent({\n __name: 'InputBox',\n props: /*@__PURE__*/_mergeModels({\n rightIcon: {},\n leftIcon: {},\n placeholder: {},\n maxLength: {}\n }, {\n \"modelValue\": {},\n \"modelModifiers\": {},\n }),\n emits: /*@__PURE__*/_mergeModels([\"change\"], [\"update:modelValue\"]),\n setup(__props: any, { emit: __emit }) {\n\nconst props = __props;\n\nconst emit = __emit;\n\nconst model = _useModel(__props, \"modelValue\");\nconst posClass = props.rightIcon ? \"right\" : props.leftIcon ? \"left\" : \"\";\n\nconst onInput = (event: Event) => {\n emit(\"change\", (event.target as HTMLInputElement).value);\n};\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: _normalizeClass(_unref(posClass))\n }, [\n (props.leftIcon || props.rightIcon)\n ? (_openBlock(), _createElementBlock(\"i\", {\n key: 0,\n class: _normalizeClass(`fa-solid ${'fa-' + (props.leftIcon || props.rightIcon)}`)\n }, null, 2))\n : _createCommentVNode(\"\", true),\n _withDirectives(_createElementVNode(\"input\", {\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((model).value = $event)),\n class: \"_input\",\n type: \"text\",\n onInput: onInput,\n placeholder: props.placeholder,\n maxlength: props.maxLength || 256\n }, null, 40, _hoisted_1), [\n [_vModelText, model.value]\n ])\n ], 2))\n}\n}\n\n})","import script from \"./InputBox.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./InputBox.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./InputBox.vue?vue&type=style&index=0&id=77311141&lang=scss&scoped=true\"\n\nimport exportComponent from \"/frontend/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-77311141\"]])\n\nexport default __exports__","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./TableSection.vue?vue&type=style&index=0&id=2b7e657b&lang=scss&scoped=true\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Modal.vue?vue&type=style&index=0&id=0f06974b&lang=scss&scoped=true\""],"sourceRoot":""}