!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var s=t();for(var r in s)("object"==typeof exports?exports:e)[r]=s[r]}}(Depicter,(()=>(()=>{const{Layer:e,env:t}=window.Depicter;return window.Depicter.externalLayers["survey:prev"]=class extends e{constructor(e,s,r,o,i,n){super(e,s,r,o,i,n),this.type="survey:prev",this.frame.classList.add(`${t.prefix}-survey-prev-layer`),this.frame.classList.add(`${t.prefix}-button-layer`),this.frame.classList.add(`${t.prefix}-no-swipe`)}_setupContent(){this.survey=this.holder.composer?.survey,this.holder.composer.on("targetIndexChange",(()=>{this.holder.composer.navigator.targetIndex>this.survey.lastStepIndex?this.hide():this.show()})),this.element.addEventListener("click",(()=>{this.holder.composer.navigator.previous()}))}},{}})()));