@sesamy/sesamy-components 0.0.7 → 0.0.9

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.
@@ -1,9 +1,9 @@
1
- (function(j,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(j=typeof globalThis<"u"?globalThis:j||self,$(j["@sesamy/sesamy-components"]={}))})(this,function(j){"use strict";var Ht=Object.defineProperty;var It=(j,$,z)=>$ in j?Ht(j,$,{enumerable:!0,configurable:!0,writable:!0,value:z}):j[$]=z;var L=(j,$,z)=>It(j,typeof $!="symbol"?$+"":$,z);function $(){}function z(t,e){for(const n in e)t[n]=e[n];return t}function Ce(t){return t()}function ze(){return Object.create(null)}function I(t){t.forEach(Ce)}function Ee(t){return typeof t=="function"}function V(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let ue;function Ne(t,e){return t===e?!0:(ue||(ue=document.createElement("a")),ue.href=e,t===ue.href)}function lt(t){return Object.keys(t).length===0}function Se(t,e,n,l){if(t){const s=Le(t,e,n,l);return t[0](s)}}function Le(t,e,n,l){return t[1]&&l?z(n.ctx.slice(),t[1](l(e))):n.ctx}function Ae(t,e,n,l){if(t[2]&&l){const s=t[2](l(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const o=[],i=Math.max(e.dirty.length,s.length);for(let r=0;r<i;r+=1)o[r]=e.dirty[r]|s[r];return o}return e.dirty|s}return e.dirty}function Pe(t,e,n,l,s,o){if(s){const i=Le(e,n,l,o);t.p(i,s)}}function Oe(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let l=0;l<n;l++)e[l]=-1;return e}return-1}function ae(t){const e={};for(const n in t)n[0]!=="$"&&(e[n]=t[n]);return e}function Te(t,e){const n={};e=new Set(e);for(const l in t)!e.has(l)&&l[0]!=="$"&&(n[l]=t[l]);return n}function u(t,e){t.appendChild(e)}function Me(t,e,n){const l=st(t);if(!l.getElementById(e)){const s=m("style");s.id=e,s.textContent=n,ot(l,s)}}function st(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function ot(t,e){return u(t.head||t,e),e.sheet}function N(t,e,n){t.insertBefore(e,n||null)}function E(t){t.parentNode&&t.parentNode.removeChild(t)}function me(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function m(t){return document.createElement(t)}function Be(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function We(t){return document.createTextNode(t)}function b(){return We(" ")}function ge(){return We("")}function P(t,e,n,l){return t.addEventListener(e,n,l),()=>t.removeEventListener(e,n,l)}function a(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function fe(t,e){for(const n in e)a(t,n,e[n])}function it(t){let e;return{p(...n){e=n,e.forEach(l=>t.push(l))},r(){e.forEach(n=>t.splice(t.indexOf(n),1))}}}function rt(t){return Array.from(t.childNodes)}function He(t,e){t.value=e??""}function ct(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let pe;function se(t){pe=t}const J=[],Ie=[];let Y=[];const Fe=[],ut=Promise.resolve();let _e=!1;function at(){_e||(_e=!0,ut.then(De))}function be(t){Y.push(t)}const $e=new Set;let Q=0;function De(){if(Q!==0)return;const t=pe;do{try{for(;Q<J.length;){const e=J[Q];Q++,se(e),ft(e.$$)}}catch(e){throw J.length=0,Q=0,e}for(se(null),J.length=0,Q=0;Ie.length;)Ie.pop()();for(let e=0;e<Y.length;e+=1){const n=Y[e];$e.has(n)||($e.add(n),n())}Y.length=0}while(J.length);for(;Fe.length;)Fe.pop()();_e=!1,$e.clear(),se(t)}function ft(t){if(t.fragment!==null){t.update(),I(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(be)}}function dt(t){const e=[],n=[];Y.forEach(l=>t.indexOf(l)===-1?e.push(l):n.push(l)),n.forEach(l=>l()),Y=e}const de=new Set;let F;function ht(){F={r:0,c:[],p:F}}function mt(){F.r||I(F.c),F=F.p}function M(t,e){t&&t.i&&(de.delete(t),t.i(e))}function X(t,e,n,l){if(t&&t.o){if(de.has(t))return;de.add(t),F.c.push(()=>{de.delete(t),l&&(n&&t.d(1),l())}),t.o(e)}else l&&l()}function Z(t){return(t==null?void 0:t.length)!==void 0?t:Array.from(t)}function ve(t,e){const n={},l={},s={$$scope:1};let o=t.length;for(;o--;){const i=t[o],r=e[o];if(r){for(const f in i)f in r||(l[f]=1);for(const f in r)s[f]||(n[f]=r[f],s[f]=1);t[o]=r}else for(const f in i)s[f]=1}for(const i in l)i in n||(n[i]=void 0);return n}function gt(t){return typeof t=="object"&&t!==null?t:{}}function Re(t){t&&t.c()}function ye(t,e,n){const{fragment:l,after_update:s}=t.$$;l&&l.m(e,n),be(()=>{const o=t.$$.on_mount.map(Ce).filter(Ee);t.$$.on_destroy?t.$$.on_destroy.push(...o):I(o),t.$$.on_mount=[]}),s.forEach(be)}function ke(t,e){const n=t.$$;n.fragment!==null&&(dt(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function pt(t,e){t.$$.dirty[0]===-1&&(J.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function oe(t,e,n,l,s,o,i=null,r=[-1]){const f=pe;se(t);const h=t.$$={fragment:null,ctx:[],props:o,update:$,not_equal:s,bound:ze(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(f?f.$$.context:[])),callbacks:ze(),dirty:r,skip_bound:!1,root:e.target||f.$$.root};i&&i(h.root);let v=!1;if(h.ctx=n?n(t,e.props||{},(_,c,...y)=>{const d=y.length?y[0]:c;return h.ctx&&s(h.ctx[_],h.ctx[_]=d)&&(!h.skip_bound&&h.bound[_]&&h.bound[_](d),v&&pt(t,_)),c}):[],h.update(),v=!0,I(h.before_update),h.fragment=l?l(h.ctx):!1,e.target){if(e.hydrate){const _=rt(e.target);h.fragment&&h.fragment.l(_),_.forEach(E)}else h.fragment&&h.fragment.c();e.intro&&M(t.$$.fragment),ye(t,e.target,e.anchor),De()}se(f)}let Ke;typeof HTMLElement=="function"&&(Ke=class extends HTMLElement{constructor(e,n,l){super();L(this,"$$ctor");L(this,"$$s");L(this,"$$c");L(this,"$$cn",!1);L(this,"$$d",{});L(this,"$$r",!1);L(this,"$$p_d",{});L(this,"$$l",{});L(this,"$$l_u",new Map);this.$$ctor=e,this.$$s=n,l&&this.attachShadow({mode:"open"})}addEventListener(e,n,l){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const s=this.$$c.$on(e,n);this.$$l_u.set(n,s)}super.addEventListener(e,n,l)}removeEventListener(e,n,l){if(super.removeEventListener(e,n,l),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return()=>{let i;return{c:function(){i=m("slot"),o!=="default"&&a(i,"name",o)},m:function(h,v){N(h,i,v)},d:function(h){h&&E(i)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},l=ct(this);for(const o of this.$$s)o in l&&(n[o]=[e(o)]);for(const o of this.attributes){const i=this.$$g_p(o.name);i in this.$$d||(this.$$d[i]=he(i,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const i=he(o,this.$$d[o],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,i)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const i of this.$$l[o]){const r=this.$$c.$on(o,i);this.$$l_u.set(i,r)}this.$$l={}}}attributeChangedCallback(e,n,l){var s;this.$$r||(e=this.$$g_p(e),this.$$d[e]=he(e,l,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function he(t,e,n,l){var o;const s=(o=n[t])==null?void 0:o.type;if(e=s==="Boolean"&&typeof e!="boolean"?e!=null:e,!l||!n[t])return e;if(l==="toAttribute")switch(s){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function we(t,e,n,l,s,o){let i=class extends Ke{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(r=>(e[r].attribute||r).toLowerCase())}};return Object.keys(e).forEach(r=>{Object.defineProperty(i.prototype,r,{get(){return this.$$c&&r in this.$$c?this.$$c[r]:this.$$d[r]},set(f){var h;f=he(r,f,e),this.$$d[r]=f,(h=this.$$c)==null||h.$set({[r]:f})}})}),l.forEach(r=>{Object.defineProperty(i.prototype,r,{get(){var f;return(f=this.$$c)==null?void 0:f[r]}})}),t.element=i,i}class ie{constructor(){L(this,"$$");L(this,"$$set")}$destroy(){ke(this,1),this.$destroy=$}$on(e,n){if(!Ee(n))return $;const l=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return l.push(n),()=>{const s=l.indexOf(n);s!==-1&&l.splice(s,1)}}$set(e){this.$$set&&!lt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const _t="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_t);function bt(t){Me(t,"svelte-1nq6lsq",".login-btn.svelte-1nq6lsq.svelte-1nq6lsq,.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.3s ease;border:none;outline:none}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:120px;height:40px;border-radius:5px;background-color:#007bff;color:white;font-size:16px;font-weight:bold}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:hover{background-color:#0056b3}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus{outline:2px solid #0056b3;outline-offset:4px}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:50px;height:50px;border-radius:50%}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq{background-color:#00bfff;animation:svelte-1nq6lsq-pulse 1s infinite ease-in-out}.avatar-btn.svelte-1nq6lsq img.svelte-1nq6lsq{width:100%;height:100%;object-fit:cover;border-radius:50%}@keyframes svelte-1nq6lsq-pulse{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}")}function $t(t){let e,n,l;return{c(){e=m("button"),e.textContent="Login",a(e,"class","login-btn svelte-1nq6lsq"),a(e,"aria-label","Log in")},m(s,o){N(s,e,o),n||(l=P(e,"click",t[2]),n=!0)},p:$,d(s){s&&E(e),n=!1,l()}}}function vt(t){let e,n,l,s,o;return{c(){e=m("button"),n=m("img"),Ne(n.src,l=wt)||a(n,"src",l),a(n,"alt","User Avatar"),a(n,"class","svelte-1nq6lsq"),a(e,"class","avatar-btn svelte-1nq6lsq"),a(e,"aria-label","Log out")},m(i,r){N(i,e,r),u(e,n),s||(o=P(e,"click",t[3]),s=!0)},p:$,d(i){i&&E(e),s=!1,o()}}}function yt(t){let e;return{c(){e=m("button"),e.innerHTML="",a(e,"class","loading-btn svelte-1nq6lsq"),a(e,"aria-busy","true"),a(e,"aria-label","Logging in")},m(n,l){N(n,e,l)},p:$,d(n){n&&E(e)}}}function kt(t){let e;function n(o,i){return o[0]?yt:o[1]?vt:$t}let l=n(t),s=l(t);return{c(){s.c(),e=ge()},m(o,i){s.m(o,i),N(o,e,i)},p(o,[i]){l===(l=n(o))&&s?s.p(o,i):(s.d(1),s=l(o),s&&(s.c(),s.m(e.parentNode,e)))},i:$,o:$,d(o){o&&E(e),s.d(o)}}}let wt="https://via.placeholder.com/50";function xt(t,e,n){let l=!1,s=!1;const o=async()=>{n(0,l=!0),await new Promise(f=>setTimeout(f,2e3)),n(0,l=!1),n(1,s=!0)},i=()=>{n(1,s=!1)};return s=s,[l,s,o,i]}class Ge extends ie{constructor(e){super(),oe(this,e,xt,kt,V,{},bt)}}customElements.define("sesamy-login",we(Ge,{},[],[],!0));const qt=Ge;/**
1
+ (function(L,v){typeof exports=="object"&&typeof module<"u"?v(exports):typeof define=="function"&&define.amd?define(["exports"],v):(L=typeof globalThis<"u"?globalThis:L||self,v(L["@sesamy/sesamy-components"]={}))})(this,function(L){"use strict";var cn=Object.defineProperty;var an=(L,v,O)=>v in L?cn(L,v,{enumerable:!0,configurable:!0,writable:!0,value:O}):L[v]=O;var R=(L,v,O)=>an(L,typeof v!="symbol"?v+"":v,O);function v(){}function O(e,t){for(const n in t)e[n]=t[n];return e}function Ot(e){return e()}function Tt(){return Object.create(null)}function tt(e){e.forEach(Ot)}function Ft(e){return typeof e=="function"}function Y(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let bt;function Ht(e,t){return e===t?!0:(bt||(bt=document.createElement("a")),bt.href=t,e===bt.href)}function ce(e){return Object.keys(e).length===0}function _t(e,t,n,l){if(e){const s=Wt(e,t,n,l);return e[0](s)}}function Wt(e,t,n,l){return e[1]&&l?O(n.ctx.slice(),e[1](l(t))):n.ctx}function vt(e,t,n,l){if(e[2]&&l){const s=e[2](l(n));if(t.dirty===void 0)return s;if(typeof s=="object"){const i=[],r=Math.max(t.dirty.length,s.length);for(let a=0;a<r;a+=1)i[a]=t.dirty[a]|s[a];return i}return t.dirty|s}return t.dirty}function $t(e,t,n,l,s,i){if(s){const r=Wt(t,n,l,i);e.p(r,s)}}function kt(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let l=0;l<n;l++)t[l]=-1;return t}return-1}function yt(e){const t={};for(const n in e)n[0]!=="$"&&(t[n]=e[n]);return t}function Vt(e,t){const n={};t=new Set(t);for(const l in e)!t.has(l)&&l[0]!=="$"&&(n[l]=e[l]);return n}function c(e,t){e.appendChild(t)}function zt(e,t,n){const l=ae(e);if(!l.getElementById(t)){const s=d("style");s.id=t,s.textContent=n,ue(l,s)}}function ae(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ue(e,t){return c(e.head||e,t),t.sheet}function z(e,t,n){e.insertBefore(t,n||null)}function j(e){e.parentNode&&e.parentNode.removeChild(e)}function Et(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function d(e){return document.createElement(e)}function D(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function It(e){return document.createTextNode(e)}function b(){return It(" ")}function Lt(){return It("")}function A(e,t,n,l){return e.addEventListener(t,n,l),()=>e.removeEventListener(t,n,l)}function o(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function wt(e,t){for(const n in t)o(e,n,t[n])}function fe(e){let t;return{p(...n){t=n,t.forEach(l=>e.push(l))},r(){t.forEach(n=>e.splice(e.indexOf(n),1))}}}function de(e){return Array.from(e.childNodes)}function Rt(e,t){e.value=t??""}function he(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let St;function ht(e){St=e}const st=[],Dt=[];let it=[];const Gt=[],ge=Promise.resolve();let Nt=!1;function pe(){Nt||(Nt=!0,ge.then(Kt))}function At(e){it.push(e)}const Mt=new Set;let ot=0;function Kt(){if(ot!==0)return;const e=St;do{try{for(;ot<st.length;){const t=st[ot];ot++,ht(t),me(t.$$)}}catch(t){throw st.length=0,ot=0,t}for(ht(null),st.length=0,ot=0;Dt.length;)Dt.pop()();for(let t=0;t<it.length;t+=1){const n=it[t];Mt.has(n)||(Mt.add(n),n())}it.length=0}while(st.length);for(;Gt.length;)Gt.pop()();Nt=!1,Mt.clear(),ht(e)}function me(e){if(e.fragment!==null){e.update(),tt(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(At)}}function be(e){const t=[],n=[];it.forEach(l=>e.indexOf(l)===-1?t.push(l):n.push(l)),n.forEach(l=>l()),it=t}const xt=new Set;let nt;function _e(){nt={r:0,c:[],p:nt}}function ve(){nt.r||tt(nt.c),nt=nt.p}function T(e,t){e&&e.i&&(xt.delete(e),e.i(t))}function G(e,t,n,l){if(e&&e.o){if(xt.has(e))return;xt.add(e),nt.c.push(()=>{xt.delete(e),l&&(n&&e.d(1),l())}),e.o(t)}else l&&l()}function rt(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Pt(e,t){const n={},l={},s={$$scope:1};let i=e.length;for(;i--;){const r=e[i],a=t[i];if(a){for(const h in r)h in a||(l[h]=1);for(const h in a)s[h]||(n[h]=a[h],s[h]=1);e[i]=a}else for(const h in r)s[h]=1}for(const r in l)r in n||(n[r]=void 0);return n}function $e(e){return typeof e=="object"&&e!==null?e:{}}function gt(e){e&&e.c()}function ct(e,t,n){const{fragment:l,after_update:s}=e.$$;l&&l.m(t,n),At(()=>{const i=e.$$.on_mount.map(Ot).filter(Ft);e.$$.on_destroy?e.$$.on_destroy.push(...i):tt(i),e.$$.on_mount=[]}),s.forEach(At)}function at(e,t){const n=e.$$;n.fragment!==null&&(be(n.after_update),tt(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ke(e,t){e.$$.dirty[0]===-1&&(st.push(e),pe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Q(e,t,n,l,s,i,r=null,a=[-1]){const h=St;ht(e);const p=e.$$={fragment:null,ctx:[],props:i,update:v,not_equal:s,bound:Tt(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(h?h.$$.context:[])),callbacks:Tt(),dirty:a,skip_bound:!1,root:t.target||h.$$.root};r&&r(p.root);let y=!1;if(p.ctx=n?n(e,t.props||{},(_,u,...k)=>{const g=k.length?k[0]:u;return p.ctx&&s(p.ctx[_],p.ctx[_]=g)&&(!p.skip_bound&&p.bound[_]&&p.bound[_](g),y&&ke(e,_)),u}):[],p.update(),y=!0,tt(p.before_update),p.fragment=l?l(p.ctx):!1,t.target){if(t.hydrate){const _=de(t.target);p.fragment&&p.fragment.l(_),_.forEach(j)}else p.fragment&&p.fragment.c();t.intro&&T(e.$$.fragment),ct(e,t.target,t.anchor),Kt()}ht(h)}let Zt;typeof HTMLElement=="function"&&(Zt=class extends HTMLElement{constructor(t,n,l){super();R(this,"$$ctor");R(this,"$$s");R(this,"$$c");R(this,"$$cn",!1);R(this,"$$d",{});R(this,"$$r",!1);R(this,"$$p_d",{});R(this,"$$l",{});R(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,l&&this.attachShadow({mode:"open"})}addEventListener(t,n,l){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,l)}removeEventListener(t,n,l){if(super.removeEventListener(t,n,l),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return()=>{let r;return{c:function(){r=d("slot"),i!=="default"&&o(r,"name",i)},m:function(p,y){z(p,r,y)},d:function(p){p&&j(r)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},l=he(this);for(const i of this.$$s)i in l&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=Ct(r,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const s=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=Ct(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const i in this.$$l)for(const r of this.$$l[i]){const a=this.$$c.$on(i,r);this.$$l_u.set(r,a)}this.$$l={}}}attributeChangedCallback(t,n,l){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ct(t,l,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function Ct(e,t,n,l){var i;const s=(i=n[e])==null?void 0:i.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!l||!n[e])return t;if(l==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function qt(e,t,n,l,s,i){let r=class extends Zt{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Object.keys(t).forEach(a=>{Object.defineProperty(r.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(h){var p;h=Ct(a,h,t),this.$$d[a]=h,(p=this.$$c)==null||p.$set({[a]:h})}})}),l.forEach(a=>{Object.defineProperty(r.prototype,a,{get(){var h;return(h=this.$$c)==null?void 0:h[a]}})}),e.element=r,r}class X{constructor(){R(this,"$$");R(this,"$$set")}$destroy(){at(this,1),this.$destroy=v}$on(t,n){if(!Ft(n))return v;const l=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return l.push(n),()=>{const s=l.indexOf(n);s!==-1&&l.splice(s,1)}}$set(t){this.$$set&&!ce(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ye="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ye);function we(e){zt(e,"svelte-1nq6lsq",".login-btn.svelte-1nq6lsq.svelte-1nq6lsq,.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.3s ease;border:none;outline:none}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:120px;height:40px;border-radius:5px;background-color:#007bff;color:white;font-size:16px;font-weight:bold}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:hover{background-color:#0056b3}.login-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq:focus{outline:2px solid #0056b3;outline-offset:4px}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq,.avatar-btn.svelte-1nq6lsq.svelte-1nq6lsq{width:50px;height:50px;border-radius:50%}.loading-btn.svelte-1nq6lsq.svelte-1nq6lsq{background-color:#00bfff;animation:svelte-1nq6lsq-pulse 1s infinite ease-in-out}.avatar-btn.svelte-1nq6lsq img.svelte-1nq6lsq{width:100%;height:100%;object-fit:cover;border-radius:50%}@keyframes svelte-1nq6lsq-pulse{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}")}function xe(e){let t,n,l;return{c(){t=d("button"),t.textContent="Login",o(t,"class","login-btn svelte-1nq6lsq"),o(t,"aria-label","Log in")},m(s,i){z(s,t,i),n||(l=A(t,"click",e[2]),n=!0)},p:v,d(s){s&&j(t),n=!1,l()}}}function Ce(e){let t,n,l,s,i;return{c(){t=d("button"),n=d("img"),Ht(n.src,l=ze)||o(n,"src",l),o(n,"alt","User Avatar"),o(n,"class","svelte-1nq6lsq"),o(t,"class","avatar-btn svelte-1nq6lsq"),o(t,"aria-label","Log out")},m(r,a){z(r,t,a),c(t,n),s||(i=A(t,"click",e[3]),s=!0)},p:v,d(r){r&&j(t),s=!1,i()}}}function qe(e){let t;return{c(){t=d("button"),t.innerHTML="",o(t,"class","loading-btn svelte-1nq6lsq"),o(t,"aria-busy","true"),o(t,"aria-label","Logging in")},m(n,l){z(n,t,l)},p:v,d(n){n&&j(t)}}}function je(e){let t;function n(i,r){return i[0]?qe:i[1]?Ce:xe}let l=n(e),s=l(e);return{c(){s.c(),t=Lt()},m(i,r){s.m(i,r),z(i,t,r)},p(i,[r]){l===(l=n(i))&&s?s.p(i,r):(s.d(1),s=l(i),s&&(s.c(),s.m(t.parentNode,t)))},i:v,o:v,d(i){i&&j(t),s.d(i)}}}let ze="https://via.placeholder.com/50";function Ee(e,t,n){let l=!1,s=!1;const i=async()=>{n(0,l=!0),await new Promise(h=>setTimeout(h,2e3)),n(0,l=!1),n(1,s=!0)},r=()=>{n(1,s=!1)};return s=s,[l,s,i,r]}class Ut extends X{constructor(t){super(),Q(this,t,Ee,je,Y,{},we)}}customElements.define("sesamy-login",qt(Ut,{},[],[],!0));const Le=Ut;/**
2
2
  * @license lucide-svelte v0.445.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const Ue={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Ve(t,e,n){const l=t.slice();return l[11]=e[n][0],l[12]=e[n][1],l}function xe(t){let e,n=[t[12]],l={};for(let s=0;s<n.length;s+=1)l=z(l,n[s]);return{c(){e=Be(t[11]),fe(e,l)},m(s,o){N(s,e,o)},p(s,o){fe(e,l=ve(n,[o&32&&s[12]]))},d(s){s&&E(e)}}}function Je(t){let e=t[11],n,l=t[11]&&xe(t);return{c(){l&&l.c(),n=ge()},m(s,o){l&&l.m(s,o),N(s,n,o)},p(s,o){s[11]?e?V(e,s[11])?(l.d(1),l=xe(s),e=s[11],l.c(),l.m(n.parentNode,n)):l.p(s,o):(l=xe(s),e=s[11],l.c(),l.m(n.parentNode,n)):e&&(l.d(1),l=null,e=s[11])},d(s){s&&E(n),l&&l.d(s)}}}function jt(t){let e,n,l,s,o,i=Z(t[5]),r=[];for(let c=0;c<i.length;c+=1)r[c]=Je(Ve(t,i,c));const f=t[10].default,h=Se(f,t,t[9],null);let v=[Ue,t[7],{width:t[2]},{height:t[2]},{stroke:t[1]},{"stroke-width":l=t[4]?Number(t[3])*24/Number(t[2]):t[3]},{class:s=t[6]("lucide-icon","lucide",t[0]?`lucide-${t[0]}`:"",t[8].class)}],_={};for(let c=0;c<v.length;c+=1)_=z(_,v[c]);return{c(){e=Be("svg");for(let c=0;c<r.length;c+=1)r[c].c();n=ge(),h&&h.c(),fe(e,_)},m(c,y){N(c,e,y);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(e,null);u(e,n),h&&h.m(e,null),o=!0},p(c,[y]){if(y&32){i=Z(c[5]);let d;for(d=0;d<i.length;d+=1){const A=Ve(c,i,d);r[d]?r[d].p(A,y):(r[d]=Je(A),r[d].c(),r[d].m(e,n))}for(;d<r.length;d+=1)r[d].d(1);r.length=i.length}h&&h.p&&(!o||y&512)&&Pe(h,f,c,c[9],o?Ae(f,c[9],y,null):Oe(c[9]),null),fe(e,_=ve(v,[Ue,y&128&&c[7],(!o||y&4)&&{width:c[2]},(!o||y&4)&&{height:c[2]},(!o||y&2)&&{stroke:c[1]},(!o||y&28&&l!==(l=c[4]?Number(c[3])*24/Number(c[2]):c[3]))&&{"stroke-width":l},(!o||y&257&&s!==(s=c[6]("lucide-icon","lucide",c[0]?`lucide-${c[0]}`:"",c[8].class)))&&{class:s}]))},i(c){o||(M(h,c),o=!0)},o(c){X(h,c),o=!1},d(c){c&&E(e),me(r,c),h&&h.d(c)}}}function Ct(t,e,n){const l=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let s=Te(e,l),{$$slots:o={},$$scope:i}=e,{name:r=void 0}=e,{color:f="currentColor"}=e,{size:h=24}=e,{strokeWidth:v=2}=e,{absoluteStrokeWidth:_=!1}=e,{iconNode:c=[]}=e;const y=(...d)=>d.filter((A,S,D)=>!!A&&D.indexOf(A)===S).join(" ");return t.$$set=d=>{n(8,e=z(z({},e),ae(d))),n(7,s=Te(e,l)),"name"in d&&n(0,r=d.name),"color"in d&&n(1,f=d.color),"size"in d&&n(2,h=d.size),"strokeWidth"in d&&n(3,v=d.strokeWidth),"absoluteStrokeWidth"in d&&n(4,_=d.absoluteStrokeWidth),"iconNode"in d&&n(5,c=d.iconNode),"$$scope"in d&&n(9,i=d.$$scope)},e=ae(e),[r,f,h,v,_,c,y,s,e,i,o]}class zt extends ie{constructor(e){super(),oe(this,e,Ct,jt,V,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Et(t){let e;const n=t[2].default,l=Se(n,t,t[3],null);return{c(){l&&l.c()},m(s,o){l&&l.m(s,o),e=!0},p(s,o){l&&l.p&&(!e||o&8)&&Pe(l,n,s,s[3],e?Ae(n,s[3],o,null):Oe(s[3]),null)},i(s){e||(M(l,s),e=!0)},o(s){X(l,s),e=!1},d(s){l&&l.d(s)}}}function Nt(t){let e,n;const l=[{name:"circle-check"},t[1],{iconNode:t[0]}];let s={$$slots:{default:[Et]},$$scope:{ctx:t}};for(let o=0;o<l.length;o+=1)s=z(s,l[o]);return e=new zt({props:s}),{c(){Re(e.$$.fragment)},m(o,i){ye(e,o,i),n=!0},p(o,[i]){const r=i&3?ve(l,[l[0],i&2&&gt(o[1]),i&1&&{iconNode:o[0]}]):{};i&8&&(r.$$scope={dirty:i,ctx:o}),e.$set(r)},i(o){n||(M(e.$$.fragment,o),n=!0)},o(o){X(e.$$.fragment,o),n=!1},d(o){ke(e,o)}}}function St(t,e,n){let{$$slots:l={},$$scope:s}=e;const o=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];return t.$$set=i=>{n(1,e=z(z({},e),ae(i))),"$$scope"in i&&n(3,s=i.$$scope)},e=ae(e),[o,e,l,s]}class Lt extends ie{constructor(e){super(),oe(this,e,St,Nt,V,{})}}function Ye(t,e,n){const l=t.slice();return l[6]=e[n],l}function Qe(t,e,n){const l=t.slice();return l[9]=e[n],l}function Xe(t){let e,n,l,s,o,i;return n=new Lt({props:{class:"text-green-500 mr-2",size:20}}),{c(){e=m("li"),Re(n.$$.fragment),l=b(),s=m("span"),s.textContent=`${t[9]}`,o=b(),a(e,"class","flex items-center")},m(r,f){N(r,e,f),ye(n,e,null),u(e,l),u(e,s),u(e,o),i=!0},p:$,i(r){i||(M(n.$$.fragment,r),i=!0)},o(r){X(n.$$.fragment,r),i=!1},d(r){r&&E(e),ke(n)}}}function Ze(t){let e,n;return{c(){e=m("img"),Ne(e.src,n="/api/placeholder/40/25")||a(e,"src",n),a(e,"alt",t[6]),a(e,"class","h-6")},m(l,s){N(l,e,s)},p:$,d(l){l&&E(e)}}}function At(t){let e,n,l,s,o,i,r,f,h,v,_,c,y,d,A,S,D,C,w,B,te,O,R,K,G,W,H,re,T,ne,qe,je,nt,U=Z(t[1]),k=[];for(let p=0;p<U.length;p+=1)k[p]=Xe(Qe(t,U,p));const Wt=p=>X(k[p],1,1,()=>{k[p]=null});let le=Z(t[2]),q=[];for(let p=0;p<le.length;p+=1)q[p]=Ze(Ye(t,le,p));return qe=it(t[4][0]),{c(){e=m("div"),n=m("div"),n.textContent="Redan prenumerant? Logga in",l=b(),s=m("h1"),s.textContent="FOKUS",o=b(),i=m("h2"),i.textContent="Läs Fokus Digital i 6 månader för bara 79 kr!",r=b(),f=m("ul");for(let p=0;p<k.length;p+=1)k[p].c();h=b(),v=m("div"),_=m("label"),c=m("input"),y=b(),d=m("div"),d.innerHTML='<div class="font-semibold">Fokus Digital i 6 månader för 79kr!</div> <div class="text-sm text-gray-600">Efter kampanjperioden 149 kr/mån. Ingen bindningstid!</div>',A=b(),S=m("div"),S.textContent="79 SEK/6 mån",D=b(),C=m("label"),w=m("input"),B=b(),te=m("div"),te.innerHTML='<div class="font-semibold">Fokus Digital i ett år för 995kr</div> <div class="text-sm text-gray-600">Du sparar 793 kr. Prenumerationen förnyas automatiskt årsvis.</div>',O=b(),R=m("div"),R.textContent="995 SEK/år",K=b(),G=m("button"),G.textContent="Fortsätt",W=b(),H=m("div"),H.textContent="Säker SSL-krypterad betalning",re=b(),T=m("div");for(let p=0;p<q.length;p+=1)q[p].c();a(n,"class","text-right text-sm text-red-500 mb-4"),a(s,"class","text-4xl font-bold text-red-500 mb-4"),a(i,"class","text-xl font-semibold mb-6"),a(f,"class","space-y-2 mb-6"),a(c,"type","radio"),a(c,"name","subscription"),c.__value="sixMonths",He(c,c.__value),a(c,"class","mr-3"),a(S,"class","ml-auto font-semibold"),a(_,"class","flex items-center p-4 border rounded-lg"),a(w,"type","radio"),a(w,"name","subscription"),w.__value="oneYear",He(w,w.__value),a(w,"class","mr-3"),a(R,"class","ml-auto font-semibold"),a(C,"class","flex items-center p-4 border rounded-lg"),a(v,"class","space-y-4 mb-6"),a(G,"class","w-full bg-red-500 text-white py-3 rounded-lg font-semibold"),a(H,"class","text-center text-sm text-gray-600 mt-4"),a(T,"class","flex justify-center space-x-2 mt-2"),a(e,"class","max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"),qe.p(c,w)},m(p,x){N(p,e,x),u(e,n),u(e,l),u(e,s),u(e,o),u(e,i),u(e,r),u(e,f);for(let g=0;g<k.length;g+=1)k[g]&&k[g].m(f,null);u(e,h),u(e,v),u(v,_),u(_,c),c.checked=c.__value===t[0],u(_,y),u(_,d),u(_,A),u(_,S),u(v,D),u(v,C),u(C,w),w.checked=w.__value===t[0],u(C,B),u(C,te),u(C,O),u(C,R),u(e,K),u(e,G),u(e,W),u(e,H),u(e,re),u(e,T);for(let g=0;g<q.length;g+=1)q[g]&&q[g].m(T,null);ne=!0,je||(nt=[P(c,"change",t[3]),P(w,"change",t[5])],je=!0)},p(p,[x]){if(x&2){U=Z(p[1]);let g;for(g=0;g<U.length;g+=1){const ce=Qe(p,U,g);k[g]?(k[g].p(ce,x),M(k[g],1)):(k[g]=Xe(ce),k[g].c(),M(k[g],1),k[g].m(f,null))}for(ht(),g=U.length;g<k.length;g+=1)Wt(g);mt()}if(x&1&&(c.checked=c.__value===p[0]),x&1&&(w.checked=w.__value===p[0]),x&4){le=Z(p[2]);let g;for(g=0;g<le.length;g+=1){const ce=Ye(p,le,g);q[g]?q[g].p(ce,x):(q[g]=Ze(ce),q[g].c(),q[g].m(T,null))}for(;g<q.length;g+=1)q[g].d(1);q.length=le.length}},i(p){if(!ne){for(let x=0;x<U.length;x+=1)M(k[x]);ne=!0}},o(p){k=k.filter(Boolean);for(let x=0;x<k.length;x+=1)X(k[x]);ne=!1},d(p){p&&E(e),me(k,p),me(q,p),qe.r(),je=!1,I(nt)}}}function Pt(t,e,n){let l="sixMonths";const s=["Allt material på Fokus.se","Tillgång till e-tidning","Tillgång till våra podcasts","Nyhetsbrev"],o=["Visa","American Express","Mastercard","Klarna","Google Pay","Apple Pay","Swish"],i=[[]];function r(){l=this.__value,n(0,l)}function f(){l=this.__value,n(0,l)}return[l,s,o,r,i,f]}class et extends ie{constructor(e){super(),oe(this,e,Pt,At,V,{})}}customElements.define("sesamy-paywall",we(et,{},[],[],!0));const Ot=et;function Tt(t){Me(t,"svelte-phjzbp",'.registration-wall.svelte-phjzbp{font-family:Arial, sans-serif;max-width:400px;margin:0 auto;padding:20px;text-align:center}h1.svelte-phjzbp{font-size:24px;margin-bottom:10px}p.svelte-phjzbp{font-size:16px;margin-bottom:20px}input.svelte-phjzbp{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px}button.svelte-phjzbp{width:100%;padding:10px;background-color:#000;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px}.divider.svelte-phjzbp{margin:20px 0;text-align:center;position:relative}.divider.svelte-phjzbp::before,.divider.svelte-phjzbp::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-phjzbp::before{left:0}.divider.svelte-phjzbp::after{right:0}.social-button.svelte-phjzbp{background-color:#fff;color:#000;border:1px solid #ccc}a.svelte-phjzbp{color:#000;text-decoration:none}.terms.svelte-phjzbp{font-size:12px;margin-bottom:20px}')}function Mt(t){let e,n,l,s,o,i,r,f,h,v,_,c,y,d,A,S,D,C,w,B,te,O,R,K,G,W,H,re;return{c(){e=m("div"),n=m("h1"),n.textContent="Create a free account, or log in.",l=b(),s=m("p"),s.textContent=`Gain access to limited free articles, news alerts, select newsletters,
7
- podcasts and some daily games.`,o=b(),i=m("label"),i.textContent="Email Address",r=b(),f=m("input"),h=b(),v=m("button"),v.textContent="Continue",_=b(),c=m("div"),c.textContent="or",y=b(),d=m("p"),d.innerHTML=`By continuing, you agree to the <a href="#terms" class="svelte-phjzbp">Terms of Sale</a>,
6
+ */const Jt={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function Yt(e,t,n){const l=e.slice();return l[11]=t[n][0],l[12]=t[n][1],l}function Bt(e){let t,n=[e[12]],l={};for(let s=0;s<n.length;s+=1)l=O(l,n[s]);return{c(){t=D(e[11]),wt(t,l)},m(s,i){z(s,t,i)},p(s,i){wt(t,l=Pt(n,[i&32&&s[12]]))},d(s){s&&j(t)}}}function Qt(e){let t=e[11],n,l=e[11]&&Bt(e);return{c(){l&&l.c(),n=Lt()},m(s,i){l&&l.m(s,i),z(s,n,i)},p(s,i){s[11]?t?Y(t,s[11])?(l.d(1),l=Bt(s),t=s[11],l.c(),l.m(n.parentNode,n)):l.p(s,i):(l=Bt(s),t=s[11],l.c(),l.m(n.parentNode,n)):t&&(l.d(1),l=null,t=s[11])},d(s){s&&j(n),l&&l.d(s)}}}function Se(e){let t,n,l,s,i,r=rt(e[5]),a=[];for(let u=0;u<r.length;u+=1)a[u]=Qt(Yt(e,r,u));const h=e[10].default,p=_t(h,e,e[9],null);let y=[Jt,e[7],{width:e[2]},{height:e[2]},{stroke:e[1]},{"stroke-width":l=e[4]?Number(e[3])*24/Number(e[2]):e[3]},{class:s=e[6]("lucide-icon","lucide",e[0]?`lucide-${e[0]}`:"",e[8].class)}],_={};for(let u=0;u<y.length;u+=1)_=O(_,y[u]);return{c(){t=D("svg");for(let u=0;u<a.length;u+=1)a[u].c();n=Lt(),p&&p.c(),wt(t,_)},m(u,k){z(u,t,k);for(let g=0;g<a.length;g+=1)a[g]&&a[g].m(t,null);c(t,n),p&&p.m(t,null),i=!0},p(u,[k]){if(k&32){r=rt(u[5]);let g;for(g=0;g<r.length;g+=1){const E=Yt(u,r,g);a[g]?a[g].p(E,k):(a[g]=Qt(E),a[g].c(),a[g].m(t,n))}for(;g<a.length;g+=1)a[g].d(1);a.length=r.length}p&&p.p&&(!i||k&512)&&$t(p,h,u,u[9],i?vt(h,u[9],k,null):kt(u[9]),null),wt(t,_=Pt(y,[Jt,k&128&&u[7],(!i||k&4)&&{width:u[2]},(!i||k&4)&&{height:u[2]},(!i||k&2)&&{stroke:u[1]},(!i||k&28&&l!==(l=u[4]?Number(u[3])*24/Number(u[2]):u[3]))&&{"stroke-width":l},(!i||k&257&&s!==(s=u[6]("lucide-icon","lucide",u[0]?`lucide-${u[0]}`:"",u[8].class)))&&{class:s}]))},i(u){i||(T(p,u),i=!0)},o(u){G(p,u),i=!1},d(u){u&&j(t),Et(a,u),p&&p.d(u)}}}function Ne(e,t,n){const l=["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"];let s=Vt(t,l),{$$slots:i={},$$scope:r}=t,{name:a=void 0}=t,{color:h="currentColor"}=t,{size:p=24}=t,{strokeWidth:y=2}=t,{absoluteStrokeWidth:_=!1}=t,{iconNode:u=[]}=t;const k=(...g)=>g.filter((E,S,F)=>!!E&&F.indexOf(E)===S).join(" ");return e.$$set=g=>{n(8,t=O(O({},t),yt(g))),n(7,s=Vt(t,l)),"name"in g&&n(0,a=g.name),"color"in g&&n(1,h=g.color),"size"in g&&n(2,p=g.size),"strokeWidth"in g&&n(3,y=g.strokeWidth),"absoluteStrokeWidth"in g&&n(4,_=g.absoluteStrokeWidth),"iconNode"in g&&n(5,u=g.iconNode),"$$scope"in g&&n(9,r=g.$$scope)},t=yt(t),[a,h,p,y,_,u,k,s,t,r,i]}class Ae extends X{constructor(t){super(),Q(this,t,Ne,Se,Y,{name:0,color:1,size:2,strokeWidth:3,absoluteStrokeWidth:4,iconNode:5})}}function Me(e){let t;const n=e[2].default,l=_t(n,e,e[3],null);return{c(){l&&l.c()},m(s,i){l&&l.m(s,i),t=!0},p(s,i){l&&l.p&&(!t||i&8)&&$t(l,n,s,s[3],t?vt(n,s[3],i,null):kt(s[3]),null)},i(s){t||(T(l,s),t=!0)},o(s){G(l,s),t=!1},d(s){l&&l.d(s)}}}function Pe(e){let t,n;const l=[{name:"circle-check"},e[1],{iconNode:e[0]}];let s={$$slots:{default:[Me]},$$scope:{ctx:e}};for(let i=0;i<l.length;i+=1)s=O(s,l[i]);return t=new Ae({props:s}),{c(){gt(t.$$.fragment)},m(i,r){ct(t,i,r),n=!0},p(i,[r]){const a=r&3?Pt(l,[l[0],r&2&&$e(i[1]),r&1&&{iconNode:i[0]}]):{};r&8&&(a.$$scope={dirty:r,ctx:i}),t.$set(a)},i(i){n||(T(t.$$.fragment,i),n=!0)},o(i){G(t.$$.fragment,i),n=!1},d(i){at(t,i)}}}function Be(e,t,n){let{$$slots:l={},$$scope:s}=t;const i=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m9 12 2 2 4-4"}]];return e.$$set=r=>{n(1,t=O(O({},t),yt(r))),"$$scope"in r&&n(3,s=r.$$scope)},t=yt(t),[i,t,l,s]}class Oe extends X{constructor(t){super(),Q(this,t,Be,Pe,Y,{})}}function Xt(e,t,n){const l=e.slice();return l[6]=t[n],l}function te(e,t,n){const l=e.slice();return l[9]=t[n],l}function ee(e){let t,n,l,s,i,r;return n=new Oe({props:{class:"text-green-500 mr-2",size:20}}),{c(){t=d("li"),gt(n.$$.fragment),l=b(),s=d("span"),s.textContent=`${e[9]}`,i=b(),o(t,"class","flex items-center")},m(a,h){z(a,t,h),ct(n,t,null),c(t,l),c(t,s),c(t,i),r=!0},p:v,i(a){r||(T(n.$$.fragment,a),r=!0)},o(a){G(n.$$.fragment,a),r=!1},d(a){a&&j(t),at(n)}}}function ne(e){let t,n;return{c(){t=d("img"),Ht(t.src,n="/api/placeholder/40/25")||o(t,"src",n),o(t,"alt",e[6]),o(t,"class","h-6")},m(l,s){z(l,t,s)},p:v,d(l){l&&j(t)}}}function Te(e){let t,n,l,s,i,r,a,h,p,y,_,u,k,g,E,S,F,q,w,K,Z,V,H,M,P,U,W,et,B,N,lt,ft,dt,I=rt(e[1]),$=[];for(let f=0;f<I.length;f+=1)$[f]=ee(te(e,I,f));const pt=f=>G($[f],1,1,()=>{$[f]=null});let J=rt(e[2]),x=[];for(let f=0;f<J.length;f+=1)x[f]=ne(Xt(e,J,f));return lt=fe(e[4][0]),{c(){t=d("div"),n=d("div"),n.textContent="Redan prenumerant? Logga in",l=b(),s=d("h1"),s.textContent="FOKUS",i=b(),r=d("h2"),r.textContent="Läs Fokus Digital i 6 månader för bara 79 kr!",a=b(),h=d("ul");for(let f=0;f<$.length;f+=1)$[f].c();p=b(),y=d("div"),_=d("label"),u=d("input"),k=b(),g=d("div"),g.innerHTML='<div class="font-semibold">Fokus Digital i 6 månader för 79kr!</div> <div class="text-sm text-gray-600">Efter kampanjperioden 149 kr/mån. Ingen bindningstid!</div>',E=b(),S=d("div"),S.textContent="79 SEK/6 mån",F=b(),q=d("label"),w=d("input"),K=b(),Z=d("div"),Z.innerHTML='<div class="font-semibold">Fokus Digital i ett år för 995kr</div> <div class="text-sm text-gray-600">Du sparar 793 kr. Prenumerationen förnyas automatiskt årsvis.</div>',V=b(),H=d("div"),H.textContent="995 SEK/år",M=b(),P=d("button"),P.textContent="Fortsätt",U=b(),W=d("div"),W.textContent="Säker SSL-krypterad betalning",et=b(),B=d("div");for(let f=0;f<x.length;f+=1)x[f].c();o(n,"class","text-right text-sm text-red-500 mb-4"),o(s,"class","text-4xl font-bold text-red-500 mb-4"),o(r,"class","text-xl font-semibold mb-6"),o(h,"class","space-y-2 mb-6"),o(u,"type","radio"),o(u,"name","subscription"),u.__value="sixMonths",Rt(u,u.__value),o(u,"class","mr-3"),o(S,"class","ml-auto font-semibold"),o(_,"class","flex items-center p-4 border rounded-lg"),o(w,"type","radio"),o(w,"name","subscription"),w.__value="oneYear",Rt(w,w.__value),o(w,"class","mr-3"),o(H,"class","ml-auto font-semibold"),o(q,"class","flex items-center p-4 border rounded-lg"),o(y,"class","space-y-4 mb-6"),o(P,"class","w-full bg-red-500 text-white py-3 rounded-lg font-semibold"),o(W,"class","text-center text-sm text-gray-600 mt-4"),o(B,"class","flex justify-center space-x-2 mt-2"),o(t,"class","max-w-md mx-auto bg-white p-6 rounded-lg shadow-lg"),lt.p(u,w)},m(f,C){z(f,t,C),c(t,n),c(t,l),c(t,s),c(t,i),c(t,r),c(t,a),c(t,h);for(let m=0;m<$.length;m+=1)$[m]&&$[m].m(h,null);c(t,p),c(t,y),c(y,_),c(_,u),u.checked=u.__value===e[0],c(_,k),c(_,g),c(_,E),c(_,S),c(y,F),c(y,q),c(q,w),w.checked=w.__value===e[0],c(q,K),c(q,Z),c(q,V),c(q,H),c(t,M),c(t,P),c(t,U),c(t,W),c(t,et),c(t,B);for(let m=0;m<x.length;m+=1)x[m]&&x[m].m(B,null);N=!0,ft||(dt=[A(u,"change",e[3]),A(w,"change",e[5])],ft=!0)},p(f,[C]){if(C&2){I=rt(f[1]);let m;for(m=0;m<I.length;m+=1){const mt=te(f,I,m);$[m]?($[m].p(mt,C),T($[m],1)):($[m]=ee(mt),$[m].c(),T($[m],1),$[m].m(h,null))}for(_e(),m=I.length;m<$.length;m+=1)pt(m);ve()}if(C&1&&(u.checked=u.__value===f[0]),C&1&&(w.checked=w.__value===f[0]),C&4){J=rt(f[2]);let m;for(m=0;m<J.length;m+=1){const mt=Xt(f,J,m);x[m]?x[m].p(mt,C):(x[m]=ne(mt),x[m].c(),x[m].m(B,null))}for(;m<x.length;m+=1)x[m].d(1);x.length=J.length}},i(f){if(!N){for(let C=0;C<I.length;C+=1)T($[C]);N=!0}},o(f){$=$.filter(Boolean);for(let C=0;C<$.length;C+=1)G($[C]);N=!1},d(f){f&&j(t),Et($,f),Et(x,f),lt.r(),ft=!1,tt(dt)}}}function Fe(e,t,n){let l="sixMonths";const s=["Allt material på Fokus.se","Tillgång till e-tidning","Tillgång till våra podcasts","Nyhetsbrev"],i=["Visa","American Express","Mastercard","Klarna","Google Pay","Apple Pay","Swish"],r=[[]];function a(){l=this.__value,n(0,l)}function h(){l=this.__value,n(0,l)}return[l,s,i,a,r,h]}class le extends X{constructor(t){super(),Q(this,t,Fe,Te,Y,{})}}customElements.define("sesamy-paywall",qt(le,{},[],[],!0));const He=le;function We(e){zt(e,"svelte-phjzbp",'.registration-wall.svelte-phjzbp{font-family:Arial, sans-serif;max-width:400px;margin:0 auto;padding:20px;text-align:center}h1.svelte-phjzbp{font-size:24px;margin-bottom:10px}p.svelte-phjzbp{font-size:16px;margin-bottom:20px}input.svelte-phjzbp{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px}button.svelte-phjzbp{width:100%;padding:10px;background-color:#000;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px}.divider.svelte-phjzbp{margin:20px 0;text-align:center;position:relative}.divider.svelte-phjzbp::before,.divider.svelte-phjzbp::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-phjzbp::before{left:0}.divider.svelte-phjzbp::after{right:0}.social-button.svelte-phjzbp{background-color:#fff;color:#000;border:1px solid #ccc}a.svelte-phjzbp{color:#000;text-decoration:none}.terms.svelte-phjzbp{font-size:12px;margin-bottom:20px}')}function Ve(e){let t,n,l,s,i,r,a,h,p,y,_,u,k,g,E,S,F,q,w,K,Z,V,H,M,P,U,W,et;return{c(){t=d("div"),n=d("h1"),n.textContent="Create a free account, or log in.",l=b(),s=d("p"),s.textContent=`Gain access to limited free articles, news alerts, select newsletters,
7
+ podcasts and some daily games.`,i=b(),r=d("label"),r.textContent="Email Address",a=b(),h=d("input"),p=b(),y=d("button"),y.textContent="Continue",_=b(),u=d("div"),u.textContent="or",k=b(),g=d("p"),g.innerHTML=`By continuing, you agree to the <a href="#terms" class="svelte-phjzbp">Terms of Sale</a>,
8
8
  <a href="#service" class="svelte-phjzbp">Terms of Service</a>, and
9
- <a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`,A=b(),S=m("button"),S.textContent="Continue with Google",D=b(),C=m("button"),C.textContent="Continue with Facebook",w=b(),B=m("button"),B.textContent="Continue with Apple",te=b(),O=m("a"),O.textContent="Continue with work or school single sign-on >",R=b(),K=m("p"),K.textContent="Enjoy unlimited access to all of The Times.",G=b(),W=m("button"),W.textContent="See subscription options",a(n,"class","svelte-phjzbp"),a(s,"class","svelte-phjzbp"),a(i,"for","email"),a(f,"type","email"),a(f,"id","email"),a(f,"placeholder","Enter your email"),a(f,"class","svelte-phjzbp"),a(v,"class","svelte-phjzbp"),a(c,"class","divider svelte-phjzbp"),a(d,"class","terms svelte-phjzbp"),a(S,"class","social-button google svelte-phjzbp"),a(C,"class","social-button facebook svelte-phjzbp"),a(B,"class","social-button apple svelte-phjzbp"),a(O,"href","#"),a(O,"class","svelte-phjzbp"),a(K,"class","svelte-phjzbp"),a(W,"class","svelte-phjzbp"),a(e,"class","registration-wall svelte-phjzbp")},m(T,ne){N(T,e,ne),u(e,n),u(e,l),u(e,s),u(e,o),u(e,i),u(e,r),u(e,f),u(e,h),u(e,v),u(e,_),u(e,c),u(e,y),u(e,d),u(e,A),u(e,S),u(e,D),u(e,C),u(e,w),u(e,B),u(e,te),u(e,O),u(e,R),u(e,K),u(e,G),u(e,W),H||(re=[P(v,"click",ee),P(S,"click",ee),P(C,"click",ee),P(B,"click",ee),P(O,"click",ee),P(W,"click",ee)],H=!0)},p:$,i:$,o:$,d(T){T&&E(e),H=!1,I(re)}}}function ee(){console.log("Button clicked")}class tt extends ie{constructor(e){super(),oe(this,e,null,Mt,V,{},Tt)}}customElements.define("sesamy-hello",we(tt,{},[],[],!0));const Bt=tt;j.Hello=Bt,j.Login=qt,j.Paywall=Ot,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
9
+ <a href="#privacy" class="svelte-phjzbp">Privacy Policy</a>.`,E=b(),S=d("button"),S.textContent="Continue with Google",F=b(),q=d("button"),q.textContent="Continue with Facebook",w=b(),K=d("button"),K.textContent="Continue with Apple",Z=b(),V=d("a"),V.textContent="Continue with work or school single sign-on >",H=b(),M=d("p"),M.textContent="Enjoy unlimited access to all of The Times.",P=b(),U=d("button"),U.textContent="See subscription options",o(n,"class","svelte-phjzbp"),o(s,"class","svelte-phjzbp"),o(r,"for","email"),o(h,"type","email"),o(h,"id","email"),o(h,"placeholder","Enter your email"),o(h,"class","svelte-phjzbp"),o(y,"class","svelte-phjzbp"),o(u,"class","divider svelte-phjzbp"),o(g,"class","terms svelte-phjzbp"),o(S,"class","social-button google svelte-phjzbp"),o(q,"class","social-button facebook svelte-phjzbp"),o(K,"class","social-button apple svelte-phjzbp"),o(V,"href","#"),o(V,"class","svelte-phjzbp"),o(M,"class","svelte-phjzbp"),o(U,"class","svelte-phjzbp"),o(t,"class","registration-wall svelte-phjzbp")},m(B,N){z(B,t,N),c(t,n),c(t,l),c(t,s),c(t,i),c(t,r),c(t,a),c(t,h),c(t,p),c(t,y),c(t,_),c(t,u),c(t,k),c(t,g),c(t,E),c(t,S),c(t,F),c(t,q),c(t,w),c(t,K),c(t,Z),c(t,V),c(t,H),c(t,M),c(t,P),c(t,U),W||(et=[A(y,"click",ut),A(S,"click",ut),A(q,"click",ut),A(K,"click",ut),A(V,"click",ut),A(U,"click",ut)],W=!0)},p:v,i:v,o:v,d(B){B&&j(t),W=!1,tt(et)}}}function ut(){console.log("Button clicked")}class se extends X{constructor(t){super(),Q(this,t,null,Ve,Y,{},We)}}customElements.define("sesamy-hello",qt(se,{},[],[],!0));const Ie=se;function Re(e){let t,n;return{c(){t=D("svg"),n=D("path"),o(n,"d","M20.4 7.8c-.8.5-1.4 1.1-1.8 1.9-.4.8-.7 1.6-.7 2.5 0 1 .3 2 .9 2.8.6.8 1.3 1.5 2.3 1.9-.4 1.2-.9 2.3-1.6 3.3-1 1.4-2 2.8-3.6 2.8s-2-.9-3.8-.9c-1.8 0-2.4.9-3.9.9s-2.5-1.3-3.6-2.9c-1.5-2.3-2.4-4.9-2.4-7.6C2 8 4.9 5.6 7.9 5.6c1.5 0 2.8 1 3.8 1 .9 0 2.4-1.1 4.1-1.1.9 0 1.8.2 2.6.6.8.4 1.5 1 2 1.7zm-5.5-4.1c.8-.9 1.2-2 1.2-3.2V0c-1.3.1-2.6.8-3.4 1.7-.8.9-1.2 2-1.3 3.1v.4h.3c.6 0 1.2-.2 1.8-.5.6-.2 1-.6 1.4-1z"),o(n,"fill","#000"),o(t,"xmlns","http://www.w3.org/2000/svg"),o(t,"width",e[0]),o(t,"height",e[1]),o(t,"viewBox","0 0 22.773 28.025")},m(l,s){z(l,t,s),c(t,n)},p(l,[s]){s&1&&o(t,"width",l[0]),s&2&&o(t,"height",l[1])},i:v,o:v,d(l){l&&j(t)}}}function De(e,t,n){let{width:l="18"}=t,{height:s="18"}=t;return e.$$set=i=>{"width"in i&&n(0,l=i.width),"height"in i&&n(1,s=i.height)},[l,s]}class Ge extends X{constructor(t){super(),Q(this,t,De,Re,Y,{width:0,height:1})}}function Ke(e){let t,n;return{c(){t=D("svg"),n=D("path"),o(n,"d","M12.8 9h-2.5v9H6.6V9H4.9V5.8h1.8v-2C6.6 2.3 7.3 0 10.4 0h2.8v3.1h-2c-.3 0-.8.2-.8.9v1.9h2.8L12.8 9z"),o(n,"fill","#1877F2"),o(t,"xmlns","http://www.w3.org/2000/svg"),o(t,"width",e[0]),o(t,"height",e[1]),o(t,"viewBox","0 0 18 18")},m(l,s){z(l,t,s),c(t,n)},p(l,[s]){s&1&&o(t,"width",l[0]),s&2&&o(t,"height",l[1])},i:v,o:v,d(l){l&&j(t)}}}function Ze(e,t,n){let{width:l="18"}=t,{height:s="18"}=t;return e.$$set=i=>{"width"in i&&n(0,l=i.width),"height"in i&&n(1,s=i.height)},[l,s]}class Ue extends X{constructor(t){super(),Q(this,t,Ze,Ke,Y,{width:0,height:1})}}function Je(e){let t,n,l,s,i;return{c(){t=D("svg"),n=D("path"),l=D("path"),s=D("path"),i=D("path"),o(n,"d","M44.1035 23.0123C44.1054 21.4791 43.9758 19.9486 43.716 18.4375H22.498V27.1028H34.6507C34.4021 28.4868 33.8757 29.8061 33.1034 30.9812C32.3311 32.1562 31.3289 33.1628 30.1571 33.9401V39.5649H37.41C41.6567 35.6494 44.1035 29.859 44.1035 23.0123Z"),o(n,"fill","#4285F4"),o(l,"d","M22.4982 44.9997C28.5698 44.9997 33.6821 43.0061 37.4101 39.5687L30.1573 33.9439C28.1386 35.3126 25.5387 36.0938 22.4982 36.0938C16.6296 36.0938 11.6485 32.1377 9.86736 26.8066H2.39575V32.6033C4.26839 36.3297 7.13989 39.4622 10.6896 41.6512C14.2394 43.8402 18.3277 44.9995 22.4982 44.9997Z"),o(l,"fill","#34A853"),o(s,"d","M9.86737 26.8073C8.92572 24.0138 8.92572 20.9886 9.86737 18.1951V12.3984H2.39576C0.820432 15.5332 0 18.9929 0 22.5012C0 26.0095 0.820432 29.4692 2.39576 32.604L9.86737 26.8073Z"),o(s,"fill","#FBBC04"),o(i,"d","M22.4982 8.90741C25.7068 8.85499 28.8071 10.0673 31.1291 12.2823L37.5507 5.86064C33.4788 2.03602 28.0843 -0.0637686 22.4982 0.00147616C18.3277 0.00166623 14.2394 1.16098 10.6896 3.34999C7.13989 5.539 4.26839 8.67155 2.39575 12.3979L9.86736 18.1946C11.6485 12.8635 16.6296 8.90741 22.4982 8.90741Z"),o(i,"fill","#EA4335"),o(t,"width",e[0]),o(t,"height",e[1]),o(t,"viewBox","0 0 45 45"),o(t,"xmlns","http://www.w3.org/2000/svg")},m(r,a){z(r,t,a),c(t,n),c(t,l),c(t,s),c(t,i)},p(r,[a]){a&1&&o(t,"width",r[0]),a&2&&o(t,"height",r[1])},i:v,o:v,d(r){r&&j(t)}}}function Ye(e,t,n){let{width:l="18"}=t,{height:s="18"}=t;return e.$$set=i=>{"width"in i&&n(0,l=i.width),"height"in i&&n(1,s=i.height)},[l,s]}class Qe extends X{constructor(t){super(),Q(this,t,Ye,Je,Y,{width:0,height:1})}}function Xe(e){zt(e,"svelte-1y5fikd",':host{--max-width:500px;--font-family:Arial, sans-serif;display:block}.registration-wall.svelte-1y5fikd{font-family:--var(font-family);max-width:var(--max-width);margin:0 auto;padding:20px;text-align:center;background-color:rgb(248, 248, 245);border:solid 1px #e9e9da;border-radius:8px}h1.svelte-1y5fikd{font-size:24px;margin-bottom:10px}p.svelte-1y5fikd{font-size:14px;margin-bottom:20px;color:#555}.form-container.svelte-1y5fikd{width:100%}input.svelte-1y5fikd{width:100%;padding:10px;margin-bottom:10px;border:1px solid #ccc;border-radius:4px;box-sizing:border-box}.continue-button.svelte-1y5fikd{width:100%;padding:10px;background-color:#4285f4;color:#fff;border:none;border-radius:4px;cursor:pointer;margin-bottom:10px;font-size:14px}.divider.svelte-1y5fikd{margin:15px 0;text-align:center;position:relative;color:#777}.divider.svelte-1y5fikd::before,.divider.svelte-1y5fikd::after{content:"";position:absolute;top:50%;width:45%;height:1px;background-color:#ccc}.divider.svelte-1y5fikd::before{left:0}.divider.svelte-1y5fikd::after{right:0}.social-button.svelte-1y5fikd{width:100%;padding:10px;background-color:#fff;color:#000;border:1px solid #ccc;border-radius:4px;cursor:pointer;margin-bottom:10px;font-size:14px;display:flex;justify-content:center}.button-content.svelte-1y5fikd{display:flex;align-items:center;justify-content:center}.button-content.svelte-1y5fikd svg{margin-right:8px}.terms.svelte-1y5fikd{font-size:12px;margin-top:20px;color:#777}a.svelte-1y5fikd{color:#4285f4;text-decoration:none}')}const tn=e=>({}),ie=e=>({}),en=e=>({}),oe=e=>({});function nn(e){let t;return{c(){t=d("h1"),t.textContent="Skapa ett gratis konto eller logga in",o(t,"class","svelte-1y5fikd")},m(n,l){z(n,t,l)},p:v,d(n){n&&j(t)}}}function ln(e){let t;return{c(){t=d("p"),t.textContent="Få tillgång till gratis artiklar och nyhetsbrev.",o(t,"class","svelte-1y5fikd")},m(n,l){z(n,t,l)},p:v,d(n){n&&j(t)}}}function sn(e){let t,n,l,s,i,r,a,h,p,y,_,u,k,g,E,S,F,q,w,K,Z,V,H,M,P,U,W,et,B,N,lt,ft;const dt=e[1].title,I=_t(dt,e,e[0],oe),$=I||nn(),pt=e[1].description,J=_t(pt,e,e[0],ie),x=J||ln();return k=new Qe({props:{width:"18",height:"18"}}),w=new Ue({props:{width:"18",height:"18"}}),P=new Ge({props:{width:"18",height:"18"}}),{c(){t=d("div"),$&&$.c(),n=b(),x&&x.c(),l=b(),s=d("div"),i=d("input"),r=b(),a=d("button"),a.textContent="Fortsätt",h=b(),p=d("div"),p.textContent="eller",y=b(),_=d("button"),u=d("span"),gt(k.$$.fragment),g=b(),E=d("span"),E.textContent="Fortsätt med Google",S=b(),F=d("button"),q=d("span"),gt(w.$$.fragment),K=b(),Z=d("span"),Z.textContent="Fortsätt med Facebook",V=b(),H=d("button"),M=d("span"),gt(P.$$.fragment),U=b(),W=d("span"),W.textContent="Fortsätt med Apple",et=b(),B=d("p"),B.innerHTML='Genom att logga in godkänner du våra <a href="#terms" class="svelte-1y5fikd">Vilkor</a>',o(i,"type","email"),o(i,"id","email"),o(i,"placeholder","Skriv in din epost"),o(i,"class","svelte-1y5fikd"),o(a,"part","continueButton"),o(a,"class","continue-button svelte-1y5fikd"),o(p,"class","divider svelte-1y5fikd"),o(E,"class","button-text"),o(u,"class","button-content svelte-1y5fikd"),o(_,"class","social-button google svelte-1y5fikd"),o(Z,"class","button-text"),o(q,"class","button-content svelte-1y5fikd"),o(F,"class","social-button facebook svelte-1y5fikd"),o(W,"class","button-text"),o(M,"class","button-content svelte-1y5fikd"),o(H,"class","social-button apple svelte-1y5fikd"),o(s,"class","form-container svelte-1y5fikd"),o(B,"class","terms svelte-1y5fikd"),o(t,"class","registration-wall svelte-1y5fikd")},m(f,C){z(f,t,C),$&&$.m(t,null),c(t,n),x&&x.m(t,null),c(t,l),c(t,s),c(s,i),c(s,r),c(s,a),c(s,h),c(s,p),c(s,y),c(s,_),c(_,u),ct(k,u,null),c(u,g),c(u,E),c(s,S),c(s,F),c(F,q),ct(w,q,null),c(q,K),c(q,Z),c(s,V),c(s,H),c(H,M),ct(P,M,null),c(M,U),c(M,W),c(t,et),c(t,B),N=!0,lt||(ft=[A(a,"click",jt),A(_,"click",jt),A(F,"click",jt),A(H,"click",jt)],lt=!0)},p(f,[C]){I&&I.p&&(!N||C&1)&&$t(I,dt,f,f[0],N?vt(dt,f[0],C,en):kt(f[0]),oe),J&&J.p&&(!N||C&1)&&$t(J,pt,f,f[0],N?vt(pt,f[0],C,tn):kt(f[0]),ie)},i(f){N||(T($,f),T(x,f),T(k.$$.fragment,f),T(w.$$.fragment,f),T(P.$$.fragment,f),N=!0)},o(f){G($,f),G(x,f),G(k.$$.fragment,f),G(w.$$.fragment,f),G(P.$$.fragment,f),N=!1},d(f){f&&j(t),$&&$.d(f),x&&x.d(f),at(k),at(w),at(P),lt=!1,tt(ft)}}}function jt(){console.log("Button clicked")}function on(e,t,n){let{$$slots:l={},$$scope:s}=t;return e.$$set=i=>{"$$scope"in i&&n(0,s=i.$$scope)},[s,l]}class re extends X{constructor(t){super(),Q(this,t,on,sn,Y,{},Xe)}}customElements.define("sesamy-registration-wall",qt(re,{},["title","description"],[],!0));const rn=re;L.Hello=Ie,L.Login=Le,L.Paywall=He,L.RegistrationWall=rn,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sesamy/sesamy-components",
3
3
  "description": "Ahareable web components library with Vite + Svelte",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "type": "module",
6
6
  "module": "dist/lib/sesamy-components.es.js",
7
7
  "main": "dist/lib/sesamy-components.umd.js",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@chromatic-com/storybook": "^1.9.0",
30
+ "@storybook/addon-controls": "^8.3.3",
30
31
  "@storybook/addon-essentials": "^8.3.2",
31
32
  "@storybook/addon-interactions": "^8.3.2",
32
33
  "@storybook/addon-links": "^8.3.2",