{"ast":null,"code":"export default function createTransform( // @NOTE inbound: transform state coming from redux on its way to being serialized and stored\ninbound, // @NOTE outbound: transform state coming from storage, on its way to be rehydrated into redux\noutbound) {\n  var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  var whitelist = config.whitelist || null;\n  var blacklist = config.blacklist || null;\n\n  function whitelistBlacklistCheck(key) {\n    if (whitelist && whitelist.indexOf(key) === -1) return true;\n    if (blacklist && blacklist.indexOf(key) !== -1) return true;\n    return false;\n  }\n\n  return {\n    in: function _in(state, key, fullState) {\n      return !whitelistBlacklistCheck(key) && inbound ? inbound(state, key, fullState) : state;\n    },\n    out: function out(state, key, fullState) {\n      return !whitelistBlacklistCheck(key) && outbound ? outbound(state, key, fullState) : state;\n    }\n  };\n}","map":{"version":3,"sources":["C:/laragon/www/iot.mksolusi/DriverOPCDA/frontend/node_modules/redux-persist/es/createTransform.js"],"names":["createTransform","inbound","outbound","config","arguments","length","undefined","whitelist","blacklist","whitelistBlacklistCheck","key","indexOf","in","_in","state","fullState","out"],"mappings":"AAAA,eAAe,SAASA,eAAT,EAA0B;AACzCC,OADe,EACN;AACTC,QAFe,EAEL;AACR,MAAIC,MAAM,GAAGC,SAAS,CAACC,MAAV,GAAmB,CAAnB,IAAwBD,SAAS,CAAC,CAAD,CAAT,KAAiBE,SAAzC,GAAqDF,SAAS,CAAC,CAAD,CAA9D,GAAoE,EAAjF;AACA,MAAIG,SAAS,GAAGJ,MAAM,CAACI,SAAP,IAAoB,IAApC;AACA,MAAIC,SAAS,GAAGL,MAAM,CAACK,SAAP,IAAoB,IAApC;;AAEA,WAASC,uBAAT,CAAiCC,GAAjC,EAAsC;AACpC,QAAIH,SAAS,IAAIA,SAAS,CAACI,OAAV,CAAkBD,GAAlB,MAA2B,CAAC,CAA7C,EAAgD,OAAO,IAAP;AAChD,QAAIF,SAAS,IAAIA,SAAS,CAACG,OAAV,CAAkBD,GAAlB,MAA2B,CAAC,CAA7C,EAAgD,OAAO,IAAP;AAChD,WAAO,KAAP;AACD;;AAED,SAAO;AACLE,IAAAA,EAAE,EAAE,SAASC,GAAT,CAAaC,KAAb,EAAoBJ,GAApB,EAAyBK,SAAzB,EAAoC;AACtC,aAAO,CAACN,uBAAuB,CAACC,GAAD,CAAxB,IAAiCT,OAAjC,GAA2CA,OAAO,CAACa,KAAD,EAAQJ,GAAR,EAAaK,SAAb,CAAlD,GAA4ED,KAAnF;AACD,KAHI;AAILE,IAAAA,GAAG,EAAE,SAASA,GAAT,CAAaF,KAAb,EAAoBJ,GAApB,EAAyBK,SAAzB,EAAoC;AACvC,aAAO,CAACN,uBAAuB,CAACC,GAAD,CAAxB,IAAiCR,QAAjC,GAA4CA,QAAQ,CAACY,KAAD,EAAQJ,GAAR,EAAaK,SAAb,CAApD,GAA8ED,KAArF;AACD;AANI,GAAP;AAQD","sourcesContent":["export default function createTransform( // @NOTE inbound: transform state coming from redux on its way to being serialized and stored\ninbound, // @NOTE outbound: transform state coming from storage, on its way to be rehydrated into redux\noutbound) {\n  var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n  var whitelist = config.whitelist || null;\n  var blacklist = config.blacklist || null;\n\n  function whitelistBlacklistCheck(key) {\n    if (whitelist && whitelist.indexOf(key) === -1) return true;\n    if (blacklist && blacklist.indexOf(key) !== -1) return true;\n    return false;\n  }\n\n  return {\n    in: function _in(state, key, fullState) {\n      return !whitelistBlacklistCheck(key) && inbound ? inbound(state, key, fullState) : state;\n    },\n    out: function out(state, key, fullState) {\n      return !whitelistBlacklistCheck(key) && outbound ? outbound(state, key, fullState) : state;\n    }\n  };\n}"]},"metadata":{},"sourceType":"module"}