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.19 to 1.0.20

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 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;
"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 X(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 Y(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"],de=["repeat","space","round","no-repeat"];function _e(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,{},_e)}}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,d=>i(6,l=d));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:_=!1}=e;const T=O()?!1:_;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(d){t.binding_callbacks[d?"unshift":"push"](()=>{b=d,i(4,b)})}return n.$$set=d=>{"closable"in d&&i(0,r=d.closable),"closeButtonColor"in d&&i(1,m=d.closeButtonColor),"eventName"in d&&i(10,c=d.eventName),"eventValue"in d&&i(11,u=d.eventValue),"position"in d&&i(12,g=d.position),"fixed"in d&&i(13,_=d.fixed),"_style"in d&&i(2,k=d._style),"_closeStyle"in d&&i(3,S=d._closeStyle),"$$scope"in d&&i(14,a=d.$$scope)},i(5,o=K(h)),[r,m,k,S,b,o,l,T,C,A,c,u,g,_,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=_=>typeof _=="number"?`repeat(${_}, 1fr)`:_.join(" ");return n.$$set=_=>{"width"in _&&i(1,a=_.width),"height"in _&&i(2,r=_.height),"rows"in _&&i(3,m=_.rows),"columns"in _&&i(4,c=_.columns),"gap"in _&&i(5,u=_.gap),"background"in _&&i(6,g=_.background),"$$scope"in _&&i(7,s=_.$$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;const a="";let{animation:r="none"}=e,{backgroundOverray:m=!1}=e,{closable:c=!0}=e,{closeButtonColor:u="#000000"}=e,{eventName:g=""}=e,{eventValue:h=null}=e,{position:_="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:d="transparent"}=e;const p=y.createEventDispatcher(),W=()=>{g&&w(g,h),p("close")};return n.$$set=f=>{"path"in f&&i(0,s=f.path),"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,_=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,d=f.background),"$$scope"in f&&i(20,l=f.$$scope)},[s,r,m,c,u,_,T,k,S,E,C,b,A,L,d,W,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})}get name(){return this.$$.ctx[16]}}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 pe(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 We(){return y.getContext(Q)}function Xe(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 Ye extends t.SvelteComponent{constructor(e){super(),t.init(this,e,Xe,pe,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=We();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=Ye;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=de;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=X;exports.onTime=Y;exports.randStr=Z;exports.send_event=w;exports.setMiximumZindex=H;exports.setPreviousFocus=D;exports.state=z;exports.toBr=x;

@@ -124,2 +124,4 @@ import { default as Flex } from './components/Flex.svelte';

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

@@ -126,0 +128,0 @@

@@ -1106,3 +1106,3 @@ import { writable, get } from "svelte/store";

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

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

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

@@ -1220,2 +1218,5 @@ $$invalidate(1, animation = $$props2.animation);

}
get name() {
return this.$$.ctx[16];
}
}

@@ -1222,0 +1223,0 @@ function add_css$2(target) {

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

@@ -31,2 +31,3 @@ "license": "Apache-2.0",

"@microsoft/api-extractor": "^7.21.3",
"@plaidev/action-compiler": "^0.4.178",
"@sveltejs/vite-plugin-svelte": "1.0.0-next.37",

@@ -37,4 +38,7 @@ "@testing-library/svelte": "^3.1.1",

"api-docs-gen": "^0.4.0",
"jiti": "1.14.0",
"jsdom": "latest",
"node-fetch": "2.6.7",
"rimraf": "^3.0.2",
"rollup-plugin-http-resolve": "4.0.1-alpha.0",
"svelte": "3.44.1",

@@ -50,2 +54,3 @@ "svelte-check": "^2.2.7",

"scripts": {
"dev": "jiti ./scripts/preview.ts",
"build": "vite build",

@@ -52,0 +57,0 @@ "build:watch": "vite build --watch",

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