function deduplicateResponseLabels(n){var s=angular.copy(n),h=s.results,f,t,i,e,c,r,o,u,l;if(h)for(f=0;f<h.length;f++){if(t=h[f],i=[],t&&t.options&&t.optionsSetByConnection&&(t.component==="select"||t.component==="multiselect"))for(e=t.options.length-1;e>=0;e--)if(c=t.options[e],r=c.label,r)for(c.labelDefault=r[s.activeCultureCode],o=Object.keys(r),u=o.length-1;u>=0;u--)l=o[u],i.includes(l)||i.push(l),delete r[o[u]];i.length>0&&(t.languages=i)}return s}function diaAutoFocus(n,t){function i(i,r,u){if(!u.diaAutoFocus||n(u.diaAutoFocus)(i)){var f=u.diaAutoSelect==="true",e=parseInt(u.diaAutoSelectDelay)||10;t(function(){r[0].focus();f&&r[0].setSelectionRange(0,r[0].value.length)},e)}}return{restrict:"A",link:i}}function diaOnEnter(n){function t(t,i,r){function e(n){n.keyCode===13&&(t.$apply(function(){u(t,{event:n})}),f&&i.blur())}var u=n(r.diaOnEnter)||null,f=r.diaOnEnterBlur==="true";i.on("keypress",e)}return{restrict:"A",link:t}}(function(n){"use strict";function t(t){Object.defineProperty(Object.prototype,"localized",{configurable:!0,get:function(){var n=t.get();return this[n]},set:function(n){this[t.get()]=n}});Object.defineProperty(Object.prototype,"localizedOrDefault",{configurable:!0,value:function(n){if(this[n]){var i=this[n].localized;return i?i:t.getDefault(n)}return null}});Object.defineProperty(Object.prototype,"isTranslatable",{configurable:!0,get:function(){return t.isCultureCode(Object.keys(this)[0])}});Object.defineProperty(Object.prototype,"actionResultData",{configurable:!0,get:function(){if(!this.data)return null;var n=this.data;return n.ActionResult&&(n=n.ActionResult),n}});Object.defineProperty(Object.prototype,"diaHtmlAsText",{configurable:!0,get:function(){if(typeof this!="string")return null;var t=n.element("<div>"+this+"<\/div>");return t?t.length?t[0].innerText:null:null}})}n.module("diamantShared",["tmh.dynamicLocale","ngAnimate","ngCookies","kendo.directives","monospaced.elastic","ngMask","rzSlider"]);n.module("diamantShared").value("sharedRoot","");n.module("diamantShared").value("urlPostFix","");n.module("diamantShared").value("diaEnvironment","Diamond");n.module("diamantShared").filter("typeof",function(){return function(n){return typeof n}});n.module("diamantShared").filter("removespaces",function(){return function(n){return n?n.replace(/ /g,""):""}});n.module("diamantShared").filter("trusted",["$sce",function(n){return function(t){return n.trustAsResourceUrl(t)}}]);n.module("diamantShared").factory("versionInterceptor",[function(){return{request:function(n){var t,i;if(version&&(n.url.indexOf("Views")!==-1||n.url.indexOf(".json")!==-1)){n.params=n.params||{};t=!1;for(i in n.params)if(i==="v"){t=!0;break}t||(t=n.url.indexOf("v=")!==-1);t||(n.params.v=version)}return n}}}]);n.module("diamantShared").factory("responseErrorInterceptor",[function(){return{responseError:function(n){return n.status===-1&&n.config.url&&n.config.url.toLowerCase().indexOf("-template.html")!==-1&&(window.templateLoadingError=!0),n}}}]);n.module("diamantShared").config(["$httpProvider",function(n){n.interceptors.push("versionInterceptor");n.interceptors.push("responseErrorInterceptor")}]);n.module("diamantShared").run(["$cultureCode",t])})(window.angular),function(n){"use strict";function t(){function n(n,i,r,u){var f=this;Object.defineProperty(f,"extension",{get:t});typeof n=="object"?(f.id=n.id,f.uid=n.uid,f.name=n.name,f.size=n.size,f.compressImage=n.compressImage,f.maxImageWidth=n.maxImageWidth):(f.id=n,f.uid=i,f.name=r,f.size=u)}function t(){return this.name?this.name.slice((this.name.lastIndexOf(".")-1>>>0)+1):this.name}return n}n.module("diamantShared").factory("diaFile",[t])}(window.angular),function(n){"use strict";function t(){function t(t,i,r){var u=this;n.isUndefined(r)&&(r=t);u.name=t;u.uid=i.uid+":"+t;u.resolvedLabel=i.resolvedLabel?i.resolvedLabel+":"+r:"";u.key=i.key+":"+t;u.type="property";u.icon=i.icon}return Object.defineProperty(t.prototype,"constructor",{value:t}),t}n.module("diamantShared").factory("diaProperty",[t])}(window.angular),function(n){"use strict";function t(t){function i(i){var r=this;n.merge(r,i);r.uid=r.uid||t.new();r.label=r.label||{};Object.defineProperty(this,"handlers",{value:{}});r.customIcon&&(r.icon=r.customIcon,delete r.customIcon)}function r(n){var i,t,r;if(n){if(this.handlers[n])for(t=0,r=this.handlers[n].length;t<r;t++)this.handlers[n][t].handler.call(this,n,this.handlers[n][t].data)}else for(i in this.handlers)for(t=0,r=this.handlers[i].length;t<r;t++)this.handlers[i][t].handler.call(this,n,this.handlers[i][t].data)}function u(n,t,i){this.handlers[n]||(this.handlers[n]=[]);this.handlers[n].push({handler:t,data:i})}function f(n,t){if(this.handlers[n]){if(!t){this.handlers[n]=[];return}var i=this.handlers[n].indexOf(t);this.handlers[n].splice(i,1)}}return i.prototype.trigger=r,i.prototype.on=u,i.prototype.off=f,i}n.module("diamantShared").factory("diaItemBase",["$guid",t])}(window.angular),function(n){"use strict";function t(t){function i(t,i){return t?((n.isUndefined(i)||i===null)&&(i=2),r(parseInt(t),i)):t}function r(n,i){if(n===0)return"0 Bytes";const r=1024,f=i<0?0:i,u=Math.floor(Math.log(n)/Math.log(r));return t(parseFloat(n/Math.pow(r,u)),f)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][u]}return i}n.module("diamantShared").filter("fileSize",["numberFilter",t])}(window.angular);angular.module("diamantShared").directive("diaAutoFocus",["$parse","$timeout",diaAutoFocus]),function(){"use strict";angular.module("diamantShared").directive("diaBindHtmlCompile",["$compile",function(n){return{restrict:"A",link:function(t,i,r){t.$watch(function(){return t.$eval(r.diaBindHtmlCompile)},function(r){i.html(r||"");n(i.contents())(t)})}}}])}(),function(n){"use strict";function t(t,i){function u(n,t,i){if(t[0].tagName==="IFRAME"){var u=n.$watch(i.diaFillElement,function(n){r(t,n)});t.on("load",function(){u&&u();u=n.$watch(i.diaFillElement,function(n){r(t,n)})})}else t.hide(),n.$watch(i.diaFillElement,function(n){t.html(n);t.show()})}function r(r,u){if(u){var o=r.contents().find("body"),f=r.contents().find("head"),e=[],s=n.element('<style id="hide">body { display: none !important; }<\/style>');f.find("#hide").length===0&&f.append(s);u=n.element("<div>"+u+"<\/div>");u.find("link").each(function(i,r){r=n.element(r);r.remove();f.append(r);var u=t.defer();e.push(u);r.on("load",function(){u.resolve()})});t.all(e).then(function(){i(function(){f.find("#hide").remove();r[0].contentWindow&&"parentIFrame"in r[0].contentWindow&&r[0].contentWindow.parentIFrame.size()},300)});o.html(u)}}return{link:u}}n.module("diamantShared").directive("diaFillElement",["$q","$timeout",t])}(window.angular),function(n){"use strict";function t(){function n(n,t,i,r){function u(n){return n?n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"):n}function f(n){return n?n.replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&"):n}r.$parsers.push(u);r.$formatters.push(f)}return{restrict:"A",require:"ngModel",link:n}}n.module("diamantShared").directive("diaHtmlEncode",[t])}(window.angular),function(){"use strict";function n(n,t){function i(n,t,i,r){function l(){u.replace(r.$viewValue)}function f(){u.getCroppedCanvas().toBlob(function(t){var i=new FileReader;i.onload=function(){n.$apply(function(){r.$setViewValue(i.result)})};i.readAsDataURL(t)})}var h=window.Cropper,c=document.querySelector(".dia-ic-container"),e=c.getElementsByTagName("img").item(0),o=t.find("#inputImage"),s,u;if(e.attributes.src.value="",r.$render=l,s={viewMode:0,minContainerWidth:460,minContainerHeight:180,minCanvasWidth:460,minCanvasHeight:180,minCropBoxWidth:80,minCropBoxHeight:40,ready:f,cropend:f,zoom:f},u=new h(e,s),angular.isFunction(document.createElement("canvas").getContext)||angular.element('button[data-method="getCroppedCanvas"]').prop("disabled",!0),typeof document.createElement("cropper").style.transition=="undefined"&&(angular.element('button[data-method="rotate"]').prop("disabled",!0),angular.element('button[data-method="scale"]').prop("disabled",!0)),o.length)o.on("change",function(n){if(n.target.files&&n.target.files.length){var i=n.target.files[0],t=new FileReader;t.readAsDataURL(i);t.onload=function(){u.replace(t.result)}}});angular.element(".dia-ic-buttons").on("click","[data-method]",function(){var i=angular.element(this),n=i.data(),t,r;if(!i.prop("disabled")&&!i.hasClass("disabled")&&u&&n.method){if(n=angular.extend({},n),typeof n.target!="undefined"&&(t=angular.element(n.target),typeof n.option=="undefined"))try{n.option=JSON.parse(t.val())}catch(e){console.log(e.message)}n.method==="rotate"&&u.clear();r=u[n.method](n.option,n.secondOption);n.method==="rotate"&&u.crop();switch(n.method){case"scaleX":case"scaleY":angular.element(this).data("option",-n.option)}if(angular.isObject(r)&&t)try{t.val(JSON.stringify(r))}catch(e){console.log(e.message)}f()}});angular.element(document.body).on("keydown",function(n){if(u&&!(this.scrollTop>300)){switch(n.which){case 37:n.preventDefault();u.move(-1,0);break;case 38:n.preventDefault();u.move(0,-1);break;case 39:n.preventDefault();u.move(1,0);break;case 40:n.preventDefault();u.move(0,1)}f()}})}return{restrict:"E",require:"ngModel",link:i,templateUrl:n+"/Views/image-cropper.html"+t,scope:{}}}angular.module("diamantShared").directive("diaImageCropper",["sharedRoot","urlPostFix",n])}(),function(n){"use strict";function t(t,i,r,u){function f(f,e,o,s){function p(){f.$watch("fieldOptions",function(n,t){n!==t&&h&&(h.dataSource=n)},!0);o.ngReadonly&&f.$watch(function(){return!!e.attr("readonly")},function(n){h.readonly=n});w();f.$on("cultureChanged",function(){h&&(h.destroy(),w(),y())});f.pageIndex>=0&&f.$watch("pageIndex",function(){r(function(){h&&h.refresh()},0)},!0)}function w(){h=new ej.dropdowns.MultiSelect({dataSource:f.fieldOptions,change:nt,fields:{text:"label.localized",value:"value"},readonly:!!e.attr("readonly"),allowCustomValue:f.allowCustomValuesOption,customValueSelection:g,allowFiltering:!0,locale:f.locale,open:b,blur:k,select:d,enableHtmlSanitizer:!0});h.appendTo("#multiselect"+v)}function b(n){if(f.onOpen)f.onOpen({event:n})}function k(n){if(f.onBlur)f.onBlur({event:n})}function d(n){if(f.onBlur)f.onBlur({event:n})}function g(n){if(n.newData){var t={};f.languages.forEach(function(i){t[i.CultureCode]=n.newData.label.localized});f.fieldOptions.push({value:n.newData.value,score:0,label:t,selected:!0,custom:!0})}}function nt(n){s.$setViewValue(n.value.join())}function y(){var n=s.$modelValue||s.$viewValue||[],t;h?(t=n&&!Array.isArray(n)?(n+"").split(","):n,h.value=t):r(y,50)}function tt(n,t){var r=n||t,i;return s.$isEmpty(r)?!0:(i=f.$parent.$eval(o.minChoices),!i||r.split(",").length>=i)}function it(n,t){var r=n||t,i;return s.$isEmpty(r)?!0:(i=f.$parent.$eval(o.maxChoices),!i&&i!==0||r.split(",").length<=i)}var c,a,l,v,h;if(f.fieldOptions)for(c=0;c<f.fieldOptions.length;c++)for(a=u.list(),l=0;l<a.length;l++)f.fieldOptions[c].label[a[l]]&&(f.fieldOptions[c].label[a[l]]=f.fieldOptions[c].label[a[l]].replaceAll("&amp;","&").replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"'));v=f.multiId?f.multiId:(Math.random()+1).toString().substr(2,10);e.find("input").attr("id","multiselect"+v);s.$render=y;h=undefined;o.minChoices&&(s.$validators.minChoices=tt);o.maxChoices&&(s.$validators.maxChoices=it);n.isUndefined(ej.dropdowns)?t.all([i.loadStylesheet("/Content/ej2/ej2-base/bootstrap.css"),i.loadStylesheet("/Content/ej2/ej2-inputs/bootstrap.css"),i.loadStylesheet("/Content/ej2/ej2-lists/bootstrap.css"),i.loadStylesheet("/Content/ej2/ej2-buttons/bootstrap.css"),i.loadStylesheet("/Content/ej2/ej2-popups/bootstrap.css"),i.loadStylesheet("/Content/ej2/ej2-dropdowns/bootstrap.css"),i.loadScript("/Scripts/ej2-viewer/ej2-inputs.min.js"),i.loadScript("/Scripts/ej2-viewer/ej2-lists.min.js"),i.loadScript("/Scripts/ej2-viewer/ej2-buttons.min.js"),i.loadScript("/Scripts/ej2-viewer/ej2-popups.min.js"),i.loadScript("/Scripts/ej2-viewer/ej2-dropdowns.min.js")]).then(p):r(p)}return{restrict:"E",template:'<input type="text" />',require:"ngModel",scope:{readonly:"=?",fieldOptions:"=?",getValueFromOptions:"=?",allowCustomValuesOption:"=?",languages:"=?",multiId:"=?",pageIndex:"=?",locale:"@?",onOpen:"&?",onBlur:"&?"},link:f}}n.module("diamantShared").directive("diaMultiselect",["$q","diaLazyLoad","$timeout","$cultureCode",t])}(window.angular);angular.module("diamantShared").directive("diaOnEnter",["$parse",diaOnEnter]),function(n,t){"use strict";function i(i,r,u,f,e,o,s,h){function c(u,h,c,l){function b(){var f,i=t.extend({},{placeholderNumberType:"FIXED_LINE",preferredCountries:["nl","gb","us"]},v(u,c)),a,w,b;i.allowDropdown||i.onlyCountries||(i.onlyCountries=[i.initialCountry]);l&&u.value&&(h[0].value=u.value);i.initialCountry=="ByField"&&(f=t.copy(i.initialCountry),i.initialCountry="",a=o.get(),w=o.getCountry(a),i.preferredCountries=[w]);y=n.intlTelInput(h[0],i);y.promise.then(function(){p.resolve()});f=="ByField"?(u.referencedField=e.get(u.field.referencedFieldUid),u.$watch("referencedField.value",function(n){n&&n[0]&&(n[0].length==3?s.convertCountryCodeAlpha("Alpha2",n[0]).then(function(n){n&&y.setCountry(n.toLowerCase())}):y.setCountry(n[0]))},!0)):t.isDefined(c.country)&&u.$watch(c.country,function(n){n&&n!=="ByField"?y.isValidNumber()||y.setCountry(n):y.setCountry("")});b=o.on("cultureChanged",function(){u.fieldController.loaded=!1;r(function(){u.fieldController.loaded=!0})});u.$on("$destroy",function(){b()})}function k(){w.then(function(){var n=l.$viewValue||l.$modelValue||"";y.setNumber(n)})}function d(n,t){const i=n||t;return l.$isEmpty(i)||!y?!0:y.isValidNumberPrecise()?!0:!1}function g(n){return y?y.getNumber():n}function nt(){return h.val()}function tt(n,t){if(y&&t!=n){if(u.field.internationalMode){var i=y.getNumber();i&&n&&i!=n&&y.setNumber(i)}else y.setNumber(n);h&&h.blur()}}var y,p=i.defer(),w=p.promise;a(b);l&&(f&&f.intlTelInputSkipAutoFormat||u.$watch(nt,tt),l.$render=k,l.$validators.phoneNumber=d,l.$parsers.push(g))}function l(t,i){n.intlTelI18n[i.substring(0,2)]||(i="en");t.i18n=n.intlTelI18n[i.substring(0,2)]}function a(n){var t="/node_modules/intl-tel-input/build",r,e;f.intlTelInput&&(t=f.intlTelInput,t.endsWith("/")&&(t=t.substring(0,t.length-1)));u.loadStylesheet(t+"/css/intlTelInput.min.css");r="/Content/Scripts/intl-tel-input/i18n.js";h==="Workboard"&&(r=t+"/js/i18n.js");e=[u.loadScript(t+"/js/intlTelInputWithUtils.min.js"),u.loadScript(r),];i.all(e).then(n)}function v(n,i){var r={};return t.isDefined(i.allowDropdown)&&(r.allowDropdown=n.$eval(i.allowDropdown)),t.isDefined(i.autoHideDialCode)&&(r.autoHideDialCode=n.$eval(i.autoHideDialCode)),t.isDefined(i.autoPlaceholder)&&(r.autoPlaceholder=n.$eval(i.autoPlaceholder)),t.isDefined(i.customContainer)&&(r.customContainer=n.$eval(i.customContainer)),t.isDefined(i.dropdownContainer)&&(r.dropdownContainer=n.$eval(i.dropdownContainer)),t.isDefined(i.excludeCountries)&&(r.excludeCountries=n.$eval(i.excludeCountries)),t.isDefined(i.formatOnDisplay)&&(r.formatOnDisplay=n.$eval(i.formatOnDisplay)),t.isDefined(i.geoIpLookup)&&(r.geoIpLookup=n.$eval(i.geoIpLookup)),t.isDefined(i.hiddenInput)&&(r.hiddenInput=n.$eval(i.hiddenInput)),t.isDefined(i.initialCountry)&&(r.initialCountry=n.$eval(i.initialCountry)),t.isDefined(i.country)&&(r.initialCountry=n.$eval(i.country)),t.isDefined(i.localizedCountries)&&(r.localizedCountries=n.$eval(i.localizedCountries)),t.isDefined(i.nationalMode)&&(r.nationalMode=n.$eval(i.nationalMode)),t.isDefined(i.onlyCountries)&&(r.onlyCountries=n.$eval(i.onlyCountries)),t.isDefined(i.placeholderNumberType)&&(r.placeholderNumberType=n.$eval(i.placeholderNumberType)),t.isDefined(i.preferredCountries)&&(r.preferredCountries=n.$eval(i.preferredCountries)),t.isDefined(i.separateDialCode)&&(r.separateDialCode=n.$eval(i.separateDialCode)),r.validationNumberTypes=["MOBILE","FIXED_LINE","FIXED_LINE_OR_MOBILE"],l(r,o.get()),t.isDefined(i.customPlaceholder)&&(r.customPlaceholder=function(t){var r=n.$eval(i.customPlaceholder);return r?r:t}),t.isDefined(i.enablePlaceholder)&&!n.$eval(i.enablePlaceholder)&&(r.autoPlaceholder="off"),r}return{restrict:"A",require:"?ngModel",link:c}}t.module("diamantShared").directive("diaPhoneNumber",["$q","$timeout","diaLazyLoad","$settings","diaItemStore","$cultureCode","countriesService","diaEnvironment",i])}(window,window.angular),function(){"use strict";function n(n,t){function i(i,r,u){function s(){f=new ej.barcodegenerator.QRCodeGenerator({displayText:{visibility:!1,size:15},mode:"Canvas",value:"",width:"100%",height:"auto"});f.appendTo("#"+o);h()}function h(){r[0].clientWidth?(e(),c()):n(h,100)}function c(){i.$watch(u.qrUrl,function(n){f.value=angular.isDefined(n)?n:"";e()});i.$watch(u.qrTextVisible,function(n){angular.isDefined(n)&&(f.displayText.visibility=n);e()});i.$watch(u.qrBackgroundColor,function(n){angular.isDefined(n)&&(f.backgroundColor=n);e()});i.$watch(u.qrForegroundColor,function(n){angular.isDefined(n)&&(f.foreColor=n);e()})}function e(){f&&(f.barcodeCanvas.width=f.barcodeCanvas.parentElement.clientWidth,f.barcodeCanvas.width<20&&(f.barcodeCanvas.width=20),f.barcodeCanvas.height=f.barcodeCanvas.width)}var o="qrcode-"+(Math.random()+1).toString().substr(2,10),f;r.children("div").attr("id",o);angular.isUndefined(ej.barcodegenerator)?t.loadScript("/Scripts/ej2-viewer/ej2-barcode-generator.min.js").then(s):s()}return{restrict:"E",scope:!0,template:'<div style="overflow : hidden;"><\/div>',link:i}}angular.module("diamantShared").directive("diaQrcode",["$timeout","diaLazyLoad",n])}(),function(){"use strict";function n(){return{terminal:!0,restrict:"EA",link:function(n,t,i,r,u){if(!u)throw new Error("orphan","Illegal use of ngTranscludeReplace directive in the template! No parent directive that requires a transclusion found. ");u(function(n){n.length?t.replaceWith(n):t.remove()})}}}angular.module("diamantShared").directive("ngTranscludeReplace",[n])}(),function(){"use strict";function n(){function n(n,i){if(!i.ngRepeat)throw new Error("notify-on-done could not find required directive ng-repeat");return t}function t(n){n.$watch("$last",function(t){t&&n.$emit("repeatDone")})}return{restrict:"A",compile:n}}angular.module("diamantShared").directive("notifyOnDone",[n])}(),function(n){"use strict";function t(n){function o(){return r}function s(){return u}function h(n,t){var o=null,e;return n.indexOf(":")!==-1&&(o=n.substring(n.indexOf(":")+1),n=n.substring(0,n.indexOf(":"))),e=i[n],e||t||(e=f(n)),e&&o&&(e=e.getProperties().find(function(n){return n.name===o})),e||(e=r.find(function(t){return t.uid===n}),e||(e=u.find(function(t){return t.uid===n}))),e}function c(n){i[n.uid]=n}function l(n){delete i[n]}function a(){return i}function f(n){return e("key",n)}function e(n,t){var u,r;for(u in i)if(r=i[u],r[n]===t)return r}function v(i){return n.resolve(t.onDelete(i))}function y(){return!0}var t=this,i={},r=[{uid:"formDefinitionId",label:{"nl-NL":"Formulier id","en-GB":"Form id","en-US":"Form id"},key:"Form id",icon:"far fa-file-alt",type:"id"},{uid:"formDefinitionVersionId",label:{"nl-NL":"Formulier versie id","en-GB":"Form version id","en-US":"Form version id"},key:"Form version id",icon:"far fa-file-alt",type:"id"},{uid:"responseResult",label:{"nl-NL":"Reactie","en-GB":"Response result","en-US":"Response result"},key:"Response result",icon:"far fa-file-alt",type:"id"},{uid:"responseId",label:{"nl-NL":"Reactie id","en-GB":"Response id","en-US":"Response id"},key:"Response id",icon:"far fa-file-alt",type:"id"},{uid:"subscriptionId",label:{"nl-NL":"Organisatie id","en-GB":"Organisation id","en-US":"Organization id"},key:"Organization id",icon:"far fa-users",type:"id"},],u=[{uid:"group.officeName",label:{"nl-NL":"Kantoor naam","en-GB":"Office name","en-US":"Office name"},key:"Office name",icon:"far fa-file-alt",type:"id"},{uid:"group.address",label:{"nl-NL":"Adres","en-GB":"Address","en-US":"Address"},key:"Address",icon:"far fa-file-alt",type:"id"},{uid:"group.code",label:{"nl-NL":"Code","en-GB":"Code","en-US":"Code"},key:"Code",icon:"far fa-file-alt",type:"id"},{uid:"group.city",label:{"nl-NL":"City","en-GB":"City","en-US":"City"},key:"City",icon:"far fa-file-alt",type:"id"},{uid:"group.name",label:{"nl-NL":"Name","en-GB":"Name","en-US":"Name"},key:"Name",icon:"far fa-file-alt",type:"id"},{uid:"group.phone",label:{"nl-NL":"Phone","en-GB":"Phone","en-US":"Phone"},key:"Phone",icon:"far fa-file-alt",type:"id"},{uid:"group.postCode",label:{"nl-NL":"PostCode","en-GB":"PostCode","en-US":"PostCode"},key:"Post code",icon:"far fa-file-alt",type:"id"},{uid:"group.url",label:{"nl-NL":"Url","en-GB":"Url","en-US":"Url"},key:"Url",icon:"far fa-file-alt",type:"id"}];t.getFormIds=o;t.getAgencyIds=s;t.get=h;t.add=c;t.remove=l;t.all=a;t.getBy=e;t.getByKey=f;t.canDelete=v;t.onDelete=y}n.module("diamantShared").service("diaItemStore",["$q",t])}(window.angular),function(n){"use strict";function t(n,t){function o(r,u){var s,h,o;return r=e(r),s=f(r),i[s]?i[s]:(h=n.defer(),i[s]=h.promise,o=document.createElement("script"),o.src=r,o.type=u?u:"text/javascript",o.async=!1,o.onload=function(){t.$apply(h.resolve)},document.body.appendChild(o),h.promise)}function s(i){var o,s,u;return i=e(i),o=f(i),r[o]?r[o]:(s=n.defer(),r[o]=s.promise,u=document.createElement("link"),u.href=i,u.rel="stylesheet",u.onload=function(){t.$apply(s.resolve)},document.head.appendChild(u),s.promise)}function f(n){var t=0,i,r;if(n.length==0)return t;for(i=0;i<n.length;i++)r=n.charCodeAt(i),t=(t<<5)-t+r,t=t&t;return t}function e(n){return n.indexOf("v=")<0&&(n+=n.indexOf("?")>=0?"&v="+version:"?v="+version),n}var u=this,i={},r={};u.loadScript=o;u.loadStylesheet=s}n.module("diamantShared").service("diaLazyLoad",["$q","$rootScope",t])}(window.angular),function(n){"use strict";function t(){function t(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n=="x"?t:t&3|8;return i.toString(16)})}var n=this;n.new=t}n.module("diamantShared").service("$guid",[t])}(window.angular),function(n){"use strict";function t(){function e(n){t=n}function o(n){r=n}function s(n){u=n}function h(n){f=n}function c(n,e,o,s,h,c){return new i(n,e,o,s,h,c,t,r,u,f)}var n=this,t=null,r=".min",u=null,f=null;n.setKendoPath=e;n.setKendoPathSuffix=o;n.setSfPath=s;n.setDefaultTextsPath=h;n.$get=["tmhDynamicLocale","$timeout","$rootScope","$http","$q","$guid",c]}function i(n,t,i,r,u,f,e,o,s,h){function d(t,r){n.set(t);i.$broadcast("cultureChanged",t,r);k("cultureChanged",t)}function tt(n,t,i){if(n)if(typeof t=="undefined"&&(t=!0),i=i||l,l=n,t){p||(p=yt());w[n]||(w[n]=vt(n));b[n]||(b[n]=nt(n));var r=[p,w[n],b[n]];u.all(r).then(function(){}).finally(function(){kendo.culture(n);ej.base.setCulture(n);d(n,i)})}else d(n,i)}function it(){return l}function rt(n){y.push(n);k("add",n)}function ut(n){var i=y.indexOf(n),t;return i!==-1?(t=y.splice(i,1),k("remove",t),t):null}function ft(){return y}function et(n){if(n){n=n.split("-");var t=n[n.length-1];return t==="CHT"||t==="CHS"?t="CN":t==="CB"?t="GB":t==="SP"&&(t="RS"),t==="UK"&&(t="GB"),t.toLowerCase()}}function ot(n){if(n){n=n.split("-");var t=n[0];return t.toLowerCase()}}function st(n){return/^[\w]{2}-[\w]{2}$/.test(n)}function ht(n){n=n||l;var i=1e3,t=/^.{1}(.+).{3}$/.exec(i.toLocaleString(n));return t||(t=/^.{1}(.+).{3}$/.exec(i.toLocaleString("en-US"))),t[1]}function ct(n){n=n||l;return/^1(.+)1$/.exec(1.1.toLocaleString(n))[1]}function lt(n,t){var i=f.new();return a[i]={type:n,callback:t},function(){g(i)}}function g(n){a[n]&&delete a[n]}function k(n,t){var r,i;for(r in a)i=a[r],i.type===n&&i.callback(t)}function at(n){return v&&v[n]?v[n]:""}function vt(n){var h=e+"/js/cultures/kendo.culture."+n+o+".js",i=document.createElement("script"),f=document.getElementsByTagName("body")[0],r=!1,s=u.defer();return i.type="text/javascript",i.readyState?i.onreadystatechange=function(){(i.readyState==="complete"||i.readyState==="loaded")&&(i.onreadystatechange=null,t(function(){r||(r=!0,f.removeChild(i),s.resolve(n))},30,!1))}:(i.onload=function(){r||(r=!0,f.removeChild(i),s.resolve(n))},i.onerror=function(){r||(r=!0,w[n]=null,f.removeChild(i),s.reject(n))}),i.src=h,i.async=!0,f.appendChild(i),s.promise}function nt(n,t){var i=n;return["en-US","en-GB","ar-AE"].indexOf(i)===-1&&(i=i.split("-")[0]),r.get(s+"/"+i+".json").then(function(t){var r={};r[n]=t.data[i];ej.base.L10n.load(r)}).catch(function(){if(ej.base.L10n.locale["en-GB"]||t)ej.base.L10n.locale[n]=ej.base.L10n.locale["en-GB"];else return b[n]=null,nt("en-GB",!0).then(function(){ej.base.L10n.locale[n]=ej.base.L10n.locale["en-GB"]})})}function yt(){return r.get(h).then(function(n){var t=n.data;t.CultureCode&&t.CultureCode==="en-US"&&(v=t.ErrorMessages)}).catch(function(){p=null;v={}})}var c=this,l=null,y=[],a={},v,p=null,w={},b={};c.set=tt;c.get=it;c.add=rt;c.remove=ut;c.list=ft;c.getCountry=et;c.getLanguage=ot;c.isCultureCode=st;c.getThousandsSeparator=ht;c.getDecimalSeparator=ct;c.on=lt;c.off=g;c.trigger=k;c.getDefault=at}n.module("diamantShared").provider("$cultureCode",[t])}(window.angular),function(n){"use strict";function t(){function u(n,i){t[n]=i}function f(n){r.push(n)}function e(){return new i(t,r)}var n=this,t={},r=[];n.setValue=u;n.addConfiguration=f;n.$get=[e]}function i(t,i){var u=this,r;for(u.unsafeFileExtensions=[],r=0;r<i.length;r++)n.extend(u,i[r]);n.extend(u,t)}n.module("diamantShared").provider("$settings",[t])}(window.angular),function(n){"use strict";function t(){function f(n){r=n}function e(n){u=n}function o(n){return t||(t=new i(n,r,u)),t}var n=this,t,r,u;n.setPath=f;n.setCustomPath=e;n.$get=["$http",o]}function i(n,t,i){function f(){if(!t)throw"No countries path set!";if(!r){const f=n.get(t),u=[f];i&&u.push(n.get(i));r=Promise.all(u).then(function(n){const t=n.length>1?n[1]:{};for(var i of n[0].data.countries)t.data.countries.filter(function(n){return n.cca3==i.cca3}).length===0&&t.data.countries.push(i);return t})}}function e(n){return f(),r.then(function(t){for(var i=t.data.countries.sort((n,t)=>(""+n.name.common).localeCompare(t.name.common)),f=[],r=0;r<i.length;r++){var e=i[r].name.common,o=i[r].cca2,s=i[r].cca3,u={};n.forEach(function(n){var o=n.CultureCode.substring(0,2),f,t;o&&(n.CultureCode=="en-GB"||n.CultureCode=="en-US"?u[n.CultureCode]=e:(f=i.find(n=>n.cca2==o.toUpperCase()),t=null,f!=null&&i[r].translations[f.cca3.toLowerCase()]&&(t=i[r].translations[f.cca3.toLowerCase()].common),u[n.CultureCode]=t&&t.length>0?t:e))});f.push({value:o,label:u,value2:s})}return{countries:f}},function(){return{errors:[{Type:3,Text:"Something went wrong, try again later.",Key:""}]}})}function o(n,t){return f(),r.then(function(i){var u,f,r=i.data;return r.countries&&(r=r.countries.sort((n,t)=>(""+n.name.common).localeCompare(t.name.common))),n==="Alpha3"?(u=r.filter(function(n){return n.cca2===t}),f=u[0].cca3):(u=r.filter(function(n){return n.cca3===t}),f=u[0].cca2),f},function(){return{errors:[{Type:3,Text:"Something went wrong, try again later.",Key:""}]}})}var u=this,r=null;u.get=e;u.convertCountryCodeAlpha=o}n.module("diamantShared").provider("countriesService",[t])}(window.angular),function(n){"use strict";function t(){function f(t){n.extend(u,t)}function e(n,r,f){return t||(t=new i(n,r,u,f)),t}var r=this,t,u={testFormula:null};r.setUrls=f;r.$get=["$http","$q","diaEnvironment",e]}function i(n,t,i){function u(n){return n.match(/(?:[\[{]\+?[a-z0-9]{32}(?:_\d*)?(:.+?)?[}\]]|[\[{]\+?(?:P|S|SE|F|O)[0-9]{1,4}(?:_\d*)?(:.+?)?[}\]])/g)}function f(n){return n.replace(/^[\[{]\+?|[}\]]$/g,"")}function e(n){var t=n.match(/(^[A-Z]+)/);return t[1]}function o(n){var t=n.match(/^[A-Z]+(\d+)/);return parseInt(t[1])}function s(r,u){if(r){if(u)for(let n=0;n<u.length;n++)r.indexOf(u[n].uid)!==-1&&(r=r.replace("["+u[n].uid+"]",u[n].testValue));return n({method:"POST",url:i.testFormula,data:{formula:r}}).then(function(n){return n&&n.data?n.data.ActionResult:null},function(n){return t.reject(n)})}return t.reject()}var r=this;r.getUids=u;r.getCellLetter=e;r.getCellNumber=o;r.replaceSpecialCharacters=f;r.testFormula=s}n.module("diamantShared").provider("formulaService",[t])}(window.angular),function(n){"use strict";function t(){function u(n){r=n}function f(t,u){return n||(n=new i(t,u,r)),n}var t=this,n,r;t.setUrl=u;t.$get=["$http","$cultureCode",f]}function i(n,t,i){function f(){if(!i)throw"No nationalities URL set!";if(!r[t.get()]){var u={selectedCulture:t.get()};r[t.get()]=n.get(i,{params:u}).then(function(n){for(var i,r=n.data,u=[],t=0;t<r.length;t++)i={},r[t].LocalizedNames.forEach(function(n){i[n.SiliconCultureCode]=n.Name}),u.push({value:r[t].Code,label:i,options:i});return u},function(){return $q.reject([{Type:3,Text:"Something went wrong, try again later.",Key:""}])})}return r[t.get()]}var u=this,r=[];u.get=f}n.module("diamantShared").provider("nationalitiesService",[t])}(window.angular),function(n){"use strict";function t(){function t(n){n.startsWith(".")&&(n=n.replace(".",""));var t="file.png";switch(n.toLowerCase()){case"aepx":case"aep":case"aet":t="after-effects.png";break;case"ai":t="ai.png";break;case"ses":case"sesx":t="audition.png";break;case"avi":t="avi.png";break;case"workspace":case"adobebridge":t="bridge.png";break;case"css":t="css.png";break;case"csv":t="csv.png";break;case"dbf":t="dbf.png";break;case"doc":case"docx":t="doc.png";break;case"dwt":t="dreamweaver.png";break;case"dwg":t="dwg.png";break;case"exe":t="exe.png";break;case"fw":t="fireworks.png";break;case"fla":t="fla.png";break;case"fl":t="flash.png";break;case"htm":case"html":t="html.png";break;case"ai":t="illustrator.png";break;case"indd":t="indesign.png";break;case"iso":t="iso.png";break;case"js":t="javascript.png";break;case"jpg":t="jpg.png";break;case"json":t="json-file.png";break;case"mp3":t="mp3.png";break;case"mp4":t="mp4.png";break;case"pdf":t="pdf.png";break;case"ps":case"psd":t="photoshop.png";break;case"png":t="png.png";break;case"ppt":t="ppt.png";break;case"plproj":t="prelude.png";break;case"prproj":t="premiere.png";break;case"rtf":t="rtf.png";break;case"svg":t="svg.png";break;case"txt":t="txt.png";break;case"xls":case"xlsx":t="xls.png";break;case"xml":t="xml.png";break;case"zip":t="zip.png";break;case"zip1":t="zip-1.png"}return t}var n=this;n.getFileTypeImage=t}n.module("diamantShared").service("mediaFileService",[t])}(window.angular)