var __awaiter=this&&this.__awaiter||function(t,e,r,i){function n(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):n(t.value).then(a,s)}c((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(a){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;n=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(a[0]===6&&r.label<o[1]){r.label=o[1];o=a;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(a);break}if(o[2])r.ops.pop();r.trys.pop();continue}a=e.call(t,r)}catch(t){a=[6,t];n=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-ecdfb761.js";import"./apiBase-6015f41f.js";import"./data-transfer-field-2f305919.js";import"./filter-cbaa3d7d.js";import{g as getSessionDetails,c as createMentornityApiInstance,m as mentornityApiEndpoint}from"./session-2a491341.js";import{S as SozlukApi}from"./index-3bf9b308.js";import"./BaseField-0b01dc2c.js";import"./membership-b6639471.js";import"./data-model-88af49fc.js";import"./table-config-d73a72ab.js";import"./FieldModelGenerator-378c8613.js";import"./reference-field-a5b414d1.js";import"./index-61dcd269.js";import"./FieldGenerator-3ae403b2.js";import"./date-1bc489bd.js";import"./index-4e451db4.js";import"./index-23baeeef.js";import"./index-09efdc01.js";import"./index-150b6a59.js";import"./string-3065a411.js";import"./User-72c4643a.js";import"./UserSettings-7e4170a7.js";import"./cookie-5d9f5819.js";import"./kimlik-api-fddeac81.js";import"./_commonjsHelpers-27f122dd.js";import"./index-d3bd30bd.js";import"./mentorinty-bridge-api-5ca2d652.js";import"./index-e66e8eca.js";import"./attachment-961dd228.js";import"./CalendarConfig-412d1b0f.js";import"./sozluk-entries-1e8f5234.js";import"./i18n-09a07b97.js";import"./i18n-0e757ca5.js";import"./calendar-470c802a.js";import"./index-a3ca021c.js";import"./moment-65eca6b3.js";var MentornityApplicationLegalFooter=function(){function t(t){registerInstance(this,t)}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,r,i;return __generator(this,(function(n){switch(n.label){case 0:t=getSessionDetails(),e=t.context,r=t.headers;this.api=createMentornityApiInstance(mentornityApiEndpoint,r);i=this;return[4,this.api.getWhiteLabel(e.organisationId)];case 1:i.wl=n.sent();return[2]}}))}))};t.prototype.render=function(){var t,e;var r=((t=this.wl)===null||t===void 0?void 0:t.termsUrl)||"/terms";var i=((e=this.wl)===null||e===void 0?void 0:e.privacyUrl)||"/privacy-policy";var n=this.field.i18n;return h(Host,null,h("dvn-markdown",{content:SozlukApi.build(n.agreeTermsAndPrivacy,{privacyUrl:i,termsUrl:r})}))};return t}();export{MentornityApplicationLegalFooter as mentornity_application_legal_footer};