text: System.register(["./p-226ad382.system.js","./p-7db317d0.system.js","./p-57436eba.system.js","./p-5ca8f7bd.system.js","./p-e811389c.system.js"],function(e){"use strict";var t,o,n,r,i,s;return{setters:[function(e){t=e.r;o=e.h;n=e.g},function(e){r=e.C},function(){},function(e){i=e.T},function(e){s=e.C}],execute:function(){var a=undefined&&undefined.__decorate||function(e,t,o,n){var r=arguments.length,i=r<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,o):n,s;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)if(s=e[a])i=(r<3?s(i):r>3?s(t,o,i):s(t,o))||i;return r>3&&i&&Object.defineProperty(t,o,i),i};var l=e("psk_form",function(){function e(e){t(this,e);this.formActions=""}e.prototype.componentWillLoad=function(){var e=this;if(typeof this.controllerName==="string"){return new Promise(function(t,o){s.getController(e.controllerName).then(function(o){e.controller=new o(e._host);t()}).catch(o)})}};e.prototype.render=function(){return o("div",{class:"container"},o("form",null,o("slot",null),this._createFormActions(this.formActions)))};e.prototype._createFormActions=function(e){if(e.trim().length===0){return null}var t=[];t=e.split(",").map(function(e){return o("psk-button",{"button-class":e,"event-name":e,label:e})});return o("div",{id:"actions",class:"container-fluid"},t)};Object.defineProperty(e.prototype,"_host",{get:function(){return n(this)},enumerable:true,configurable:true});return e}());a([r()],l.prototype,"controller",void 0);a([i({description:["This attributes is setting the controller of the form. The default value for this attribute is FormController, a default controller for handling form submitions created inside Cardinal.Js.",'Information about creating a controller can be found inside the documentation: <psk-link page="Cardinal/controllers">Controllers Documentation</psk-link>',"All the "],isMandatory:false,propertyType:"string",defaultValue:"FormController",specialNote:"If the controller name is not provided, then the default FormController is assumed."})],l.prototype,"controllerName",void 0);a([i({description:['By defining this attribute, the user is able to control the behaviour of the form, so by definition, this attribute holds the possible actions inside the form, the defined actions should be sepparated by comma(",").',"Also, as a recommendation, the values should be provided using lowercases, and if there are more words inside an action, to be written using dash symbol(-)","Example of form actions: submit, reset-form, validate-form, cancel",'Using all these actions, the component will generate a <psk-link page="web-components/psk-button">psk-button</psk-link>.','If this attribute is not defined, you can also add <psk-link page="web-components/psk-button">psk-button</psk-link> components anywhere in the form. The rule is the same, the event-name attribute assigned to the psk-button component needs to be registered in the form\'s controller.'],isMandatory:false,propertyType:"string values sepparated by comma (,)",defaultValue:"null",specialNote:["If this attribute has no value, then the form will have no actions."]})],l.prototype,"formActions",void 0)}}});