????

Your IP : 216.73.216.152


Current Path : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/
Upload File :
Current File : C:/inetpub/vhost/xaydung.gdtsolutions.vn/build/static/js/9333.eaea8785.chunk.js.map

{"version":3,"file":"static/js/9333.eaea8785.chunk.js","mappings":"iHAAA,SAASA,EAAuBC,EAAGC,GACjC,IAAK,CAAC,EAAEC,eAAeC,KAAKH,EAAGC,GAAI,MAAM,IAAIG,UAAU,kDACvD,OAAOJ,CACT,C,0FCDgDK,GAAAC,EAAAA,EAAAA,GAAA,eAAAC,GAAAD,EAAAA,EAAAA,GAAA,eAEhD,MAAME,EAgEJ,gBAAOC,CAAUC,EAASC,EAASC,GACjC,MAAMC,GAAMC,EAAAA,EAAAA,GAAGC,KAAIV,GAAAA,GAAcM,GACjC,OAAOD,EAAQD,UAAUO,EAAAA,GAAO,IAAIH,IAAUD,GAAa,EAC7D,CASA,eAAOK,CAASP,EAASQ,EAAIP,EAASC,GACpC,MAAMC,GAAMC,EAAAA,EAAAA,GAAGC,KAAIV,GAAAA,GAAcM,GACjC,OAAOD,EAAQO,SAASD,EAAAA,GAAOE,EAAI,IAAIL,IAAUD,EACnD,CAQA,eAAOO,CAAST,EAASC,EAASC,GAChC,MAAMC,GAAMC,EAAAA,EAAAA,GAAGC,KAAIV,GAAAA,GAAcM,GACjC,OAAOD,EAAQD,UAAUO,EAAAA,GAAQ,UAAW,IAAIH,IAAUD,GAAa,EACzE,CAMA,aAAOQ,CAAOV,EAASW,GACrB,OAAOX,EAAQY,OAAON,EAAAA,GAAOK,EAC/B,CAQA,aAAOE,CAAOb,EAASQ,EAAIM,EAASZ,GAClC,OAAOF,EAAQa,OAAOP,EAAAA,GAAOQ,EAAS,IAAIN,KAAON,EACnD,CAMA,aAAOa,CAAOf,EAASQ,GACrB,OAAOR,EAAQe,OAAOT,EAAAA,GAAO,IAAIE,KACnC,EACDQ,EArHKlB,EACJmB,OAAAC,eADIpB,EAAYH,EAAA,CAAAwB,UAAA,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nB,EAAaE,KAAK,YAAYiB,IAC7C,CAIA,MAF8B,qBAAnB3C,EAAQ8C,QACjBtB,EAAaE,KAAK,WAAW1B,EAAQ8C,UAChCtB,EAAaM,KAAKP,EAC3B,IAEAP,OAAAC,eA7CIpB,EAAYD,EAAA,CAAAsB,UAAA,EAAAC,MAgDOY,GACC,kBAAXA,EAA4BA,EAC/Bf,OAAO+B,KAAKhB,GAASO,KAAIU,IAAS,IAADC,EAEvC,MAAMC,EAAkB,QAAfD,EAAGlB,EAAOiB,UAAK,IAAAC,EAAAA,EAAI,CAAC,EACvBE,GAAUhD,EAAAA,EAAAA,GAAAY,EAAArB,GAAAA,GAAqBwD,EAAK,KAC1C,OAAOC,EAAa,GAAGH,KAAQG,KAAgBH,CAAI,IAClDlB,KAAK,OAgEZ,S,wGCtHe,SAASsB,IACtB,OACEC,EAAAA,EAAAA,KAACC,EAAAA,GAAY,CACXC,KAAK,0CACLC,aAAc,CACZC,KAAMA,IAAMC,EAAAA,GAAcC,cAC1BC,IAAKC,GAAQC,EAAAA,EAAYrD,OAAOiD,EAAAA,GAAeG,GAC/CE,KAAMxB,IAAA,IAAC,GAAEyB,KAAOH,GAAMtB,EAAA,OAAKuB,EAAAA,EAAYlD,OAAO8C,EAAAA,GAAeM,EAAIH,EAAM,CAAEI,KAAM,WAAY,EAC3FC,OAAQF,GAAMF,EAAAA,EAAYhD,OAAO4C,EAAAA,GAAeM,KAIxD,C,mCCjBA,IAAIzD,EAAK,EACT,SAAS4D,EAAsB9E,GAC7B,MAAO,aAAekB,IAAO,IAAMlB,CACrC,C","sources":["../../../../../../root/.yarn/berry/cache/@babel-runtime-npm-7.26.9-8369ff039f-10c0.zip/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js","service/odata4/index.js","views/quan-tri/MenuHeThong/index.js","../../../../../../root/.yarn/berry/cache/@babel-runtime-npm-7.26.9-8369ff039f-10c0.zip/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js"],"sourcesContent":["function _classPrivateFieldBase(e, t) {\n  if (!{}.hasOwnProperty.call(e, t)) throw new TypeError(\"attempted to use private field on non-instance\");\n  return e;\n}\nexport { _classPrivateFieldBase as default };","/// <reference path=\"./types.js\" />\n/** @requires module:src/service/odata4 */\nimport { ODATA } from '../../actions/constants';\n\nclass ODataV4Query {\n  /**\n   * @param {ODataOption} options\n   * @param {'&' | ';'} delimiter\n   */\n  static #createQuery = (options = {}, delimiter = '&') => {\n    /** @type {Array<string>} */\n    const queryStrings = [];\n    if (typeof options.select !== 'undefined') {\n      queryStrings.push(`$select=${Array.of(options.select).flat(2).join(',')}`);\n    }\n    if (typeof options.expand !== 'undefined') {\n      const expand = Array.isArray(options.expand) ? options.expand.join(',') : this.#parseExpand(options.expand);\n      queryStrings.push(`$expand=${expand}`);\n    }\n\n    if (typeof options.count !== 'undefined')\n      queryStrings.push(`$count=${options.count}`);\n\n    if (typeof options.top !== 'undefined')\n      queryStrings.push(`$top=${options.top}`)\n\n    if (typeof options.skip !== 'undefined')\n      queryStrings.push(`$skip=${options.skip}`)\n\n    if (typeof options.format !== 'undefined') {\n      const format = typeof options.format === 'string' ? options.format : Array.of(\n        'application/json',\n        ...Object.entries(options.format).map(([key, val]) => `odata.${key}=${val}`)\n      ).join(';')\n      queryStrings.push(`$format=${format}`)\n    }\n\n    if (typeof options.orderby !== 'undefined') {\n      const orderBy = Array.of(options.orderby).flat(2).map(m => {\n        return (typeof m === 'string') ? m : Object.entries(m).map(([key, val]) => `${key} ${val}`)\n      }).flat().join(',')\n      if (orderBy) queryStrings.push(`$orderby=${orderBy}`)\n    }\n    // Dự định xử lý mở rộng\n    if (typeof options.filter !== 'undefined')\n      queryStrings.push(`$filter=${options.filter}`)\n    return queryStrings.join(delimiter);\n  }\n\n  /**\n   * @param {string | ODataExpand} expand\n   */\n  static #parseExpand = (expand) => {\n    if (typeof expand === 'string') return expand;\n    return (Object.keys(expand)).map(prop => {\n      /** @type {ODataOption<keyof T>} */\n      const opt = expand[prop] ?? {};\n      const innerQuery = this.#createQuery(opt, ';');\n      return innerQuery ? `${prop}(${innerQuery})` : prop;\n    }).join(',')\n  }\n  /**\n   * Tìm kiếm với giao thức OData\n   * @param {import('../Service').Service} service\n   * @param {ODataOption} options\n   * @param {import('../../actions/callApi.js').ExportFetchType} fetchConfig\n   * @returns {Promise<ODataSetResult>}\n   */\n  static SearchAll(service, options, fetchConfig) {\n    const params = this.#createQuery(options);\n    return service.SearchAll(ODATA, `?${params}`, fetchConfig, true);\n  }\n  /**\n   * Tìm kiếm theo id với giao thức OData\n   * @param {import('../Service').Service} service\n   * @param {string | number} id\n   * @param {Pick<ODataOption, 'select' | 'expand'>} options\n   * @param {import('../../actions/callApi.js').ExportFetchType} fetchConfig\n   * @returns {Promise<ODataSingleResult>}\n   */\n  static FindById(service, id, options, fetchConfig) {\n    const params = this.#createQuery(options);\n    return service.FindById(ODATA, id, `?${params}`, fetchConfig);\n  }\n  /**\n   * Đếm dữ liệu thỏa điều kiện với giao thức OData (GET /$count)\n   * @param {import('../Service').Service} service\n   * @param {Pick<ODataOption, 'filter'>} options\n   * @param {import('../../actions/callApi.js').ExportFetchType} fetchConfig\n   * @return {Promise<number>}\n   */\n  static GetCount(service, options, fetchConfig) {\n    const params = this.#createQuery(options);\n    return service.SearchAll(ODATA + '/$count', `?${params}`, fetchConfig, true);\n  }\n  /**\n   * Thêm dữ liệu với giao thức OData (POST)\n   * @param {import('../Service').Service} service\n   * @param {Object} entity\n   */\n  static Create(service, entity) {\n    return service.Insert(ODATA, entity)\n  }\n  /**\n   * Sửa dữ liệu với giao thức OData (PATCH ({id}))\n   * @param {import('../Service').Service} service\n   * @param {string | number} id\n   * @param {Object} patched\n   * @param {import('../../actions/callApi.js').ExportFetchType} fetchConfig\n   */\n  static Update(service, id, patched, fetchConfig) {\n    return service.Update(ODATA, patched, `(${id})`, fetchConfig)\n  }\n  /**\n   * Xóa dữ liệu với giao thức OData (DELETE ({id}))\n   * @param {import('../Service').Service} service\n   * @param {string | number} id\n   */\n  static Delete(service, id) {\n    return service.Delete(ODATA, `(${id})`);\n  }\n}\n\nexport default ODataV4Query;","import React from \"react\";\nimport { MenuAdvanced } from \"../../../others\";\nimport { MenusEndpoint } from \"../../../service/Identities\";\nimport OData4Query from '../../../service/odata4';\n\nexport default function MenuHeThong() {\n  return (\n    <MenuAdvanced\n      name=\"Menu dành cho Web Quản Trị\"\n      manipulation={{\n        view: () => MenusEndpoint.getMenuTree(),\n        add: menu => OData4Query.Create(MenusEndpoint, menu),\n        edit: ({ Id, ...menu }) => OData4Query.Update(MenusEndpoint, Id, menu, { mode: 'no-cors' }),\n        delete: Id => OData4Query.Delete(MenusEndpoint, Id)\n      }}\n    />\n  );\n}\n","var id = 0;\nfunction _classPrivateFieldKey(e) {\n  return \"__private_\" + id++ + \"_\" + e;\n}\nexport { _classPrivateFieldKey as default };"],"names":["_classPrivateFieldBase","e","t","hasOwnProperty","call","TypeError","_createQuery","_classPrivateFieldLooseKey","_parseExpand","ODataV4Query","SearchAll","service","options","fetchConfig","params","_classPrivateFieldLooseBase","this","ODATA","FindById","id","GetCount","Create","entity","Insert","Update","patched","Delete","_ODataV4Query","Object","defineProperty","writable","value","arguments","length","undefined","delimiter","queryStrings","select","push","Array","of","flat","join","expand","isArray","count","top","skip","format","entries","map","_ref","key","val","orderby","orderBy","m","_ref2","filter","keys","prop","_expand$prop","opt","innerQuery","MenuHeThong","_jsx","MenuAdvanced","name","manipulation","view","MenusEndpoint","getMenuTree","add","menu","OData4Query","edit","Id","mode","delete","_classPrivateFieldKey"],"sourceRoot":""}