System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-30c1ef36.system.js","./p-57dd28bd.system.js"],(function(e){"use strict";var t,n,r,i,o,s,l,a,f,u,c;return{setters:[function(e){t=e.r;n=e.h;r=e.c},function(e){i=e.b;o=e.n;s=e.k;l=e.f},function(e){a=e.I;f=e.b;u=e.i},function(e){c=e.a}],execute:function(){var d=i("sq:widget-verification");function v(e){var t=e.parent,n=e.callback;var r=new MutationObserver(o);var i=new MutationObserver(n);r.observe(t,{childList:true,subtree:false});o({addedNodes:t.querySelectorAll("template")});function o(e){var t;(t=e.addedNodes)===null||t===void 0?void 0:t.forEach((function(e){i.observe(e.content,{childList:true,attributes:true,subtree:true})}))}return function(){r.disconnect();i.disconnect()}}var y=e("sqm_widget_verification_controller",function(){function e(e){t(this,e);this.stateController="{}";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=a({namespace:c,initialValue:false}),i=t[0],o=t[1];var y=JSON.parse(this.stateController);var p=u()&&((e=y["sqm-widget-verification-controller"])===null||e===void 0?void 0:e.isAuth);var h=s(undefined),m=h[0],b=h[1];var g=s(undefined),x=g[0],A=g[1];var L=f((function(){var e=p||i;var t=x.querySelectorAll("template");var n=Array.from(t).find((function(t){return t.slot===(e?"verified":"not-verified")}));if(n){var r=n.innerHTML||n.firstElementChild.outerHTML;if(r===m.innerHTML){d("don't rerender")}else if(n){m.innerHTML=r}}var o=Array.from(x.children).filter((function(e){return e.tagName==="RAISINS-PLOP-TARGET"}));if(o.length){var s=o.filter((function(e){return e.slot==="verified"}));var l=o.filter((function(e){return e.slot==="not-verified"}));l.forEach((function(t,n){if(e){t.style.display="none";return}if(n===l.length-1){t.style.bottom="0px";t.style.left="0px";t.style.right="0px";t.style.position="absolute"}t.style.height="25px"}));s.forEach((function(t,n){if(!e){t.style.display="none";return}if(n===s.length-1){t.style.bottom="0px";t.style.left="0px";t.style.right="0px";t.style.position="absolute"}t.style.height="25px"}))}}),[m,x,i,p]);l((function(){if(!m||!x){d("DOM not ready:");return}L();return v({parent:x,callback:L})}),[x,m,i,p]);return n(r,null,n("div",{ref:A,style:{display:"contents"}},n("slot",{name:"not-verified"}),n("slot",{name:"verified"})),n("div",{ref:b},n("slot",{name:"shown"})))};return e}())}}}));