var __awaiter=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{f(i.next(t))}catch(t){o(t)}}function s(t){try{f(i["throw"](t))}catch(t){o(t)}}function f(t){t.done?r(t.value):new n(function(e){e(t.value)}).then(a,s)}f((i=i.apply(t,e||[])).next())})};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,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 f([t,e])}}function f(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];r=0}finally{i=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-dde863a3.system.js"],function(t){"use strict";var e,n,i;return{setters:[function(t){e=t.r;n=t.h;i=t.g}],execute:function(){var r=function(){function t(t){e(this,t);this.events={flipEvents:[],flipBackEvents:[]}}t.prototype.componentWillLoad=function(){this.init()};t.prototype.componentDidLoad=function(){var t=this;var e=this.flipDuration||400;var n=this.flipTimingFunction||"ease-in";["front","back"].forEach(function(i){var r=t.element.querySelector(".ema-flip__"+i);r["style"].transition="all "+e/1e3+"s "+n})};t.prototype.componentWillUpdate=function(){if(this.isFlipped!==undefined){this.flipState=this.isFlipped}};t.prototype.init=function(){var t=this;if(this.isFlipped!==undefined){this.flipState=this.isFlipped}else if(this.flipEvents!==undefined){["flipEvents","flipBackEvents"].forEach(function(e){t.events[e]=t[e]?t[e].split(","):[]});var e=this.events.flipEvents.concat(this.events.flipBackEvents);e.filter(function(t,n){return e.indexOf(t)===n}).forEach(function(e){return t.element.addEventListener(e,function(e){return t.processFlip(e)})});this.flipState=false}};t.prototype.processFlip=function(t){var e=t.type;if(this.flipState&&this.events.flipBackEvents.indexOf(e)!==-1){this.flipState=!this.flipState}else if(!this.flipState&&this.events.flipEvents.indexOf(e)!==-1){this.flipState=!this.flipState}};t.prototype.flip=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){this.flipState=!this.flipState;return[2]})})};t.prototype.render=function(){return n("div",{class:"ema-flip "+(this.flipState?"ema-flip--flipped":"")},n("div",{class:"ema-flip__front"},n("slot",{name:"front"})),n("div",{class:"ema-flip__back"},n("slot",{name:"back"})))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:true,configurable:true});Object.defineProperty(t,"style",{get:function(){return":root{--ema-color:#343a40;--ema-primary:#007bff;--ema-secondary:#6c757d;--ema-success:#28a745;--ema-info:#17a2b8;--ema-warning:#ffc107;--ema-danger:#dc3545;--ema-light:#f8f9fa;--ema-dark:#343a40;--ema-background:#fff;--ema-background-diap:rgba(29,29,29,0.97);--ema-border-color:#c5c9cd;--ema-border:1px solid #c5c9cd;--ema-border-radius:3px 3px 3px 3px;--ema-box-shadow:1px 1px 10px 1px #ccc;--ema-margin:0.25rem;--ema-margin-sm:0.5rem;--ema-margin-md:1rem;--ema-margin-lg:1.5rem;--ema-margin-xl:2rem;--ema-padding:0.25rem;--ema-padding-sm:0.5rem;--ema-padding-md:1rem;--ema-padding-lg:1.5rem;--ema-padding-xl:2rem;--ema-gray-100:#f8f9fa;--ema-gray-200:#e9ecef;--ema-gray-300:#dee2e6;--ema-gray-400:#ced4da;--ema-gray-500:#adb5bd;--ema-gray-600:#868e96;--ema-gray-700:#495057;--ema-gray-800:#343a40;--ema-gray-900:#212529}.ema-flip{-webkit-perspective:1000px;perspective:1000px;text-align:center}.ema-flip__back,.ema-flip__front{position:absolute;width:inherit;height:inherit;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-backface-visibility:hidden;backface-visibility:hidden}.ema-flip__front{z-index:900;-webkit-transform:rotate3d(0,0,0,0deg);transform:rotate3d(0,0,0,0deg)}.ema-flip--flipped .ema-flip__front{z-index:900;-webkit-transform:rotateY(180deg);transform:rotateY(180deg);-ms-transform:rotateY(180deg)}.ema-flip__back{z-index:800;-webkit-transform:rotateY(-180deg);transform:rotateY(-180deg)}.ema-flip--flipped .ema-flip__back{z-index:1000;-webkit-transform:rotate3d(0,0,0,0deg);transform:rotate3d(0,0,0,0deg)}"},enumerable:true,configurable:true});return t}();t("ema_flip",r)}}});