PageSourceSearch

https://mydigitaldressage.com/ClientScripts/dist/account/account.bundle.js?1666534129564

js mydigitaldressage.com collected 2026-10-02 00:53:06 UTC 60,628 bytes, 1 lines download raw bytes

1var MyDigitalDressage;(()=>{"use strict";var t,e,n,o={597:(t,e,n)=>{n.r(e),n.d(e,{AccountPage:()=>ee});var o=n(1747),r=n(8391),i=n(5664),a=function(t){this.caller=t,this.api=t.getApi()};const c=JSON.parse('{"id":{"type":"string"},"name":{"type":"string"},"stableName":{"type":"string"},"dob":{"type":"date"},"height":{"type":"number"},"breed":{"type":"string"},"colour":{"type":"string"},"gender":{"type":"string"},"rorNumber":{"allowNull":true,"type":"stringOrNull"},"paused":{"type":"boolean"},"createdDate":{"type":"date"},"updatedDate":{"type":"date"}}');var u,l=n.t(c,2),s=n(1146),f=function(){return f=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},f.apply(this,arguments)},p=function(){function t(){}return t.define=function(t,e,n){var o={name:e,type:t[e].type};return t[e].allowNull&&(o.allowNull=t[e].allowNull),t[e].pattern&&(o.pattern=t[e].pattern),n?f(f({},o),n):o},t}(),d=n(9755),h=(u=function(t,e){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},u(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),y=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},m=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},v=function(t){function e(e){var n=t.call(this,"account-horse",e,[p.define(l,"name"),p.define(l,"stableName"),p.define(l,"dob"),p.define(l,"breed"),p.define(l,"colour"),p.define(l,"gender"),p.define(l,"height"),p.define(l,"rorNumber"),p.define(l,"paused")])||this;return d("#account-horse-submit").on("click",(function(t){return n.submit(t)})),d("#account-horse-form").on("submit",(function(t){return n.submit(t)})),d("#account-horse-remove").on("click",(function(t){return n.remove(t)})),n}return h(e,t),e.prototype.initialise=function(t){return y(this,void 0,void 0,(function(){return m(this,(function(e){return d("#account-horse-remove").hide(),[2,this.fetchAndOpen("/members/v1/horse",{name:"",dob:"",paused:!1,height:0,breed:"",gender:"",colour:""},t)]}))}))},e.prototype.openDialog=function(){this.entity.id&&(d("#account-horse-remove").show(),this.entity.paused?d("#account-horse-activate").show():d("#account-horse-deactivate").show()),t.prototype.openDialog.call(this)},e.prototype.submit=function(t){return y(this,void 0,void 0,(function(){return m(this,(function(e){return t.preventDefault(),this.performSave(d("#account-horse-form")[0],this.entity,"/members/v1/horse"),[2]}))}))},e.prototype.remove=function(t){return y(this,void 0,void 0,(function(){return m(this,(function(e){return t.preventDefault(),this.performRemove("You will only be able to delete this horse if it has not been entered into a class.",this.entity.id||"","/members/v1/horse"),[2]}))}
1))},e}(s.u),b=n(9755),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),g=function(t){function e(e){var n=t.call(this,e)||this;return n.clickHorseRow=n.clickHorseRow.bind(n),n.addHorse=n.addHorse.bind(n),n.fetchData=n.fetchData.bind(n),n.dialog=new v(n),n}return w(e,t),e.prototype.success=function(){this.table.fetchData()},e.prototype.failure=function(){},e.prototype.getApi=function(){return this.api},e.prototype.initialise=function(){this.populateHorseTable(),b("#account-horses-add-horse").on("click",this.addHorse)},e.prototype.populateHorseTable=function(){this.table=new i.i,this.table.initialise({headings:[{fieldDefinition:{name:"name",label:"Name"}},{fieldDefinition:{name:"dob",label:"DOF",type:"date"},style:"width: 96px;"},{fieldDefinition:{name:"height",label:"Height",type:"number"}},{fieldDefinition:{name:"breed",label:"Breed"}},{fieldDefinition:{name:"paused",label:"Inactive",type:"boolean"},iconOnlyIfValue:!0,style:"width: 96px;"}],data:this.fetchData,tableElement:b("#account-horses-horse-table")[0],id:"account-horses-horse-table",rowClick:this.clickHorseRow,pageSize:5})},e.prototype.fetchData=function(t,e){return n=this,o=void 0,i=function(){return function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,(function(n){switch(n.label){case 0:return[4,this.api.getAuthenticatedOrDefault("/members/v1/horse?limit=".concat(e,"&offset=").concat(t,"&order=").concat("name=asc"),[])];case 1:return[2,n.sent()]}}))},new((r=void 0)||(r=Promise))((function(t,e){function a(t){try{u(i.next(t))}catch(t){e(t)}}function c(t){try{u(i.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(a,c)}u((i=i.apply(n,o||[])).next())}));var n,o,r,i},e.prototype.clickHorseRow=function(t){this.dialog.initialise(t.id)},e.prototype.addHorse=function(){this.dialog.initialise()},e}(a),k=n(9755),D=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),x=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},_=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},O=[{name:"jockeyMember.id"}],j=function(t){function e(e){var n=t.call(this,"account-add-jockey",e,O)||this;return n.search=n.search.bind(n),n.searchSelected=n.searchSelected.bind(n),k("#account-add-jockey-submit").on("click",(function(t){return n.submit(t)})),k("#account-add-jockey-form").on("submit",(function(t){return n.submit(t)})),k("#account-add-jockey-search").on("keyup",(function(){return n.search()})),n}return D(e,t),e.prototype.initialise=function(){this.initialiseError(),k("#account-add-jockey-search").val(""),k("#account-add-jockey-id").val(""),k("#account-add-jockey-search").autocomplete({data:{},limit:5,onAutocomplete:this.searchSelected}),this.openDialog()},e.prototype.openDialog=function(){k("#account-add-jockey-modal").modal("open")},e.prototype.submit=function(t){return x(this,void 0,void 0,(function(){return _(this,(function(e){return t.preventDefault(),k("#account-add-jockey-id").val()?(this.performSave(k("#account-add-jockey-form")[0],{jockeyMember:{id:""}},"/members/v1/jockey"),[2]):[2]}))}))},e.prototype.search=function(){return x(this,void 0,void 0,(function(){var t,e,n,o,r,i,a;return _(this,(function(c){switch(c.label){case 0:return t="",e=k("#account-add-jockey-search").val(),(n=(e||"").toString()).length<3?[2]:((o=n.split(" ")).length>1?t+="familyName[regex]=".concat(o[1],",givenName[regex]=").concat(o[0]):t+="email[regex]=".concat(o[0]),[4,this.api.getUnauthenticated("/members/v1/search?search=".concat(encodeURIComponent(t),"&order=").concat(encodeURIComponent("familyName=asc,givenName=asc")),[])]);case 1:return(r=c.sent()).length&&(i={},a={},r.forEach((function(t){var e="".concat(t.givenName," ").concat(t.familyName);i[e]=null,a[e]=t.id||""})),this.autoCompleteDataId=a,k("#account-add-jockey-search").autocomplete("updateData",i)),[2]}}))}))},e.prototype.searchSelected=function(t){k("#account-add-jockey-id").val(this.autoCompleteDataId[t]||"")},e}(s.u);const S=JSON.parse('{"id":{"type":"string"},"givenName":{"type":"string"},"familyName":{"type":"string"},"createdDate":{"type":"date"},"updatedDate":{"type":"date"}}');var P=n.t(S,2),N=n(9755),T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),E=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},C=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},R=function(t){function e(e){var n=t.call(this,"account-edit-jockey",e,[p.define(P,"givenName",{name:"jockeyMember.givenName"}),p.define(P,"familyName",{name:"jockeyMember.familyName"})])||this;return N("#account-edit-jockey-remove").on("click",(function(t){return n.remove(t)})),n}return T(e,t),e.prototype.initialise=function(e){return E(this,void 0,void 0,(function(){var n;return C(this,(function(o){switch(o.label){case 0:return N("#account-edit-jockey-remove").hide(),t.prototype.initialiseError.call(this),[4,this.api.getAuthenticated("/members/v1/jockey/".concat(e))];case 1:return null!==(n=o.sent())&&(this.entity=n,this.openDialog()),[2]}}))}))},e.prototype.openDialog=function(){this.entity.id&&N("#account-edit-jockey-remove").show(),t.prototype.openDialog.call(this)},e.prototype.remove=function(t){return E(this,void 0,void 0,(function(){return C(this,(function(e){return t.preventDefault(),this.performRemove("If you delete this jockey they will not be able to ride your horses.",this.entity.id,"/members/v1/jockey"),[2]}))}
1))},e}(s.u),A=n(9755),I=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),U=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},G=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},J=function(t){function e(e){var n=t.call(this,e)||this;return n.addJockey=n.addJockey.bind(n),n.clickJockeyRow=n.clickJockeyRow.bind(n),n.fetchData=n.fetchData.bind(n),n.addDialog=new j(n),n.editDialog=new R(n),n}return I(e,t),e.prototype.success=function(){this.table.fetchData()},e.prototype.failure=function(){},e.prototype.getApi=function(){return this.api},e.prototype.initialise=function(){this.populateJockeyTable(),A("#account-jockeys-add-jockey").on("click",this.addJockey)},e.prototype.populateJockeyTable=function(){this.table=new i.i,this.table.initialise({headings:[{fieldDefinition:{name:"jockeyMember.familyName",label:"Surname"}},{fieldDefinition:{name:"jockeyMember.givenName",label:"Forename"}}],data:this.fetchData,tableElement:A("#account-jockeys-jockey-table")[0],id:"account-jockeys-jockey-table",rowClick:this.clickJockeyRow})},e.prototype.fetchData=function(t,e){return U(this,void 0,void 0,(function(){return G(this,(function(n){switch(n.label){case 0:return[4,this.api.getAuthenticatedOrDefault("/members/v1/jockey?limit=".concat(e,"&offset=").concat(t,"&order=").concat("jockeyMember.familyName=asc,jockeyMember.givenName=asc"),[])];case 1:return[2,n.sent()]}}))}))},e.prototype.clickJockeyRow=function(t){this.editDialog.initialise(t.id)},e.prototype.addJockey=function(){return U(this,void 0,void 0,(function(){return G(this,(function(t){return this.addDialog.initialise(),[2]}))}))},e}(a);const H=JSON.parse('{"id":{"type":"string"},"hash":{"type":"string"},"givenName":{"type":"string"},"familyName":{"type":"string"},"dob":{"type":"date"},"termsAccepted":{"type":"boolean"},"parentalConsent":{"type":"boolean"},"anonymiseName":{"type":"boolean"},"emailConsent":{"type":"boolean"},"email3rdPartyConsent":{"type":"boolean"},"email":{"type":"string"},"createdDate":{"type":"date"},"updatedDate":{"type":"date"}}');var F=n.t(H,2),Y=n(5290),z=n(6486),B=n(8151),L=n(4235),V=n(9119),X=n(7248),q=n(9755),K=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},Q=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]}
1,trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},W=function(){function t(){var t=this;q("#account-email-submit").on("click",(function(e){return t.submit(e)})),q("#account-email-form").on("submit",(function(e){return t.submit(e)}))}return t.prototype.initialise=function(t){return K(this,void 0,void 0,(function(){var t;return Q(this,(function(e){return(t=V.c.instance().getCurrentUser())&&(q("#account-email-email").val(t.email||""),q("#account-email-password").val(""),q("#account-email-new-email").val(""),q("#account-email-confirm-email").val(""),M.updateTextFields()),this.openDialog(),[2]}))}))},t.prototype.openDialog=function(){q("#account-email-modal").modal("open")},t.prototype.submit=function(t){return K(this,void 0,void 0,(function(){var e,n,o,r;return Q(this,(function(i){switch(i.label){case 0:return t.preventDefault(),q(".invalid").removeClass("invalid"),e=q("#account-email-password").val()||"",n=q("#account-email-new-email").val()||"",o=q("#account-email-confirm-email").val()||"",r="",n===o&&n?[4,V.c.instance().updateEmail(e.toString(),n.toString())]:[3,2];case 1:return i.sent(),[3,3];case 2:n&&(q("#account-email-new-email").addClass("invalid"),q("#account-email-confirm-email").addClass("invalid"),r+="Unable to update email. Please make sure new emails match. "),i.label=3;case 3:return r?(q("#account-email-error-message").text(r),q("#account-email-error").show()):q("#account-email-modal").modal("close"),[2]}}))}))},t}(),Z=n(9755),$=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},tt=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},et=function(){function t(){var t=this;Z("#account-password-submit").on("click",(function(e){return t.submit(e)})),Z("#account-password-form").on("submit",(function(e){return t.submit(e)}))}return t.prototype.initialise=function(t){return $(this,void 0,void 0,(function(){var t;return tt(this,(function(e){return(t=V.c.instance().getCurrentUser())&&(Z("#account-password-email").val(t.email||""),Z("#account-password-password").val(""),Z("#account-password-new-password").val(""),Z("#account-password-confirm--password").val(""),M.updateTextFields()),this.openDialog(),[2]}))}
1))},t.prototype.openDialog=function(){Z("#account-password-modal").modal("open")},t.prototype.submit=function(t){return $(this,void 0,void 0,(function(){var e,n,o,r;return tt(this,(function(i){switch(i.label){case 0:return t.preventDefault(),Z(".invalid").removeClass("invalid"),e=Z("#account-password-password").val()||"",n=Z("#account-password-new-password").val()||"",o=Z("#account-password-confirm-password").val()||"",r="",n===o&&n?[4,V.c.instance().updatePassword(e.toString(),n.toString())]:[3,2];case 1:return i.sent(),e=n,[3,3];case 2:n&&(n===o?(Z("#account-password-password").addClass("invalid"),r="Unable to update password. Please make sure current password is correct. "):(Z("#account-password-new-password").addClass("invalid"),Z("#account-password-confirm-password").addClass("invalid"),r="Unable to update password. Please make sure new passwords match. ")),i.label=3;case 3:return r?(Z("#account-password-error-message").text(r),Z("#account-password-error").show()):Z("#account-password-modal").modal("close"),[2]}}))}))},t}(),nt=n(5269),ot=n(9755),rt=function(){function t(){}return t.initialise=function(){ot(document).on("click","#message-prompt-cancel",t.cancel)},t.confirm=function(e,n,o){void 0===n&&(n="Message"),void 0===o&&(o=""),o&&ot("#message-prompt-modal").addClass(o),t.css=o,ot("#message-prompt-modal h5").text(n),ot("#message-prompt-modal").modal("open"),ot("#message-prompt-message").html(e)},t.cancel=function(){ot("#message-prompt-modal").modal("close"),t.css&&ot("#message-prompt-modal").removeClass(t.css)},t.css="",t}();rt.initialise();var it=n(9755),at=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},ct=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},ut=function(){function t(){this.providers=[],this.renderPhotoUrl=this.renderPhotoUrl.bind(this),this.clickRemove=this.clickRemove.bind(this)}return t.prototype.initialise=function(){return at(this,void 0,void 0,(function(){var t,e=this;return ct(this,(function(n){switch(n.label){case 0:return[4,V.c.instance().getProviders()];case 1:return null!==(t=n.sent())&&(this.providers=t,this.populateProviderTable(),this.openDialog()),it("#account-provider-remove").on("click",(function(t){return e.clickDelete(t)})),[2]}}))}))},t.prototype.openDialog=function(){it("#account-provider-modal").modal("open")},t.prototype.populateProviderTable=function(){var t=[{fieldDefinition:{name:"displayName",label:"Name"}},{fieldDefinition:{name:"providerId",label:"Provider"}},{fieldDefinition:{name:"email",label:"Email"}},{fieldDefinition:{name:"photoURL",label:""},handler:this.renderPhotoUrl}];this.providers.length>1&&t.push({fieldDefinition:{name:"providerId",label:"",type:"icon"},icon:"clear",clickable:this.clickRemove}),this.providerTable=new i.i,this.providerTable.initialise({headings:t,data:this.providers?this.providers:[],tableElement:it("#account-provider-table")[0],id:"account-provider-table"})},t.prototype.renderPhotoUrl=function(t,e,n,o){return it(e?'<img class="avatar circle" src="'.concat(e,'">'):'<i class="material-icons">face</i>')},t.prototype.clickRemove=function(t){return at(this,void 0,void 0,(function(){var e=this;return ct(this,(function(n){return 1===this.providers.length?(rt.confirm("You must have at least one authentication provider."),[2]):(nt.M.confirm("Are you sure you want to remove this authentication provider?",(function(){return at(e,void 0,void 0,(function(){var e,n;return ct(this,(function(o){switch(o.label){case 0:return[4,(e=V.c.instance()).unlinkProvider(t)];case 1:return o.sent(),n=this,[4,e.getProviders()];case 2:return n.providers=o.sent(),this.populateProviderTable(),[2]}}))}))})),[2])}))}))},t.prototype.clickDelete=function(t){return at(this,void 0,void 0,(function(){return ct(this,(function(t){return rt.confirm("If you want to remove your account entirely please contact us."),[2]}))}
1))},t}(),lt=n(9755),st=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ft=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},pt=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},dt=function(t){function e(e){var n=t.call(this,e)||this;return n.fields=[p.define(F,"familyName"),p.define(F,"givenName"),p.define(F,"email"),p.define(F,"dob"),p.define(F,"anonymiseName"),p.define(F,"emailConsent"),p.define(F,"email3rdPartyConsent"),{name:"country.id"}],n.passwordDialog=new et,n.emailDialog=new W,n.providerDialog=new ut,n}return st(e,t),e.prototype.initialise=function(t){return ft(this,void 0,void 0,(function(){var e,n=this;return pt(this,(function(o){switch(o.label){case 0:return lt("#account-profile-error").hide(),lt("#account-profile-success").hide(),[4,this.api.getAuthenticated("/countries/v1?order=name=asc&limit=1024",[])];case 1:return null!==(e=o.sent())&&e.length>0&&L.d.build({select:lt("#account-profile-countryId"),entities:e||[],choose:!0}),this.populateMemberDetails(t),lt("#account-profile-submit").on("click",(function(e){return n.submit(e,t)})),lt("#account-profile-form").on("submit",(function(e){return n.submit(e,t)})),lt("#account-profile-change-password").on("click",(function(t){return n.changePassword()})),lt("#account-profile-change-email").on("click",(function(t){return n.changeEmail()})),lt("#account-profile-providers").on("click",(function(t){return n.providers()})),[2]}}))}))},e.prototype.populateMemberDetails=function(t){V.c.instance().isEmailProvider()?(lt(".id-account-profile-account-email").show(),lt(".id-account-profile-social-email").hide()):(lt(".id-account-profile-social-email").show(),lt(".id-account-profile-account-email").hide()),B.I.populate(this.fields,t,lt("#account-profile-form"))},e.prototype.submit=function(t,e){return ft(this,void 0,void 0,(function(){var n,o,r,i;return pt(this,(function(a){switch(a.label){case 0:return t.preventDefault(),n=lt("#account-profile-form")[0],X.h.check(n)?(z.J.applySpinIcon(lt("#account-profile-submit")),o={id:e.id,givenName:e.givenName,familyName:e.familyName,country:{id:e.country.id},dob:e.dob,anonymiseName:e.anonymiseName,emailConsent:e.emailConsent,email3rdPartyConsent:e.email3rdPartyConsent},r=B.I.scrape(o,this.fields,lt("#account-profile-form")),[4,this.api.putAuthenticated("/members/v1",r)]):[3,2];case 1:i=a.sent(),Y.R.display(i,"account-profile",(function(){}),(function(){z.J.removeSpinIcon(lt("#account-profile-submit"))})),a.label=2;case 2:return[2]}}
1))}))},e.prototype.changePassword=function(){return ft(this,void 0,void 0,(function(){return pt(this,(function(t){return this.passwordDialog.initialise(),[2]}))}))},e.prototype.changeEmail=function(){return ft(this,void 0,void 0,(function(){return pt(this,(function(t){return this.emailDialog.initialise(),[2]}))}))},e.prototype.providers=function(){return ft(this,void 0,void 0,(function(){return pt(this,(function(t){return this.providerDialog.initialise(),[2]}))}))},e}(a),ht=n(9755),yt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},vt=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},bt=[{name:"representativeMember.id"}],wt=function(t){function e(e){var n=t.call(this,"account-add-representative",e,bt)||this;return n.search=n.search.bind(n),n.searchSelected=n.searchSelected.bind(n),ht("#account-add-representative-submit").on("click",(function(t){return n.submit(t)})),ht("#account-add-representative-form").on("submit",(function(t){return n.submit(t)})),ht("#account-add-representative-search").on("keyup",(function(){return n.search()})),n}return yt(e,t),e.prototype.initialise=function(){this.initialiseError(),ht("#account-add-representative-search").val(""),ht("#account-add-representative-id").val(""),ht("#account-add-representative-search").autocomplete({data:{},limit:5,onAutocomplete:this.searchSelected}),this.openDialog()},e.prototype.openDialog=function(){ht("#account-add-representative-modal").modal("open")},e.prototype.submit=function(t){return mt(this,void 0,void 0,(function(){return vt(this,(function(e){return t.preventDefault(),ht("#account-add-representative-id").val()?(this.performSave(ht("#account-add-representative-form")[0],{representativeMember:{id:""}},"/members/v1/representative"),[2]):[2]}))}))},e.prototype.search=function(){return mt(this,void 0,void 0,(function(){var t,e,n,o,r,i,a;return vt(this,(function(c){switch(c.label){case 0:return t="",e=ht("#account-add-representative-search").val(),(n=(e||"").toString()).length<3?[2]:((o=n.split(" ")).length>1?t+="familyName[regex]=".concat(o[1],",givenName[regex]=").concat(o[0]):t+="email[regex]=".concat(o[0]),[4,this.api.getUnauthenticated("/members/v1/search?search=".concat(encodeURIComponent(t),"&order=").concat(encodeURIComponent("familyName=asc,givenName=asc")),[])]);case 1:return(r=c.sent()).length&&(i={},a={},r.forEach((function(t){var e="".concat(t.givenName," ").concat(t.familyName);i[e]=null,a[e]=t.id||""})),this.autoCompleteDataId=a,ht("#account-add-representative-search").autocomplete("updateData",i)),[2]}}))}))},e.prototype.searchSelected=function(t){ht("#account-add-representative-id").val(this.autoCompleteDataId[t]||"")},e}(s.u);const gt=JSON.parse('{"id":{"type":"string"},"givenName":{"type":"string"},"familyName":{"type":"string"},"createdDate":{"type":"date"},"updatedDate":{"type":"date"}}');var kt=n.t(gt,2),Dt=n(9755),xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}
1(),_t=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},Ot=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},jt=function(t){function e(e){var n=t.call(this,"account-edit-representative",e,[p.define(kt,"givenName",{name:"representativeMember.givenName"}),p.define(kt,"familyName",{name:"representativeMember.familyName"})])||this;return Dt("#account-edit-representative-remove").on("click",(function(t){return n.remove(t)})),n}return xt(e,t),e.prototype.initialise=function(e){return _t(this,void 0,void 0,(function(){var n;return Ot(this,(function(o){switch(o.label){case 0:return Dt("#account-edit-representative-remove").hide(),t.prototype.initialiseError.call(this),[4,this.api.getAuthenticated("/members/v1/representative/".concat(e))];case 1:return null!==(n=o.sent())&&(this.entity=n,this.openDialog()),[2]}}))}))},e.prototype.openDialog=function(){this.entity.id&&Dt("#account-edit-representative-remove").show(),t.prototype.openDialog.call(this)},e.prototype.remove=function(t){return _t(this,void 0,void 0,(function(){return Ot(this,(function(e){return t.preventDefault(),this.performRemove("If you delete this representative they will not be able to enter you into classes.",this.entity.id,"/members/v1/representative"),[2]}))}))},e}(s.u),St=n(9755),Pt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},Tt=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Et=function(t){function e(e){var n=t.call(this,e)||this;return n.addRepresentative=n.addRepresentative.bind(n),n.clickRepresentativeRow=n.clickRepresentativeRow.bind(n),n.fetchData=n.fetchData.bind(n),n.addDialog=new wt(n),n.editDialog=new jt(n),n}return Pt(e,t),e.prototype.success=function(){this.table.fetchData()},e.prototype.failure=function(){},e.prototype.getApi=function(){return this.api},e.prototype.initialise=function(){this.populateRepresentativeTable(),St("#account-representatives-add-representative").on("click",this.addRepresentative)},e.prototype.populateRepresentativeTable=function(){this.table=new i.i,this.table.initialise({headings:[{fieldDefinition:{name:"representativeMember.familyName",label:"Surname"}},{fieldDefinition:{name:"representativeMember.givenName",label:"Forename"}}],data:this.fetchData,tableElement:St("#account-representatives-representative-table")[0],id:"account-representatives-representative-table",rowClick:this.clickRepresentativeRow})},e.prototype.fetchData=function(t,e){return Nt(this,void 0,void 0,(function(){return Tt(this,(function(n){switch(n.label){case 0:return[4,this.api.getAuthenticatedOrDefault("/members/v1/representative?limit=".concat(e,"&offset=").concat(t,"&order=").concat("representativeMember.familyName=asc,representativeMember.givenName=asc"),[])];case 1:return[2,n.sent()]}}))}))},e.prototype.clickRepresentativeRow=function(t){this.editDialog.initialise(t.id)},e.prototype.addRepresentative=function(){return Nt(this,void 0,void 0,(function(){return Tt(this,(function(t){return this.addDialog.initialise(),[2]}))}
1))},e}(a),Ct=n(9755),Rt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),At=function(t){function e(e){var n=t.call(this,e)||this;return n.fetchData=n.fetchData.bind(n),n}return Rt(e,t),e.prototype.success=function(){this.table.fetchData()},e.prototype.failure=function(){},e.prototype.getApi=function(){return this.api},e.prototype.initialise=function(){this.populateRepresentTable()},e.prototype.populateRepresentTable=function(){this.table=new i.i,this.table.initialise({headings:[{fieldDefinition:{name:"familyName",label:"Surname"}},{fieldDefinition:{name:"givenName",label:"Forename"}}],data:this.fetchData,tableElement:Ct("#account-represents-represent-table")[0],id:"account-represents-represent-table"})},e.prototype.fetchData=function(t,e){return n=this,o=void 0,i=function(){return function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,(function(n){switch(n.label){case 0:return[4,this.api.getAuthenticatedOrDefault("/members/v1/represent?limit=".concat(e,"&offset=").concat(t,"&order=").concat("familyName=asc,givenName=asc"),[])];case 1:return[2,n.sent()]}}))},new((r=void 0)||(r=Promise))((function(t,e){function a(t){try{u(i.next(t))}catch(t){e(t)}}function c(t){try{u(i.throw(t))}catch(t){e(t)}}function u(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(t){t(n)}))).then(a,c)}u((i=i.apply(n,o||[])).next())}));var n,o,r,i},e}(a),Mt=n(9755),It=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ut=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},Gt=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Jt=[{name:"team.id"}],Ht=function(t){function e(e){var n=t.call(this,"account-add-team",e,Jt)||this;return n.search=n.search.bind(n),n.searchSelected=n.searchSelected.bind(n),Mt("#account-add-team-submit").on("click",(function(t){return n.submit(t)})),Mt("#account-add-team-form").on("submit",(function(t){return n.submit(t)})),Mt("#account-add-team-search").on("keyup",(function(){return n.search()})),n}return It(e,t),e.prototype.initialise=function(){this.initialiseError(),Mt("#account-add-team-search").val(""),Mt("#account-add-team-id").val(""),Mt("#account-add-team-search").autocomplete({data:{},limit:5,onAutocomplete:this.searchSelected}),this.openDialog()},e.prototype.openDialog=function(){Mt("#account-add-team-modal").modal("open")},e.prototype.submit=function(t){return Ut(this,void 0,void 0,(function(){return Gt(this,(function(e){return t.preventDefault(),Mt("#account-add-team-id").val()?(this.performSave(Mt("#account-add-team-form")[0],{team:{id:""}},"/members/v1/team"),[2]):[2]}))}))},e.prototype.search=function(){return Ut(this,void 0,void 0,(function(){var t,e,n,o,r,i,a;return Gt(this,(function(c){switch(c.label){case 0:return t="",e=Mt("#account-add-team-search").val(),(n=(e||"").toString()).length<3?[2]:(o=n.split(" "),t+="name[regex]=".concat(o[0]),[4,this.api.getAuthenticated("/teams/v1/search?search=".concat(encodeURIComponent(t),"&order=name=asc"))]);case 1:return(r=c.sent())&&(i={},a={},r.forEach((function(t){var e="".concat(t.name);i[e]=null,a[e]=t.id})),this.autoCompleteDataId=a,Mt("#account-add-team-search").autocomplete("updateData",i)),[2]}}))}))},e.prototype.searchSelected=function(t){Mt("#account-add-team-id").val(this.autoCompleteDataId[t]||"")},e}(s.u);const Ft=JSON.parse('{"id":{"type":"string"},"name":{"type":"string"},"registrationNumber":{"allowNull":true,"type":"stringOrNull"}}');var Yt=n.t(Ft,2),zt=n(9755),Bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}
1(),Lt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},Vt=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Xt=function(t){function e(e){var n=t.call(this,"account-edit-team",e,[p.define(Yt,"name",{name:"team.name"})])||this;return zt("#account-edit-team-remove").on("click",(function(t){return n.remove(t)})),n}return Bt(e,t),e.prototype.initialise=function(e){return Lt(this,void 0,void 0,(function(){var n;return Vt(this,(function(o){switch(o.label){case 0:return zt("#account-edit-team-remove").hide(),t.prototype.initialiseError.call(this),[4,this.api.getAuthenticated("/members/v1/team/".concat(e))];case 1:return(n=o.sent())&&(this.entity=n,this.openDialog()),[2]}}))}))},e.prototype.openDialog=function(){this.entity.id&&zt("#account-edit-team-remove").show(),t.prototype.openDialog.call(this)},e.prototype.remove=function(t){return Lt(this,void 0,void 0,(function(){return Vt(this,(function(e){return t.preventDefault(),this.performRemove("If you delete this team you will not be associated with them when entering into classes.",this.entity.id,"/members/v1/team"),[2]}))}))},e}(s.u),qt=n(9755),Kt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qt=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function c(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((o=o.apply(t,e||[])).next())}))},Wt=function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Zt=function(t){function e(e){var n=t.call(this,e)||this;return n.addTeam=n.addTeam.bind(n),n.clickTeamRow=n.clickTeamRow.bind(n),n.fetchData=n.fetchData.bind(n),n.addDialog=new Ht(n),n.editDialog=new Xt(n),n}return Kt(e,t),e.prototype.success=function(){this.table.fetchData()},e.prototype.failure=function(){},e.prototype.getApi=function(){return this.api},e.prototype.initialise=function(){this.populateTeamTable(),qt("#account-teams-add-team").on("click",this.addTeam)},e.prototype.populateTeamTable=function(){this.table=new i.i,this.table.initialise({headings:[{fieldDefinition:{name:"team.name",label:"Name"}},{fieldDefinition:{name:"team.registrationNumber",label:"Registration number"}}],data:this.fetchData,tableElement:qt("#account-teams-team-table")[0],id:"account-teams-team-table",rowClick:this.clickTeamRow})},e.prototype.fetchData=function(t,e){return Qt(this,void 0,void 0,(function(){return Wt(this,(function(n){switch(n.label){case 0:return[4,this.api.getAuthenticatedOrDefault("/members/v1/team?limit=".concat(e,"&offset=").concat(t,"&order=").concat("team.name=asc"),[])];case 1:return[2,n.sent()]}}))}))},e.prototype.clickTeamRow=function(t){this.editDialog.initialise(t.id)},e.prototype.addTeam=function(){return Qt(this,void 0,void 0,(function(){return Wt(this,(function(t){return this.addDialog.initialise(),[2]}))}
1))},e}(a),$t=n(9755),te=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ee=function(t){function e(){return t.call(this)||this}return te(e,t),e.prototype.success=function(){},e.prototype.failure=function(){},e.prototype.getApi=function(){return this.api},e.prototype.initialise=function(){t.prototype.initialise.call(this,"account")},e.prototype.hideSections=function(){$t("#account-loggedin").hide(),$t("#account-login").hide(),$t("#account-noaccount").hide()},e.prototype.verifiedUser=function(){return t=this,e=void 0,r=function(){var t;return function(t,e){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,(function(e){switch(e.label){case 0:return[4,this.api.getAuthenticated("/members/v1")];case 1:return null!==(t=e.sent())?($t("#account-loggedin").show(),$t("#account-hide").show(),new dt(this).initialise(t),new g(this).initialise(),new Et(this).initialise(),new At(this).initialise(),new Zt(this).initialise(),new J(this).initialise(),o.Tabs.init($t(".tabs")),o.Modal.init($t(".modal"))):$t("#account-noaccount").show(),[2]}}))},new((n=void 0)||(n=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}u((r=r.apply(t,e||[])).next())}));var t,e,n,r},e}(r.X)}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={id:t,loaded:!1,exports:{}};return o[t].call(n.exports,n,n.exports,i),n.loaded=!0,n.exports}i.m=o,i.amdD=function(){throw new Error("define cannot be used indirect")},t=[],i.O=(e,n,o,r)=>{if(!n){var a=1/0;for(s=0;s<t.length;s++){for(var[n,o,r]=t[s],c=!0,u=0;u<n.length;u++)(!1&r||a>=r)&&Object.keys(i.O).every((t=>i.O[t](n[u])))?n.splice(u--,1):(c=!1,r<a&&(a=r));if(c){t.splice(s--,1);var l=o();void 0!==l&&(e=l)}}return e}r=r||0;for(var s=t.length;s>0&&t[s-1][2]>r;s--)t[s]=t[s-1];t[s]=[n,o,r]},i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},n=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,i.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var r=Object.create(null);i.r(r);var a={};e=e||[null,n({}),n([]),n(n)];for(var c=2&o&&t;"object"==typeof c&&!~e.indexOf(c);c=n(c))Object.getOwnPropertyNames(c).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,i.d(r,a),r},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}
1}(),i.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={2850:0,532:0};i.O.j=e=>0===t[e];var e=(e,n)=>{var o,r,[a,c,u]=n,l=0;if(a.some((e=>0!==t[e]))){for(o in c)i.o(c,o)&&(i.m[o]=c[o]);if(u)var s=u(i)}for(e&&e(n);l<a.length;l++)r=a[l],i.o(t,r)&&t[r]&&t[r][0](),t[a[l]]=0;return i.O(s)},n=self.webpackChunkMyDigitalDressage=self.webpackChunkMyDigitalDressage||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var a=i.O(void 0,[532,1079,9338,2626],(()=>i(597)));a=i.O(a),MyDigitalDressage=a})();

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.