@openremote/or-survey 1.4.0 → 1.5.0-snapshot.20250422072347

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -650,4 +650,4 @@
650
650
  </div>
651
651
 
652
652
 
653
- `}firstUpdated(e){super.firstUpdated(e),this.getSurvey()}updated(e){super.updated(e),(e.has("survey")||e.has("surveyId"))&&this.resetSurvey(),this.dispatchEvent(new Ln)}checkAssetPeriode(e){const t=fn(),a=Ft(e,"attributes.validity.value.start"),n=Ft(e,"attributes.validity.value.end");return!1===Ft(e,"attributes.published.value")?"not_published":t.diff(a)>0&&t.diff(n)<0?"live":t.diff(a)<0?"before":t.diff(n)>0?"after":"not_published"}getInputType(e){if(e){if(e.includes("singleSelect")||e.includes("rating"))return"radio";if(e.includes("multiSelect"))return"checkbox";if(e.includes("text"))return"text"}}getType(e){if(e){const t=e.split(":");return t[t.length-1]}}checkButtons(){if(this.survey&&this.questions&&void 0!==this.questionIndex){if(this.questions.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...this.questions],this.questionIndex>0?(this.previousButton=!0,this.nextButton=!0):(this.questions[0]&&(this.questions[0].attributes&&!this.questions[0].attributes.categorizeInResult.value?this.nextButton=!0:this.nextButton=!1),this.previousButton=!1),this.questionIndex+1===this.questions.length?this.nextButtonLabel="Send":this.nextButtonLabel="Next",this.questionIndex===this.questions.length&&0!==this.questions.length&&(this.completed=!0,this.survey.attributes&&this.survey.attributes.published.value&&this.saveanswers)){localStorage.setItem("survey"+this.survey.id,"set");const e=new XMLHttpRequest,t=Se().config.managerUrl?Se().config.managerUrl+"/rest/survey/":window.location.origin+"/rest/survey/";e.open("POST",t+this.survey.id,!0),e.setRequestHeader("Content-type","application/json"),e.send(JSON.stringify(this.surveyAnswers))}this.requestUpdate()}}nextQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveIn",this.questionIndex=this.questionIndex+1,this.questionIndexLabel=this.questionIndexLabel+1,this.checkButtons())}resetSurvey(){this.questionIndex=0,this.questionIndexLabel=1,this.nextButtonLabel="Next",this.completed=!1,this.surveyAnswers={},this.checkButtons()}previousQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveOut",this.questionIndex=this.questionIndex-1,this.questionIndexLabel=this.questionIndexLabel-1,this.checkButtons())}onAnswer(e,t){if(!this.questions||void 0===this.questionIndex||void 0===this.questionIndexLabel)return;const a=e.currentTarget,n=this.surveyAnswers,s=this.questions[this.questionIndex];if("singleSelect"===this.getType(s.type)||"rating"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;a&&"true"===a.dataset.autoforward?this.nextQuestion():s&&s.id&&n&&(n[s.id]=t.value,this.surveyAnswers=n,this.nextQuestion())}else if("text"===this.getType(s.type)){const e=this.questions[this.questionIndex].id;if(this.shadowRoot&&e){const t=this.shadowRoot.getElementById(e);if(t&&s&&s.id&&n){const e=t.value;n[s.id]=e}}this.nextQuestion()}else if("multiSelect"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;if("true"===a.dataset.autoforward)this.nextQuestion();else if(s&&s.id&&n&&a instanceof HTMLLabelElement){n[s.id]||(n[s.id]=[]);const e=n[s.id];if(this.shadowRoot&&Array.isArray(e)){if(this.shadowRoot.getElementById(a.htmlFor).checked){const a=n[s.id].indexOf(t.value);e.splice(a,1)}else e.push(t.value);this.surveyAnswers=n}}}}getSurvey(){let e;if(-1!==location.hash.indexOf("survey")){if(e=location.hash.split("/")[1],!e)return void this.checkButtons()}else{if(!this.surveyId)return void this.checkButtons();e=this.surveyId}const t={ids:[e],types:["SurveyAsset"]};Se().rest.api.AssetResource.queryAssets(t).then((e=>{e&&e.data&&(this.survey=e.data[0],this.requestUpdate())})).catch((e=>{console.error("Error: "+e)})),localStorage.getItem("survey"+e)&&this.saveanswers?this.hasSubmission=!0:Se().rest.api.AssetResource.queryAssets({types:["SurveyQuestionAsset"]}).then((e=>{if(e&&e.data){const t=e.data;t.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...t],this.survey&&(this.questions=Mn(this.questions,["parentId",this.survey.id])),this.checkButtons(),this.requestUpdate()}})).catch((e=>{console.error("Error: "+e)}))}};var Yn;yn([we({type:Object})],pn.prototype,"survey",void 0),yn([we({type:String})],pn.prototype,"surveyId",void 0),yn([we({type:Boolean})],pn.prototype,"isAddingQuestion",void 0),yn([we({type:Boolean})],pn.prototype,"hasIntroQuestion",void 0),yn([we({type:Object})],pn.prototype,"question",void 0),yn([we({type:Object})],pn.prototype,"surveyAnswers",void 0),yn([we({type:Array})],pn.prototype,"questions",void 0),yn([we({type:Boolean})],pn.prototype,"saveanswers",void 0),yn([we({type:Boolean})],pn.prototype,"completed",void 0),yn([we({type:Boolean})],pn.prototype,"hasSubmission",void 0),yn([we({type:Boolean})],pn.prototype,"previousButton",void 0),yn([we({type:Boolean})],pn.prototype,"nextButton",void 0),pn=yn([(Yn="or-survey",e=>"function"==typeof e?((e,t)=>(customElements.define(e,t),t))(Yn,e):((e,t)=>{const{kind:a,elements:n}=t;return{kind:a,elements:n,finisher(t){customElements.define(e,t)}}})(Yn,e))],pn)})(),r})()));
653
+ `}firstUpdated(e){super.firstUpdated(e),this.getSurvey()}updated(e){super.updated(e),(e.has("survey")||e.has("surveyId"))&&this.resetSurvey(),this.dispatchEvent(new Ln)}checkAssetPeriode(e){const t=fn(),a=Ft(e,"attributes.validity.value.start"),n=Ft(e,"attributes.validity.value.end");return!1===Ft(e,"attributes.published.value")?"not_published":t.diff(a)>0&&t.diff(n)<0?"live":t.diff(a)<0?"before":t.diff(n)>0?"after":"not_published"}getInputType(e){if(e){if(e.includes("singleSelect")||e.includes("rating"))return"radio";if(e.includes("multiSelect"))return"checkbox";if(e.includes("text"))return"text"}}getType(e){if(e){const t=e.split(":");return t[t.length-1]}}checkButtons(){if(this.survey&&this.questions&&void 0!==this.questionIndex){if(this.questions.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...this.questions],this.questionIndex>0?(this.previousButton=!0,this.nextButton=!0):(this.questions[0]&&(this.questions[0].attributes&&!this.questions[0].attributes.categorizeInResult.value?this.nextButton=!0:this.nextButton=!1),this.previousButton=!1),this.questionIndex+1===this.questions.length?this.nextButtonLabel="Send":this.nextButtonLabel="Next",this.questionIndex===this.questions.length&&0!==this.questions.length&&(this.completed=!0,this.survey.attributes&&this.survey.attributes.published.value&&this.saveanswers)){localStorage.setItem("survey"+this.survey.id,"set");const e=new XMLHttpRequest,t=Se().managerUrl?Se().managerUrl+"/rest/survey/":window.location.origin+"/rest/survey/";e.open("POST",t+this.survey.id,!0),e.setRequestHeader("Content-type","application/json"),e.send(JSON.stringify(this.surveyAnswers))}this.requestUpdate()}}nextQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveIn",this.questionIndex=this.questionIndex+1,this.questionIndexLabel=this.questionIndexLabel+1,this.checkButtons())}resetSurvey(){this.questionIndex=0,this.questionIndexLabel=1,this.nextButtonLabel="Next",this.completed=!1,this.surveyAnswers={},this.checkButtons()}previousQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveOut",this.questionIndex=this.questionIndex-1,this.questionIndexLabel=this.questionIndexLabel-1,this.checkButtons())}onAnswer(e,t){if(!this.questions||void 0===this.questionIndex||void 0===this.questionIndexLabel)return;const a=e.currentTarget,n=this.surveyAnswers,s=this.questions[this.questionIndex];if("singleSelect"===this.getType(s.type)||"rating"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;a&&"true"===a.dataset.autoforward?this.nextQuestion():s&&s.id&&n&&(n[s.id]=t.value,this.surveyAnswers=n,this.nextQuestion())}else if("text"===this.getType(s.type)){const e=this.questions[this.questionIndex].id;if(this.shadowRoot&&e){const t=this.shadowRoot.getElementById(e);if(t&&s&&s.id&&n){const e=t.value;n[s.id]=e}}this.nextQuestion()}else if("multiSelect"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;if("true"===a.dataset.autoforward)this.nextQuestion();else if(s&&s.id&&n&&a instanceof HTMLLabelElement){n[s.id]||(n[s.id]=[]);const e=n[s.id];if(this.shadowRoot&&Array.isArray(e)){if(this.shadowRoot.getElementById(a.htmlFor).checked){const a=n[s.id].indexOf(t.value);e.splice(a,1)}else e.push(t.value);this.surveyAnswers=n}}}}getSurvey(){let e;if(-1!==location.hash.indexOf("survey")){if(e=location.hash.split("/")[1],!e)return void this.checkButtons()}else{if(!this.surveyId)return void this.checkButtons();e=this.surveyId}const t={ids:[e],types:["SurveyAsset"]};Se().rest.api.AssetResource.queryAssets(t).then((e=>{e&&e.data&&(this.survey=e.data[0],this.requestUpdate())})).catch((e=>{console.error("Error: "+e)})),localStorage.getItem("survey"+e)&&this.saveanswers?this.hasSubmission=!0:Se().rest.api.AssetResource.queryAssets({types:["SurveyQuestionAsset"]}).then((e=>{if(e&&e.data){const t=e.data;t.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...t],this.survey&&(this.questions=Mn(this.questions,["parentId",this.survey.id])),this.checkButtons(),this.requestUpdate()}})).catch((e=>{console.error("Error: "+e)}))}};var Yn;yn([we({type:Object})],pn.prototype,"survey",void 0),yn([we({type:String})],pn.prototype,"surveyId",void 0),yn([we({type:Boolean})],pn.prototype,"isAddingQuestion",void 0),yn([we({type:Boolean})],pn.prototype,"hasIntroQuestion",void 0),yn([we({type:Object})],pn.prototype,"question",void 0),yn([we({type:Object})],pn.prototype,"surveyAnswers",void 0),yn([we({type:Array})],pn.prototype,"questions",void 0),yn([we({type:Boolean})],pn.prototype,"saveanswers",void 0),yn([we({type:Boolean})],pn.prototype,"completed",void 0),yn([we({type:Boolean})],pn.prototype,"hasSubmission",void 0),yn([we({type:Boolean})],pn.prototype,"previousButton",void 0),yn([we({type:Boolean})],pn.prototype,"nextButton",void 0),pn=yn([(Yn="or-survey",e=>"function"==typeof e?((e,t)=>(customElements.define(e,t),t))(Yn,e):((e,t)=>{const{kind:a,elements:n}=t;return{kind:a,elements:n,finisher(t){customElements.define(e,t)}}})(Yn,e))],pn)})(),r})()));
package/dist/umd/index.js CHANGED
@@ -650,4 +650,4 @@
650
650
  </div>
