{"version":3,"sources":["controllers/bookademo-slideout-controller.js"],"names":["angular","module","controller","$scope","$http","$window","$timeout","Loading","getBookADemoFormHtml","then","html","BodyHtml","forms","document","querySelectorAll","forEach","form","console","log","iFrameResize","get","response","data"],"mappings":";;AAAA,CAAC,YAAY;AAETA,EAAAA,OAAO,CAACC,MAAR,CAAe,mBAAf,EAAoC,CAAC,aAAD,CAApC,EACKC,UADL,CACgB,uBADhB,EACyC,CAAC,QAAD,EAAW,OAAX,EAAoB,SAApB,EAA+B,UAA/B,EACjC,UAAUC,MAAV,EAAkBC,KAAlB,EAAyBC,OAAzB,EAAkCC,QAAlC,EAA4C;AAExCH,IAAAA,MAAM,CAACI,OAAP,GAAiB,IAAjB;AAEAC,IAAAA,oBAAoB,GAAGC,IAAvB,CAA4B,UAAUC,IAAV,EAAgB;AACxCP,MAAAA,MAAM,CAACI,OAAP,GAAiB,KAAjB;AACAJ,MAAAA,MAAM,CAACQ,QAAP,GAAkBD,IAAlB;AACH,KAHD,EAGGD,IAHH,CAGQ,YAAY;AAChBH,MAAAA,QAAQ,CAAC,YAAY;AACjB,YAAIM,KAAK,GAAGC,QAAQ,CAACC,gBAAT,CAA0B,8CAA1B,CAAZ;AAEAF,QAAAA,KAAK,CAACG,OAAN,CAAc,UAAAC,IAAI,EAAI;AAClBC,UAAAA,OAAO,CAACC,GAAR,CAAYF,IAAZ;AACAX,UAAAA,OAAO,CAACc,YAAR,CAAqB,IAArB,EAA2BH,IAA3B;AACH,SAHD;AAIH,OAPO,EAOL,GAPK,CAAR;AAQH,KAZD;;AAcA,aAASR,oBAAT,GAAgC;AAC5B,aAAOJ,KAAK,CAACgB,GAAN,CAAU,kDAAV,EACFX,IADE,CACG,UAAUY,QAAV,EAAoB;AACtB,eAAOA,QAAQ,CAACC,IAAhB;AACH,OAHE,CAAP;AAIH;AACJ,GAzBgC,CADzC;AA6BH,CA/BD","sourcesContent":["(function () {\r\n\r\n angular.module(\"bookADemoSlideout\", ['loadingIcon'])\r\n .controller(\"bookADemoSlideoutCtrl\", ['$scope', '$http', '$window', '$timeout',\r\n function ($scope, $http, $window, $timeout) {\r\n\r\n $scope.Loading = true;\r\n\r\n getBookADemoFormHtml().then(function (html) {\r\n $scope.Loading = false;\r\n $scope.BodyHtml = html;\r\n }).then(function () {\r\n $timeout(function () {\r\n var forms = document.querySelectorAll(\"iframe[src^='https:\\/\\/forms.peoplexcd.com']\");\r\n\r\n forms.forEach(form => {\r\n console.log(form);\r\n $window.iFrameResize(null, form);\r\n });\r\n }, 100);\r\n });\r\n\r\n function getBookADemoFormHtml() {\r\n return $http.get(\"/umbraco/surface/bookademoformsurface/renderform\")\r\n .then(function (response) {\r\n return response.data;\r\n });\r\n }\r\n }\r\n ]);\r\n\r\n})();"],"file":"../../controllers/bookademo-slideout-controller.js"}