Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@plaidev/karte-action-sdk

Package Overview
Dependencies
Maintainers
1
Versions
660
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@plaidev/karte-action-sdk - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

2

dist/index.cjs.js

@@ -1,1 +0,1 @@

"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var v=require("svelte/store"),t=require("svelte/internal"),y=require("svelte");const V=n=>e=>{if(n){const i=n.querySelectorAll("*"),o=Array.from(i).filter(s=>s.tabIndex>=0);let l=o.indexOf(document.activeElement);l===-1&&e.shiftKey&&(l=0),l+=o.length+(e.shiftKey?-1:1),l%=o.length,o[l].focus(),e.preventDefault()}},D=()=>{const n=typeof document!="undefined"&&document.activeElement;n&&(n==null||n.focus())},j=n=>e=>{n[e.key]&&n[e.key](e)},K=n=>n==="top-center"?"top: 0; right: 50%; transform: translate(+50%, 0%);":n==="top-left"?"top: 0; left: 0; transform: translate(0%, 0%);":n==="top-right"?"top: 0; right: 0; transform: translate(0%, 0%);":n==="center-left"?"top: 50%; left: 0; transform: translate(0%, -50%);":n==="center"?"top: 50%; left: 50%; transform: translate(-50%, -50%);":n==="center-right"?"top: 50%; right: 0; transform: translate(0%, -50%);":n==="bottom-left"?"bottom: 0; left: 0; transform: translate(0%, 0%);":n==="bottom-center"?"bottom: 0; left: 50%; transform: translate(-50%, 0%);":n==="bottom-right"?"bottom: 0; right: 0; transform: translate(0%, 0);":n==="none"?"top: 0; bottom: 0; right: 0; left: 0;":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"].reduce((e,i)=>{const o=n.indexOf(i)>-1?"0":"auto";return e+` ${i}: ${o};`},"");function W(n,e){const i=document.querySelector("body"),o={root:null,threshold:1-e,rootMargin:"-100% 0px 100% 0px"},l=new IntersectionObserver(s=>{for(const a of s)a.isIntersecting||n()||l.unobserve(i)},o);return l.observe(i),()=>l&&l.unobserve(i)}function X(n,e){const i=setTimeout(n,e);return()=>i&&clearTimeout(i)}function G(n,e){return new RegExp(`/[0-9]${e}$/`).test(n)}function Y(n){return n.replace(/\r?\n/g,"<br>")}function Z(n=8){return Math.random().toString(32).substring(n)}const q={ALL_ACTION_ID:"KARTE_ALL_ACTION_ID",STATE_EVENT:"KARTE-ACTION-CHANGE-STATE"},I=v.writable({}),R=Z(),z=v.writable("/"),B=v.writable(!1),N=v.writable(0),w=(n,e)=>{var o;const i=v.get(I);(o=i==null?void 0:i.send)==null||o.call(i,n,e)},U=n=>{(n.detail.action_id===R||n.detail.action_id===q.ALL_ACTION_ID)&&z.set(n.detail.to)},x=n=>{window.addEventListener(q.STATE_EVENT,U),B.set(!1),I.set(n!=null?n:{})},$=()=>{window.removeEventListener(q.STATE_EVENT,U)},O=()=>{const n=v.get(I);return n==null?void 0:n.isPreview},H=n=>{!n||n<v.get(N)||N.set(n)},ee=()=>()=>{},te=n=>()=>{w("_message_state_changed",{state:n}),window.dispatchEvent(new CustomEvent(q.STATE_EVENT,{detail:{to:n,action_id:R}}))},ne=(n,e=!0)=>()=>{w("message_click",{url:n}),e?window.open(n):location.href=n},ie=()=>()=>{w("message_close",null),B.set(!0)},le=["BooleanKeyword","NumberKeyword","StringKeyword","Function","Enum","Code","Direction","Url","Image","AnimationStyle","LongText","Length","Color","Alignment","Style"],se={PC:"(\\s*min-width\\s*:\\s*1025px\\s*)",Tablet:"(\\s*min-width\\s*:\\s*897px)\\s+and\\s+(\\s*max-width\\s*:\\s*1024px\\s*)",Mobile:"(\\s*max-width\\s*:\\s*896px\\s*)"},oe=["row","column"],ae=["none","fade","bounce","slide-down","slide-up","slide-left","slide-right"],re=["px","em","rem","vw","fr","%"],ce=["flex-start","center","flex-end"],fe=["flex-start","center","flex-end"],ue=["fill","contain","cover"],me=["repeat","space","round","no-repeat"];function de(n){t.append_styles(n,"svelte-zmz1k7","@import 'https://cdn.skypack.dev/normalize.css';")}class _e extends t.SvelteComponent{constructor(e){super(),t.init(this,e,null,null,t.safe_not_equal,{},de)}}function ge(n){let e,i,o;e=new _e({});const l=n[1].default,s=t.create_slot(l,n,n[0],null);return{c(){t.create_component(e.$$.fragment),i=t.space(),s&&s.c()},m(a,r){t.mount_component(e,a,r),t.insert(a,i,r),s&&s.m(a,r),o=!0},p(a,[r]){s&&s.p&&(!o||r&1)&&t.update_slot_base(s,l,a,a[0],o?t.get_slot_changes(l,a[0],r,null):t.get_all_dirty_from_scope(a[0]),null)},i(a){o||(t.transition_in(e.$$.fragment,a),t.transition_in(s,a),o=!0)},o(a){t.transition_out(e.$$.fragment,a),t.transition_out(s,a),o=!1},d(a){t.destroy_component(e,a),a&&t.detach(i),s&&s.d(a)}}}function he(n,e,i){let{$$slots:o={},$$scope:l}=e;return n.$$set=s=>{"$$scope"in s&&i(0,l=s.$$scope)},[l,o]}class be extends t.SvelteComponent{constructor(e){super(),t.init(this,e,he,ge,t.safe_not_equal,{})}}function M(n){let e;const i=n[3].default,o=t.create_slot(i,n,n[2],null);return{c(){o&&o.c()},m(l,s){o&&o.m(l,s),e=!0},p(l,s){o&&o.p&&(!e||s&4)&&t.update_slot_base(o,i,l,l[2],e?t.get_slot_changes(i,l[2],s,null):t.get_all_dirty_from_scope(l[2]),null)},i(l){e||(t.transition_in(o,l),e=!0)},o(l){t.transition_out(o,l),e=!1},d(l){o&&o.d(l)}}}function ye(n){let e,i,o=n[1]===n[0]&&M(n);return{c(){o&&o.c(),e=t.empty()},m(l,s){o&&o.m(l,s),t.insert(l,e,s),i=!0},p(l,[s]){l[1]===l[0]?o?(o.p(l,s),s&3&&t.transition_in(o,1)):(o=M(l),o.c(),t.transition_in(o,1),o.m(e.parentNode,e)):o&&(t.group_outros(),t.transition_out(o,1,1,()=>{o=null}),t.check_outros())},i(l){i||(t.transition_in(o),i=!0)},o(l){t.transition_out(o),i=!1},d(l){o&&o.d(l),l&&t.detach(e)}}}function ve(n,e,i){let o;t.component_subscribe(n,z,r=>i(1,o=r));let{$$slots:l={},$$scope:s}=e,{path:a}=e;return n.$$set=r=>{"path"in r&&i(0,a=r.path),"$$scope"in r&&i(2,s=r.$$scope)},[a,o,s,l]}class we extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ve,ye,t.safe_not_equal,{path:0})}}function ke(n){t.append_styles(n,"svelte-1h4b6e3",".background.svelte-1h4b6e3{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3)}")}function F(n){let e,i,o;return{c(){e=t.element("div"),t.attr(e,"class","background svelte-1h4b6e3")},m(l,s){t.insert(l,e,s),i||(o=t.listen(e,"click",n[2]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,o()}}}function Se(n){let e,i=n[0]&&F(n);return{c(){i&&i.c(),e=t.empty()},m(o,l){i&&i.m(o,l),t.insert(o,e,l)},p(o,[l]){o[0]?i?i.p(o,l):(i=F(o),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:t.noop,o:t.noop,d(o){i&&i.d(o),o&&t.detach(e)}}}function Ce(n,e,i){let{backgroundOverray:o=!1}=e;const l=y.createEventDispatcher(),s=()=>l("click");return n.$$set=a=>{"backgroundOverray"in a&&i(0,o=a.backgroundOverray)},[o,l,s]}class Te extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Ce,Se,t.safe_not_equal,{backgroundOverray:0},ke)}}function Ee(n){t.append_styles(n,"svelte-sa0cac","@keyframes svelte-sa0cac-fade{0%{opacity:0}100%{opacity:1}}.fade.svelte-sa0cac{animation-name:svelte-sa0cac-fade;animation-duration:1s}@keyframes svelte-sa0cac-bounce{0%{opacity:0;transform:scale(0.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1)}}.bounce.svelte-sa0cac{animation-name:svelte-sa0cac-bounce;animation-duration:1s}@keyframes svelte-sa0cac-slide-down{0%{transform:translate3d(0, -100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-down.svelte-sa0cac{animation-name:svelte-sa0cac-slide-down;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-up{0%{transform:translate3d(0, 100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-up.svelte-sa0cac{animation-name:svelte-sa0cac-slide-up;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-left{0%{transform:translate3d(100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-left.svelte-sa0cac{animation-name:svelte-sa0cac-slide-left;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-right{0%{transform:translate3d(-100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-right.svelte-sa0cac{animation-name:svelte-sa0cac-slide-right;animation-duration:1s;animation-delay:0.1s}")}function Ae(n){let e,i;const o=n[3].default,l=t.create_slot(o,n,n[2],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class",t.null_to_empty(n[0])+" svelte-sa0cac")},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&4)&&t.update_slot_base(l,o,s,s[2],i?t.get_slot_changes(o,s[2],a,null):t.get_all_dirty_from_scope(s[2]),null)},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function Le(n,e,i){let{$$slots:o={},$$scope:l}=e,{animation:s="none"}=e;const a=O()?"none":s;return n.$$set=r=>{"animation"in r&&i(1,s=r.animation),"$$scope"in r&&i(2,l=r.$$scope)},[a,s,l,o]}class Ne extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Le,Ae,t.safe_not_equal,{animation:1},Ee)}}function Oe(n){t.append_styles(n,"svelte-15uvai6",".modal.svelte-15uvai6{position:absolute;box-sizing:border-box}.close.svelte-15uvai6{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all .25s}.close.svelte-15uvai6:hover{transform:rotate(90deg)}")}function P(n){let e,i,o,l,s,a;return{c(){e=t.element("button"),i=t.svg_element("svg"),o=t.svg_element("path"),t.attr(o,"d","M5.78516 4.75L8.73828 1.82422C8.90234 1.66016 8.90234 1.35938 8.73828 1.19531L8.05469 0.511719C7.89062 0.347656 7.58984 0.347656 7.42578 0.511719L4.5 3.46484L1.54688 0.511719C1.38281 0.347656 1.08203 0.347656 0.917969 0.511719L0.234375 1.19531C0.0703125 1.35938 0.0703125 1.66016 0.234375 1.82422L3.1875 4.75L0.234375 7.70312C0.0703125 7.86719 0.0703125 8.16797 0.234375 8.33203L0.917969 9.01562C1.08203 9.17969 1.38281 9.17969 1.54688 9.01562L4.5 6.0625L7.42578 9.01562C7.58984 9.17969 7.89062 9.17969 8.05469 9.01562L8.73828 8.33203C8.90234 8.16797 8.90234 7.86719 8.73828 7.70312L5.78516 4.75Z"),t.attr(o,"fill",n[1]),t.attr(o,"fill-opacity","0.8"),t.attr(i,"width","100%"),t.attr(i,"height","100%"),t.attr(i,"viewBox","0 0 9 10"),t.attr(i,"fill","none"),t.attr(i,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","close svelte-15uvai6"),t.attr(e,"style",l="z-index:"+(n[6]+1)+"; "+n[3])},m(r,m){t.insert(r,e,m),t.append(e,i),t.append(i,o),s||(a=t.listen(e,"click",n[8]),s=!0)},p(r,m){m&2&&t.attr(o,"fill",r[1]),m&72&&l!==(l="z-index:"+(r[6]+1)+"; "+r[3])&&t.attr(e,"style",l)},d(r){r&&t.detach(e),s=!1,a()}}}function qe(n){let e,i,o,l,s,a,r=n[0]&&P(n);const m=n[15].default,c=t.create_slot(m,n,n[14],null);return{c(){e=t.element("div"),r&&r.c(),i=t.space(),c&&c.c(),t.attr(e,"class","modal svelte-15uvai6"),t.attr(e,"role","dialog"),t.attr(e,"aria-modal","true"),t.attr(e,"style",o="position:"+(n[7]?"fixed":"absolute")+"; "+n[5]+" "+n[2])},m(f,g){t.insert(f,e,g),r&&r.m(e,null),t.append(e,i),c&&c.m(e,null),n[16](e),l=!0,s||(a=t.listen(window,"keydown",n[9]),s=!0)},p(f,[g]){f[0]?r?r.p(f,g):(r=P(f),r.c(),r.m(e,i)):r&&(r.d(1),r=null),c&&c.p&&(!l||g&16384)&&t.update_slot_base(c,m,f,f[14],l?t.get_slot_changes(m,f[14],g,null):t.get_all_dirty_from_scope(f[14]),null),(!l||g&36&&o!==(o="position:"+(f[7]?"fixed":"absolute")+"; "+f[5]+" "+f[2]))&&t.attr(e,"style",o)},i(f){l||(t.transition_in(c,f),l=!0)},o(f){t.transition_out(c,f),l=!1},d(f){f&&t.detach(e),r&&r.d(),c&&c.d(f),n[16](null),s=!1,a()}}}function Ie(n,e,i){let o,l;t.component_subscribe(n,N,_=>i(6,l=_));let{$$slots:s={},$$scope:a}=e,{closable:r=!0}=e,{closeButtonColor:m="#000000"}=e,{eventName:c=""}=e,{eventValue:f=null}=e,{position:g="center"}=e;const h=O()?"center":g;let{fixed:d=!1}=e;const T=O()?!1:d;let{_style:k=""}=e,{_closeStyle:S=""}=e;const E=y.createEventDispatcher(),C=()=>{c&&w(c,f),E("close")};let b=null;const A=j({Escape:C,Tab:V(b)});y.onDestroy(()=>D());function L(_){t.binding_callbacks[_?"unshift":"push"](()=>{b=_,i(4,b)})}return n.$$set=_=>{"closable"in _&&i(0,r=_.closable),"closeButtonColor"in _&&i(1,m=_.closeButtonColor),"eventName"in _&&i(10,c=_.eventName),"eventValue"in _&&i(11,f=_.eventValue),"position"in _&&i(12,g=_.position),"fixed"in _&&i(13,d=_.fixed),"_style"in _&&i(2,k=_._style),"_closeStyle"in _&&i(3,S=_._closeStyle),"$$scope"in _&&i(14,a=_.$$scope)},i(5,o=K(h)),[r,m,k,S,b,o,l,T,C,A,c,f,g,d,a,s,L]}class J extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Ie,qe,t.safe_not_equal,{closable:0,closeButtonColor:1,eventName:10,eventValue:11,position:12,fixed:13,_style:2,_closeStyle:3},Oe)}}function ze(n){let e,i;const o=n[8].default,l=t.create_slot(o,n,n[7],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class","grid"),t.attr(e,"style",n[0])},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&128)&&t.update_slot_base(l,o,s,s[7],i?t.get_slot_changes(o,s[7],a,null):t.get_all_dirty_from_scope(s[7]),null),(!i||a&1)&&t.attr(e,"style",s[0])},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function Be(n,e,i){let o,{$$slots:l={},$$scope:s}=e,{width:a="512px"}=e,{height:r="256px"}=e,{rows:m}=e,{columns:c}=e,{gap:f="0px"}=e,{background:g="transparent"}=e;const h=d=>typeof d=="number"?`repeat(${d}, 1fr)`:d.join(" ");return n.$$set=d=>{"width"in d&&i(1,a=d.width),"height"in d&&i(2,r=d.height),"rows"in d&&i(3,m=d.rows),"columns"in d&&i(4,c=d.columns),"gap"in d&&i(5,f=d.gap),"background"in d&&i(6,g=d.background),"$$scope"in d&&i(7,s=d.$$scope)},n.$$.update=()=>{n.$$.dirty&126&&i(0,o=["display: grid",`grid-template-rows: ${h(m)}`,`grid-template-columns: ${h(c)}`,`gap: ${f}`,`background: ${g}`,`width: ${a}`,`height: ${r};`].join(";"))},[o,a,r,m,c,f,g,s,l]}class Me extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Be,ze,t.safe_not_equal,{width:1,height:2,rows:3,columns:4,gap:5,background:6})}}function Fe(n){let e;const i=n[18].default,o=t.create_slot(i,n,n[19],null);return{c(){o&&o.c()},m(l,s){o&&o.m(l,s),e=!0},p(l,s){o&&o.p&&(!e||s&524288)&&t.update_slot_base(o,i,l,l[19],e?t.get_slot_changes(i,l[19],s,null):t.get_all_dirty_from_scope(l[19]),null)},i(l){e||(t.transition_in(o,l),e=!0)},o(l){t.transition_out(o,l),e=!1},d(l){o&&o.d(l)}}}function Pe(n){let e,i;return e=new Me({props:{width:n[9],height:n[10],rows:n[11],columns:n[12],gap:n[13],background:n[14],$$slots:{default:[Fe]},$$scope:{ctx:n}}}),{c(){t.create_component(e.$$.fragment)},m(o,l){t.mount_component(e,o,l),i=!0},p(o,l){const s={};l&512&&(s.width=o[9]),l&1024&&(s.height=o[10]),l&2048&&(s.rows=o[11]),l&4096&&(s.columns=o[12]),l&8192&&(s.gap=o[13]),l&16384&&(s.background=o[14]),l&524288&&(s.$$scope={dirty:l,ctx:o}),e.$set(s)},i(o){i||(t.transition_in(e.$$.fragment,o),i=!0)},o(o){t.transition_out(e.$$.fragment,o),i=!1},d(o){t.destroy_component(e,o)}}}function Ve(n){let e,i;return e=new J({props:{closable:n[3],closeButtonColor:n[4],_closeStyle:n[8],position:n[5],fixed:n[6],_style:n[7],$$slots:{default:[Pe]},$$scope:{ctx:n}}}),e.$on("close",n[15]),{c(){t.create_component(e.$$.fragment)},m(o,l){t.mount_component(e,o,l),i=!0},p(o,l){const s={};l&8&&(s.closable=o[3]),l&16&&(s.closeButtonColor=o[4]),l&256&&(s._closeStyle=o[8]),l&32&&(s.position=o[5]),l&64&&(s.fixed=o[6]),l&128&&(s._style=o[7]),l&556544&&(s.$$scope={dirty:l,ctx:o}),e.$set(s)},i(o){i||(t.transition_in(e.$$.fragment,o),i=!0)},o(o){t.transition_out(e.$$.fragment,o),i=!1},d(o){t.destroy_component(e,o)}}}function De(n){let e,i,o,l;return e=new Te({props:{backgroundOverray:n[2]}}),e.$on("click",n[15]),o=new Ne({props:{animation:n[1],$$slots:{default:[Ve]},$$scope:{ctx:n}}}),{c(){t.create_component(e.$$.fragment),i=t.space(),t.create_component(o.$$.fragment)},m(s,a){t.mount_component(e,s,a),t.insert(s,i,a),t.mount_component(o,s,a),l=!0},p(s,a){const r={};a&4&&(r.backgroundOverray=s[2]),e.$set(r);const m={};a&2&&(m.animation=s[1]),a&557048&&(m.$$scope={dirty:a,ctx:s}),o.$set(m)},i(s){l||(t.transition_in(e.$$.fragment,s),t.transition_in(o.$$.fragment,s),l=!0)},o(s){t.transition_out(e.$$.fragment,s),t.transition_out(o.$$.fragment,s),l=!1},d(s){t.destroy_component(e,s),s&&t.detach(i),t.destroy_component(o,s)}}}function je(n){let e,i;return e=new we({props:{path:n[0],$$slots:{default:[De]},$$scope:{ctx:n}}}),{c(){t.create_component(e.$$.fragment)},m(o,l){t.mount_component(e,o,l),i=!0},p(o,[l]){const s={};l&1&&(s.path=o[0]),l&557054&&(s.$$scope={dirty:l,ctx:o}),e.$set(s)},i(o){i||(t.transition_in(e.$$.fragment,o),i=!0)},o(o){t.transition_out(e.$$.fragment,o),i=!1},d(o){t.destroy_component(e,o)}}}function Ke(n,e,i){let{$$slots:o={},$$scope:l}=e,{path:s}=e,{animation:a="none"}=e,{backgroundOverray:r=!1}=e,{closable:m=!0}=e,{closeButtonColor:c="#000000"}=e,{eventName:f=""}=e,{eventValue:g=null}=e,{position:h="center"}=e,{fixed:d=!1}=e,{_modalStyle:T=""}=e,{_closeStyle:k=""}=e,{width:S="512px"}=e,{height:E="256px"}=e,{rows:C}=e,{columns:b}=e,{gap:A="0px"}=e,{background:L="transparent"}=e;const _=y.createEventDispatcher(),p=()=>{f&&w(f,g),_("close")};return n.$$set=u=>{"path"in u&&i(0,s=u.path),"animation"in u&&i(1,a=u.animation),"backgroundOverray"in u&&i(2,r=u.backgroundOverray),"closable"in u&&i(3,m=u.closable),"closeButtonColor"in u&&i(4,c=u.closeButtonColor),"eventName"in u&&i(16,f=u.eventName),"eventValue"in u&&i(17,g=u.eventValue),"position"in u&&i(5,h=u.position),"fixed"in u&&i(6,d=u.fixed),"_modalStyle"in u&&i(7,T=u._modalStyle),"_closeStyle"in u&&i(8,k=u._closeStyle),"width"in u&&i(9,S=u.width),"height"in u&&i(10,E=u.height),"rows"in u&&i(11,C=u.rows),"columns"in u&&i(12,b=u.columns),"gap"in u&&i(13,A=u.gap),"background"in u&&i(14,L=u.background),"$$scope"in u&&i(19,l=u.$$scope)},[s,a,r,m,c,h,d,T,k,S,E,C,b,A,L,p,f,g,o,l]}class Ge extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Ke,je,t.safe_not_equal,{path:0,animation:1,backgroundOverray:2,closable:3,closeButtonColor:4,eventName:16,eventValue:17,position:5,fixed:6,_modalStyle:7,_closeStyle:8,width:9,height:10,rows:11,columns:12,gap:13,background:14})}}function Ze(n){t.append_styles(n,"svelte-g0rfgr",".grid-item.svelte-g0rfgr{word-break:break-all}")}function Re(n){let e,i;const o=n[8].default,l=t.create_slot(o,n,n[7],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class","grid-item svelte-g0rfgr"),t.attr(e,"style",n[0])},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&128)&&t.update_slot_base(l,o,s,s[7],i?t.get_slot_changes(o,s[7],a,null):t.get_all_dirty_from_scope(s[7]),null),(!i||a&1)&&t.attr(e,"style",s[0])},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function Ue(n,e,i){let o,{$$slots:l={},$$scope:s}=e,{x1:a}=e,{x2:r}=e,{y1:m}=e,{y2:c}=e,{z:f}=e,{background:g="transparent"}=e;return y.onMount(()=>{H(f)}),n.$$set=h=>{"x1"in h&&i(1,a=h.x1),"x2"in h&&i(2,r=h.x2),"y1"in h&&i(3,m=h.y1),"y2"in h&&i(4,c=h.y2),"z"in h&&i(5,f=h.z),"background"in h&&i(6,g=h.background),"$$scope"in h&&i(7,s=h.$$scope)},n.$$.update=()=>{n.$$.dirty&126&&i(0,o=[`grid-area: ${m+1} / ${a+1} / ${c+2} / ${r+2}`,`z-index: ${f}`,`background: ${g}`,"display: grid","place-items: center"].join(";"))},[o,a,r,m,c,f,g,s,l]}class He extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Ue,Re,t.safe_not_equal,{x1:1,x2:2,y1:3,y2:4,z:5,background:6},Ze)}}function Je(n){t.append_styles(n,"svelte-1e71ejc",".flex.svelte-1e71ejc{display:flex}")}function Qe(n){let e,i,o;const l=n[5].default,s=t.create_slot(l,n,n[4],null);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","flex svelte-1e71ejc"),t.attr(e,"style",i="width:"+n[1]+"; height:"+n[2]+"; flex-direction:"+n[0]+"; "+n[3])},m(a,r){t.insert(a,e,r),s&&s.m(e,null),o=!0},p(a,[r]){s&&s.p&&(!o||r&16)&&t.update_slot_base(s,l,a,a[4],o?t.get_slot_changes(l,a[4],r,null):t.get_all_dirty_from_scope(a[4]),null),(!o||r&15&&i!==(i="width:"+a[1]+"; height:"+a[2]+"; flex-direction:"+a[0]+"; "+a[3]))&&t.attr(e,"style",i)},i(a){o||(t.transition_in(s,a),o=!0)},o(a){t.transition_out(s,a),o=!1},d(a){a&&t.detach(e),s&&s.d(a)}}}const Q="action-sdk:flex";function pe(){return y.getContext(Q)}function We(n,e,i){let{$$slots:o={},$$scope:l}=e,{direction:s="row"}=e,{width:a="100%"}=e,{height:r="100%"}=e,{_style:m=""}=e;return y.setContext(Q,{direction:s}),n.$$set=c=>{"direction"in c&&i(0,s=c.direction),"width"in c&&i(1,a=c.width),"height"in c&&i(2,r=c.height),"_style"in c&&i(3,m=c._style),"$$scope"in c&&i(4,l=c.$$scope)},[s,a,r,m,l,o]}class Xe extends t.SvelteComponent{constructor(e){super(),t.init(this,e,We,Qe,t.safe_not_equal,{direction:0,width:1,height:2,_style:3},Je)}}function Ye(n){t.append_styles(n,"svelte-1p0bk1x",".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}")}function xe(n){let e,i;const o=n[4].default,l=t.create_slot(o,n,n[3],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class","flex-item svelte-1p0bk1x"),t.attr(e,"style",n[0])},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&8)&&t.update_slot_base(l,o,s,s[3],i?t.get_slot_changes(o,s[3],a,null):t.get_all_dirty_from_scope(s[3]),null),(!i||a&1)&&t.attr(e,"style",s[0])},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function $e(n,e,i){let{$$slots:o={},$$scope:l}=e,{length:s}=e,{_style:a=""}=e;const r=pe();let m;return n.$$set=c=>{"length"in c&&i(1,s=c.length),"_style"in c&&i(2,a=c._style),"$$scope"in c&&i(3,l=c.$$scope)},n.$$.update=()=>{if(n.$$.dirty&6){let c="";G(s,"px")?r.direction==="row"?c=`width: ${s}; height: 100%;`:r.direction==="column"&&(c=`width: 100%; height: ${s};`):r.direction==="row"?c=`height: 100%; flex-grow: ${s}; flex-basis: 0;`:r.direction==="column"&&(c=`width: 100%; flex-grow: ${s}; flex-basis: 0;`),i(0,m=c+a)}},[m,s,a,l,o]}class et extends t.SvelteComponent{constructor(e){super(),t.init(this,e,$e,xe,t.safe_not_equal,{length:1,_style:2},Ye)}}exports.Alignments=fe;exports.AnimationStyles=ae;exports.Directions=oe;exports.Flex=Xe;exports.FlexItem=et;exports.GridItem=He;exports.GridModalState=Ge;exports.Justifies=ce;exports.LengthUnits=re;exports.MediaQueries=se;exports.Modal=J;exports.ObjectFits=ue;exports.PropTypes=le;exports.Repeats=me;exports.State=be;exports.closeApp=ie;exports.closed=B;exports.finalize=$;exports.getPositionStyle=K;exports.handleFocus=V;exports.handleKeydown=j;exports.hasSuffix=G;exports.initialize=x;exports.isPreview=O;exports.linkTo=ne;exports.maximumZindex=N;exports.moveTo=te;exports.none=ee;exports.onScroll=W;exports.onTime=X;exports.randStr=Z;exports.send_event=w;exports.setMiximumZindex=H;exports.setPreviousFocus=D;exports.state=z;exports.toBr=Y;
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var v=require("svelte/store"),t=require("svelte/internal"),y=require("svelte");const V=n=>e=>{if(n){const i=n.querySelectorAll("*"),o=Array.from(i).filter(s=>s.tabIndex>=0);let l=o.indexOf(document.activeElement);l===-1&&e.shiftKey&&(l=0),l+=o.length+(e.shiftKey?-1:1),l%=o.length,o[l].focus(),e.preventDefault()}},D=()=>{const n=typeof document!="undefined"&&document.activeElement;n&&(n==null||n.focus())},j=n=>e=>{n[e.key]&&n[e.key](e)},K=n=>n==="top-center"?"top: 0; right: 50%; transform: translate(+50%, 0%);":n==="top-left"?"top: 0; left: 0; transform: translate(0%, 0%);":n==="top-right"?"top: 0; right: 0; transform: translate(0%, 0%);":n==="center-left"?"top: 50%; left: 0; transform: translate(0%, -50%);":n==="center"?"top: 50%; left: 50%; transform: translate(-50%, -50%);":n==="center-right"?"top: 50%; right: 0; transform: translate(0%, -50%);":n==="bottom-left"?"bottom: 0; left: 0; transform: translate(0%, 0%);":n==="bottom-center"?"bottom: 0; left: 50%; transform: translate(-50%, 0%);":n==="bottom-right"?"bottom: 0; right: 0; transform: translate(0%, 0);":n==="none"?"top: 0; bottom: 0; right: 0; left: 0;":["top-left","top-center","top-right","center-left","center","center-right","bottom-left","bottom-center","bottom-right"].reduce((e,i)=>{const o=n.indexOf(i)>-1?"0":"auto";return e+` ${i}: ${o};`},"");function Y(n,e){const i=document.querySelector("body"),o={root:null,threshold:1-e,rootMargin:"-100% 0px 100% 0px"},l=new IntersectionObserver(s=>{for(const a of s)a.isIntersecting||n()||l.unobserve(i)},o);return l.observe(i),()=>l&&l.unobserve(i)}function p(n,e){const i=setTimeout(n,e);return()=>i&&clearTimeout(i)}function G(n,e){return new RegExp(`/[0-9]${e}$/`).test(n)}function x(n){return n.replace(/\r?\n/g,"<br>")}function Z(n=8){return Math.random().toString(32).substring(n)}const q={ALL_ACTION_ID:"KARTE_ALL_ACTION_ID",STATE_EVENT:"KARTE-ACTION-CHANGE-STATE"},I=v.writable({}),R=Z(),z=v.writable("/"),B=v.writable(!1),N=v.writable(0),w=(n,e)=>{var o;const i=v.get(I);(o=i==null?void 0:i.send)==null||o.call(i,n,e)},U=n=>{(n.detail.action_id===R||n.detail.action_id===q.ALL_ACTION_ID)&&z.set(n.detail.to)},$=n=>{window.addEventListener(q.STATE_EVENT,U),B.set(!1),I.set(n!=null?n:{})},ee=()=>{window.removeEventListener(q.STATE_EVENT,U)},O=()=>{const n=v.get(I);return n==null?void 0:n.isPreview},H=n=>{!n||n<v.get(N)||N.set(n)},te=()=>()=>{},ne=n=>()=>{w("_message_state_changed",{state:n}),window.dispatchEvent(new CustomEvent(q.STATE_EVENT,{detail:{to:n,action_id:R}}))},ie=(n,e=!0)=>()=>{w("message_click",{url:n}),e?window.open(n):location.href=n},le=()=>()=>{w("message_close",null),B.set(!0)},se=["BooleanKeyword","NumberKeyword","StringKeyword","Function","Enum","Code","Direction","Url","Image","AnimationStyle","LongText","Length","Color","Alignment","Style"],oe={PC:"(\\s*min-width\\s*:\\s*1025px\\s*)",Tablet:"(\\s*min-width\\s*:\\s*897px)\\s+and\\s+(\\s*max-width\\s*:\\s*1024px\\s*)",Mobile:"(\\s*max-width\\s*:\\s*896px\\s*)"},ae=["row","column"],re=["none","fade","bounce","slide-down","slide-up","slide-left","slide-right"],ce=["px","em","rem","vw","fr","%"],fe=["flex-start","center","flex-end"],ue=["flex-start","center","flex-end"],me=["fill","contain","cover"],_e=["repeat","space","round","no-repeat"];function de(n){t.append_styles(n,"svelte-zmz1k7","@import 'https://cdn.skypack.dev/normalize.css';")}class ge extends t.SvelteComponent{constructor(e){super(),t.init(this,e,null,null,t.safe_not_equal,{},de)}}function he(n){let e,i,o;e=new ge({});const l=n[1].default,s=t.create_slot(l,n,n[0],null);return{c(){t.create_component(e.$$.fragment),i=t.space(),s&&s.c()},m(a,r){t.mount_component(e,a,r),t.insert(a,i,r),s&&s.m(a,r),o=!0},p(a,[r]){s&&s.p&&(!o||r&1)&&t.update_slot_base(s,l,a,a[0],o?t.get_slot_changes(l,a[0],r,null):t.get_all_dirty_from_scope(a[0]),null)},i(a){o||(t.transition_in(e.$$.fragment,a),t.transition_in(s,a),o=!0)},o(a){t.transition_out(e.$$.fragment,a),t.transition_out(s,a),o=!1},d(a){t.destroy_component(e,a),a&&t.detach(i),s&&s.d(a)}}}function be(n,e,i){let{$$slots:o={},$$scope:l}=e;return n.$$set=s=>{"$$scope"in s&&i(0,l=s.$$scope)},[l,o]}class ye extends t.SvelteComponent{constructor(e){super(),t.init(this,e,be,he,t.safe_not_equal,{})}}function M(n){let e;const i=n[3].default,o=t.create_slot(i,n,n[2],null);return{c(){o&&o.c()},m(l,s){o&&o.m(l,s),e=!0},p(l,s){o&&o.p&&(!e||s&4)&&t.update_slot_base(o,i,l,l[2],e?t.get_slot_changes(i,l[2],s,null):t.get_all_dirty_from_scope(l[2]),null)},i(l){e||(t.transition_in(o,l),e=!0)},o(l){t.transition_out(o,l),e=!1},d(l){o&&o.d(l)}}}function ve(n){let e,i,o=n[1]===n[0]&&M(n);return{c(){o&&o.c(),e=t.empty()},m(l,s){o&&o.m(l,s),t.insert(l,e,s),i=!0},p(l,[s]){l[1]===l[0]?o?(o.p(l,s),s&3&&t.transition_in(o,1)):(o=M(l),o.c(),t.transition_in(o,1),o.m(e.parentNode,e)):o&&(t.group_outros(),t.transition_out(o,1,1,()=>{o=null}),t.check_outros())},i(l){i||(t.transition_in(o),i=!0)},o(l){t.transition_out(o),i=!1},d(l){o&&o.d(l),l&&t.detach(e)}}}function we(n,e,i){let o;t.component_subscribe(n,z,r=>i(1,o=r));let{$$slots:l={},$$scope:s}=e,{path:a}=e;return n.$$set=r=>{"path"in r&&i(0,a=r.path),"$$scope"in r&&i(2,s=r.$$scope)},[a,o,s,l]}class ke extends t.SvelteComponent{constructor(e){super(),t.init(this,e,we,ve,t.safe_not_equal,{path:0})}}function Se(n){t.append_styles(n,"svelte-1h4b6e3",".background.svelte-1h4b6e3{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.3)}")}function F(n){let e,i,o;return{c(){e=t.element("div"),t.attr(e,"class","background svelte-1h4b6e3")},m(l,s){t.insert(l,e,s),i||(o=t.listen(e,"click",n[2]),i=!0)},p:t.noop,d(l){l&&t.detach(e),i=!1,o()}}}function Ce(n){let e,i=n[0]&&F(n);return{c(){i&&i.c(),e=t.empty()},m(o,l){i&&i.m(o,l),t.insert(o,e,l)},p(o,[l]){o[0]?i?i.p(o,l):(i=F(o),i.c(),i.m(e.parentNode,e)):i&&(i.d(1),i=null)},i:t.noop,o:t.noop,d(o){i&&i.d(o),o&&t.detach(e)}}}function Te(n,e,i){let{backgroundOverray:o=!1}=e;const l=y.createEventDispatcher(),s=()=>l("click");return n.$$set=a=>{"backgroundOverray"in a&&i(0,o=a.backgroundOverray)},[o,l,s]}class Ee extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Te,Ce,t.safe_not_equal,{backgroundOverray:0},Se)}}function Ae(n){t.append_styles(n,"svelte-sa0cac","@keyframes svelte-sa0cac-fade{0%{opacity:0}100%{opacity:1}}.fade.svelte-sa0cac{animation-name:svelte-sa0cac-fade;animation-duration:1s}@keyframes svelte-sa0cac-bounce{0%{opacity:0;transform:scale(0.3)}50%{opacity:1;transform:scale(1.05)}70%{transform:scale(0.9)}100%{transform:scale(1)}}.bounce.svelte-sa0cac{animation-name:svelte-sa0cac-bounce;animation-duration:1s}@keyframes svelte-sa0cac-slide-down{0%{transform:translate3d(0, -100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-down.svelte-sa0cac{animation-name:svelte-sa0cac-slide-down;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-up{0%{transform:translate3d(0, 100%, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-up.svelte-sa0cac{animation-name:svelte-sa0cac-slide-up;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-left{0%{transform:translate3d(100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-left.svelte-sa0cac{animation-name:svelte-sa0cac-slide-left;animation-duration:1s;animation-delay:0.1s}@keyframes svelte-sa0cac-slide-right{0%{transform:translate3d(-100%, 0, 0);visibility:visible}100%{transform:translate3d(0, 0, 0)}}.slide-right.svelte-sa0cac{animation-name:svelte-sa0cac-slide-right;animation-duration:1s;animation-delay:0.1s}")}function Le(n){let e,i;const o=n[3].default,l=t.create_slot(o,n,n[2],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class",t.null_to_empty(n[0])+" svelte-sa0cac")},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&4)&&t.update_slot_base(l,o,s,s[2],i?t.get_slot_changes(o,s[2],a,null):t.get_all_dirty_from_scope(s[2]),null)},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function Ne(n,e,i){let{$$slots:o={},$$scope:l}=e,{animation:s="none"}=e;const a=O()?"none":s;return n.$$set=r=>{"animation"in r&&i(1,s=r.animation),"$$scope"in r&&i(2,l=r.$$scope)},[a,s,l,o]}class Oe extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Ne,Le,t.safe_not_equal,{animation:1},Ae)}}function qe(n){t.append_styles(n,"svelte-15uvai6",".modal.svelte-15uvai6{position:absolute;box-sizing:border-box}.close.svelte-15uvai6{position:absolute;display:flex;justify-content:center;align-items:center;background-color:transparent;border:none;cursor:pointer;padding:0;transition:all .25s}.close.svelte-15uvai6:hover{transform:rotate(90deg)}")}function P(n){let e,i,o,l,s,a;return{c(){e=t.element("button"),i=t.svg_element("svg"),o=t.svg_element("path"),t.attr(o,"d","M5.78516 4.75L8.73828 1.82422C8.90234 1.66016 8.90234 1.35938 8.73828 1.19531L8.05469 0.511719C7.89062 0.347656 7.58984 0.347656 7.42578 0.511719L4.5 3.46484L1.54688 0.511719C1.38281 0.347656 1.08203 0.347656 0.917969 0.511719L0.234375 1.19531C0.0703125 1.35938 0.0703125 1.66016 0.234375 1.82422L3.1875 4.75L0.234375 7.70312C0.0703125 7.86719 0.0703125 8.16797 0.234375 8.33203L0.917969 9.01562C1.08203 9.17969 1.38281 9.17969 1.54688 9.01562L4.5 6.0625L7.42578 9.01562C7.58984 9.17969 7.89062 9.17969 8.05469 9.01562L8.73828 8.33203C8.90234 8.16797 8.90234 7.86719 8.73828 7.70312L5.78516 4.75Z"),t.attr(o,"fill",n[1]),t.attr(o,"fill-opacity","0.8"),t.attr(i,"width","100%"),t.attr(i,"height","100%"),t.attr(i,"viewBox","0 0 9 10"),t.attr(i,"fill","none"),t.attr(i,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","close svelte-15uvai6"),t.attr(e,"style",l="z-index:"+(n[6]+1)+"; "+n[3])},m(r,m){t.insert(r,e,m),t.append(e,i),t.append(i,o),s||(a=t.listen(e,"click",n[8]),s=!0)},p(r,m){m&2&&t.attr(o,"fill",r[1]),m&72&&l!==(l="z-index:"+(r[6]+1)+"; "+r[3])&&t.attr(e,"style",l)},d(r){r&&t.detach(e),s=!1,a()}}}function Ie(n){let e,i,o,l,s,a,r=n[0]&&P(n);const m=n[15].default,c=t.create_slot(m,n,n[14],null);return{c(){e=t.element("div"),r&&r.c(),i=t.space(),c&&c.c(),t.attr(e,"class","modal svelte-15uvai6"),t.attr(e,"role","dialog"),t.attr(e,"aria-modal","true"),t.attr(e,"style",o="position:"+(n[7]?"fixed":"absolute")+"; "+n[5]+" "+n[2])},m(u,g){t.insert(u,e,g),r&&r.m(e,null),t.append(e,i),c&&c.m(e,null),n[16](e),l=!0,s||(a=t.listen(window,"keydown",n[9]),s=!0)},p(u,[g]){u[0]?r?r.p(u,g):(r=P(u),r.c(),r.m(e,i)):r&&(r.d(1),r=null),c&&c.p&&(!l||g&16384)&&t.update_slot_base(c,m,u,u[14],l?t.get_slot_changes(m,u[14],g,null):t.get_all_dirty_from_scope(u[14]),null),(!l||g&36&&o!==(o="position:"+(u[7]?"fixed":"absolute")+"; "+u[5]+" "+u[2]))&&t.attr(e,"style",o)},i(u){l||(t.transition_in(c,u),l=!0)},o(u){t.transition_out(c,u),l=!1},d(u){u&&t.detach(e),r&&r.d(),c&&c.d(u),n[16](null),s=!1,a()}}}function ze(n,e,i){let o,l;t.component_subscribe(n,N,_=>i(6,l=_));let{$$slots:s={},$$scope:a}=e,{closable:r=!0}=e,{closeButtonColor:m="#000000"}=e,{eventName:c=""}=e,{eventValue:u=null}=e,{position:g="center"}=e;const h=O()?"center":g;let{fixed:d=!1}=e;const T=O()?!1:d;let{_style:k=""}=e,{_closeStyle:S=""}=e;const E=y.createEventDispatcher(),C=()=>{c&&w(c,u),E("close")};let b=null;const A=j({Escape:C,Tab:V(b)});y.onDestroy(()=>D());function L(_){t.binding_callbacks[_?"unshift":"push"](()=>{b=_,i(4,b)})}return n.$$set=_=>{"closable"in _&&i(0,r=_.closable),"closeButtonColor"in _&&i(1,m=_.closeButtonColor),"eventName"in _&&i(10,c=_.eventName),"eventValue"in _&&i(11,u=_.eventValue),"position"in _&&i(12,g=_.position),"fixed"in _&&i(13,d=_.fixed),"_style"in _&&i(2,k=_._style),"_closeStyle"in _&&i(3,S=_._closeStyle),"$$scope"in _&&i(14,a=_.$$scope)},i(5,o=K(h)),[r,m,k,S,b,o,l,T,C,A,c,u,g,d,a,s,L]}class J extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ze,Ie,t.safe_not_equal,{closable:0,closeButtonColor:1,eventName:10,eventValue:11,position:12,fixed:13,_style:2,_closeStyle:3},qe)}}function Be(n){let e,i;const o=n[8].default,l=t.create_slot(o,n,n[7],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class","grid"),t.attr(e,"style",n[0])},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&128)&&t.update_slot_base(l,o,s,s[7],i?t.get_slot_changes(o,s[7],a,null):t.get_all_dirty_from_scope(s[7]),null),(!i||a&1)&&t.attr(e,"style",s[0])},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function Me(n,e,i){let o,{$$slots:l={},$$scope:s}=e,{width:a="512px"}=e,{height:r="256px"}=e,{rows:m}=e,{columns:c}=e,{gap:u="0px"}=e,{background:g="transparent"}=e;const h=d=>typeof d=="number"?`repeat(${d}, 1fr)`:d.join(" ");return n.$$set=d=>{"width"in d&&i(1,a=d.width),"height"in d&&i(2,r=d.height),"rows"in d&&i(3,m=d.rows),"columns"in d&&i(4,c=d.columns),"gap"in d&&i(5,u=d.gap),"background"in d&&i(6,g=d.background),"$$scope"in d&&i(7,s=d.$$scope)},n.$$.update=()=>{n.$$.dirty&126&&i(0,o=["display: grid",`grid-template-rows: ${h(m)}`,`grid-template-columns: ${h(c)}`,`gap: ${u}`,`background: ${g}`,`width: ${a}`,`height: ${r};`].join(";"))},[o,a,r,m,c,u,g,s,l]}class Fe extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Me,Be,t.safe_not_equal,{width:1,height:2,rows:3,columns:4,gap:5,background:6})}}function Pe(n){let e;const i=n[19].default,o=t.create_slot(i,n,n[20],null);return{c(){o&&o.c()},m(l,s){o&&o.m(l,s),e=!0},p(l,s){o&&o.p&&(!e||s&1048576)&&t.update_slot_base(o,i,l,l[20],e?t.get_slot_changes(i,l[20],s,null):t.get_all_dirty_from_scope(l[20]),null)},i(l){e||(t.transition_in(o,l),e=!0)},o(l){t.transition_out(o,l),e=!1},d(l){o&&o.d(l)}}}function Ve(n){let e,i;return e=new Fe({props:{width:n[9],height:n[10],rows:n[11],columns:n[12],gap:n[13],background:n[14],$$slots:{default:[Pe]},$$scope:{ctx:n}}}),{c(){t.create_component(e.$$.fragment)},m(o,l){t.mount_component(e,o,l),i=!0},p(o,l){const s={};l&512&&(s.width=o[9]),l&1024&&(s.height=o[10]),l&2048&&(s.rows=o[11]),l&4096&&(s.columns=o[12]),l&8192&&(s.gap=o[13]),l&16384&&(s.background=o[14]),l&1048576&&(s.$$scope={dirty:l,ctx:o}),e.$set(s)},i(o){i||(t.transition_in(e.$$.fragment,o),i=!0)},o(o){t.transition_out(e.$$.fragment,o),i=!1},d(o){t.destroy_component(e,o)}}}function De(n){let e,i;return e=new J({props:{closable:n[3],closeButtonColor:n[4],_closeStyle:n[8],position:n[5],fixed:n[6],_style:n[7],$$slots:{default:[Ve]},$$scope:{ctx:n}}}),e.$on("close",n[15]),{c(){t.create_component(e.$$.fragment)},m(o,l){t.mount_component(e,o,l),i=!0},p(o,l){const s={};l&8&&(s.closable=o[3]),l&16&&(s.closeButtonColor=o[4]),l&256&&(s._closeStyle=o[8]),l&32&&(s.position=o[5]),l&64&&(s.fixed=o[6]),l&128&&(s._style=o[7]),l&1080832&&(s.$$scope={dirty:l,ctx:o}),e.$set(s)},i(o){i||(t.transition_in(e.$$.fragment,o),i=!0)},o(o){t.transition_out(e.$$.fragment,o),i=!1},d(o){t.destroy_component(e,o)}}}function je(n){let e,i,o,l;return e=new Ee({props:{backgroundOverray:n[2]}}),e.$on("click",n[15]),o=new Oe({props:{animation:n[1],$$slots:{default:[De]},$$scope:{ctx:n}}}),{c(){t.create_component(e.$$.fragment),i=t.space(),t.create_component(o.$$.fragment)},m(s,a){t.mount_component(e,s,a),t.insert(s,i,a),t.mount_component(o,s,a),l=!0},p(s,a){const r={};a&4&&(r.backgroundOverray=s[2]),e.$set(r);const m={};a&2&&(m.animation=s[1]),a&1081336&&(m.$$scope={dirty:a,ctx:s}),o.$set(m)},i(s){l||(t.transition_in(e.$$.fragment,s),t.transition_in(o.$$.fragment,s),l=!0)},o(s){t.transition_out(e.$$.fragment,s),t.transition_out(o.$$.fragment,s),l=!1},d(s){t.destroy_component(e,s),s&&t.detach(i),t.destroy_component(o,s)}}}function Ke(n){let e,i;return e=new ke({props:{path:n[0],$$slots:{default:[je]},$$scope:{ctx:n}}}),{c(){t.create_component(e.$$.fragment)},m(o,l){t.mount_component(e,o,l),i=!0},p(o,[l]){const s={};l&1&&(s.path=o[0]),l&1081342&&(s.$$scope={dirty:l,ctx:o}),e.$set(s)},i(o){i||(t.transition_in(e.$$.fragment,o),i=!0)},o(o){t.transition_out(e.$$.fragment,o),i=!1},d(o){t.destroy_component(e,o)}}}function Ge(n,e,i){let{$$slots:o={},$$scope:l}=e,{path:s}=e,{name:a}=e,{animation:r="none"}=e,{backgroundOverray:m=!1}=e,{closable:c=!0}=e,{closeButtonColor:u="#000000"}=e,{eventName:g=""}=e,{eventValue:h=null}=e,{position:d="center"}=e,{fixed:T=!1}=e,{_modalStyle:k=""}=e,{_closeStyle:S=""}=e,{width:E="512px"}=e,{height:C="256px"}=e,{rows:b}=e,{columns:A}=e,{gap:L="0px"}=e,{background:_="transparent"}=e;const W=y.createEventDispatcher(),X=()=>{g&&w(g,h),W("close")};return n.$$set=f=>{"path"in f&&i(0,s=f.path),"name"in f&&i(16,a=f.name),"animation"in f&&i(1,r=f.animation),"backgroundOverray"in f&&i(2,m=f.backgroundOverray),"closable"in f&&i(3,c=f.closable),"closeButtonColor"in f&&i(4,u=f.closeButtonColor),"eventName"in f&&i(17,g=f.eventName),"eventValue"in f&&i(18,h=f.eventValue),"position"in f&&i(5,d=f.position),"fixed"in f&&i(6,T=f.fixed),"_modalStyle"in f&&i(7,k=f._modalStyle),"_closeStyle"in f&&i(8,S=f._closeStyle),"width"in f&&i(9,E=f.width),"height"in f&&i(10,C=f.height),"rows"in f&&i(11,b=f.rows),"columns"in f&&i(12,A=f.columns),"gap"in f&&i(13,L=f.gap),"background"in f&&i(14,_=f.background),"$$scope"in f&&i(20,l=f.$$scope)},[s,r,m,c,u,d,T,k,S,E,C,b,A,L,_,X,a,g,h,o,l]}class Ze extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Ge,Ke,t.safe_not_equal,{path:0,name:16,animation:1,backgroundOverray:2,closable:3,closeButtonColor:4,eventName:17,eventValue:18,position:5,fixed:6,_modalStyle:7,_closeStyle:8,width:9,height:10,rows:11,columns:12,gap:13,background:14})}}function Re(n){t.append_styles(n,"svelte-g0rfgr",".grid-item.svelte-g0rfgr{word-break:break-all}")}function Ue(n){let e,i;const o=n[8].default,l=t.create_slot(o,n,n[7],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class","grid-item svelte-g0rfgr"),t.attr(e,"style",n[0])},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&128)&&t.update_slot_base(l,o,s,s[7],i?t.get_slot_changes(o,s[7],a,null):t.get_all_dirty_from_scope(s[7]),null),(!i||a&1)&&t.attr(e,"style",s[0])},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function He(n,e,i){let o,{$$slots:l={},$$scope:s}=e,{x1:a}=e,{x2:r}=e,{y1:m}=e,{y2:c}=e,{z:u}=e,{background:g="transparent"}=e;return y.onMount(()=>{H(u)}),n.$$set=h=>{"x1"in h&&i(1,a=h.x1),"x2"in h&&i(2,r=h.x2),"y1"in h&&i(3,m=h.y1),"y2"in h&&i(4,c=h.y2),"z"in h&&i(5,u=h.z),"background"in h&&i(6,g=h.background),"$$scope"in h&&i(7,s=h.$$scope)},n.$$.update=()=>{n.$$.dirty&126&&i(0,o=[`grid-area: ${m+1} / ${a+1} / ${c+2} / ${r+2}`,`z-index: ${u}`,`background: ${g}`,"display: grid","place-items: center"].join(";"))},[o,a,r,m,c,u,g,s,l]}class Je extends t.SvelteComponent{constructor(e){super(),t.init(this,e,He,Ue,t.safe_not_equal,{x1:1,x2:2,y1:3,y2:4,z:5,background:6},Re)}}function Qe(n){t.append_styles(n,"svelte-1e71ejc",".flex.svelte-1e71ejc{display:flex}")}function We(n){let e,i,o;const l=n[5].default,s=t.create_slot(l,n,n[4],null);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","flex svelte-1e71ejc"),t.attr(e,"style",i="width:"+n[1]+"; height:"+n[2]+"; flex-direction:"+n[0]+"; "+n[3])},m(a,r){t.insert(a,e,r),s&&s.m(e,null),o=!0},p(a,[r]){s&&s.p&&(!o||r&16)&&t.update_slot_base(s,l,a,a[4],o?t.get_slot_changes(l,a[4],r,null):t.get_all_dirty_from_scope(a[4]),null),(!o||r&15&&i!==(i="width:"+a[1]+"; height:"+a[2]+"; flex-direction:"+a[0]+"; "+a[3]))&&t.attr(e,"style",i)},i(a){o||(t.transition_in(s,a),o=!0)},o(a){t.transition_out(s,a),o=!1},d(a){a&&t.detach(e),s&&s.d(a)}}}const Q="action-sdk:flex";function Xe(){return y.getContext(Q)}function Ye(n,e,i){let{$$slots:o={},$$scope:l}=e,{direction:s="row"}=e,{width:a="100%"}=e,{height:r="100%"}=e,{_style:m=""}=e;return y.setContext(Q,{direction:s}),n.$$set=c=>{"direction"in c&&i(0,s=c.direction),"width"in c&&i(1,a=c.width),"height"in c&&i(2,r=c.height),"_style"in c&&i(3,m=c._style),"$$scope"in c&&i(4,l=c.$$scope)},[s,a,r,m,l,o]}class pe extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Ye,We,t.safe_not_equal,{direction:0,width:1,height:2,_style:3},Qe)}}function xe(n){t.append_styles(n,"svelte-1p0bk1x",".flex-item.svelte-1p0bk1x{max-width:100%;max-height:100%;position:relative;isolation:isolate}")}function $e(n){let e,i;const o=n[4].default,l=t.create_slot(o,n,n[3],null);return{c(){e=t.element("div"),l&&l.c(),t.attr(e,"class","flex-item svelte-1p0bk1x"),t.attr(e,"style",n[0])},m(s,a){t.insert(s,e,a),l&&l.m(e,null),i=!0},p(s,[a]){l&&l.p&&(!i||a&8)&&t.update_slot_base(l,o,s,s[3],i?t.get_slot_changes(o,s[3],a,null):t.get_all_dirty_from_scope(s[3]),null),(!i||a&1)&&t.attr(e,"style",s[0])},i(s){i||(t.transition_in(l,s),i=!0)},o(s){t.transition_out(l,s),i=!1},d(s){s&&t.detach(e),l&&l.d(s)}}}function et(n,e,i){let{$$slots:o={},$$scope:l}=e,{length:s}=e,{_style:a=""}=e;const r=Xe();let m;return n.$$set=c=>{"length"in c&&i(1,s=c.length),"_style"in c&&i(2,a=c._style),"$$scope"in c&&i(3,l=c.$$scope)},n.$$.update=()=>{if(n.$$.dirty&6){let c="";G(s,"px")?r.direction==="row"?c=`width: ${s}; height: 100%;`:r.direction==="column"&&(c=`width: 100%; height: ${s};`):r.direction==="row"?c=`height: 100%; flex-grow: ${s}; flex-basis: 0;`:r.direction==="column"&&(c=`width: 100%; flex-grow: ${s}; flex-basis: 0;`),i(0,m=c+a)}},[m,s,a,l,o]}class tt extends t.SvelteComponent{constructor(e){super(),t.init(this,e,et,$e,t.safe_not_equal,{length:1,_style:2},xe)}}exports.Alignments=ue;exports.AnimationStyles=re;exports.Directions=ae;exports.Flex=pe;exports.FlexItem=tt;exports.GridItem=Je;exports.GridModalState=Ze;exports.Justifies=fe;exports.LengthUnits=ce;exports.MediaQueries=oe;exports.Modal=J;exports.ObjectFits=me;exports.PropTypes=se;exports.Repeats=_e;exports.State=ye;exports.closeApp=le;exports.closed=B;exports.finalize=ee;exports.getPositionStyle=K;exports.handleFocus=V;exports.handleKeydown=j;exports.hasSuffix=G;exports.initialize=$;exports.isPreview=O;exports.linkTo=ie;exports.maximumZindex=N;exports.moveTo=ne;exports.none=te;exports.onScroll=Y;exports.onTime=p;exports.randStr=Z;exports.send_event=w;exports.setMiximumZindex=H;exports.setPreviousFocus=D;exports.state=z;exports.toBr=x;

@@ -847,4 +847,4 @@ import { writable, get } from "svelte/store";

let current;
const default_slot_template = ctx[18].default;
const default_slot = create_slot(default_slot_template, ctx, ctx[19], null);
const default_slot_template = ctx[19].default;
const default_slot = create_slot(default_slot_template, ctx, ctx[20], null);
return {

@@ -863,4 +863,4 @@ c() {

if (default_slot) {
if (default_slot.p && (!current || dirty & 524288)) {
update_slot_base(default_slot, default_slot_template, ctx2, ctx2[19], !current ? get_all_dirty_from_scope(ctx2[19]) : get_slot_changes(default_slot_template, ctx2[19], dirty, null), null);
if (default_slot.p && (!current || dirty & 1048576)) {
update_slot_base(default_slot, default_slot_template, ctx2, ctx2[20], !current ? get_all_dirty_from_scope(ctx2[20]) : get_slot_changes(default_slot_template, ctx2[20], dirty, null), null);
}

@@ -922,3 +922,3 @@ }

grid_changes.background = ctx2[14];
if (dirty & 524288) {
if (dirty & 1048576) {
grid_changes.$$scope = { dirty, ctx: ctx2 };

@@ -981,3 +981,3 @@ }

modal_changes._style = ctx2[7];
if (dirty & 556544) {
if (dirty & 1080832) {
modal_changes.$$scope = { dirty, ctx: ctx2 };

@@ -1040,3 +1040,3 @@ }

animation_1_changes.animation = ctx2[1];
if (dirty & 557048) {
if (dirty & 1081336) {
animation_1_changes.$$scope = { dirty, ctx: ctx2 };

@@ -1088,3 +1088,3 @@ }

stateitem_changes.path = ctx2[0];
if (dirty & 557054) {
if (dirty & 1081342) {
stateitem_changes.$$scope = { dirty, ctx: ctx2 };

@@ -1112,2 +1112,3 @@ }

let { path } = $$props;
let { name } = $$props;
let { animation = "none" } = $$props;

@@ -1139,2 +1140,4 @@ let { backgroundOverray = false } = $$props;

$$invalidate(0, path = $$props2.path);
if ("name" in $$props2)
$$invalidate(16, name = $$props2.name);
if ("animation" in $$props2)

@@ -1149,5 +1152,5 @@ $$invalidate(1, animation = $$props2.animation);

if ("eventName" in $$props2)
$$invalidate(16, eventName = $$props2.eventName);
$$invalidate(17, eventName = $$props2.eventName);
if ("eventValue" in $$props2)
$$invalidate(17, eventValue = $$props2.eventValue);
$$invalidate(18, eventValue = $$props2.eventValue);
if ("position" in $$props2)

@@ -1174,3 +1177,3 @@ $$invalidate(5, position = $$props2.position);

if ("$$scope" in $$props2)
$$invalidate(19, $$scope = $$props2.$$scope);
$$invalidate(20, $$scope = $$props2.$$scope);
};

@@ -1194,2 +1197,3 @@ return [

close,
name,
eventName,

@@ -1206,2 +1210,3 @@ eventValue,

path: 0,
name: 16,
animation: 1,

@@ -1211,4 +1216,4 @@ backgroundOverray: 2,

closeButtonColor: 4,
eventName: 16,
eventValue: 17,
eventName: 17,
eventValue: 18,
position: 5,

@@ -1215,0 +1220,0 @@ fixed: 6,

{
"name": "@plaidev/karte-action-sdk",
"version": "1.0.18",
"version": "1.0.19",
"author": "Plaid Inc.",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

@@ -58,1 +58,2 @@ export const PropTypes = [

export type Style = string;
export type StateName = string;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc