@sortter/sortter-resellers-web-component 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.0.3](https://github.com/Sortterfi/sortter-resellers-web-component/compare/1.0.2...1.0.3) (2026-01-19)
2
+
3
+ ### Bug Fixes
4
+
5
+ * trigger release ([7be1390](https://github.com/Sortterfi/sortter-resellers-web-component/commit/7be1390b5bd682440f94c106246e8bbf07bbd9cd))
6
+
1
7
  ## 1.0.0 (2026-01-12)
2
8
 
3
9
  ### Features
package/README.md CHANGED
@@ -9,87 +9,99 @@ You can load the script in directly in your html
9
9
  <script type="module" src="< path-to-the-script-file >"></script>
10
10
  ```
11
11
 
12
+ ## Link to npm package:
13
+
14
+ <a href="https://www.npmjs.com/package/@sortter/sortter-resellers-web-component">https://www.npmjs.com/package/@sortter/sortter-resellers-web-component</a>
15
+
12
16
  ## Usage
13
17
 
14
18
  To use the Sortter Form Web Component, you can include the <sortter-reseller-form> tag in your HTML code, along with attributes to customize the form according to your needs.
15
19
 
16
20
  ```html
17
21
  <sortter-reseller-form
18
- alternativeUrl="string | null"
19
- b2cUrl="string | null"
20
- b2bUrl="string | null"
21
- defaultLoanType="personal | corporate"
22
- privacyPolicyUrl="string"
23
- privacyPolicyText="string"
24
- splashLogo="url"
25
- stage="test | null"
26
- theme="'custom || Sortter || '' "
27
- type="both | personal | corporate"
28
- utm="string"
29
- titleColor="string | null"
30
- labelColor="string | null"
31
- highLightColor="string | null"
32
- buttonColor="string | null"
33
- logoSrc="string | null"
34
- logoLink="string | null"
35
- bannerLink="string | null"
36
- fontFamily="string | null"
37
- locale="'fi' || 'ee' || ''"
38
- layout="'300' || '480' || ''"
22
+ alternativeUrl="string | null"
23
+ b2cUrl="string | null"
24
+ b2bUrl="string | null"
25
+ defaultLoanType="personal | corporate"
26
+ privacyPolicyUrl="string"
27
+ privacyPolicyText="string"
28
+ splashLogo="url"
29
+ stage="test | null"
30
+ theme="'custom || Sortter || '' "
31
+ type="both | personal | corporate"
32
+ utm="string"
33
+ titleColor="string | null"
34
+ labelColor="string | null"
35
+ highLightColor="string | null"
36
+ buttonColor="string | null"
37
+ logoSrc="string | null"
38
+ logoLink="string | null"
39
+ bannerLink="string | null"
40
+ fontFamily="string | null"
41
+ locale="'fi' || 'ee' || ''"
42
+ layout="'300' || '480' || ''"
39
43
  ></sortter-reseller-form>
40
44
  ```
41
45
 
42
46
  ## Available Attributes
43
47
 
44
48
  ### General Functionality
45
- - **alternativeUrl**: If redirect does not work and you want to use an alternative location, define an alternative URL. Defaults to `redirectUrl`.
46
- - **b2cUrl**: URL redirect to the business-to-customer link. This is defined by default but can be overwritten if needed.
47
- - **b2bUrl**: URL redirect to the business-to-business link. This is defined by default but can be overwritten if needed.
48
- - **utm**: You can include a UTM query in this attribute. It will be added to the end of `b2cUrl` or `b2bUrl` as is.
49
- - **stage**: Use `'test'` if you want to see where the user would be redirected without actually redirecting them.
50
- - **type**: Define what loan types you want to include (`both`, `personal`, or `corporate`).
51
- - **defaultLoanType**: Works only when the `type` attribute is set to "both". It defines which loan type will be shown first by default.
49
+
50
+ - **alternativeUrl**: If redirect does not work and you want to use an alternative location, define an alternative URL. Defaults to `redirectUrl`.
51
+ - **b2cUrl**: URL redirect to the business-to-customer link. This is defined by default but can be overwritten if needed.
52
+ - **b2bUrl**: URL redirect to the business-to-business link. This is defined by default but can be overwritten if needed.
53
+ - **utm**: You can include a UTM query in this attribute. It will be added to the end of `b2cUrl` or `b2bUrl` as is.
54
+ - **stage**: Use `'test'` if you want to see where the user would be redirected without actually redirecting them.
55
+ - **type**: Define what loan types you want to include (`both`, `personal`, or `corporate`).
56
+ - **defaultLoanType**: Works only when the `type` attribute is set to "both". It defines which loan type will be shown first by default.
52
57
 
53
58
  ### UI Customization
54
- - **theme**: Defaults to "Sortter". Use `'custom'` to return without styles.
55
- - **titleColor**: Define the title color with a hex color code. This is defined by default but can be overwritten if needed.
56
- - **labelColor**: Define the label color with a hex color code. This is defined by default but can be overwritten if needed.
57
- - **highLightColor**: Define the highlight color with a hex color code. Affects the slider, slider inputs, and top selector. This is defined by default but can be overwritten if needed.
58
- - **buttonColor**: Define the button color with a hex color code. This is defined by default but can be overwritten if needed.
59
- - **fontFamily**: Define the font family used for the whole component. This is defined by default but can be overwritten if needed.
60
- - **locale**: Use `'fi'` or `'ee'` as the locale. This is defined as `'fi'` by default but can be overwritten if needed.
61
- - **layout**: Use `'300'` or `'480'` as the layout. This defines the width and minimum height of the component (`300`: width 300px, min height 600px; `480`: width 480px, min height 600px). Leave empty to handle default width and height.
59
+
60
+ - **theme**: Defaults to "Sortter". Use `'custom'` to return without styles.
61
+ - **titleColor**: Define the title color with a hex color code. This is defined by default but can be overwritten if needed.
62
+ - **labelColor**: Define the label color with a hex color code. This is defined by default but can be overwritten if needed.
63
+ - **highLightColor**: Define the highlight color with a hex color code. Affects the slider, slider inputs, and top selector. This is defined by default but can be overwritten if needed.
64
+ - **buttonColor**: Define the button color with a hex color code. This is defined by default but can be overwritten if needed.
65
+ - **fontFamily**: Define the font family used for the whole component. This is defined by default but can be overwritten if needed.
66
+ - **locale**: Use `'fi'` or `'ee'` as the locale. This is defined as `'fi'` by default but can be overwritten if needed.
67
+ - **layout**: Use `'300'` or `'480'` as the layout. This defines the width and minimum height of the component (`300`: width 300px, min height 600px; `480`: width 480px, min height 600px). Leave empty to handle default width and height.
62
68
 
63
69
  ### Branding and Logos
64
- - **logoSrc**: Replace the logo with an image link. This is defined by default but can be overwritten if needed.
65
- - **logoLink**: Add a link to the logo.
66
- - **hideLogo**: Hides the logo from the form.
67
- - **bannerLink**: Add a banner on top of the slider with an image link. By default, there is no banner.
70
+
71
+ - **logoSrc**: Replace the logo with an image link. This is defined by default but can be overwritten if needed.
72
+ - **logoLink**: Add a link to the logo.
73
+ - **hideLogo**: Hides the logo from the form.
74
+ - **bannerLink**: Add a banner on top of the slider with an image link. By default, there is no banner.
68
75
 
69
76
  ### Privacy and Splash Screen
70
- - **privacyPolicyUrl**: URL to your privacy policy page.
71
- - **privacyPolicyText**: Text to display for the privacy policy link.
72
- - **hidePrivacyPolicy**: Hides the privacy policy section.
73
- - **hideSplashScreen**: Hides the splash screen and redirects directly to the URL set.
74
- - **splashLogo**: URL to the splash logo image that will be displayed on the splash screen.
77
+
78
+ - **privacyPolicyUrl**: URL to your privacy policy page.
79
+ - **privacyPolicyText**: Text to display for the privacy policy link.
80
+ - **hidePrivacyPolicy**: Hides the privacy policy section.
81
+ - **hideSplashScreen**: Hides the splash screen and redirects directly to the URL set.
82
+ - **splashLogo**: URL to the splash logo image that will be displayed on the splash screen.
75
83
 
76
84
  ### Loan Settings
77
- - **b2bLoanAmount**: Default value for the loan in B2B.
78
- - **b2bLoanPeriod**: Default value for the loan period in B2B.
79
- - **b2bLoanMax**: Max value of the loan for B2B. Defaults to `10_000_000`.
80
- - **b2cLoanAmount**: Default value for the loan in B2C.
81
- - **b2cLoanPeriod**: Default value for the loan period in B2C.
82
- - **b2cLoanMax**: Max value of the loan for B2C. Defaults to `70_000`.
85
+
86
+ - **b2bLoanAmount**: Default value for the loan in B2B.
87
+ - **b2bLoanPeriod**: Default value for the loan period in B2B.
88
+ - **b2bLoanMax**: Max value of the loan for B2B. Defaults to `10_000_000`.
89
+ - **b2cLoanAmount**: Default value for the loan in B2C.
90
+ - **b2cLoanPeriod**: Default value for the loan period in B2C.
91
+ - **b2cLoanMax**: Max value of the loan for B2C. Defaults to `70_000`.
83
92
 
84
93
  ## Development
85
94
 
86
95
  **Requirements**
87
- - Node v18
88
- - Yarn
96
+
97
+ - Node v18
98
+ - Yarn
89
99
 
90
100
  **Development**
91
- - `yarn install`
92
- - `yarn dev`
101
+
102
+ - `yarn install`
103
+ - `yarn dev`
93
104
 
94
105
  ## Lit.js
106
+
95
107
  Read more about lit from https://lit.dev/docs/
@@ -0,0 +1,94 @@
1
+ (function(l,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(l=typeof globalThis<"u"?globalThis:l||self,$(l.SortterResellerForm={}))})(this,function(l){var Pt;"use strict";/**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */const $=globalThis,Q=$.ShadowRoot&&($.ShadyCSS===void 0||$.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,G=Symbol(),dt=new WeakMap;let ct=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==G)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Q&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=dt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&dt.set(e,t))}return t}toString(){return this.cssText}};const Ft=r=>new ct(typeof r=="string"?r:r+"",void 0,G),B=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((o,i,a)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new ct(e,r,G)},Dt=(r,t)=>{if(Q)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const o=document.createElement("style"),i=$.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=e.cssText,r.appendChild(o)}},ut=Q?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return Ft(e)})(r):r;/**
6
+ * @license
7
+ * Copyright 2017 Google LLC
8
+ * SPDX-License-Identifier: BSD-3-Clause
9
+ */const{is:It,defineProperty:jt,getOwnPropertyDescriptor:Ot,getOwnPropertyNames:Ht,getOwnPropertySymbols:Bt,getPrototypeOf:qt}=Object,L=globalThis,ht=L.trustedTypes,Wt=ht?ht.emptyScript:"",X=L.reactiveElementPolyfillSupport,z=(r,t)=>r,q={toAttribute(r,t){switch(t){case Boolean:r=r?Wt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},K=(r,t)=>!It(r,t),mt={attribute:!0,type:String,converter:q,reflect:!1,useDefault:!1,hasChanged:K};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),L.litPropertyMetadata??(L.litPropertyMetadata=new WeakMap);let P=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=mt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);i!==void 0&&jt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:a}=Ot(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){const c=i==null?void 0:i.call(this);a==null||a.call(this,n),this.requestUpdate(t,c,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??mt}static _$Ei(){if(this.hasOwnProperty(z("elementProperties")))return;const t=qt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(z("properties"))){const e=this.properties,o=[...Ht(e),...Bt(e)];for(const i of o)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[o,i]of e)this.elementProperties.set(o,i)}this._$Eh=new Map;for(const[e,o]of this.elementProperties){const i=this._$Eu(e,o);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const i of o)e.unshift(ut(i))}else t!==void 0&&e.push(ut(t));return e}static _$Eu(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Dt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostConnected)==null?void 0:o.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostDisconnected)==null?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){var a;const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(i!==void 0&&o.reflect===!0){const n=(((a=o.converter)==null?void 0:a.toAttribute)!==void 0?o.converter:q).toAttribute(e,o.type);this._$Em=t,n==null?this.removeAttribute(i):this.setAttribute(i,n),this._$Em=null}}_$AK(t,e){var a,n;const o=this.constructor,i=o._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const c=o.getPropertyOptions(i),s=typeof c.converter=="function"?{fromAttribute:c.converter}:((a=c.converter)==null?void 0:a.fromAttribute)!==void 0?c.converter:q;this._$Em=i;const m=s.fromAttribute(e,c.type);this[i]=m??((n=this._$Ej)==null?void 0:n.get(i))??m,this._$Em=null}}requestUpdate(t,e,o){var i;if(t!==void 0){const a=this.constructor,n=this[t];if(o??(o=a.getPropertyOptions(t)),!((o.hasChanged??K)(n,e)||o.useDefault&&o.reflect&&n===((i=this._$Ej)==null?void 0:i.get(t))&&!this.hasAttribute(a._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:i,wrapped:a},n){o&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),a!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,n]of this._$Ep)this[a]=n;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[a,n]of i){const{wrapped:c}=n,s=this[a];c!==!0||this._$AL.has(a)||s===void 0||this.C(a,void 0,n,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(i=>{var a;return(a=i.hostUpdate)==null?void 0:a.call(i)}),this.update(e)):this._$EM()}catch(i){throw t=!1,this._$EM(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(o=>{var i;return(i=o.hostUpdated)==null?void 0:i.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};P.elementStyles=[],P.shadowRootOptions={mode:"open"},P[z("elementProperties")]=new Map,P[z("finalized")]=new Map,X==null||X({ReactiveElement:P}),(L.reactiveElementVersions??(L.reactiveElementVersions=[])).push("2.1.1");/**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const N=globalThis,W=N.trustedTypes,pt=W?W.createPolicy("lit-html",{createHTML:r=>r}):void 0,gt="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,ft="?"+k,Zt=`<${ft}>`,T=document,F=()=>T.createComment(""),D=r=>r===null||typeof r!="object"&&typeof r!="function",tt=Array.isArray,Yt=r=>tt(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",et=`[
14
+ \f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bt=/-->/g,yt=/>/g,S=RegExp(`>|${et}(?:([^\\s"'>=/]+)(${et}*=${et}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xt=/'/g,wt=/"/g,vt=/^(?:script|style|textarea|title)$/i,Jt=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),w=Jt(1),R=Symbol.for("lit-noChange"),b=Symbol.for("lit-nothing"),$t=new WeakMap,A=T.createTreeWalker(T,129);function Lt(r,t){if(!tt(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return pt!==void 0?pt.createHTML(t):t}const Vt=(r,t)=>{const e=r.length-1,o=[];let i,a=t===2?"<svg>":t===3?"<math>":"",n=I;for(let c=0;c<e;c++){const s=r[c];let m,g,h=-1,x=0;for(;x<s.length&&(n.lastIndex=x,g=n.exec(s),g!==null);)x=n.lastIndex,n===I?g[1]==="!--"?n=bt:g[1]!==void 0?n=yt:g[2]!==void 0?(vt.test(g[2])&&(i=RegExp("</"+g[2],"g")),n=S):g[3]!==void 0&&(n=S):n===S?g[0]===">"?(n=i??I,h=-1):g[1]===void 0?h=-2:(h=n.lastIndex-g[2].length,m=g[1],n=g[3]===void 0?S:g[3]==='"'?wt:xt):n===wt||n===xt?n=S:n===bt||n===yt?n=I:(n=S,i=void 0);const p=n===S&&r[c+1].startsWith("/>")?" ":"";a+=n===I?s+Zt:h>=0?(o.push(m),s.slice(0,h)+gt+s.slice(h)+k+p):s+k+(h===-2?c:p)}return[Lt(r,a+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]};class j{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let a=0,n=0;const c=t.length-1,s=this.parts,[m,g]=Vt(t,e);if(this.el=j.createElement(m,o),A.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=A.nextNode())!==null&&s.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(const h of i.getAttributeNames())if(h.endsWith(gt)){const x=g[n++],p=i.getAttribute(h).split(k),f=/([.?@])?(.*)/.exec(x);s.push({type:1,index:a,name:f[2],strings:p,ctor:f[1]==="."?Gt:f[1]==="?"?Xt:f[1]==="@"?Kt:Z}),i.removeAttribute(h)}else h.startsWith(k)&&(s.push({type:6,index:a}),i.removeAttribute(h));if(vt.test(i.tagName)){const h=i.textContent.split(k),x=h.length-1;if(x>0){i.textContent=W?W.emptyScript:"";for(let p=0;p<x;p++)i.append(h[p],F()),A.nextNode(),s.push({type:2,index:++a});i.append(h[x],F())}}}else if(i.nodeType===8)if(i.data===ft)s.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(k,h+1))!==-1;)s.push({type:7,index:a}),h+=k.length-1}a++}}static createElement(t,e){const o=T.createElement("template");return o.innerHTML=t,o}}function U(r,t,e=r,o){var n,c;if(t===R)return t;let i=o!==void 0?(n=e._$Co)==null?void 0:n[o]:e._$Cl;const a=D(t)?void 0:t._$litDirective$;return(i==null?void 0:i.constructor)!==a&&((c=i==null?void 0:i._$AO)==null||c.call(i,!1),a===void 0?i=void 0:(i=new a(r),i._$AT(r,e,o)),o!==void 0?(e._$Co??(e._$Co=[]))[o]=i:e._$Cl=i),i!==void 0&&(t=U(r,i._$AS(r,t.values),i,o)),t}class Qt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=((t==null?void 0:t.creationScope)??T).importNode(e,!0);A.currentNode=i;let a=A.nextNode(),n=0,c=0,s=o[0];for(;s!==void 0;){if(n===s.index){let m;s.type===2?m=new O(a,a.nextSibling,this,t):s.type===1?m=new s.ctor(a,s.name,s.strings,this,t):s.type===6&&(m=new te(a,this,t)),this._$AV.push(m),s=o[++c]}n!==(s==null?void 0:s.index)&&(a=A.nextNode(),n++)}return A.currentNode=T,i}p(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class O{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=b,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=(i==null?void 0:i.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),D(t)?t===b||t==null||t===""?(this._$AH!==b&&this._$AR(),this._$AH=b):t!==this._$AH&&t!==R&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Yt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==b&&D(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var a;const{values:e,_$litType$:o}=t,i=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=j.createElement(Lt(o.h,o.h[0]),this.options)),o);if(((a=this._$AH)==null?void 0:a._$AD)===i)this._$AH.p(e);else{const n=new Qt(i,this),c=n.u(this.options);n.p(e),this.T(c),this._$AH=n}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new j(t)),e}k(t){tt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const a of t)i===e.length?e.push(o=new O(this.O(F()),this.O(F()),this,this.options)):o=e[i],o._$AI(a),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,e);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Z{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,a){this.type=1,this._$AH=b,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=b}_$AI(t,e=this,o,i){const a=this.strings;let n=!1;if(a===void 0)t=U(this,t,e,0),n=!D(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const c=t;let s,m;for(t=a[0],s=0;s<a.length-1;s++)m=U(this,c[o+s],e,s),m===R&&(m=this._$AH[s]),n||(n=!D(m)||m!==this._$AH[s]),m===b?t=b:t!==b&&(t+=(m??"")+a[s+1]),this._$AH[s]=m}n&&!i&&this.j(t)}j(t){t===b?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Gt extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===b?void 0:t}}class Xt extends Z{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==b)}}class Kt extends Z{constructor(t,e,o,i,a){super(t,e,o,i,a),this.type=5}_$AI(t,e=this){if((t=U(this,t,e,0)??b)===R)return;const o=this._$AH,i=t===b&&o!==b||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==b&&(o===b||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class te{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const ot=N.litHtmlPolyfillSupport;ot==null||ot(j,O),(N.litHtmlVersions??(N.litHtmlVersions=[])).push("3.3.1");const ee=(r,t,e)=>{const o=(e==null?void 0:e.renderBefore)??t;let i=o._$litPart$;if(i===void 0){const a=(e==null?void 0:e.renderBefore)??null;o._$litPart$=i=new O(t.insertBefore(F(),a),a,void 0,e??{})}return i._$AI(r),i};/**
16
+ * @license
17
+ * Copyright 2017 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const C=globalThis;class H extends P{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ee(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return R}}H._$litElement$=!0,H.finalized=!0,(Pt=C.litElementHydrateSupport)==null||Pt.call(C,{LitElement:H});const it=C.litElementPolyfillSupport;it==null||it({LitElement:H}),(C.litElementVersions??(C.litElementVersions=[])).push("4.2.1");/**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */const oe=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */const ie={attribute:!0,type:String,converter:q,reflect:!1,hasChanged:K},re=(r=ie,t,e)=>{const{kind:o,metadata:i}=e;let a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(e.name,r),o==="accessor"){const{name:n}=e;return{set(c){const s=t.get.call(this);t.set.call(this,c),this.requestUpdate(n,s,r)},init(c){return c!==void 0&&this.C(n,void 0,r,c),c}}}if(o==="setter"){const{name:n}=e;return function(c){const s=this[n];t.call(this,c),this.requestUpdate(n,s,r)}}throw Error("Unsupported decorator location: "+o)};function u(r){return(t,e)=>typeof e=="object"?re(r,t,e):((o,i,a)=>{const n=i.hasOwnProperty(a);return i.constructor.createProperty(a,o),n?Object.getOwnPropertyDescriptor(i,a):void 0})(r,t,e)}/**
28
+ * @license
29
+ * Copyright 2017 Google LLC
30
+ * SPDX-License-Identifier: BSD-3-Clause
31
+ */function y(r){return u({...r,state:!0,attribute:!1})}/**
32
+ * @license
33
+ * Copyright 2021 Google LLC
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */const rt="lit-localize-status";/**
36
+ * @license
37
+ * Copyright 2021 Google LLC
38
+ * SPDX-License-Identifier: BSD-3-Clause
39
+ */const ae=r=>typeof r!="string"&&"strTag"in r,kt=(r,t,e)=>{let o=r[0];for(let i=1;i<r.length;i++)o+=t[e?e[i-1]:i-1],o+=r[i];return o};/**
40
+ * @license
41
+ * Copyright 2021 Google LLC
42
+ * SPDX-License-Identifier: BSD-3-Clause
43
+ */const _t=r=>ae(r)?kt(r.strings,r.values):r;let E=_t,Tt=!1;function ne(r){if(Tt)throw new Error("lit-localize can only be configured once");E=r,Tt=!0}/**
44
+ * @license
45
+ * Copyright 2021 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */class se{constructor(t){this.__litLocalizeEventHandler=e=>{e.detail.status==="ready"&&this.host.requestUpdate()},this.host=t}hostConnected(){window.addEventListener(rt,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(rt,this.__litLocalizeEventHandler)}}const le=r=>r.addController(new se(r));/**
48
+ * @license
49
+ * Copyright 2021 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ */const de=()=>(r,t)=>(r.addInitializer(le),r);/**
52
+ * @license
53
+ * Copyright 2020 Google LLC
54
+ * SPDX-License-Identifier: BSD-3-Clause
55
+ */class St{constructor(){this.settled=!1,this.promise=new Promise((t,e)=>{this._resolve=t,this._reject=e})}resolve(t){this.settled=!0,this._resolve(t)}reject(t){this.settled=!0,this._reject(t)}}/**
56
+ * @license
57
+ * Copyright 2014 Travis Webb
58
+ * SPDX-License-Identifier: MIT
59
+ */const v=[];for(let r=0;r<256;r++)v[r]=(r>>4&15).toString(16)+(r&15).toString(16);function ce(r){let t=0,e=8997,o=0,i=33826,a=0,n=40164,c=0,s=52210;for(let m=0;m<r.length;m++)e^=r.charCodeAt(m),t=e*435,o=i*435,a=n*435,c=s*435,a+=e<<8,c+=i<<8,o+=t>>>16,e=t&65535,a+=o>>>16,i=o&65535,s=c+(a>>>16)&65535,n=a&65535;return v[s>>8]+v[s&255]+v[n>>8]+v[n&255]+v[i>>8]+v[i&255]+v[e>>8]+v[e&255]}/**
60
+ * @license
61
+ * Copyright 2020 Google LLC
62
+ * SPDX-License-Identifier: BSD-3-Clause
63
+ */const ue="",he="h",me="s";function pe(r,t){return(t?he:me)+ce(typeof r=="string"?r:r.join(ue))}/**
64
+ * @license
65
+ * Copyright 2021 Google LLC
66
+ * SPDX-License-Identifier: BSD-3-Clause
67
+ */const At=new WeakMap,Ct=new Map;function ge(r,t,e){if(r){const o=(e==null?void 0:e.id)??fe(t),i=r[o];if(i){if(typeof i=="string")return i;if("strTag"in i)return kt(i.strings,t.values,i.values);{let a=At.get(i);return a===void 0&&(a=i.values,At.set(i,a)),{...i,values:a.map(n=>t.values[n])}}}}return _t(t)}function fe(r){const t=typeof r=="string"?r:r.strings;let e=Ct.get(t);return e===void 0&&(e=pe(t,typeof r!="string"&&!("strTag"in r)),Ct.set(t,e)),e}/**
68
+ * @license
69
+ * Copyright 2021 Google LLC
70
+ * SPDX-License-Identifier: BSD-3-Clause
71
+ */function at(r){window.dispatchEvent(new CustomEvent(rt,{detail:r}))}let Y="",nt,Et,J,st,Mt,M=new St;M.resolve();let V=0;const be=r=>(ne((t,e)=>ge(Mt,t,e)),Y=Et=r.sourceLocale,J=new Set(r.targetLocales),J.add(r.sourceLocale),st=r.loadLocale,{getLocale:ye,setLocale:xe}),ye=()=>Y,xe=r=>{if(r===(nt??Y))return M.promise;if(!J||!st)throw new Error("Internal error");if(!J.has(r))throw new Error("Invalid locale code");V++;const t=V;return nt=r,M.settled&&(M=new St),at({status:"loading",loadingLocale:r}),(r===Et?Promise.resolve({templates:void 0}):st(r)).then(o=>{V===t&&(Y=r,nt=void 0,Mt=o.templates,at({status:"ready",readyLocale:r}),M.resolve())},o=>{V===t&&(at({status:"error",errorLocale:r,errorMessage:o.toString()}),M.reject(o))}),M.promise},we=B`.form-label{display:flex;flex-direction:row;justify-content:space-between}.inactive{display:none}#landing-calculator-button-onboarding{max-width:100%}.active{display:flex}#affiliateLogo{object-fit:contain;max-height:3rem;width:auto}#sortter-final-link-anchor{text-decoration:underline;color:#586bea;font-weight:700;cursor:pointer}#sortter-reseller-form__text-inputs{display:grid;padding:2rem 0;grid-template-columns:1fr 1fr;grid-column-gap:2rem;grid-row-gap:2rem}#sortter-reseller-form__text-inputs>div{display:flex;flex-direction:column}#sortter-reseller-form__text-inputs>div>label{font-size:small;font-weight:600}#sortter-reseller-form__text-inputs>div>input{border-left:0;border-top:0;border-right:0;height:2rem;border-bottom:3px solid #ccc;font-size:100%}#sortter-loader-container{flex-direction:row}#sortter-splash-screen{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#fff;z-index:1000;padding:1rem;flex-direction:column;justify-content:center}#landing-calculator-button-onboarding__container{white-space:nowrap;margin-top:.5rem}@media (max-width:750px){#landing-calculator-button-onboarding__container{margin-top:1rem}#sortter-reseller-form__text-inputs{display:grid;grid-template-columns:1fr;grid-column-gap:1rem;grid-row-gap:1rem}#landing-calculator-calculation{padding:0 0}#sortter-loader-container{flex-direction:column;text-align:center}#sortter-splash-screen{padding:0}#sortter-splash-screen>div{margin-top:1rem;display:flex;justify-content:center;align-items:center}#sortter-backup-link-container{flex-direction:column;line-height:1;text-align:center;padding:0 .5rem}}#loader-icon{height:3rem;width:3rem}#sortter-splash-screen>div{margin-top:2rem;display:flex;justify-content:center;align-items:center}#sortter-poweredby-container{flex-direction:column}`,ve=B`:root{--widget-lender-height:50px;--widget-lender-spacing:1rem;--widget-lender-items-per-row:2;--widget-lender-image-padding:0.5rem;--color-cobalt:#182678;--color-softBlue:#5367ea;--color-cta:#0faa16;--color-darker-blue:#041264;--color-cta-2:#0faa16;--color-cta-2-rgb:15,170,22;--color-softBlue:#5567ec;--color-white:#fff}#sortter-dialog-container{line-height:normal}.selector-module--container--6016e{background:var(--color-white);border-radius:24px;margin-bottom:1rem;padding:.25rem .5rem;width:calc(100% - 1rem)}.title-module--base--8c535{color:var(--title-color);font-weight:400;scroll-margin-top:1rem;word-break:break-word}.title-module--base--8c535 em{font-style:normal;text-decoration:underline;text-decoration-color:var(--color-sortter-yellow)}.title-module--base--c8872{color:var(--title-color);font-weight:400;scroll-margin-top:1rem;word-break:break-word}.title-module--base--c8872 em{font-style:normal;text-decoration:underline;text-decoration-color:var(--color-sortter-yellow)}.selector-module--selector--0e86c button{border-radius:30px;color:var(--highlight-color);-ms-flex:1 1;flex:1 1;font-size:1.125rem;font-weight:700;line-height:40px;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;border:none;box-shadow:none;background-color:transparent}.selector-module--selector--0e86c button.selector-module--selected--af668{background-color:var(--highlight-color);color:#fff}.selector-module--selector--0e86c{-ms-flex-align:stretch;-ms-flex-pack:justify;align-items:stretch;background-color:var(--highlight-color-transparent-10);border-radius:40px;display:-ms-flexbox;display:flex;justify-content:space-between;padding:.5rem;width:100%}#landing-calculator-unsecured,form#sortter-reseller-form-element{width:100%}#landing-calculator-button-onboarding:focus,#landing-calculator-button-onboarding:focus-visible,#landing-calculator-button-onboarding:focus-within,#landing-calculator-button-onboarding:hover{box-shadow:var(--button-color) 0 0 20px -4px}@media(min-width:750px){.selector-module--container--6016e{border-radius:64px;padding:1rem 3rem;width:calc(100% - 6rem)}.selector-module--container--6016e a{font-size:20px}}#sortter-dialog-container .container-module--large--6239f ::after,#sortter-dialog-container .container-module--large--6239f ::before,// eslint-disable-next-line max-len #sortter-dialog-container .container-module--large--6239f *{text-rendering:geometricPrecision;-webkit-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-box-sizing:inherit;box-sizing:inherit;margin:0;padding:0}#sortter-dialog-container .container-module--large--6239f button,#sortter-dialog-container .container-module--large--6239f input,#sortter-dialog-container .container-module--large--6239f optgroup,#sortter-dialog-container .container-module--large--6239f select,#sortter-dialog-container .container-module--large--6239f textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}#sortter-dialog-container{width:100%!important;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-top:76px;margin-bottom:76px;z-index:250}#sortter-dialog-container input[type=range]{max-width:100%!important;margin:0!important;border:none!important;box-shadow:none!important}#sortter-dialog-container input[type=range]::-moz-range-track{box-shadow:none!important}#sortter-dialog-container button,#sortter-dialog-container input{overflow:visible!important}#sortter-dialog-container input[type=number]::-webkit-inner-spin-button,#sortter-dialog-container input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}#sortter-dialog-container input[type=number]:focus::-webkit-inner-spin-button,#sortter-dialog-container input[type=number]:focus::-webkit-outer-spin-button{-webkit-appearance:auto!important;appearance:auto!important;margin:0!important}#sortter-dialog-container input[type=number]{-moz-appearance:textfield!important;margin:0!important}#sortter-dialog-container input[type=number]:focus{appearance:auto!important}#sortter-dialog-container img{border-style:none!important}#sortter-dialog-container>.calculator-module--calculator--md+db{width:100%!important}#sortter-dialog-container .widget-calculator-module--widget-calculator--SMEDZ{background-color:#fff;border-radius:24px;-webkit-box-shadow:0 4px 33px 0 rgba(0,0,0,.25);box-shadow:0 4px 33px 0 rgba(0,0,0,.25);padding:16px;position:relative}.widget-calculator-module--widget-form-title{font-size:32px;line-height:1.2;margin-bottom:2.5rem;font-weight:700}#sortter-dialog-container .title-module--base--jFNbR{color:var(--label-color);font-weight:400;scroll-margin-top:1rem;word-break:break-word;margin-top:.75rem}#sortter-dialog-container .title-module--bold--Iqu8E{font-weight:700}#sortter-dialog-container .title-module--heading3--D5fNW{font-size:24px;letter-spacing:.8px}#sortter-dialog-container .widget-calculator-module--title--RqJJg{font-weight:400;margin-bottom:2rem}#sortter-dialog-container .slider-with-input-module--container--aDFzP{margin-bottom:1.25rem}#sortter-dialog-container .slider-with-input-module--title-container--6D3Um{display:-ms-flexbox;display:flex;gap:1rem}#sortter-dialog-container .title-module--heading4--TXOyA{font-size:20px!important;letter-spacing:.7px!important}#sortter-dialog-container .slider-with-input-module--slider-label--Jk0Q8{margin:0}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt{margin-top:.5rem}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--slider-value--HcRNw{border:0;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:0;border-bottom:3px solid transparent;color:var(--highlight-color);font-size:24px;font-weight:700;outline:0;padding:0;white-space:nowrap;width:100%}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--slider-value--HcRNw input{font-weight:700;font-size:24px;color:var(--highlight-color);text-align:right;border:1px solid transparent}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--slider-value--HcRNw input:focus{outline:0!important;border:1px solid transparent;border-bottom:solid 3px var(--highlight-color);width:auto;text-align:center}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--slider-value--HcRNw input:focus+span{display:none}@media screen and (min-width:750px){#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--slider-value--HcRNw input{text-align:right}}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--slider-value--HcRNw{border:0;border-top-color:currentcolor;border-right-color:currentcolor;border-bottom-color:currentcolor;border-bottom-style:none;border-bottom-width:0;border-left-color:currentcolor;border-bottom:3px solid transparent;border-bottom-color:transparent;color:var(--highlight-color);font-size:24px;font-weight:700;outline:0;padding:0;white-space:nowrap;width:100%}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--editable-slider-value--KffuN{-webkit-appearance:none;border-color:#0faa16;border-radius:0}#sortter-dialog-container .widget-calculator-module--cta-section--AeoTf{text-align:center;margin-top:1.25rem}#sortter-dialog-container .widget-calculator-module--calculation--FC305{color:var(--highlight-color);font-size:48px;font-weight:700;text-align:center}#sortter-dialog-container .widget-calculator-module--tooltip-and-label--CqZur{-ms-flex-pack:center;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;justify-content:center}#sortter-dialog-container .widget-calculator-module--calculation-text--nSd-O{color:var(--highlight-color);font-weight:400;white-space:nowrap}#sortter-dialog-container .text-module--base--AjetI{color:var(--highlight-color)}#sortter-dialog-container .text-module--large--bgJwG{font-size:16px;line-height:1.5}#sortter-dialog-container .tooltip-module--icon--YFggw{-ms-flex-align:center;-ms-flex-pack:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;justify-content:center;margin:-8px;padding:8px;position:relative}#sortter-dialog-container .tooltip-module--icon-svg--OfwvU{height:20px;width:20px}#sortter-dialog-container .widget-calculator-module--tooltip-and-label--CqZur img{height:16px;margin-left:4px;width:16px}#sortter-dialog-container .widget-calculator-module--cta-btn--pV9f\+{margin-top:1rem;white-space:nowrap}#sortter-dialog-container .button-module--button--1E5vB{-ms-flex-align:center!important;-ms-flex-pack:center!important;align-items:center!important;border:0!important;cursor:pointer!important;display:-ms-flexbox!important;display:flex!important;-ms-flex:1 1!important;flex:1 1!important;font-weight:700!important;justify-content:center!important;outline:0!important;text-align:center!important;text-decoration:none!important;-webkit-transition:-webkit-box-shadow .2s ease-out,-webkit-transform .3s ease-in-out!important;transition:-webkit-box-shadow .2s ease-out,-webkit-transform .3s ease-in-out!important;transition:box-shadow .2s ease-out,transform .3s ease-in-out!important;transition:box-shadow .2s ease-out,transform .3s ease-in-out,-webkit-box-shadow .2s ease-out,-webkit-transform .3s ease-in-out!important}#sortter-dialog-container .button-module--primary--vbOtN{background-color:var(--button-color)!important;border-radius:4rem!important;color:#fff!important;font-size:1.25rem!important;letter-spacing:.3px!important;padding:1rem 1.5rem!important}#sortter-dialog-container .button-module--full-width--6eNEr .button-module--button--1E5vB{line-height:1.15!important;width:auto}#sortter-dialog-container .widget-calculator-module--disclaimer--QfGbo{color:#000!important;font-size:16px!important;font-weight:400!important;letter-spacing:.2px!important;line-height:1.63!important;margin-top:16px!important}#sortter-dialog-container .slider-module--slider--UBNwU[type=range]::-moz-range-track{background:0 0!important;border-bottom:3px dotted var(--highlight-color-transparent-50)!important;cursor:default!important;height:3px!important;height:0!important;-moz-transition:all .2s ease;transition:all .2s ease!important;width:100%!important}#sortter-dialog-container .slider-module--slider--UBNwU[type=range]::-moz-range-thumb{backface-visibility:hidden!important;border:none!important;border-radius:16px!important;box-shadow:2px 3px 4px var(--highlight-color-transparent-42)!important;cursor:pointer!important;height:32px!important;width:48px!important}#sortter-dialog-container .slider-module--slider--UBNwU[type=range]{-moz-appearance:none;appearance:none!important;-webkit-appearance:none;background:0 0!important;height:32px!important;outline:0!important;padding:1.5rem .25rem 1.5rem 0;position:relative!important;width:100%!important;-webkit-box-sizing:border-box;box-sizing:border-box!important}#sortter-dialog-container .slider-module--slider--UBNwU[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;background:0 0!important;border-bottom:3px dotted var(--highlight-color-transparent-50)!important;cursor:default!important;height:3px!important;height:0!important;-webkit-transition:all .2s ease;transition:all .2s ease!important;width:100%!important}#sortter-dialog-container .slider-module--slider--UBNwU[type=range]::-webkit-slider-thumb{backface-visibility:hidden!important;-webkit-appearance:none;border:none!important;border-radius:16px!important;box-shadow:2px 3px 4px var(--highlight-color-transparent-42)!important;cursor:pointer!important;height:32px!important;width:48px!important;margin-top:-14px}#sortter-dialog-container .slider-module--slider--UBNwU[type=range]{-webkit-appearance:none;appearance:none!important;background:0 0!important;height:32px!important;outline:0!important;padding:1.5rem .25rem 1.5rem 0;position:relative!important;width:100%!important;-webkit-box-sizing:border-box;box-sizing:border-box!important}#sortter-dialog-container .slider-module--progress-container--dCZ6w{-webkit-backface-visibility:hidden;backface-visibility:hidden;border-radius:8px;left:0;overflow:hidden;position:absolute;right:0;top:22px;-webkit-transform:translateZ(0);transform:translateZ(0);width:calc(100% - 5px)}#sortter-dialog-container .slider-module--progress-container--dCZ6w .slider-module--progress---xdJn{background-color:var(--highlight-color);height:5px;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);width:100%;will-change:transform;position:relative}#sortter-dialog-container .slider-module--container--9l7my{display:block;overflow:hidden;position:relative;margin-bottom:1.25rem}#sortter-dialog-container .widget-calculator-module--privacy-text{font-size:13px;margin-top:0}@media screen and (min-width:360px){#sortter-dialog-container .slider-with-input-module--headline--04Ybd{-ms-flex-align:center;-ms-flex-pack:justify;align-items:center;display:-ms-flexbox;display:flex;justify-content:space-between;margin-top:1.25rem}}@media (min-width:750px){#sortter-dialog-container .widget-calculator-module--widget-calculator--SMEDZ{border-radius:64px;padding:2rem 3rem}#sortter-dialog-container .title-module--heading3--D5fNW{font-size:28px}#sortter-dialog-container .title-module--heading4--TXOyA{font-size:24px!important}#sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt{-ms-flex:0 0 200px;flex:0 0 200px}#sortter-dialog-container .slider-with-input-module--slider-value--HcRNw{font-size:28px!important;text-align:center}#sortter-dialog-container .slider-with-input-module--static-slider-value--jt60U{text-align:right}#sortter-dialog-container .widget-calculator-module--cta-section--AeoTf{grid-column-gap:1.5rem;display:grid;grid-template-columns:1fr auto}#sortter-dialog-container .widget-calculator-module--calculation--FC305{font-size:58px;text-align:left}#sortter-dialog-container .widget-calculator-module--tooltip-and-label--CqZur{-ms-flex-pack:start;justify-content:flex-start}#sortter-dialog-container .text-module--large--bgJwG{font-size:18px!important}#sortter-dialog-container .widget-calculator-module--cta-btn--pV9f\+{margin-top:.5rem}#sortter-dialog-container .button-module--full-width--6eNEr .button-module--button--1E5vB{width:auto!important}}@media (min-width:1366px){#sortter-dialog-container .container-module--large--6239f{margin-left:auto;margin-right:auto;max-width:80rem!important;padding-left:0;padding-right:0}#sortter-dialog-container .calculator-module--container--uH8E6{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin-bottom:0;padding:2rem 0 0}#sortter-dialog-container .calculator-module--calculator--md\+db{-ms-flex:7 1;flex:7 1}#sortter-dialog-container .tooltip-module--icon--YFggw{margin:0;padding:0}#sortter-dialog-container .tooltip-module--icon-svg--OfwvU{height:auto;width:auto}#sortter-dialog-container .button-module--primary--vbOtN{font-size:1.5rem;padding:1.5rem 2.5rem}}#sortter-dialog-container h1#sortter-brand{padding:.25em 0;margin:0;font-size:36px;font-weight:600;color:#5367ea;text-align:left;border:none}#sortter-dialog-container h1#sortter-brand+p{font-weight:400;margin-bottom:2rem;letter-spacing:.8px;font-size:24px;color:var(--title-color);font-weight:400;scroll-margin-top:1rem;word-break:break-word;margin-top:.75rem}#presentation-text-ztg92{font-size:24px}.widget-calculator-module--disclaimer-text--Qgpp3{font-size:16px!important;font-size:small}@media screen and (min-width:750px){#sortter-dialog-container h1#sortter-brand+p{font-size:28px}}#sortter-dialog-container #landing-calculator-button-onboarding:hover{color:#fff;background-color:var(--button-color)!important;text-decoration:none!important;box-shadow:0 4px 22px 0 #0faa16,.6}@media screen and (max-width:350px){.selector-module--selector--0e86c button{font-size:1rem}#sortter-dialog-container .widget-calculator-module--calculation--FC305{font-size:32px}}.widget-calculator-module--footer{display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:flex-start;column-gap:1rem}@media screen and (min-width:768px){.widget-calculator-module--footer{column-gap:2rem}}`,$e=B`.layout-strict .selector-module--selector--0e86c{padding:0}.layout-strict .selector-module--container--6016e{border-radius:24px;margin-bottom:1rem;padding:.25rem .5rem;width:calc(100% - 1rem)}.layout-strict #sortter-dialog-container .widget-calculator-module--widget-calculator--SMEDZ{box-shadow:0 -1px 5px 0 rgba(0,0,0,.15),0 4px 4px 0 rgba(0,0,0,.25)}.layout-strict .widget-calculator-module--cta-section--AeoTf{grid-template-columns:repeat(2,1fr)!important;row-gap:1.5rem!important}.layout-strict #sortter-dialog-container .widget-calculator-module--calculation--FC305{text-align:left}.layout-strict #sortter-dialog-container .widget-calculator-module--tooltip-and-label--CqZur{-ms-flex-pack:start;justify-content:start}.layout-strict #landing-calculator-button-onboarding__container{margin-top:0!important}.layout-strict #sortter-dialog-container .button-module--primary--vbOtN{font-size:1rem!important;padding:.75em 1em!important}.layout-strict .widget-calculator-module--disclaimer-text--Qgpp3{margin-top:1.5rem}.layout-strict #sortter-dialog-container .widget-calculator-module--privacy-text,.layout-strict .widget-calculator-module--disclaimer-text--Qgpp3{font-size:10px!important;line-height:1.25!important}.layout-strict .widget-calculator-module--footer{flex-flow:column nowrap;justify-content:start;align-items:start;gap:.5rem}.layout-strict #sortter-splash-screen{padding:1rem;box-sizing:border-box;position:absolute;width:98%;height:98%;top:1%;bottom:1%;left:1%;right:1%;border-radius:24px}.layout-strict #sortter-loader-container{flex-direction:column;text-align:center}.layout-strict #sortter-dialog-container .widget-calculator-module--disclaimer--QfGbo{margin-top:0!important}.layout-strict #sortter-backup-link-container{flex-direction:column;line-height:1.25;text-align:center;padding:0 .5rem}.layout-strict.layout-strict-480 #sortter-dialog-container .widget-calculator-module--widget-calculator--SMEDZ{padding:1rem 1.5rem;border-radius:32px}.layout-strict.layout-strict-480 .widget-calculator-module--widget-form-title{font-size:28px;margin-bottom:1em}.layout-strict.layout-strict-480 #sortter-dialog-container .title-module--heading4--TXOyA{font-size:20px!important}.layout-strict.layout-strict-480 #sortter-dialog-container .text-module--large--bgJwG{font-size:14px!important}.layout-strict.layout-strict-480 #sortter-dialog-container .widget-calculator-module--calculation--FC305{font-size:32px}.layout-strict.layout-strict-300 .widget-calculator-module--widget-form-title{font-size:22px!important;margin-bottom:1em!important}.layout-strict.layout-strict-300 #sortter-dialog-container .title-module--heading4--TXOyA{font-size:16px!important}.layout-strict.layout-strict-300 #sortter-dialog-container .text-module--large--bgJwG{font-size:12px!important}.layout-strict.layout-strict-300 #sortter-dialog-container .widget-calculator-module--calculation--FC305{font-size:28px!important}.layout-strict.layout-strict-300 #sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt .slider-with-input-module--slider-value--HcRNw input{font-size:16px!important}.layout-strict.layout-strict-300 #presentation-text-ztg92{font-size:16px}.layout-strict.layout-strict-300 .selector-module--selector--0e86c button{font-size:.75rem}.layout-strict.layout-strict-300 #sortter-dialog-container .slider-with-input-module--slider-value-container--1xDRt{-ms-flex:0 0 25px;flex:0 0 25px}.layout-strict.layout-strict-300 #sortter-dialog-container .widget-calculator-module--widget-calculator--SMEDZ{border-radius:24px;padding:1rem}`,Le=(r,t)=>{const e=r[t];return e?typeof e=="function"?e():Promise.resolve(e):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+t)))})},ke="fi",_e=["ee","fi"],{getLocale:Te,setLocale:Se}=be({sourceLocale:ke,targetLocales:_e,loadLocale:r=>Le(Object.assign({"../generated/locales/ee.ts":()=>Promise.resolve().then(()=>Ee),"../generated/locales/fi.ts":()=>Promise.resolve().then(()=>Me)}),`../generated/locales/${r}.ts`)});var Ae=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,d=(r,t,e,o)=>{for(var i=o>1?void 0:o?Ce(t,e):t,a=r.length-1,n;a>=0;a--)(n=r[a])&&(i=(o?n(t,e,i):n(i))||i);return o&&i&&Ae(t,e,i),i};l.SortterResellerForm=class extends H{constructor(){super(),this.b2cButtonText="Lähetä hakemus",this.b2bButtonText="Lähetä hakemus",this.b2cFormTitle="Vertaile lainatarjouksia helposti",this.b2bFormTitle="Lainalaskuri - kilpailuta yrityslaina tästä",this.hideLogo=!0,this.hideSplashScreen=!0,this.b2cUrl="https://sortter.fi/lainahakemus/",this.b2bUrl="https://sortter.fi/yrityslainahakemus/",this.hidePrivacyPolicy=!0,this.sendAmountPeriod="true",this.titleColor="#041264",this.labelColor="#041264",this.highLightColor="#586bea",this.buttonColor="#0faa16",this.fontFamily="Branding, sans-serif",this.locale="fi",this.layout="",this.counter=3,this.sortterSumTranslate3Dprogress=0,this.sortterTimeTranslate3Dprogress=0,this.monthlyPayment=0,this.pickedLoanType="personal",this.pickedLoanMax=0,this.defaultLoanAmount=0,this.loanStep=500,this.loanTotalPayment=0,this.realYearlyInterestRate=0,this.pickedLoanType=this.getAttribute("type")==="corporate"?"corporate":this.pickedLoanType;const t=this.getAttribute("defaultLoanType");["personal","corporate"].includes(t)&&this.getAttribute("type")==="both"&&(this.pickedLoanType=this.getAttribute("defaultLoanType"));const e={b2cLoanAmount:15e3,b2cLoanPeriod:9,b2cLoanMax:7e4,b2bLoanAmount:5e4,b2bLoanPeriod:24,b2bLoanMax:1e7};this.getAttribute("b2cLoanAmount")&&(e.b2cLoanAmount=Number(this.getAttribute("b2cLoanAmount"))),this.getAttribute("b2cLoanPeriod")&&(e.b2cLoanPeriod=Number(this.getAttribute("b2cLoanPeriod"))),this.getAttribute("b2bLoanAmount")&&(e.b2bLoanAmount=Number(this.getAttribute("b2bLoanAmount"))),this.getAttribute("b2bLoanPeriod")&&(e.b2bLoanPeriod=Number(this.getAttribute("b2bLoanPeriod"))),this.getAttribute("b2cLoanMax")&&(e.b2cLoanMax=Number(this.getAttribute("b2cLoanMax"))),this.getAttribute("b2bLoanMax")&&(e.b2bLoanMax=Number(this.getAttribute("b2bLoanMax"))),this.setLoanDetails(e)}setLoanDetails(t){this.pickedLoanType==="personal"?(this.pickedLoanMax=t.b2cLoanMax,this.pickedLoanMin=1e3,this.defaultLoanAmount=t.b2cLoanAmount,this.defaultLoanTime=t.b2cLoanPeriod,this.defaultMaxTime=20,this.sortterTimeTranslate3Dprogress=t.b2cLoanPeriod/20*100-100,this.sortterSumTranslate3Dprogress=(t.b2cLoanPeriod-this.pickedLoanMin)/(this.pickedLoanMax-this.pickedLoanMin)*100-100):this.pickedLoanType==="corporate"&&(this.pickedLoanMax=t.b2bLoanMax,this.pickedLoanMin=500,this.defaultLoanAmount=t.b2bLoanAmount,this.defaultLoanTime=t.b2bLoanPeriod,this.defaultMaxTime=this.getMaxTime(),this.sortterTimeTranslate3Dprogress=t.b2bLoanPeriod/this.getMaxTime()*100-100,this.sortterSumTranslate3Dprogress=(t.b2bLoanAmount-this.pickedLoanMin)/(this.pickedLoanMax-this.pickedLoanMin)*100-100)}get dynamicStyles(){return this.theme==="custom"?B``:[ve,$e]}updated(t){super.updated(t),t.has("theme")&&this.requestUpdate()}async firstUpdated(){this.sortterSumTranslate3Dprogress=((this.defaultLoanAmount??0)-(this.pickedLoanMin??0))/((this.pickedLoanMax??7e4)-(this.pickedLoanMin??0))*100-100,this.sortterTimeTranslate3Dprogress=(this.defaultLoanTime??0)/this.getMaxTime()*100-100,this.monthlyPayment=this.calculateMonthlyPayment(this.defaultLoanAmount??0,this.defaultLoanTime??0),this.formElement=this.renderRoot.querySelector("#sortter-reseller-form-element"),this.splashScreen=this.renderRoot.querySelector("#sortter-splash-screen"),await Se(this.locale??"fi")}buildUrl(){const t=this.pickedLoanType==="personal"?this.b2cUrl:this.b2bUrl;let e=this.sendAmountPeriod==="true"?`${t}?amount=${this.defaultLoanAmount}&period=${this.defaultLoanTime}`:`${t}?`;const o=this.getUtmCookie();if(this.utm!==void 0){const a=this.utm.split("&").map(n=>{const[c,s]=n.split("=");return`${c}=${encodeURIComponent(s)}`});e=`${e}&${a.join("&")}`,this.alternativeUrl||(this.alternativeUrl=e)}return o&&(e=this.concatCookies(e,o)),e}redirectToUrl(){var o,i;const t=this.buildUrl();(o=this.splashScreen)==null||o.classList.remove("inactive"),(i=this.splashScreen)==null||i.classList.add("active");const e=setInterval(()=>{this.counter-=1,this.counter===0&&(clearInterval(e),this.stage==="test"?window.alert(`👉 ${t}`):window.self!==window.top?window.parent.location.href=t:window.location.href=t)},1e3)}getFormTitle(){return this.pickedLoanType==="personal"?this.b2cFormTitle:this.b2bFormTitle}getButtonText(){return this.pickedLoanType==="personal"?this.b2cButtonText:this.b2bButtonText}getUtmCookie(){const t=document.cookie.split("; ").find(o=>o.startsWith("__gtm_campaign_url"));return t?decodeURIComponent(t).split("?")[1]:""}concatCookies(t,e){const o=new URL(t),i=o.search,a=new URLSearchParams(e),n=new URLSearchParams(i);return a.forEach((c,s)=>{n.set(s,c)}),`${o.origin}${o.pathname}?${n.toString()}`}adjustMaxTreshold(t){return t+999999}calculateMonthlyPayment(t,e){const o=c=>(s,m)=>{const h=this.pickedLoanType==="corporate"?m:12*m,x=5,p=0+x*h/100,f=this.pickedLoanType==="personal"?c.find(({from:Ue})=>Ue<=s).rate:7;this.loanInterest=f;const _=f/12/100+1,Rt=_**h,Pe=s*(Rt-_**(h+1)),Re=1-Rt,Ut=Pe/Re+x,lt=Ut*h;this.loanTotalPayment=lt,this.realYearlyInterestRate=100*((1+f/100/12)**12-1+60/(s/2));const zt=lt-s-p,Nt=(p+zt)/10;return{nominalInterestRate:f,effectiveInterestRate:100*((1+f/100/12)**12-1+60/(s/2)),invoiceFeeInEur:5,monthlyPaymentInEur:Ut,totalAmountInEur:lt,openingFeeInEur:0,totalFeesInEur:p,totalInterestInEur:zt,totalSavings:Nt,monthlySavings:Nt/h}},i=[{from:500,rate:9},{from:1e4,rate:8.5},{from:12500,rate:8.5},{from:17500,rate:8},{from:22500,rate:8},{from:25e3,rate:7.5},{from:3e4,rate:7.5},{from:35e3,rate:7},{from:4e4,rate:7}].reverse(),n=o(i)(t,e);return Math.round(n.monthlyPaymentInEur)}loanChanges(t){this.defaultLoanAmount=Number(t.target.value),this.monthlyPayment=this.calculateMonthlyPayment(this.defaultLoanAmount??0,this.defaultLoanTime??0),this.sortterSumTranslate3Dprogress=(this.defaultLoanAmount-(this.pickedLoanMin??0))/((this.pickedLoanMax??7e4)-(this.pickedLoanMin??0))*100-100,this.defaultLoanAmount<9500&&(this.loanStep=500),this.defaultLoanAmount>9999&&this.defaultLoanAmount<99999&&(this.loanStep=1e3),this.defaultLoanAmount>99999&&(this.loanStep=2e4),this.pickedLoanType==="corporate"&&this.defaultLoanAmount>9500&&this.defaultLoanAmount<this.adjustMaxTreshold(this.pickedLoanMax)&&this.defaultLoanAmount.toString().slice(-3)==="500"&&(this.defaultLoanAmount-=500),this.pickedLoanType==="personal"&&this.loanStep!==500&&(this.loanStep=500),this.defaultMaxTime=this.getMaxTime(),this.defaultMaxTime<(this.defaultLoanTime??0)&&(this.defaultLoanTime=this.defaultMaxTime),this.sortterTimeTranslate3Dprogress=((this.defaultLoanTime??0)-1)/(this.getMaxTime()-1)*100-100}loadDefaults(){this.pickedLoanType==="corporate"&&(this.pickedLoanMax=this.b2bLoanMax??1e7,this.pickedLoanMin=500,this.defaultLoanAmount=this.b2bLoanAmount??5e4,this.defaultLoanTime=this.b2bLoanPeriod??24,this.defaultMaxTime=this.getMaxTime(),this.sortterTimeTranslate3Dprogress=(this.defaultLoanTime-1)/(this.getMaxTime()-1)*100-100,this.sortterSumTranslate3Dprogress=(this.defaultLoanAmount-(this.pickedLoanMin??0))/((this.pickedLoanMax??7e4)-(this.pickedLoanMin??0))*100-100,this.monthlyPayment=this.calculateMonthlyPayment(this.defaultLoanAmount??0,this.defaultLoanTime??0),this.requestUpdate()),this.pickedLoanType==="personal"&&(this.pickedLoanMax=this.b2cLoanMax??7e4,this.pickedLoanMin=1e3,this.defaultLoanAmount=this.b2cLoanAmount??15e3,this.defaultLoanTime=this.b2cLoanPeriod??9,this.defaultMaxTime=this.getMaxTime(),this.loanStep=500,this.sortterTimeTranslate3Dprogress=(this.defaultLoanTime-1)/(this.getMaxTime()-1)*100-100,this.sortterSumTranslate3Dprogress=(this.defaultLoanAmount-(this.pickedLoanMin??0))/((this.pickedLoanMax??7e4)-(this.pickedLoanMin??0))*100-100,this.monthlyPayment=this.calculateMonthlyPayment(this.defaultLoanAmount??0,this.defaultLoanTime??0),this.requestUpdate())}hexToRgba(t,e){const o=parseInt(t.slice(1,3),16),i=parseInt(t.slice(3,5),16),a=parseInt(t.slice(5,7),16);return`rgba(${o}, ${i}, ${a}, ${e})`}getMaxTime(){return this.pickedLoanType==="corporate"?this.defaultLoanAmount>=1e5?120:48:20}getLoanTextLocalized(){return Te()==="ee"?`Laenuperiood võib olla 1 kuni ${this.defaultMaxTime} kuud.
72
+ Näide: Kui laenusumma on ${this.defaultLoanAmount.toLocaleString().replace(/,/g," ")} €,
73
+ intressimäär ${this.loanInterest}%, tagastamise tähtaeg ${this.defaultLoanTime??10} kuud
74
+ ja tasu 0 €, igakuine osamakse ${this.monthlyPayment.toLocaleString().replace(/,/g," ")} €,
75
+ tagastatav summa ${Math.trunc(this.loanTotalPayment).toLocaleString().replace(/,/g," ")} € ning krediidi kulukuse määr on
76
+ ${this.realYearlyInterestRate.toFixed(2)}% aastas.`:`Laina-aika voi olla 1 - ${this.defaultMaxTime} ${this.pickedLoanType==="personal"?"vuotta":"kuukautta"},
77
+ lainasumma ${this.pickedLoanMin} – ${this.pickedLoanMax.toLocaleString().replace(/,/g," ")} € ja korko 4–20 %.
78
+ Esimerkki: Kun lainasumma on ${this.defaultLoanAmount.toLocaleString().replace(/,/g," ")} €, korko ${this.loanInterest}%,
79
+ takaisinmaksuaika ${this.defaultLoanTime??10} ${this.pickedLoanType==="personal"?" vuotta":"kuukautta"}, avausmaksu 0 €
80
+ ja tilinhoitomaksu 5 €/kk, kuukausierä on ${this.monthlyPayment.toLocaleString().replace(/,/g," ")} €, takaisinmaksettava summa
81
+ ${Math.trunc(this.loanTotalPayment).toLocaleString().replace(/,/g," ")} € sekä todellinen vuosikorko on ${this.realYearlyInterestRate.toFixed(2)} %.`}getWrapperClass(){return this.layout==="300"?"layout-strict layout-strict-300":this.layout==="480"?"layout-strict layout-strict-480":""}getWrapperLayoutSize(){return this.layout==="300"?"max-width: 300px; height: 600px; overflow: hidden; position:relative;":this.layout==="480"?"max-width: 480px; height: 600px; overflow:hidden; position:relative;":""}getDialogContainerSize(){return this.layout==="300"||this.layout==="480"?"width: 98% !important; height: 98%; margin: 1% auto; container-type: inline-size;":""}getFormSize(){return this.layout==="300"||this.layout==="480"?"height: 100%;":""}render(){var x;const t=w`<svg id="loader-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="margin:auto;background:#fff;display:block;shape-rendering:auto" width="200px" height="200px" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid"><g transform="rotate(0 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"/></rect></g><g transform="rotate(30 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"/></rect></g><g transform="rotate(60 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.75s" repeatCount="indefinite"/></rect></g><g transform="rotate(90 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"/></rect></g><g transform="rotate(120 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"/></rect></g><g transform="rotate(150 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.5s" repeatCount="indefinite"/></rect></g><g transform="rotate(180 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"/></rect></g><g transform="rotate(210 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"/></rect></g><g transform="rotate(240 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.25s" repeatCount="indefinite"/></rect></g><g transform="rotate(270 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"/></rect></g><g transform="rotate(300 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"/></rect></g><g transform="rotate(330 50 50)"><rect x="47" y="24" rx="3" ry="6" width="6" height="12" fill="#0a0a0a"><animate attributeName="opacity" values="1;0" keyTimes="0;1" dur="1s" begin="0s" repeatCount="indefinite"/></rect></g></svg>`,e=w`<div class="selector-module--container--6016e"><div role="tablist" class="selector-module--selector--0e86c"><button id="loan-form-tab-personal" style="font-family:${this.fontFamily}" role="tab" aria-selected="${this.pickedLoanType==="personal"?"true":"false"}" aria-controls="sortter-reseller-form-element" class="${this.pickedLoanType==="personal"?"selector-module--selected--af668":null}" @click="${()=>{this.pickedLoanType="personal",this.loadDefaults()}}">Kulutusluotot</button> <button id="loan-form-tab-corporate" style="font-family:${this.fontFamily}" role="tab" aria-selected="${this.pickedLoanType==="corporate"?"true":"false"}" aria-controls="sortter-reseller-form-element" class="${this.pickedLoanType==="corporate"?"selector-module--selected--af668":null}" @click="${()=>{this.pickedLoanType="corporate",this.loadDefaults()}}">Yrityslainat</button></div></div>`,o=w`<svg width="112" height="24" viewBox="0 0 124 26" style="vertical-align:bottom"><path fill="#586bea" d="M0 22.961a6.04 6.04 0 012.649-4.584 11.354 11.354 0 007.02 2.348c2.743 0 3.813-.888 3.813-2.236 0-1.348-.609-2-4.921-3.119C4.424 14.37.8 12.749.763 7.784.763 3.044 4.503 0 10.145 0c4.238 0 7.056 1.386 8.508 2.541-.111 1.77-1.06 3.745-2.649 4.665a10.754 10.754 0 00-6.24-1.931c-2.247 0-3.47.85-3.47 2.006 0 1.156.53 1.77 4.921 2.852 4.577 1.155 7.703 3.118 7.782 7.548.117 5.35-3.586 8.319-9.461 8.319C4.614 26 1.589 24.347 0 22.961zM21 16.022C21 9.995 25.235 6 31.04 6 36.845 6 41 9.907 41 16.022 41 22.016 36.781 26 30.96 26 25.139 26 21 22.214 21 16.022zm14.232 0c0-3.08-1.538-5.09-4.23-5.09-2.69 0-4.272 2.01-4.272 5.09s1.602 5.09 4.273 5.09c2.67 0 4.23-2.054 4.23-5.09zM55 6.73a7.627 7.627 0 01-1.555 4.713 7.79 7.79 0 00-2.162-.322 6.165 6.165 0 00-2.721.537v13.111c-.926.156-1.862.233-2.8.231-.925 0-1.849-.076-2.762-.23V8.68C44.228 7.523 46.95 6 50.832 6c1.418.013 2.825.26 4.168.73zm18 17.283a9.67 9.67 0 01-6.078 1.985c-4.306 0-7.548-1.725-7.548-6.076V12.49h-3.177A14.014 14.014 0 0156 10.166c.006-.754.072-1.507.197-2.252h3.199v-4.69c.994-.146 2-.22 3.006-.224.952 0 1.902.076 2.841.224v4.69h6.583c.174.726.268 1.466.28 2.21a11.646 11.646 0 01-.28 2.366h-6.583v6.04c0 2.028.988 2.705 2.743 2.705a4.074 4.074 0 002.606-1.042c1.312.913 2.18 2.29 2.408 3.82zm17 0a9.655 9.655 0 01-6.076 1.985c-4.295 0-7.533-1.725-7.533-6.076V12.49h-3.194A14.031 14.031 0 0173 10.166a14.2 14.2 0 01.197-2.252h3.194v-4.69c.992-.146 1.994-.22 2.997-.224.953 0 1.904.076 2.843.224v4.69h6.575c.173.726.267 1.466.28 2.21a11.66 11.66 0 01-.28 2.366H82.23v6.04c0 2.027.987 2.705 2.74 2.705a4.066 4.066 0 002.602-1.042c1.318.909 2.194 2.287 2.427 3.82zM107.808 17.394H95.783c.343 2.655 1.75 3.849 4.456 3.849 2.283 0 3.917-.952 5.328-1.903a6.063 6.063 0 012.05 3.998 12.244 12.244 0 01-7.991 2.656c-5.593 0-9.626-3.608-9.626-9.898C90 10.157 94.033 6 99.435 6c5.101 0 8.563 3.365 8.563 8.633.013.924-.05 1.848-.19 2.76zm-5.175-3.3c0-1.82-.835-3.48-3.171-3.601-2.167 0-3.426 1.462-3.7 3.601h6.871zM124 6.73a7.628 7.628 0 01-1.532 4.713 7.743 7.743 0 00-2.17-.322 6.205 6.205 0 00-2.73.537v13.111c-.926.156-1.863.233-2.802.231-.926 0-1.851-.077-2.766-.23V8.68c1.235-1.157 3.955-2.68 7.842-2.68 1.414.015 2.817.262 4.157.73z"></path></svg>`,i=this.logoSrc?w`${this.logoLink?w`<a href="${this.logoLink}" target="_blank"><img src="${this.logoSrc}" alt="logo" style="width:132px;height:38px;object-fit:cover"></a>`:w`<img src="${this.logoSrc}" alt="logo" style="width:132px;height:38px;object-fit:cover">`}`:w`${this.logoLink?w`<a href="${this.logoLink}" target="_blank">${o}</a>`:o}`,a=w`<p class="widget-calculator-module--privacy-text">${this.privacyPolicyText??"Tutustu tietosuojaselosteeseemme täältä:"} <a href="${this.privacyPolicyUrl??"https://sortter.fi/tietosuojaseloste/"}">Tietosuojaseloste</a></p>`,n=w`<button @click="${()=>this.redirectToUrl()}" id="landing-calculator-button-onboarding" role="button" title="${this.getButtonText()}" class="button-module--button--1E5vB button-module--primary--vbOtN" data-wct-parsed="1" target="_top"><span>${this.getButtonText()}</span><span style="margin-left:12px">»</span></button>`,c=w`<a href="${this.buildUrl()}" id="landing-calculator-button-onboarding" role="button" title="${this.getButtonText()}" class="button-module--button--1E5vB button-module--primary--vbOtN" data-wct-parsed="1" target="_blank" rel="noopener noreferrer"><span>${this.getButtonText()}</span><span style="margin-left:12px">»</span></a>`;this.style.setProperty("--title-color",this.titleColor??"#041264"),this.style.setProperty("--label-color",this.labelColor??"#041264"),this.style.setProperty("--highlight-color",this.highLightColor??"#586bea");const s=this.hexToRgba(this.highLightColor??"#586bea",.5),m=this.hexToRgba(this.highLightColor??"#586bea",.42),g=this.hexToRgba(this.highLightColor??"#586bea",.1);this.style.setProperty("--highlight-color-transparent-50",s),this.style.setProperty("--highlight-color-transparent-42",m),this.style.setProperty("--highlight-color-transparent-10",g),this.style.setProperty("--highlight-color-url-encoded",encodeURIComponent(this.highLightColor??"#586bea")),this.style.setProperty("--button-color",this.buttonColor??"#586bea");const h=this.highLightColor==="#586bea"?`
82
+ #sortter-dialog-container .slider-module--slider--UBNwU[type="range"]::-webkit-slider-thumb {
83
+ background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect width='48' height='32' fill='%23fff' rx='16'/%3E%3Ccircle cx='32' cy='16' r='8' fill='%23586bea'/%3E%3C/svg%3E") !important;
84
+ }
85
+ #sortter-dialog-container .slider-module--slider--UBNwU[type="range"]::-moz-range-thumb {
86
+ background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect width='48' height='32' fill='%23fff' rx='16'/%3E%3Ccircle cx='32' cy='16' r='8' fill='%23586bea'/%3E%3C/svg%3E") !important;
87
+ }`:`
88
+ #sortter-dialog-container .slider-module--slider--UBNwU[type="range"]::-webkit-slider-thumb {
89
+ background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect width='48' height='32' fill='%23fff' rx='16'/%3E%3Ccircle cx='32' cy='16' r='8' fill='${this.highLightColor.replace("#","%23")}'/%3E%3C/svg%3E") !important;
90
+ }
91
+ #sortter-dialog-container .slider-module--slider--UBNwU[type="range"]::-moz-range-thumb {
92
+ background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 32'%3E%3Crect width='48' height='32' fill='%23fff' rx='16'/%3E%3Ccircle cx='32' cy='16' r='8' fill='${this.highLightColor.replace("#","%23")}'/%3E%3C/svg%3E") !important;
93
+ }
94
+ `;return w`<style>${this.dynamicStyles}</style><style>${h}</style><div id="sortter-dialog-wrapper" class="${this.getWrapperClass()}" style="${this.getWrapperLayoutSize()}"><div id="sortter-dialog-container" class="container-module--large--6239f calculator-module--container--uH8E6" style="font-family:${this.fontFamily};${this.getDialogContainerSize()}">${this.type==="both"?e:null}<form id="sortter-reseller-form-element" class="active calculator-module--calculator--md+db" style="${this.getFormSize()}"><div id="landing-calculator-unsecured" data-calculator="" class="widget-calculator-module--widget-calculator--SMEDZ">${this.bannerLink?w`<img src="${this.bannerLink}" alt="banner" style="width:100%;height:250px;border-radius:32px;object-fit:cover;margin-top:10px">`:null}<h2 class="widget-calculator-module--widget-form-title title-module--base--8c535">${this.getFormTitle()}</h2><div class="slider-with-input-module--headline--04Ybd"><div class="slider-with-input-module--title-container--6D3Um"><label for="loanSum" class="title-module--base--jFNbR title-module--heading4--TXOyA title-module--bold--Iqu8E slider-with-input-module--slider-label--Jk0Q8">${this.pickedLoanType==="personal"?E("Valitse lainasumma"):E("Lainasumma")}</label></div><div class="slider-with-input-module--slider-value-container--1xDRt"><div id="landing-calculator-loan-amount-slider-input-edit" style="display:block" class="slider-with-input-module--slider-value--HcRNw slider-with-input-module--static-slider-value--jt60U"><input id="loanSum" aria-label="lainasumma" type="number" size="${this.defaultLoanAmount.toString().length}" step="${this.loanStep}" min="${this.pickedLoanMin}" max="${this.pickedLoanMax+(this.pickedLoanType==="corporate"?500:0)}" .value="${this.defaultLoanAmount}" value="${this.defaultLoanAmount}" @input="${p=>{const f=p.target;Number(f.value)>this.pickedLoanMax||this.loanChanges(p)}}" @blur="${p=>{const f=p.target,_=Number(f.value);if(_>this.pickedLoanMax){f.value="10000000",this.loanChanges(p);return}_%this.loanStep!==0&&(f.value=`${_-_%this.loanStep}`),this.loanChanges(p)}}" style="font-family:${this.fontFamily}"><span role="presentation" id="presentation-text-ztg92">€</span></div></div></div><label for="landing-calculator-loan-amount-slider" class="slider-module--container--9l7my"><div class="slider-module--progress-container--dCZ6w"><div id="landing-calculator-loan-amount-progress" class="slider-module--progress---xdJn" style="transform:translate3d(${this.sortterSumTranslate3Dprogress}%,0,0)"></div></div><input class="slider-module--slider--UBNwU" min="${this.pickedLoanMin}" max="${this.pickedLoanMax+(this.pickedLoanType==="corporate"?500:0)}" step="${this.loanStep}" type="range" id="landing-calculator-loan-amount-slider" name="loanSum" aria-label="lainasumma" @input="${p=>this.loanChanges(p)}" .value="${this.defaultLoanAmount}"></label><div class="slider-with-input-module--headline--04Ybd"><div class="slider-with-input-module--title-container--6D3Um"><label for="loanTime" class="title-module--base--jFNbR title-module--heading4--TXOyA title-module--bold--Iqu8E slider-with-input-module--slider-label--Jk0Q8">${this.pickedLoanType==="personal"?E("Valitse laina-aika"):E("Laina-aika")}</label></div><div class="slider-with-input-module--slider-value-container--1xDRt"><div id="landing-calculator-loan-period-slider-input-edit" style="display:block" class="slider-with-input-module--slider-value--HcRNw slider-with-input-module--static-slider-value--jt60U"><input id="loanTime" aria-label="laina-aika" type="number" min="1" size="${((x=this.defaultLoanTime)==null?void 0:x.toString().length)??2}" max="${this.defaultMaxTime}" .value="${this.defaultLoanTime}" value="${this.defaultLoanTime}" @input="${p=>{this.defaultLoanTime=p.target.valueAsNumber,this.monthlyPayment=this.calculateMonthlyPayment(this.defaultLoanAmount??0,this.defaultLoanTime??0),this.sortterTimeTranslate3Dprogress=(this.defaultLoanTime-1)/(this.getMaxTime()-1)*100-100}}" @blur="${p=>{this.defaultLoanTime=p.target.valueAsNumber;const f=this.defaultMaxTime??120;this.defaultLoanTime>f&&(this.defaultLoanTime=f,this.monthlyPayment=this.calculateMonthlyPayment(this.defaultLoanAmount??0,this.defaultLoanTime??0),this.sortterTimeTranslate3Dprogress=(this.defaultLoanTime-1)/(this.getMaxTime()-1)*100-100)}}" style="font-family:${this.fontFamily}"><span role="presentation" id="presentation-text-ztg92">${this.pickedLoanType==="personal"?"vuotta":E("kuukautta")}</span></div></div></div><label for="landing-calculator-loan-period-slider" class="slider-module--container--9l7my"><div class="slider-module--progress-container--dCZ6w"><div id="landing-calculator-loan-period-progress" class="slider-module--progress---xdJn" style="transform:translate3d(${this.sortterTimeTranslate3Dprogress}%,0,0)"></div></div><input min="1" max="${this.defaultMaxTime}" step="1" type="range" name="loanTime" id="landing-calculator-loan-period-slider" class="slider-module--slider--UBNwU" aria-label="laina-aika" @input="${p=>{this.defaultLoanTime=p.target.valueAsNumber,this.monthlyPayment=this.calculateMonthlyPayment(this.defaultLoanAmount??0,this.defaultLoanTime??0),this.sortterTimeTranslate3Dprogress=(this.defaultLoanTime-1)/(this.getMaxTime()-1)*100-100}}" .value="${this.defaultLoanTime??10}"></label><div class="widget-calculator-module--cta-section--AeoTf"><div id="landing-calculator-calculation" class="widget-calculator-module--calculation--FC305"><span>${this.monthlyPayment.toLocaleString().replace(/,/g," ")}</span> €<div class="widget-calculator-module--tooltip-and-label--CqZur"><div class="text-module--base--AjetI text-module--large--bgJwG text-module--normal-font--zx+s2 widget-calculator-module--calculation-text--nSd-O">${E("Arvioitu kuukausierä")}</div></div></div><div id="landing-calculator-button-onboarding__container"><div class="button-module--full-width--6eNEr widget-calculator-module--cta-btn--pV9f+">${this.hideSplashScreen?n:c}</div></div></div><div data-disclaimer="" class="widget-calculator-module--disclaimer--QfGbo"><p class="widget-calculator-module--disclaimer-text--Qgpp3">${this.getLoanTextLocalized()}</p></div><div class="widget-calculator-module--footer"><div class="widget-calculator-module--disclaimer--QfGbo">${this.hidePrivacyPolicy?a:null}</div><div class="widget-calculator-module--disclaimer--QfGbo">${this.hideLogo?i:null}</div></div></div></form><div id="sortter-splash-screen" class="inactive widget-calculator-module--disclaimer--QfGbo"><img id="affiliateLogo" src="${this.splashLogo}"><div id="sortter-loader-container"><div>${t}</div><p>Siirrämme sinut ulkoiseen palveluun ${this.counter} sekunnin kuluttua...</p></div><div id="sortter-backup-link-container"><p>Jos sinua ei siirretä automaattisesti, klikkaa ajan päättyessä <a id="sortter-final-link-anchor" href="${this.alternativeUrl}">tästä.</a></p></div><div id="sortter-poweredby-container">${this.hideLogo?i:null}</div></div></div></div>`}},l.SortterResellerForm.styles=[we],d([u()],l.SortterResellerForm.prototype,"alternativeUrl",2),d([u()],l.SortterResellerForm.prototype,"b2cButtonText",2),d([u()],l.SortterResellerForm.prototype,"b2bButtonText",2),d([u()],l.SortterResellerForm.prototype,"b2cFormTitle",2),d([u()],l.SortterResellerForm.prototype,"b2bFormTitle",2),d([u()],l.SortterResellerForm.prototype,"hideLogo",2),d([u()],l.SortterResellerForm.prototype,"hideSplashScreen",2),d([u()],l.SortterResellerForm.prototype,"theme",2),d([u()],l.SortterResellerForm.prototype,"b2cUrl",2),d([u()],l.SortterResellerForm.prototype,"b2bUrl",2),d([u()],l.SortterResellerForm.prototype,"hidePrivacyPolicy",2),d([u()],l.SortterResellerForm.prototype,"privacyPolicyUrl",2),d([u()],l.SortterResellerForm.prototype,"privacyPolicyText",2),d([u()],l.SortterResellerForm.prototype,"utm",2),d([u()],l.SortterResellerForm.prototype,"type",2),d([u()],l.SortterResellerForm.prototype,"splashLogo",2),d([u()],l.SortterResellerForm.prototype,"stage",2),d([u()],l.SortterResellerForm.prototype,"defaultLoanType",2),d([u({type:Number})],l.SortterResellerForm.prototype,"b2cLoanPeriod",2),d([u({type:Number})],l.SortterResellerForm.prototype,"b2cLoanAmount",2),d([u({type:Number})],l.SortterResellerForm.prototype,"b2cLoanMax",2),d([u({type:Number})],l.SortterResellerForm.prototype,"b2bLoanPeriod",2),d([u({type:Number})],l.SortterResellerForm.prototype,"b2bLoanAmount",2),d([u({type:Number})],l.SortterResellerForm.prototype,"b2bLoanMax",2),d([u()],l.SortterResellerForm.prototype,"sendAmountPeriod",2),d([u()],l.SortterResellerForm.prototype,"titleColor",2),d([u()],l.SortterResellerForm.prototype,"labelColor",2),d([u()],l.SortterResellerForm.prototype,"highLightColor",2),d([u()],l.SortterResellerForm.prototype,"buttonColor",2),d([u()],l.SortterResellerForm.prototype,"logoSrc",2),d([u()],l.SortterResellerForm.prototype,"logoLink",2),d([u()],l.SortterResellerForm.prototype,"bannerLink",2),d([u()],l.SortterResellerForm.prototype,"fontFamily",2),d([u()],l.SortterResellerForm.prototype,"locale",2),d([u()],l.SortterResellerForm.prototype,"layout",2),d([y()],l.SortterResellerForm.prototype,"formElement",2),d([y()],l.SortterResellerForm.prototype,"splashScreen",2),d([y()],l.SortterResellerForm.prototype,"counter",2),d([y()],l.SortterResellerForm.prototype,"sortterSumTranslate3Dprogress",2),d([y()],l.SortterResellerForm.prototype,"sortterTimeTranslate3Dprogress",2),d([y()],l.SortterResellerForm.prototype,"monthlyPayment",2),d([y()],l.SortterResellerForm.prototype,"pickedLoanType",2),d([y()],l.SortterResellerForm.prototype,"pickedLoanMax",2),d([y()],l.SortterResellerForm.prototype,"pickedLoanMin",2),d([y()],l.SortterResellerForm.prototype,"defaultLoanAmount",2),d([y()],l.SortterResellerForm.prototype,"defaultLoanTime",2),d([y()],l.SortterResellerForm.prototype,"defaultMaxTime",2),d([y()],l.SortterResellerForm.prototype,"loanStep",2),d([y()],l.SortterResellerForm.prototype,"loanInterest",2),d([y()],l.SortterResellerForm.prototype,"loanTotalPayment",2),d([y()],l.SortterResellerForm.prototype,"realYearlyInterestRate",2),l.SortterResellerForm=d([oe("sortter-reseller-form"),de()],l.SortterResellerForm);const Ee=Object.freeze(Object.defineProperty({__proto__:null,templates:{s186c6c97e852519d:"Laenuperiood",s4e3960d90185b547:"Vali laenusumma",s827aaf43231bba43:"Vali laenuperiood",sb30b831f0f8f43a7:"Kuumakse alates",sc378fadb9b2c6fd9:"Laenusumma",se19964a115c52b12:"kuud"}},Symbol.toStringTag,{value:"Module"})),Me=Object.freeze(Object.defineProperty({__proto__:null,templates:{s186c6c97e852519d:"Laina-aika",s4e3960d90185b547:"Valitse lainasumma",s827aaf43231bba43:"Valitse laina-aika",sb30b831f0f8f43a7:"Arvioitu kuukausierä",sc378fadb9b2c6fd9:"Lainasumma",se19964a115c52b12:"kuukautta"}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty(l,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sortter/sortter-resellers-web-component",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "contributors": [