651
651
 
652
652
 
653
- `}firstUpdated(e){super.firstUpdated(e),this.getSurvey()}updated(e){super.updated(e),(e.has("survey")||e.has("surveyId"))&&this.resetSurvey(),this.dispatchEvent(new Ln)}checkAssetPeriode(e){const t=fn(),a=Ft(e,"attributes.validity.value.start"),n=Ft(e,"attributes.validity.value.end");return!1===Ft(e,"attributes.published.value")?"not_published":t.diff(a)>0&&t.diff(n)<0?"live":t.diff(a)<0?"before":t.diff(n)>0?"after":"not_published"}getInputType(e){if(e){if(e.includes("singleSelect")||e.includes("rating"))return"radio";if(e.includes("multiSelect"))return"checkbox";if(e.includes("text"))return"text"}}getType(e){if(e){const t=e.split(":");return t[t.length-1]}}checkButtons(){if(this.survey&&this.questions&&void 0!==this.questionIndex){if(this.questions.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...this.questions],this.questionIndex>0?(this.previousButton=!0,this.nextButton=!0):(this.questions[0]&&(this.questions[0].attributes&&!this.questions[0].attributes.categorizeInResult.value?this.nextButton=!0:this.nextButton=!1),this.previousButton=!1),this.questionIndex+1===this.questions.length?this.nextButtonLabel="Send":this.nextButtonLabel="Next",this.questionIndex===this.questions.length&&0!==this.questions.length&&(this.completed=!0,this.survey.attributes&&this.survey.attributes.published.value&&this.saveanswers)){localStorage.setItem("survey"+this.survey.id,"set");const e=new XMLHttpRequest,t=Se().config.managerUrl?Se().config.managerUrl+"/rest/survey/":window.location.origin+"/rest/survey/";e.open("POST",t+this.survey.id,!0),e.setRequestHeader("Content-type","application/json"),e.send(JSON.stringify(this.surveyAnswers))}this.requestUpdate()}}nextQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveIn",this.questionIndex=this.questionIndex+1,this.questionIndexLabel=this.questionIndexLabel+1,this.checkButtons())}resetSurvey(){this.questionIndex=0,this.questionIndexLabel=1,this.nextButtonLabel="Next",this.completed=!1,this.surveyAnswers={},this.checkButtons()}previousQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveOut",this.questionIndex=this.questionIndex-1,this.questionIndexLabel=this.questionIndexLabel-1,this.checkButtons())}onAnswer(e,t){if(!this.questions||void 0===this.questionIndex||void 0===this.questionIndexLabel)return;const a=e.currentTarget,n=this.surveyAnswers,s=this.questions[this.questionIndex];if("singleSelect"===this.getType(s.type)||"rating"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;a&&"true"===a.dataset.autoforward?this.nextQuestion():s&&s.id&&n&&(n[s.id]=t.value,this.surveyAnswers=n,this.nextQuestion())}else if("text"===this.getType(s.type)){const e=this.questions[this.questionIndex].id;if(this.shadowRoot&&e){const t=this.shadowRoot.getElementById(e);if(t&&s&&s.id&&n){const e=t.value;n[s.id]=e}}this.nextQuestion()}else if("multiSelect"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;if("true"===a.dataset.autoforward)this.nextQuestion();else if(s&&s.id&&n&&a instanceof HTMLLabelElement){n[s.id]||(n[s.id]=[]);const e=n[s.id];if(this.shadowRoot&&Array.isArray(e)){if(this.shadowRoot.getElementById(a.htmlFor).checked){const a=n[s.id].indexOf(t.value);e.splice(a,1)}else e.push(t.value);this.surveyAnswers=n}}}}getSurvey(){let e;if(-1!==location.hash.indexOf("survey")){if(e=location.hash.split("/")[1],!e)return void this.checkButtons()}else{if(!this.surveyId)return void this.checkButtons();e=this.surveyId}const t={ids:[e],types:["SurveyAsset"]};Se().rest.api.AssetResource.queryAssets(t).then((e=>{e&&e.data&&(this.survey=e.data[0],this.requestUpdate())})).catch((e=>{console.error("Error: "+e)})),localStorage.getItem("survey"+e)&&this.saveanswers?this.hasSubmission=!0:Se().rest.api.AssetResource.queryAssets({types:["SurveyQuestionAsset"]}).then((e=>{if(e&&e.data){const t=e.data;t.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...t],this.survey&&(this.questions=Mn(this.questions,["parentId",this.survey.id])),this.checkButtons(),this.requestUpdate()}})).catch((e=>{console.error("Error: "+e)}))}};var Yn;yn([we({type:Object})],pn.prototype,"survey",void 0),yn([we({type:String})],pn.prototype,"surveyId",void 0),yn([we({type:Boolean})],pn.prototype,"isAddingQuestion",void 0),yn([we({type:Boolean})],pn.prototype,"hasIntroQuestion",void 0),yn([we({type:Object})],pn.prototype,"question",void 0),yn([we({type:Object})],pn.prototype,"surveyAnswers",void 0),yn([we({type:Array})],pn.prototype,"questions",void 0),yn([we({type:Boolean})],pn.prototype,"saveanswers",void 0),yn([we({type:Boolean})],pn.prototype,"completed",void 0),yn([we({type:Boolean})],pn.prototype,"hasSubmission",void 0),yn([we({type:Boolean})],pn.prototype,"previousButton",void 0),yn([we({type:Boolean})],pn.prototype,"nextButton",void 0),pn=yn([(Yn="or-survey",e=>"function"==typeof e?((e,t)=>(customElements.define(e,t),t))(Yn,e):((e,t)=>{const{kind:a,elements:n}=t;return{kind:a,elements:n,finisher(t){customElements.define(e,t)}}})(Yn,e))],pn)})(),r})()));
653
+ `}firstUpdated(e){super.firstUpdated(e),this.getSurvey()}updated(e){super.updated(e),(e.has("survey")||e.has("surveyId"))&&this.resetSurvey(),this.dispatchEvent(new Ln)}checkAssetPeriode(e){const t=fn(),a=Ft(e,"attributes.validity.value.start"),n=Ft(e,"attributes.validity.value.end");return!1===Ft(e,"attributes.published.value")?"not_published":t.diff(a)>0&&t.diff(n)<0?"live":t.diff(a)<0?"before":t.diff(n)>0?"after":"not_published"}getInputType(e){if(e){if(e.includes("singleSelect")||e.includes("rating"))return"radio";if(e.includes("multiSelect"))return"checkbox";if(e.includes("text"))return"text"}}getType(e){if(e){const t=e.split(":");return t[t.length-1]}}checkButtons(){if(this.survey&&this.questions&&void 0!==this.questionIndex){if(this.questions.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...this.questions],this.questionIndex>0?(this.previousButton=!0,this.nextButton=!0):(this.questions[0]&&(this.questions[0].attributes&&!this.questions[0].attributes.categorizeInResult.value?this.nextButton=!0:this.nextButton=!1),this.previousButton=!1),this.questionIndex+1===this.questions.length?this.nextButtonLabel="Send":this.nextButtonLabel="Next",this.questionIndex===this.questions.length&&0!==this.questions.length&&(this.completed=!0,this.survey.attributes&&this.survey.attributes.published.value&&this.saveanswers)){localStorage.setItem("survey"+this.survey.id,"set");const e=new XMLHttpRequest,t=Se().managerUrl?Se().managerUrl+"/rest/survey/":window.location.origin+"/rest/survey/";e.open("POST",t+this.survey.id,!0),e.setRequestHeader("Content-type","application/json"),e.send(JSON.stringify(this.surveyAnswers))}this.requestUpdate()}}nextQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveIn",this.questionIndex=this.questionIndex+1,this.questionIndexLabel=this.questionIndexLabel+1,this.checkButtons())}resetSurvey(){this.questionIndex=0,this.questionIndexLabel=1,this.nextButtonLabel="Next",this.completed=!1,this.surveyAnswers={},this.checkButtons()}previousQuestion(){void 0!==this.questionIndex&&void 0!==this.questionIndexLabel&&(this.questionAnimation="moveOut",this.questionIndex=this.questionIndex-1,this.questionIndexLabel=this.questionIndexLabel-1,this.checkButtons())}onAnswer(e,t){if(!this.questions||void 0===this.questionIndex||void 0===this.questionIndexLabel)return;const a=e.currentTarget,n=this.surveyAnswers,s=this.questions[this.questionIndex];if("singleSelect"===this.getType(s.type)||"rating"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;a&&"true"===a.dataset.autoforward?this.nextQuestion():s&&s.id&&n&&(n[s.id]=t.value,this.surveyAnswers=n,this.nextQuestion())}else if("text"===this.getType(s.type)){const e=this.questions[this.questionIndex].id;if(this.shadowRoot&&e){const t=this.shadowRoot.getElementById(e);if(t&&s&&s.id&&n){const e=t.value;n[s.id]=e}}this.nextQuestion()}else if("multiSelect"===this.getType(s.type)){if(!(a instanceof HTMLButtonElement||a instanceof HTMLLabelElement))return;if("true"===a.dataset.autoforward)this.nextQuestion();else if(s&&s.id&&n&&a instanceof HTMLLabelElement){n[s.id]||(n[s.id]=[]);const e=n[s.id];if(this.shadowRoot&&Array.isArray(e)){if(this.shadowRoot.getElementById(a.htmlFor).checked){const a=n[s.id].indexOf(t.value);e.splice(a,1)}else e.push(t.value);this.surveyAnswers=n}}}}getSurvey(){let e;if(-1!==location.hash.indexOf("survey")){if(e=location.hash.split("/")[1],!e)return void this.checkButtons()}else{if(!this.surveyId)return void this.checkButtons();e=this.surveyId}const t={ids:[e],types:["SurveyAsset"]};Se().rest.api.AssetResource.queryAssets(t).then((e=>{e&&e.data&&(this.survey=e.data[0],this.requestUpdate())})).catch((e=>{console.error("Error: "+e)})),localStorage.getItem("survey"+e)&&this.saveanswers?this.hasSubmission=!0:Se().rest.api.AssetResource.queryAssets({types:["SurveyQuestionAsset"]}).then((e=>{if(e&&e.data){const t=e.data;t.sort(((e,t)=>e.attributes&&t.attributes?e.attributes.order.value-t.attributes.order.value:0)),this.questions=[...t],this.survey&&(this.questions=Mn(this.questions,["parentId",this.survey.id])),this.checkButtons(),this.requestUpdate()}})).catch((e=>{console.error("Error: "+e)}))}};var Yn;yn([we({type:Object})],pn.prototype,"survey",void 0),yn([we({type:String})],pn.prototype,"surveyId",void 0),yn([we({type:Boolean})],pn.prototype,"isAddingQuestion",void 0),yn([we({type:Boolean})],pn.prototype,"hasIntroQuestion",void 0),yn([we({type:Object})],pn.prototype,"question",void 0),yn([we({type:Object})],pn.prototype,"surveyAnswers",void 0),yn([we({type:Array})],pn.prototype,"questions",void 0),yn([we({type:Boolean})],pn.prototype,"saveanswers",void 0),yn([we({type:Boolean})],pn.prototype,"completed",void 0),yn([we({type:Boolean})],pn.prototype,"hasSubmission",void 0),yn([we({type:Boolean})],pn.prototype,"previousButton",void 0),yn([we({type:Boolean})],pn.prototype,"nextButton",void 0),pn=yn([(Yn="or-survey",e=>"function"==typeof e?((e,t)=>(customElements.define(e,t),t))(Yn,e):((e,t)=>{const{kind:a,elements:n}=t;return{kind:a,elements:n,finisher(t){customElements.define(e,t)}}})(Yn,e))],pn)})(),r})()));