PageSourceSearch

https://www.auh.dk/Bundled/new/index-Di-_HRfA-chunk.js

js auh.dk collected 2026-10-02 04:51:56 UTC 2,396 bytes, 1 lines download raw bytes

1import"./Angular.Animate-3XR63S8M-chunk.js";import"./MwValidation-BfsLWYbE-chunk.js";class o{constructor(o){(o=>{var t,i=!1,s=angular.module("BlockSubscriptions",["validationerrormessages","mgcrea.ngStrap"]);s.run(["$q","$rootScope",function(o,t){i=!0}]),t="/api/BlockSubscriptions/",s.factory("blockSubscriptionService",["$http",function(o){return{createSubscription:function(i){return o.post(t+"CreateBlockSubscription",i)}}}]),s.controller("BlockSubscriptionController",["$scope","$modal","blockSubscriptionService",function(o,t,i){o.showErrorMsg=!1,o.showSuccessMsg=!1,o.blockSubscription={subscriberMail:"",subscriberName:"",blockId:-1,SubscriptionNotifyOnEmail:!1,SubscriptionNotifyOnMyPage:!1,isListBlock:!1},o.form={},o.EMAIL_REGEXP=/^[\wæøåÆØÅ]+[\-+.\wæøåÆØÅ]*@[\wæøåÆØÅ]+([\-.]\w+[æøåÆØÅ]*)*\.\w+([\-.]\w+)*$/,o.lastOpenedButton;var s=null;function n(){o.form.blockSubscriptionForm.$setPristine()}o.showModalDialog=function(i,n,c){c.preventDefault(),i&&(o.blockSubscription.blockId=i),o.blockSubscription.isListBlock=!!n,o.lastOpenedButton=c.target,s=t({scope:o,template:"blockSubscriptionModal",show:!0})},o.focusLast=function(o){9===(o.keyCode||o.which)&&o.shiftKey&&(o.preventDefault(),$(".ng-modal-last").focus())},o.focusFirst=function(o){9===(o.keyCode||o.which)&&(o.shiftKey||(o.preventDefault(),$(".ng-modal-first").focus()))},o.checkForEscape=function(t){27===(t.keyCode||t.which)&&(t.preventDefault(),o.closeModal(),o.lastOpenedButton&&o.lastOpenedButton.focus())},o.createBlockSubscription=function(){o.form.blockSubscriptionForm.$valid&&i.createSubscription(o.blockSubscription).then(function(t){if(!0===t.data.Success){n();var i=$("#subscriptionThankMsg");$("#subscriptionFields").hide(),$("#save_subscription").hide(),i.text(t.data.Message),i.show()}else o.showErrorMsg=!0,$("#subscriptionFields .alert-danger").text(t.data.Message)})},o.closeModal=function(t){0===t.originalEvent.detail&&o.lastOpenedButton&&o.lastOpenedButton.focus(),null!==s&&(n(),s.hide(),s=null,o.showErrorMsg=!1)},o.hideErrorMsg=function(){o.showErrorMsg=!1},o.init=function(t,i,s,n){o.blockSubscription.subscriberName=t||"",o.blockSubscription.subscriberMail=i||"",o.blockSubscription.SubscriptionNotifyOnMyPage=s||!1,o.blockSubscription.SubscriptionNotifyOnEmail=n||!1}}]),$(function(){i||angular.bootstrap(o,["BlockSubscriptions"])})})(o)}}export{o as BlockSubscription};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.