{"version":3,"sources":["jsdelivr-header.js","/npm/ac-if-show@1.0.0/acIfShow.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACsEE,QAAQ,OAAO,WAAY,IAC1B,UAAU,WAAa,CAAC,WAvEzB,SAA0B,GACxB,IAAI,EAAgB,UAChB,EAA4B,kBAChC,MAAO,CACL,WAAY,UACZ,SAAU,IACV,UAAU,EACV,SAAU,IACV,OAAO,EACP,cAAc,EACd,KAAM,SAAS,EAAQ,EAAU,EAAO,EAAM,GAC1C,IAAI,EAAO,EAAY,EAAkB,EAsDzC,EAAO,OAAO,EAAM,UApDpB,SAA6B,GACvB,EAON,SAA2B,GACzB,EAAS,EAAQ,cAAgB,YAAY,QAAQ,QAAQ,EAAM,OAAQ,EAAe,CACxF,YAAa,GAEjB,CAVI,CAAkB,GAYtB,SAAyB,GAEnB,EACG,GACH,GAAY,SAAS,EAAO,GAC1B,EAAa,EACb,EAAM,EAAM,UAAY,SAAS,cAAc,kBAAoB,EAAM,SAAW,KAIpF,EAAQ,CACN,MAAO,GAET,EAAS,MAAM,EAAO,EAAS,SAAU,GAAU,MAAK,SAAS,GAE/D,OADA,GAAO,EACA,CACT,GACF,KAGE,IACF,EAAiB,SACjB,EAAmB,MAEjB,IACF,EAAW,WACX,EAAa,MAEX,IACF,EAAmB,cAAc,EAAM,OACvC,EAAS,MAAM,GAAkB,MAAK,WACpC,EAAmB,IACrB,IACA,EAAQ,MAGd,CA9CI,CAAgB,EAEpB,GA+CJ,EAEJ,IAMA,QAAQ,OAAO,uBAAwB,CAAC,aACxC,QAAQ,OAAO,wBAAyB,CAAC,aACzC,QAAQ,OAAO,sBAAuB,CAAC,aAEjB,iBAAX,QAAyC,mBAAX,SACvC,OAAO,QAAU,QAAQ,OAAO","file":"/npm/ac-if-show@1.0.0/acIfShow.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/ac-if-show@1.0.0/acIfShow.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","!function() {\n\n  /*\n   * @AngularClass\n   */\n\n  function $IfHideDirective($animate) {\n    var NG_HIDE_CLASS = 'ng-hide';\n    var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';\n    return {\n      transclude: 'element',\n      priority: 600,\n      terminal: true,\n      restrict: 'A',\n      $$tlb: true,\n      multiElement: true,\n      link: function($scope, $element, $attr, ctrl, $transclude) {\n          var block, childScope, previousElements, once;\n\n          function ngIfHideWatchAction(value) {\n            if (once) {\n              ngShowWatchAction(value);\n            } else {\n              ngIfWatchAction(value);\n            }\n          }\n\n          function ngShowWatchAction(value) {\n            $animate[value ? 'removeClass' : 'addClass'](angular.element(block.clone), NG_HIDE_CLASS, {\n              tempClasses: NG_HIDE_IN_PROGRESS_CLASS\n            });\n          }\n\n          function ngIfWatchAction(value) {\n\n            if (value) {\n              if (!childScope) {\n                $transclude(function(clone, newScope) {\n                  childScope = newScope;\n                  clone[clone.length++] = document.createComment(' end acIfShow: ' + $attr.acIfShow + ' ');\n                  // Note: We only need the first/last node of the cloned nodes.\n                  // However, we need to keep the reference to the jqlite wrapper as it might be changed later\n                  // by a directive with templateUrl when its template arrives.\n                  block = {\n                    clone: clone\n                  };\n                  $animate.enter(clone, $element.parent(), $element).then(function(val) {\n                    once = true;\n                    return val;\n                  });\n                });\n              }//childscope\n            } else {\n              if (previousElements) {\n                previousElements.remove();\n                previousElements = null;\n              }\n              if (childScope) {\n                childScope.$destroy();\n                childScope = null;\n              }\n              if (block) {\n                previousElements = getBlockNodes(block.clone);\n                $animate.leave(previousElements).then(function() {\n                  previousElements = null;\n                });\n                block = null;\n              }//block\n            }//value\n          }//ngIfWatchAction\n\n          $scope.$watch($attr.acIfShow, ngIfHideWatchAction);\n      }//link\n    };//return\n  };//$IfHideDirective\n\n  angular.module('acIfShow', [])\n  .directive('acIfShow',  ['$animate', $IfHideDirective])\n\n\n  angular.module('angularclass-if-show', ['acIfShow']);\n  angular.module('angular-class-if-show', ['acIfShow']);\n  angular.module('AngularClass.IfHide', ['acIfShow']);\n\n  if (typeof module === 'object' && typeof define !== 'function') {\n    module.exports = angular.module('acIfShow');\n  }\n\n}();\n"]}