You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 lines
3.4 KiB

{"ast":null,"code":"import baseIsEqual from './_baseIsEqual.js';\nimport get from './get.js';\nimport hasIn from './hasIn.js';\nimport isKey from './_isKey.js';\nimport isStrictComparable from './_isStrictComparable.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\nimport toKey from './_toKey.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function (object) {\n var objValue = get(object, path);\n return objValue === undefined && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\nexport default baseMatchesProperty;","map":{"version":3,"names":["baseIsEqual","get","hasIn","isKey","isStrictComparable","matchesStrictComparable","toKey","COMPARE_PARTIAL_FLAG","COMPARE_UNORDERED_FLAG","baseMatchesProperty","path","srcValue","object","objValue","undefined"],"sources":["D:/vueEX/Front-end logistics/node_modules/lodash-es/_baseMatchesProperty.js"],"sourcesContent":["import baseIsEqual from './_baseIsEqual.js';\nimport get from './get.js';\nimport hasIn from './hasIn.js';\nimport isKey from './_isKey.js';\nimport isStrictComparable from './_isStrictComparable.js';\nimport matchesStrictComparable from './_matchesStrictComparable.js';\nimport toKey from './_toKey.js';\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nexport default baseMatchesProperty;\n"],"mappings":"AAAA,OAAOA,WAAW,MAAM,mBAAmB;AAC3C,OAAOC,GAAG,MAAM,UAAU;AAC1B,OAAOC,KAAK,MAAM,YAAY;AAC9B,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,kBAAkB,MAAM,0BAA0B;AACzD,OAAOC,uBAAuB,MAAM,+BAA+B;AACnE,OAAOC,KAAK,MAAM,aAAa;;AAE/B;AACA,IAAIC,oBAAoB,GAAG,CAAC;EACxBC,sBAAsB,GAAG,CAAC;;AAE9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,mBAAmBA,CAACC,IAAI,EAAEC,QAAQ,EAAE;EAC3C,IAAIR,KAAK,CAACO,IAAI,CAAC,IAAIN,kBAAkB,CAACO,QAAQ,CAAC,EAAE;IAC/C,OAAON,uBAAuB,CAACC,KAAK,CAACI,IAAI,CAAC,EAAEC,QAAQ,CAAC;EACvD;EACA,OAAO,UAASC,MAAM,EAAE;IACtB,IAAIC,QAAQ,GAAGZ,GAAG,CAACW,MAAM,EAAEF,IAAI,CAAC;IAChC,OAAQG,QAAQ,KAAKC,SAAS,IAAID,QAAQ,KAAKF,QAAQ,GACnDT,KAAK,CAACU,MAAM,EAAEF,IAAI,CAAC,GACnBV,WAAW,CAACW,QAAQ,EAAEE,QAAQ,EAAEN,oBAAoB,GAAGC,sBAAsB,CAAC;EACpF,CAAC;AACH;AAEA,eAAeC,mBAAmB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}