@cling-se/widget 0.17.3 → 0.18.0
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 +7 -0
- package/dist/AddClientCallout-Bod9Eqx4.js +101 -0
- package/dist/AnswerModal-a2cyKFbt.js +3371 -0
- package/dist/AttachmentItem-DBUqckCS.js +171 -0
- package/dist/BaseUpload-DrWzuvbS.js +6503 -0
- package/dist/BlockMedia-DuE_K9hR.js +103 -0
- package/dist/CCallout-CM1VsH30.js +104 -0
- package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-C_lAaq4P.js} +91 -53
- package/dist/CDropdownItem-DMUAJ90n.js +749 -0
- package/dist/CFormField.vue_vue_type_script_setup_true_lang-BqAyWe3T.js +292 -0
- package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-Dnn_cKk7.js} +13 -21
- package/dist/CPhoneInput-DuGkDiv-.js +207 -0
- package/dist/CPriceInput-B7DYzKcF.js +142 -0
- package/dist/CSelect-BZZDr27O.js +98 -0
- package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-D2jDhnYI.js +51 -0
- package/dist/ClientAutocomplete-DuaJ5zDf.js +532 -0
- package/dist/ClientModal-CaMSjLkD.js +1188 -0
- package/dist/ColorPicker-BISZPQ6j.js +1408 -0
- package/dist/CompanyModal-ClTcmU4Y.js +250 -0
- package/dist/ContentWrapper-Bj7jbWU0.js +265 -0
- package/dist/CoverBlockSettings-AXyiLxrF.js +861 -0
- package/dist/DocAnswer-Bu09V33D.js +33 -0
- package/dist/DocDetails-B6-2LKsO.js +452 -0
- package/dist/DocForm-CFN8LWSd.js +6772 -0
- package/dist/DocFormSend-D1CUhy4n.js +171 -0
- package/dist/DocLinks-CuliFqtN.js +36 -0
- package/dist/DocModalBase-BxKsnwN-.js +29 -0
- package/dist/DocPrint-B_HJ_RET.js +399 -0
- package/dist/DocReceipt-D-A1TaTI.js +341 -0
- package/dist/DocSendReminder-BKTJonzh.js +181 -0
- package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CEPcJT2o.js} +7907 -5579
- package/dist/DocTimeline-CF9S4YDZ.js +537 -0
- package/dist/DocumentClient-7mbq2QA4.js +90 -0
- package/dist/DocumentLayout-DkFlHgW6.js +1434 -0
- package/dist/DocumentLogotype-BTYMdpNi.js +162 -0
- package/dist/DocumentVoided-CWr5WMUv.js +33 -0
- package/dist/EmbedInput-SevVEpwc.js +156 -0
- package/dist/EmbedSettings-YMbUmp1O.js +103 -0
- package/dist/ErrorCallout-CQo2iF9c.js +34 -0
- package/dist/FilePreviewModal-C0xBeoAz.js +202 -0
- package/dist/Flag-BObij6SN.js +41 -0
- package/dist/HeaderSettings-C77pR78n.js +720 -0
- package/dist/ImageSelectModal-DKdU-0uq.js +119 -0
- package/dist/ImageUploadWrapper-BGkS5Cll.js +1585 -0
- package/dist/Index-B3y-jq9s.js +1098 -0
- package/dist/Index-B41pUREi.js +47 -0
- package/dist/Index-BEyeS1OG.js +52 -0
- package/dist/Index-BG5j8ZFP.js +93 -0
- package/dist/Index-BOT65yQR.js +68 -0
- package/dist/Index-BQNl-cXP.js +28 -0
- package/dist/Index-BY6xsS7C.js +38 -0
- package/dist/Index-Bh0Xv5ry.js +163 -0
- package/dist/Index-Bn4FSQcx.js +228 -0
- package/dist/Index-BrRIAede.js +87 -0
- package/dist/Index-C-6um0kX.js +76 -0
- package/dist/{Index-C_aIQ908.js → Index-C-gHa5xk.js} +319 -214
- package/dist/Index-C0wcjKCH.js +629 -0
- package/dist/Index-C6BbUFYw.js +160 -0
- package/dist/Index-C8xwJ0m1.js +200 -0
- package/dist/Index-CKgFEJF4.js +140 -0
- package/dist/{Index-Dfq7egc1.js → Index-CQwmu4f1.js} +47 -60
- package/dist/Index-CXchTpBa.js +74 -0
- package/dist/{Index-Ch9r5yhG.js → Index-CYoRt8PA.js} +9 -17
- package/dist/Index-CZZNQ4q5.js +39 -0
- package/dist/Index-CkaAs5ms.js +136 -0
- package/dist/Index-CtpXaBz8.js +363 -0
- package/dist/Index-CxDsSGtZ.js +126 -0
- package/dist/Index-DFkTBm02.js +102 -0
- package/dist/Index-DP3ll8F-.js +70 -0
- package/dist/{Index-RWMPRDAE.js → Index-DPDzMKQa.js} +10 -18
- package/dist/Index-DvxSig3z.js +25 -0
- package/dist/Index-Dzrn3Y6p.js +16 -0
- package/dist/{Index-CRiATiQn.js → Index-LQb0omFE.js} +10 -18
- package/dist/Index-Mt4mSaNT.js +4 -0
- package/dist/Index-_xN_cczo.js +3477 -0
- package/dist/Index-gAz45qgR.js +21 -0
- package/dist/Index-xXLFalgR.js +49 -0
- package/dist/Index-zyZRPz3H.js +28 -0
- package/dist/Index.vue_vue_type_script_lang-Ddo1wo-D.js +671 -0
- package/dist/InputToggleRow-CokEYwm2.js +99 -0
- package/dist/ManualPopover-Dukly7GP.js +65 -0
- package/dist/MediaWrapper-B8msCrQm.js +18 -0
- package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DcQd8Eej.js} +13 -17
- package/dist/PackageGroup-clUIUoik.js +1060 -0
- package/dist/PdfTerms-DpzMVRfN.js +34 -0
- package/dist/PdfViewer-CSf4Rtbj.js +392 -0
- package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D6KSjjMA.js +17 -0
- package/dist/PriceHeader-Dyweu8aH.js +488 -0
- package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-Y1fDQn0u.js} +37 -49
- package/dist/SendForm-B9l24WwR.js +6689 -0
- package/dist/Setup-DyzbPFM4.js +47 -0
- package/dist/{SmartList-BynTuXtB.js → SmartList-CWGKoAJh.js} +16 -24
- package/dist/Sortable.vue_vue_type_script_setup_true_lang-C2Gwp6Q-.js +1349 -0
- package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-BeQH307A.js} +169 -56
- package/dist/ThemeColorRow-DFIsPy55.js +105 -0
- package/dist/ToggleBinding-DlH4y1IM.js +44 -0
- package/dist/UploadModal-BZ0mPBBB.js +134 -0
- package/dist/VideoPlayerInput-DBxcTUb7.js +134 -0
- package/dist/VideoPlayerSettings-Dg1OxjOa.js +78 -0
- package/dist/VideoSelectModal-BhbanMix.js +217 -0
- package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
- package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
- package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
- package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-BVbTYOGr.js} +1 -1
- package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-CogZ-GVm.js} +2 -2
- package/dist/helpers-B4GUxtdD.js +46 -0
- package/dist/index-BZDey7B-.js +268 -0
- package/dist/index-Bd8_ZHHq.js +188 -0
- package/dist/index-BvyoYp1e.js +508 -0
- package/dist/index-CJZoubA3.js +3525 -0
- package/dist/index-D7yQWP4d.js +125 -0
- package/dist/index-D8hGHka6.js +513 -0
- package/dist/index-Dxy4tf7x.js +149 -0
- package/dist/index.es.js +2 -5
- package/dist/index.umd.js +303 -1486
- package/dist/main-Bn5XkQPb.js +57570 -0
- package/dist/mapFormMixin-C7FJLnbO.js +1528 -0
- package/dist/omit-DrWpFvRJ.js +56 -0
- package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-tdtCFPMx.js} +4 -4
- package/dist/splitpanes-BApidgjj.js +342 -0
- package/dist/template-CHdf2K2I.js +1572 -0
- package/dist/tippy.esm-Co6FYzEM.js +1994 -0
- package/dist/useTermsModal-VDnO1Lro.js +87 -0
- package/dist/{utils-Dr4AcaE9.js → utils-DZkn0Q9c.js} +8 -11
- package/dist/validation-CqBkar3f.js +40 -0
- package/dist/widget.css +1 -0
- package/package.json +20 -25
- package/dist/AddClientCallout-Br6IhwGH.js +0 -48
- package/dist/AnswerModal-CsWltR6j.js +0 -3879
- package/dist/AttachmentItem-BG7FuSCD.js +0 -85
- package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
- package/dist/BaseUpload-BfEurAAV.js +0 -1977
- package/dist/BlockMedia-Bo3OfNSU.js +0 -76
- package/dist/CCallout-CAjM8-1X.js +0 -58
- package/dist/CDropdownItem-CN7gSfgY.js +0 -640
- package/dist/CFormField-Clvcf2Jh.js +0 -240
- package/dist/CPhoneInput-CEHXh5jM.js +0 -138
- package/dist/CPriceInput-D2c07SXp.js +0 -116
- package/dist/CSelect-Cz2IPzxS.js +0 -91
- package/dist/CSkeleton-AsnvnD-m.js +0 -55
- package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
- package/dist/ClientModal-CgUhWZ5L.js +0 -666
- package/dist/ColorPicker-IFGHqH-u.js +0 -2879
- package/dist/CompanyModal-TLSBFo3U.js +0 -147
- package/dist/ContentWrapper-HClxKPuT.js +0 -190
- package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
- package/dist/DocAnswer-CTV_Bpt7.js +0 -36
- package/dist/DocDetails-CQe5htXj.js +0 -263
- package/dist/DocForm-6Efv5_oz.js +0 -5017
- package/dist/DocFormSend-DbXcklxU.js +0 -146
- package/dist/DocLinks-BO545zbL.js +0 -38
- package/dist/DocModalBase-DXHNJ-6i.js +0 -28
- package/dist/DocPrint-Bf2U4FQN.js +0 -240
- package/dist/DocReceipt-CWXvC7bY.js +0 -217
- package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
- package/dist/DocTimeline-DGVOk8-2.js +0 -485
- package/dist/DocumentClient-Das9BaJ7.js +0 -136
- package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
- package/dist/DocumentLogotype-DLncJJAB.js +0 -92
- package/dist/DocumentVoided-CcI9lX27.js +0 -25
- package/dist/EmbedInput-BPdy0lGS.js +0 -117
- package/dist/EmbedSettings-L2iwYLQK.js +0 -74
- package/dist/ErrorCallout-Ds_tBT02.js +0 -27
- package/dist/FilePreviewModal-hxUu330p.js +0 -81
- package/dist/Flag-1-HcT5Dz.js +0 -46
- package/dist/HeaderSettings-C27fMugK.js +0 -440
- package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
- package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
- package/dist/Index-5BOWxcPG.js +0 -26
- package/dist/Index-B1Odktov.js +0 -754
- package/dist/Index-B3d5BjEn.js +0 -25
- package/dist/Index-B3sSU_4X.js +0 -54
- package/dist/Index-B5Dqsh3K.js +0 -150
- package/dist/Index-B6aO1c_w.js +0 -62
- package/dist/Index-BGfICxJQ.js +0 -643
- package/dist/Index-BHopC0hv.js +0 -24
- package/dist/Index-BJXcSmp_.js +0 -55
- package/dist/Index-BQe6QjQZ.js +0 -25
- package/dist/Index-BmXx_x6t.js +0 -77
- package/dist/Index-C692qMTG.js +0 -294
- package/dist/Index-CEvbw-3i.js +0 -41
- package/dist/Index-CYSULnpn.js +0 -32
- package/dist/Index-CdtYzwAM.js +0 -107
- package/dist/Index-CetF2FW0.js +0 -230
- package/dist/Index-Cv6XLM20.js +0 -73
- package/dist/Index-Cwy8ff76.js +0 -154
- package/dist/Index-D34z4UEY.js +0 -84
- package/dist/Index-DNCei-lp.js +0 -56
- package/dist/Index-DUbxgIYB.js +0 -2445
- package/dist/Index-DVwn_LLf.js +0 -28
- package/dist/Index-Dla-mesV.js +0 -146
- package/dist/Index-KtUkOPI2.js +0 -58
- package/dist/Index-LjnOTVJk.js +0 -66
- package/dist/Index-ky1SRtfY.js +0 -94
- package/dist/Index-mceZW2NX.js +0 -41
- package/dist/Index-tD3hZjh8.js +0 -144
- package/dist/Index-vM5kDtC2.js +0 -33
- package/dist/InputToggleRow-BmDuSbE2.js +0 -57
- package/dist/ManualPopover-CQfjPvFe.js +0 -60
- package/dist/MediaWrapper-DDzcjR6V.js +0 -23
- package/dist/PackageGroup-mAGXfZDv.js +0 -704
- package/dist/PdfTerms-BH_Nwf2h.js +0 -31
- package/dist/PdfViewer-mBLxI8bA.js +0 -383
- package/dist/PlainHtml-B7gUNNZd.js +0 -27
- package/dist/PriceHeader-DClYMPcq.js +0 -338
- package/dist/SendForm-Cxv_m8Rq.js +0 -1023
- package/dist/Setup-B90VDZTG.js +0 -50
- package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
- package/dist/ToggleBinding-DOeTcWzi.js +0 -42
- package/dist/UploadModal-DOPLVEpV.js +0 -95
- package/dist/VideoPlayerInput-1zG06elO.js +0 -97
- package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
- package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
- package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
- package/dist/debounce-Ch1d3526.js +0 -84
- package/dist/formValidationMixin-D_MzsHsR.js +0 -49
- package/dist/index-BNdbPq4J.js +0 -492
- package/dist/index-BXzugeJ6.js +0 -81
- package/dist/index-C5wcxrC6.js +0 -167
- package/dist/index-CgDOs7t4.js +0 -2700
- package/dist/index-Cj-_2coz.js +0 -351
- package/dist/index-DpqV5y0K.js +0 -102
- package/dist/main-BL_yzf2r.js +0 -57357
- package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
- package/dist/omit-Dfe_H1Ft.js +0 -31
- package/dist/simplebar.min-CRlLD1Oz.js +0 -71
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-BX_w77tW.js +0 -18
- package/dist/tippy.esm-n4arfVzA.js +0 -1805
- package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -0,0 +1,1572 @@
|
|
|
1
|
+
import { aB as C, p as _, aC as v, a9 as H, aD as x } from "./main-Bn5XkQPb.js";
|
|
2
|
+
const G = (e) => [
|
|
3
|
+
{
|
|
4
|
+
itemId: "embed",
|
|
5
|
+
itemType: "embed",
|
|
6
|
+
value: {
|
|
7
|
+
embed: `data.embed-${e}.embed`,
|
|
8
|
+
size: `data.embed-${e}.size`
|
|
9
|
+
},
|
|
10
|
+
isVisible: {
|
|
11
|
+
"!!": { var: `data.embed-${e}.embed.src` }
|
|
12
|
+
},
|
|
13
|
+
parentId: "0",
|
|
14
|
+
nodeId: v()
|
|
15
|
+
}
|
|
16
|
+
], I = (e) => [
|
|
17
|
+
{
|
|
18
|
+
key: `embed-${e}`,
|
|
19
|
+
$ref: `${_.api.baseUrl}/schemas/embed/1.json`,
|
|
20
|
+
defaultValue: {
|
|
21
|
+
embed: {},
|
|
22
|
+
size: "small"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
], U = () => null, p1 = ({
|
|
26
|
+
includeMockData: e = !1,
|
|
27
|
+
document: t = null,
|
|
28
|
+
contentData: a = null
|
|
29
|
+
} = {}) => {
|
|
30
|
+
const i = v();
|
|
31
|
+
let n = null;
|
|
32
|
+
return typeof a == "function" ? n = a(i) : e && (n = U()), {
|
|
33
|
+
readView: G(i),
|
|
34
|
+
validation: I(i),
|
|
35
|
+
...n && { data: n }
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
C.loadOptions({
|
|
39
|
+
namespaces: "embedContentItems",
|
|
40
|
+
messages: {
|
|
41
|
+
en: {
|
|
42
|
+
previewTitle: "Embed"
|
|
43
|
+
},
|
|
44
|
+
sv: {
|
|
45
|
+
previewTitle: "Bädda in"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const c1 = ({ language: e = "en" } = {}) => [
|
|
50
|
+
{
|
|
51
|
+
previewUrl: `
|
|
52
|
+
<div style="position: relative;">
|
|
53
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
54
|
+
<g clip-path="url(#embed-clip0)">
|
|
55
|
+
<rect width="400" height="250" fill="#9859FF"/>
|
|
56
|
+
<g filter="url(#embed-filter0_dd)">
|
|
57
|
+
<rect x="98" y="77" width="366" height="142" rx="10" fill="#363636"/>
|
|
58
|
+
</g>
|
|
59
|
+
<mask id="embed-mask0" mask-type="alpha" maskUnits="userSpaceOnUse" x="98" y="89" width="366" height="191">
|
|
60
|
+
<path d="M98 89H464V264C464 269.601 464 272.401 462.91 274.54C461.951 276.422 460.422 277.951 458.54 278.91C456.401 280 453.601 280 448 280H114C108.399 280 105.599 280 103.46 278.91C101.578 277.951 100.049 276.422 99.0899 274.54C98 272.401 98 269.601 98 264V89Z" fill="white"/>
|
|
61
|
+
</mask>
|
|
62
|
+
<g mask="url(#embed-mask0)">
|
|
63
|
+
<path d="M98 89H464V264C464 269.601 464 272.401 462.91 274.54C461.951 276.422 460.422 277.951 458.54 278.91C456.401 280 453.601 280 448 280H114C108.399 280 105.599 280 103.46 278.91C101.578 277.951 100.049 276.422 99.0899 274.54C98 272.401 98 269.601 98 264V89Z" fill="white"/>
|
|
64
|
+
</g>
|
|
65
|
+
<g filter="url(#embed-filter1_i)">
|
|
66
|
+
<rect x="98" y="92" width="366" height="1" fill="black" fill-opacity="0.05"/>
|
|
67
|
+
</g>
|
|
68
|
+
<path d="M98 72C98 66.3995 98 63.5992 99.0899 61.4601C100.049 59.5785 101.578 58.0487 103.46 57.0899C105.599 56 108.399 56 114 56H448C453.601 56 456.401 56 458.54 57.0899C460.422 58.0487 461.951 59.5785 462.91 61.4601C464 63.5992 464 66.3995 464 72V92H98V72Z" fill="#EDEDED"/>
|
|
69
|
+
<circle cx="124" cy="76" r="6" fill="#ED6A5E"/>
|
|
70
|
+
<circle cx="124" cy="76" r="5.75" stroke="black" stroke-opacity="0.1" stroke-width="0.5"/>
|
|
71
|
+
<circle cx="144" cy="76" r="6" fill="#F4BD50"/>
|
|
72
|
+
<circle cx="144" cy="76" r="5.75" stroke="black" stroke-opacity="0.1" stroke-width="0.5"/>
|
|
73
|
+
<circle cx="164" cy="76" r="6" fill="#61C454"/>
|
|
74
|
+
<circle cx="164" cy="76" r="5.75" stroke="black" stroke-opacity="0.1" stroke-width="0.5"/>
|
|
75
|
+
</g>
|
|
76
|
+
<defs>
|
|
77
|
+
<filter id="embed-filter0_dd" x="33" y="32" width="496" height="272" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
78
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
79
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
80
|
+
<feMorphology radius="15" operator="dilate" in="SourceAlpha" result="effect1_dropShadow"/>
|
|
81
|
+
<feOffset dy="20"/>
|
|
82
|
+
<feGaussianBlur stdDeviation="25"/>
|
|
83
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0"/>
|
|
84
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
85
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
86
|
+
<feMorphology radius="5" operator="dilate" in="SourceAlpha" result="effect2_dropShadow"/>
|
|
87
|
+
<feOffset/>
|
|
88
|
+
<feGaussianBlur stdDeviation="15"/>
|
|
89
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.14 0"/>
|
|
90
|
+
<feBlend mode="normal" in2="effect1_dropShadow" result="effect2_dropShadow"/>
|
|
91
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow" result="shape"/>
|
|
92
|
+
</filter>
|
|
93
|
+
<filter id="embed-filter1_i" x="98" y="92" width="366" height="1" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
94
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
95
|
+
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
|
|
96
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
|
|
97
|
+
<feOffset dy="0.5"/>
|
|
98
|
+
<feComposite in2="hardAlpha" operator="arithmetic" k2="-1" k3="1"/>
|
|
99
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0.85098 0 0 0 0 0.85098 0 0 0 0 0.85098 0 0 0 1 0"/>
|
|
100
|
+
<feBlend mode="normal" in2="shape" result="effect1_innerShadow"/>
|
|
101
|
+
</filter>
|
|
102
|
+
<clipPath id="embed-clip0">
|
|
103
|
+
<rect width="400" height="250" fill="white"/>
|
|
104
|
+
</clipPath>
|
|
105
|
+
</defs>
|
|
106
|
+
</svg>
|
|
107
|
+
<div class="submenu-item-badge">
|
|
108
|
+
${C.t("embedContentItems:previewTitle", { lng: e })}
|
|
109
|
+
</div>
|
|
110
|
+
</div>
|
|
111
|
+
`,
|
|
112
|
+
contentData: (t) => ({
|
|
113
|
+
[`data.embed-${t}`]: {
|
|
114
|
+
embed: {},
|
|
115
|
+
size: "medium"
|
|
116
|
+
// null will use dimensions set by iframe attributes
|
|
117
|
+
}
|
|
118
|
+
})
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
previewUrl: `
|
|
122
|
+
<div style="position: relative;">
|
|
123
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
124
|
+
<rect width="400" height="250" fill="white"/>
|
|
125
|
+
<path d="M176.17 100.488V139.301L181.164 139.339V120.848H193.212V115.967H181.164V105.368H196.834V100.488H176.17V100.488ZM205.832 108.38C207.624 108.38 209.111 106.932 209.111 105.102C209.111 103.271 207.662 101.823 205.832 101.823C204.04 101.823 202.553 103.271 202.553 105.102C202.553 106.932 204.002 108.38 205.832 108.38ZM203.278 113.261V139.339H208.272V113.261H203.278ZM226.801 112.498C220.167 112.498 215.554 118.103 215.554 124.775C215.554 131.447 220.167 137.051 226.801 137.051C229.851 137.051 232.33 135.907 234.16 133.963V137.432C234.198 141.741 230.766 145.325 226.42 145.363C226.382 145.363 226.382 145.363 226.344 145.363C224.743 145.363 223.179 144.753 221.921 143.876L219.405 148.222C225.353 152.073 233.283 150.357 237.095 144.41C238.43 142.313 239.154 139.911 239.154 137.432V113.299H234.16V115.624C232.33 113.68 229.851 112.498 226.801 112.498ZM220.549 124.775C220.549 120.619 223.713 117.378 227.373 117.378C231.033 117.378 234.16 120.657 234.16 124.775C234.16 128.93 230.995 132.133 227.373 132.133C223.713 132.133 220.549 128.892 220.549 124.775ZM257.15 117.378C254.176 117.416 251.774 119.856 251.812 122.83V139.301H246.818V113.222H251.812V115.624C253.337 113.604 255.701 112.46 258.255 112.498C261.763 112.498 264.47 114.214 265.995 116.882C267.749 114.176 270.723 112.536 273.925 112.498C279.606 112.498 283.152 117.073 283.152 122.754V139.301H278.195V122.83C278.195 119.856 275.831 117.416 272.858 117.378C269.884 117.416 267.482 119.856 267.52 122.83V139.301H262.487V122.83C262.487 119.856 260.124 117.416 257.15 117.378ZM309.764 116.196C307.476 113.794 304.274 112.46 300.957 112.498C293.522 112.498 288.261 118.789 288.261 126.262C288.261 133.772 293.522 140.025 300.957 140.025C304.274 140.025 307.438 138.691 309.764 136.327V139.301H314.758V113.222H309.764V116.196ZM293.255 126.262C293.255 121.305 297.068 117.34 301.528 117.34C305.951 117.378 309.764 121.305 309.764 126.262C309.764 131.218 305.951 135.145 301.49 135.145C297.106 135.183 293.255 131.256 293.255 126.262Z" fill="black"/>
|
|
126
|
+
<path d="M111.656 124.546C111.656 117.454 117.413 111.697 124.505 111.697C131.596 111.697 137.353 117.454 137.353 124.546C137.353 131.637 131.596 137.394 124.505 137.394C117.413 137.394 111.656 131.637 111.656 124.546Z" fill="#1ABCFE"/>
|
|
127
|
+
<path d="M86 150.204C86 143.113 91.757 137.356 98.8485 137.356H111.697V150.204C111.697 157.296 105.94 163.053 98.8485 163.053C91.757 163.053 86 157.296 86 150.204Z" fill="#0ACF83"/>
|
|
128
|
+
<path d="M111.656 86.0381V111.697H124.505C131.596 111.697 137.353 105.94 137.353 98.8485C137.353 91.757 131.596 86 124.505 86H111.656V86.0381Z" fill="#FF7262"/>
|
|
129
|
+
<path d="M86 98.8867C86 105.978 91.757 111.735 98.8485 111.735H111.697V86.0764H98.8485C91.757 86.0382 86 91.7953 86 98.8867Z" fill="#F24E1E"/>
|
|
130
|
+
<path d="M86 124.546C86 131.637 91.757 137.394 98.8485 137.394H111.697V111.736H98.8485C91.757 111.697 86 117.454 86 124.546Z" fill="#A259FF"/>
|
|
131
|
+
</svg>
|
|
132
|
+
<div class="submenu-item-badge">
|
|
133
|
+
Demo
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
`,
|
|
137
|
+
contentData: (t) => ({
|
|
138
|
+
[`data.embed-${t}`]: {
|
|
139
|
+
embed: {
|
|
140
|
+
src: "https://www.figma.com/embed?embed_host=astra&url=https://www.figma.com/file/LKQ4FJ4bTnCSjedbRpk931/Sample-File",
|
|
141
|
+
width: "800",
|
|
142
|
+
height: "450",
|
|
143
|
+
style: "border:0;",
|
|
144
|
+
allowfullscreen: "",
|
|
145
|
+
// Only default value in embed component, override here if needed
|
|
146
|
+
loading: "lazy"
|
|
147
|
+
},
|
|
148
|
+
size: "medium"
|
|
149
|
+
// null will use dimensions set by iframe attributes
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
previewUrl: `
|
|
155
|
+
<div style="position: relative;">
|
|
156
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
157
|
+
<rect width="400" height="250" fill="white"/>
|
|
158
|
+
<path d="M101.779 133.481C104.453 136.888 106.886 140.477 109.062 144.222C110.919 147.744 111.693 150.132 113.051 154.376C113.884 156.721 114.636 157.42 116.253 157.42C118.016 157.42 118.816 156.23 119.434 154.389C120.717 150.381 121.724 147.323 123.312 144.433C126.429 138.853 130.302 133.895 134.108 129.13C135.139 127.781 141.8 119.925 144.798 113.725C144.798 113.725 148.484 106.915 148.484 97.4045C148.484 88.5081 144.849 82.3379 144.849 82.3379L134.384 85.1404L128.029 101.879L126.457 104.187L126.142 104.605L125.724 105.129L124.99 105.965L123.941 107.013L118.282 111.624L104.133 119.794L101.779 133.481Z" fill="#34A853"/>
|
|
159
|
+
<path d="M87.1758 112.58C90.6289 120.468 97.2881 127.401 101.794 133.486L125.724 105.139C125.724 105.139 122.353 109.549 116.237 109.549C109.425 109.549 103.922 104.109 103.922 97.2499C103.922 92.5464 106.752 89.3149 106.752 89.3149L90.5072 93.6677L87.1758 112.58Z" fill="#FBBC04"/>
|
|
160
|
+
<path d="M125.99 66.4575C133.938 69.0201 140.741 74.3998 144.855 82.3329L125.73 105.124C125.73 105.124 128.56 101.834 128.56 97.1597C128.56 90.1407 122.65 84.8974 116.265 84.8974C110.227 84.8974 106.76 89.2992 106.76 89.2992V74.9414L125.99 66.4575Z" fill="#4285F4"/>
|
|
161
|
+
<path d="M91.5605 76.5281C96.3077 70.8486 104.661 65 116.176 65C121.763 65 125.972 66.4667 125.972 66.4667L106.744 89.312H93.1199L91.5605 76.5281Z" fill="#1A73E8"/>
|
|
162
|
+
<path d="M87.1769 112.581C87.1769 112.581 84 106.359 84 97.3467C84 88.8283 87.3114 81.3822 91.5606 76.5278L106.754 89.3136L87.1769 112.581Z" fill="#EA4335"/>
|
|
163
|
+
<path d="M170.549 155.277V123.042H174.69L185.901 142.671H186.082L197.292 123.042H201.434V155.277H197.292V136.142L197.473 130.739H197.292L187.209 148.432H184.779L174.696 130.739H174.516L174.696 136.142V155.275L170.549 155.277ZM213.542 155.952C211.203 155.952 209.243 155.277 207.669 153.926C206.095 152.575 205.305 150.79 205.305 148.568C205.305 146.156 206.234 144.285 208.096 142.918C209.958 141.552 212.252 140.87 214.97 140.87C217.402 140.87 219.397 141.32 220.958 142.221V141.59C220.958 139.969 220.404 138.672 219.294 137.697C218.185 136.723 216.818 136.234 215.196 136.234C213.996 136.234 212.909 136.519 211.934 137.078C210.958 137.638 210.291 138.429 209.932 139.418L206.149 137.798C206.659 136.478 207.665 135.266 209.164 134.13C210.664 132.993 212.645 132.441 215.107 132.441C217.929 132.441 220.269 133.267 222.13 134.917C223.991 136.567 224.92 138.895 224.92 141.897V155.234H220.96V152.171H220.779C219.126 154.704 216.711 155.952 213.542 155.952ZM214.218 152.171C215.928 152.171 217.48 151.532 218.877 150.258C220.273 148.985 220.971 147.484 220.971 145.735C219.801 144.774 218.045 144.294 215.704 144.294C213.692 144.294 212.176 144.728 211.157 145.6C210.138 146.472 209.625 147.491 209.625 148.661C209.625 149.742 210.091 150.597 211.021 151.228C211.95 151.859 213.017 152.173 214.217 152.173L214.218 152.171ZM240.44 155.112C238.76 155.112 237.251 154.75 235.917 154.031C234.583 153.312 233.584 152.41 232.926 151.329H232.745L232.926 154.39V164.115L228.785 164.955V133.173L232.748 132.333V135.394H232.929C233.588 134.313 234.586 133.413 235.92 132.692C237.254 131.971 238.764 131.612 240.442 131.612C243.294 131.612 245.755 132.737 247.826 134.989C249.897 137.24 250.933 140.03 250.933 143.362C250.933 146.695 249.895 149.485 247.826 151.736C245.756 153.986 243.294 155.113 240.442 155.113L240.44 155.112ZM239.765 151.331C241.686 151.331 243.334 150.602 244.717 149.16C246.099 147.717 246.787 145.776 246.787 143.374C246.787 140.973 246.098 139.033 244.717 137.589C243.336 136.145 241.685 135.418 239.765 135.418C237.814 135.418 236.155 136.138 234.79 137.579C233.424 139.02 232.743 140.956 232.743 143.386C232.743 145.817 233.426 147.752 234.79 149.194C236.154 150.635 237.813 151.355 239.765 151.355V151.331ZM261.938 155.112C259.478 155.112 257.444 154.511 255.838 153.311C254.231 152.111 253.064 150.609 252.304 148.809L255.994 147.277C257.164 150.051 259.162 151.418 261.984 151.418C263.274 151.418 264.333 151.133 265.158 150.573C265.983 150.014 266.397 149.253 266.397 148.323C266.397 146.883 265.391 145.906 263.379 145.397L258.923 144.317C257.512 143.958 256.177 143.274 254.916 142.27C253.656 141.265 253.025 139.906 253.025 138.197C253.025 136.247 253.888 134.663 255.613 133.445C257.339 132.227 259.388 131.621 261.758 131.621C263.708 131.621 265.449 132.064 266.981 132.948C268.482 133.799 269.642 135.143 270.267 136.752L266.665 138.238C265.856 136.288 264.174 135.312 261.623 135.312C260.393 135.312 259.356 135.567 258.518 136.076C257.679 136.585 257.257 137.278 257.257 138.148C257.257 139.409 258.222 140.264 260.183 140.715L264.549 141.75C266.62 142.23 268.15 143.056 269.141 144.226C270.131 145.396 270.626 146.718 270.626 148.189C270.626 150.169 269.816 151.807 268.195 153.141C266.574 154.475 264.489 155.121 261.923 155.121L261.938 155.112ZM206.334 91.4814H189.345V96.5227H201.406C200.811 103.59 194.929 106.605 189.378 106.605C187.619 106.613 185.876 106.271 184.25 105.598C182.625 104.925 181.15 103.934 179.912 102.685C178.674 101.435 177.697 99.9518 177.038 98.3206C176.379 96.6894 176.052 94.9433 176.076 93.1843C176.076 85.5536 181.983 79.6765 189.391 79.6765C195.108 79.6765 198.473 83.3212 198.473 83.3212L202.003 79.6668C202.003 79.6668 197.472 74.6255 189.21 74.6255C178.69 74.6255 170.549 83.5057 170.549 93.0975C170.549 102.495 178.207 111.662 189.479 111.662C199.393 111.662 206.653 104.87 206.653 94.8258C206.653 92.7079 206.346 91.4826 206.346 91.4826L206.334 91.4814Z" fill="#808080"/>
|
|
164
|
+
<path d="M220.279 86.2153C213.308 86.2153 208.312 91.6643 208.312 98.0202C208.312 104.47 213.158 110.02 220.373 110.02C226.894 110.02 232.236 105.037 232.236 98.1577C232.236 90.2737 226.021 86.2129 220.291 86.2129L220.279 86.2153ZM220.348 90.8912C223.777 90.8912 227.025 93.6627 227.025 98.1275C227.025 102.498 223.789 105.352 220.331 105.352C216.532 105.352 213.535 102.309 213.535 98.095C213.535 93.9727 216.496 90.8924 220.347 90.8924L220.348 90.8912Z" fill="#808080"/>
|
|
165
|
+
<path d="M246.181 86.2153C239.21 86.2153 234.215 91.6643 234.215 98.0202C234.215 104.47 239.061 110.02 246.275 110.02C252.797 110.02 258.138 105.037 258.138 98.1577C258.138 90.2737 251.923 86.2129 246.193 86.2129L246.181 86.2153ZM246.25 90.8912C249.679 90.8912 252.927 93.6627 252.927 98.1275C252.927 102.498 249.691 105.352 246.233 105.352C242.434 105.352 239.437 102.309 239.437 98.095C239.437 93.9727 242.398 90.8924 246.249 90.8924L246.25 90.8912Z" fill="#808080"/>
|
|
166
|
+
<path d="M271.684 86.2152C265.286 86.2152 260.256 91.8198 260.256 98.1094C260.256 105.273 266.086 110.025 271.572 110.025C274.965 110.025 276.768 108.678 278.102 107.131V109.478C278.102 113.584 275.608 116.045 271.83 116.045C268.194 116.045 266.372 113.341 265.737 111.807L261.163 113.719C262.786 117.151 266.052 120.73 271.87 120.73C278.232 120.73 283.082 116.724 283.082 108.308V86.9244H278.091V88.9409C276.557 87.2886 274.458 86.2092 271.675 86.2092L271.684 86.2152ZM272.148 90.8827C275.286 90.8827 278.506 93.5601 278.506 98.1347C278.506 102.785 275.292 105.347 272.078 105.347C268.667 105.347 265.493 102.578 265.493 98.1781C265.493 93.5951 268.788 90.8815 272.148 90.8815V90.8827ZM305.355 86.2152C299.32 86.2152 294.251 91.0153 294.251 98.1034C294.251 105.6 299.899 110.048 305.934 110.048C310.971 110.048 314.063 107.292 315.906 104.824L311.805 102.086C310.738 103.743 308.952 105.364 305.974 105.364C302.627 105.364 301.089 103.531 300.137 101.755L316.098 95.122L315.269 93.1923C313.725 89.3908 310.129 86.2164 305.379 86.2164L305.355 86.2152ZM305.563 90.7934C307.738 90.7934 309.301 91.9512 309.968 93.3358L299.309 97.791C298.851 94.3417 302.117 90.7934 305.564 90.7934H305.563ZM286.628 109.339H291.869V74.2427H286.628V109.339Z" fill="#808080"/>
|
|
167
|
+
</svg>
|
|
168
|
+
<div class="submenu-item-badge">
|
|
169
|
+
Demo
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
`,
|
|
173
|
+
contentData: (t) => ({
|
|
174
|
+
[`data.embed-${t}`]: {
|
|
175
|
+
embed: {
|
|
176
|
+
src: "https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d8140.935764945991!2d18.0627076!3d59.329048!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x84cb551a4e4a9e7b!2sCling!5e0!3m2!1sen!2sse!4v1620987810788!5m2!1sen!2sse",
|
|
177
|
+
width: "600",
|
|
178
|
+
height: "450",
|
|
179
|
+
style: "border:0;",
|
|
180
|
+
allowfullscreen: "",
|
|
181
|
+
// Only default value in embed component, override here if needed
|
|
182
|
+
loading: "lazy"
|
|
183
|
+
},
|
|
184
|
+
size: "medium"
|
|
185
|
+
// null will use dimensions set by iframe attributes
|
|
186
|
+
}
|
|
187
|
+
})
|
|
188
|
+
},
|
|
189
|
+
// Only show Reco swedish use
|
|
190
|
+
...["cling", "fortnoxSe"].includes(_.brand) ? [
|
|
191
|
+
{
|
|
192
|
+
previewUrl: `
|
|
193
|
+
<div style="position: relative;">
|
|
194
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
195
|
+
<rect width="400" height="250" fill="white"/>
|
|
196
|
+
<path d="M146.588 107.613C145.441 105.893 138.561 107.04 135.121 108.76C134.548 108.76 133.401 109.333 134.548 110.48L135.694 114.493C135.694 120.227 133.974 125.387 132.254 129.973C131.108 132.84 129.961 135.707 131.108 136.28C131.681 137.427 132.828 136.853 140.281 136.28C141.428 136.28 141.428 136.28 142.001 135.133C143.148 125.387 146.588 114.493 149.454 114.493C150.601 114.493 150.601 115.64 151.174 116.213C152.894 121.373 161.494 114.493 159.774 109.333C158.054 104.173 152.894 104.747 146.588 113.92V107.613ZM255.521 119.653C256.094 105.893 241.761 102.453 230.294 109.907C226.281 113.347 223.414 119.08 223.414 124.24C222.841 127.68 219.974 129.4 215.388 131.12C209.081 133.987 203.348 130.547 202.774 121.947C202.774 119.08 203.921 116.213 205.641 113.347C207.934 109.333 214.241 108.187 213.094 112.2C213.094 113.347 211.374 114.493 211.948 116.213C211.948 119.08 217.108 119.08 218.828 116.787C223.414 110.48 216.534 105.893 207.361 106.467C198.188 107.613 190.734 114.493 190.734 123.667C190.734 129.973 179.841 133.987 173.534 130.547C171.814 129.973 170.094 127.68 170.668 125.387C170.668 124.24 171.241 124.24 171.814 124.24C177.548 123.093 180.414 122.52 183.281 120.227C187.868 116.213 189.014 110.48 183.854 107.613C181.561 106.467 172.388 104.747 164.934 109.907C164.934 110.48 157.481 115.067 157.481 124.24C157.481 129.973 160.348 133.987 164.934 135.707C167.801 136.853 171.241 137.427 175.254 136.853C180.988 136.28 186.721 133.413 189.588 131.12C191.308 129.973 191.881 130.547 192.454 131.12C202.201 143.16 215.961 135.133 221.694 131.12C223.414 129.973 223.988 130.547 224.561 131.693C226.854 135.133 230.294 136.853 237.174 137.427C246.921 137.427 254.948 129.973 255.521 119.653ZM170.094 121.373C167.801 118.507 174.681 108.187 178.694 109.333C181.561 109.907 182.134 111.627 180.988 114.493C179.841 117.933 171.814 122.52 170.094 121.373ZM250.361 122.52C248.068 133.413 234.308 135.707 233.161 125.387C232.588 116.213 241.188 106.467 248.641 111.627C250.934 113.347 251.508 117.933 250.361 122.52ZM290.494 119.08C284.761 119.08 280.174 122.52 279.028 128.827C277.308 139.147 292.214 141.44 299.094 131.693C300.241 131.12 299.094 129.4 297.948 130.547C295.081 132.84 292.214 134.56 289.921 133.987C287.628 133.413 285.908 129.973 287.628 129.973C294.508 129.4 296.228 125.387 296.801 124.24C297.374 121.373 295.081 119.08 290.494 119.08ZM292.788 123.093C292.214 125.387 289.921 127.68 287.628 128.253C285.908 128.253 287.628 123.093 289.921 121.947C291.641 120.8 292.788 121.947 292.788 123.093ZM262.974 135.707C265.841 138.573 272.721 138.573 275.014 136.28C277.881 134.56 278.454 130.547 275.588 127.68C272.148 125.96 271.001 124.24 271.001 123.093C271.001 120.227 275.014 120.8 273.868 123.093C272.721 125.387 276.161 127.107 277.881 124.24V121.373C276.161 118.507 271.001 118.507 267.561 119.653C263.548 121.373 262.974 125.96 266.414 128.253C268.708 129.973 270.428 131.12 269.854 132.84C269.854 135.133 266.988 135.133 266.988 132.84C266.988 130.547 265.268 129.4 263.548 129.973C261.254 131.12 261.828 133.987 262.974 135.707ZM256.094 131.12C254.374 131.12 253.228 132.267 253.228 134.56C253.228 136.28 254.374 137.427 256.094 137.427C257.814 137.427 259.534 136.28 259.534 134.56C259.534 132.267 257.814 131.12 256.094 131.12ZM126.521 102.453C122.508 95.5732 113.334 93.2798 106.454 97.2932C92.1209 105.32 100.721 127.107 118.494 129.4H121.361C121.934 129.4 122.508 128.827 121.361 128.827C119.068 128.253 117.921 126.533 116.774 124.813C127.094 121.947 131.681 111.053 126.521 102.453Z" fill="black"/>
|
|
197
|
+
<path d="M126.52 108.76C125.947 102.453 120.787 97.8668 114.48 97.2935V108.76H126.52Z" fill="#51A7D8"/>
|
|
198
|
+
<path d="M114.48 122.52C121.36 122.52 126.52 116.787 126.52 109.907H114.48V122.52Z" fill="#C3DA4A"/>
|
|
199
|
+
<path d="M101.295 109.907C101.295 116.787 106.455 122.52 113.335 122.52V109.907H101.295Z" fill="#ED2281"/>
|
|
200
|
+
<path d="M113.335 97.2935C107.028 97.8668 101.868 102.453 101.295 108.76H113.335V97.2935Z" fill="#F9C63C"/>
|
|
201
|
+
</svg>
|
|
202
|
+
<div class="submenu-item-badge">
|
|
203
|
+
Demo
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
`,
|
|
207
|
+
contentData: (t) => ({
|
|
208
|
+
[`data.embed-${t}`]: {
|
|
209
|
+
embed: {
|
|
210
|
+
src: "https://widget.reco.se/v2/widget/1154710?mode=HORIZONTAL_QUOTE",
|
|
211
|
+
height: "280",
|
|
212
|
+
style: "border:0; width: 100%;",
|
|
213
|
+
allowfullscreen: "",
|
|
214
|
+
// Only default value in embed component, override here if needed
|
|
215
|
+
loading: "lazy"
|
|
216
|
+
},
|
|
217
|
+
size: null
|
|
218
|
+
// null will use dimensions set by iframe attributes
|
|
219
|
+
}
|
|
220
|
+
})
|
|
221
|
+
}
|
|
222
|
+
] : [],
|
|
223
|
+
{
|
|
224
|
+
previewUrl: `
|
|
225
|
+
<div style="position: relative;">
|
|
226
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
227
|
+
<rect width="400" height="250" fill="white"/>
|
|
228
|
+
<path d="M219.614 104.846H203.345V130.154H219.614M281.076 104.846H264.806V130.154H281.076M275.653 117.5H264.806M214.191 117.5H203.345M295.537 130.154V104.846L315.422 130.154V104.846M114.768 124.188L134.653 137.384M114.768 124.188V110.811M114.768 124.188L134.653 110.811M134.653 137.384L154.537 124.188M134.653 137.384V124.188M154.537 124.188V110.811M154.537 124.188L134.653 110.811M154.537 110.811L134.653 97.6152M154.537 110.811L134.653 124.008L114.768 110.811M134.653 97.6152L114.768 110.811M134.653 97.6152V110.811M102.114 108.461C99.7642 106.111 96.6911 104.846 93.0757 104.846C85.845 104.846 80.4219 110.269 80.4219 117.5C80.4219 124.731 85.845 130.154 93.0757 130.154C96.6911 130.154 99.7642 128.708 102.114 126.538M234.076 119.308H244.922C248.899 119.308 252.153 116.054 252.153 112.077C252.153 108.1 248.899 104.846 244.922 104.846H234.076V130.154V119.308ZM190.691 117.5C190.691 124.731 185.268 130.154 178.037 130.154H168.999V104.846H178.037C185.268 104.846 190.691 110.269 190.691 117.5Z" stroke="black" stroke-width="4.15769" stroke-linecap="round" stroke-linejoin="round"/>
|
|
229
|
+
</svg>
|
|
230
|
+
<div class="submenu-item-badge">
|
|
231
|
+
Demo
|
|
232
|
+
</div>
|
|
233
|
+
</div>
|
|
234
|
+
`,
|
|
235
|
+
contentData: (t) => ({
|
|
236
|
+
[`data.embed-${t}`]: {
|
|
237
|
+
embed: {
|
|
238
|
+
src: "https://codepen.io/fossheim/embed/VweaNYW?height=265&theme-id=light&default-tab=result",
|
|
239
|
+
width: "600",
|
|
240
|
+
height: "450",
|
|
241
|
+
scrolling: "no",
|
|
242
|
+
style: "border:0; width: 100%;",
|
|
243
|
+
allowtransparency: "true",
|
|
244
|
+
frameborder: "no",
|
|
245
|
+
allowfullscreen: "true",
|
|
246
|
+
loading: "lazy"
|
|
247
|
+
},
|
|
248
|
+
size: "medium"
|
|
249
|
+
// null will use dimensions set by iframe attributes
|
|
250
|
+
}
|
|
251
|
+
})
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
previewUrl: `
|
|
255
|
+
<div style="position: relative;">
|
|
256
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
257
|
+
<rect width="400" height="250" fill="white"/>
|
|
258
|
+
<path d="M225.334 137.082C224.202 138.707 222.58 139.927 220.705 140.563C218.83 141.199 216.8 141.218 214.913 140.617C213.027 140.017 211.382 138.828 210.22 137.224C209.058 135.621 208.44 133.688 208.456 131.708C208.472 129.728 209.122 127.805 210.31 126.221C211.498 124.637 213.162 123.475 215.059 122.905C216.955 122.336 218.984 122.388 220.848 123.055C222.713 123.722 224.315 124.968 225.419 126.611L232.27 122.567C230.276 119.419 227.314 117.004 223.829 115.684C220.345 114.364 216.526 114.21 212.947 115.245C209.367 116.28 206.22 118.448 203.978 121.424C201.736 124.4 200.52 128.024 200.513 131.75C200.506 135.476 201.707 139.104 203.937 142.089C206.168 145.073 209.306 147.254 212.881 148.303C216.457 149.353 220.276 149.214 223.766 147.907C227.255 146.601 230.227 144.197 232.234 141.058L225.336 137.082H225.334ZM244.21 100H236.262V147.675H244.205V131.783C244.205 129.325 245.182 126.967 246.92 125.228C248.659 123.49 251.017 122.513 253.476 122.513C255.934 122.513 258.292 123.49 260.031 125.228C261.77 126.967 262.746 129.325 262.746 131.783V147.675H270.692V130.238C270.691 127.17 269.79 124.171 268.1 121.611C266.411 119.051 264.008 117.043 261.188 115.836C258.369 114.629 255.257 114.275 252.239 114.819C249.22 115.364 246.428 116.782 244.207 118.897V100H244.21ZM188.591 100H180.645V137.08C180.645 139.368 181.303 141.608 182.542 143.533C183.781 145.457 185.547 146.984 187.63 147.931C189.714 148.878 192.025 149.205 194.29 148.873C196.554 148.542 198.675 147.565 200.399 146.061L196.56 139.547C196.189 140.016 195.716 140.396 195.176 140.656C194.637 140.917 194.046 141.052 193.447 141.052H192.563C191.509 141.051 190.5 140.632 189.755 139.888C189.01 139.143 188.591 138.133 188.591 137.08V123.838H196.534V115.892H188.591V100ZM171.381 100C170.21 100 169.087 100.465 168.26 101.293C167.432 102.121 166.967 103.243 166.967 104.414C166.967 105.585 167.432 106.708 168.26 107.535C169.087 108.363 170.21 108.828 171.381 108.828C172.552 108.828 173.674 108.363 174.502 107.535C175.33 106.708 175.795 105.585 175.795 104.414C175.795 103.243 175.33 102.121 174.502 101.293C173.674 100.465 172.552 100 171.381 100V100ZM175.353 147.675V115.892H167.409V147.675H175.353Z" fill="black"/>
|
|
259
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M129 147.675H136.944V138.405H144.228C146.75 138.405 149.247 137.908 151.577 136.943C153.906 135.978 156.023 134.563 157.806 132.78C159.589 130.997 161.004 128.88 161.969 126.551C162.934 124.221 163.431 121.724 163.431 119.202C163.431 116.681 162.934 114.184 161.969 111.854C161.004 109.524 159.589 107.407 157.806 105.624C156.023 103.841 153.906 102.427 151.577 101.462C149.247 100.497 146.75 100 144.228 100H129V147.675ZM136.944 107.944H144.228C147.214 107.944 150.077 109.13 152.188 111.241C154.299 113.352 155.485 116.215 155.485 119.2C155.485 122.185 154.299 125.049 152.188 127.16C150.077 129.271 147.214 130.457 144.228 130.457H136.946V107.944H136.944Z" fill="black"/>
|
|
260
|
+
</svg>
|
|
261
|
+
<div class="submenu-item-badge">
|
|
262
|
+
Demo
|
|
263
|
+
</div>
|
|
264
|
+
</div>
|
|
265
|
+
`,
|
|
266
|
+
contentData: (t) => ({
|
|
267
|
+
[`data.embed-${t}`]: {
|
|
268
|
+
embed: {
|
|
269
|
+
src: "https://app.pitch.com/app/embed/4b89f2b5-f377-4889-bbb0-5c30e68b6642",
|
|
270
|
+
width: "560",
|
|
271
|
+
height: "315",
|
|
272
|
+
style: "border:0;",
|
|
273
|
+
allow: "fullscreen",
|
|
274
|
+
allowfullscreen: "true",
|
|
275
|
+
// Only default value in embed component, override here if needed
|
|
276
|
+
loading: "lazy"
|
|
277
|
+
},
|
|
278
|
+
size: "medium"
|
|
279
|
+
// null will use dimensions set by iframe attributes
|
|
280
|
+
}
|
|
281
|
+
})
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
previewUrl: `
|
|
285
|
+
<div style="position: relative;">
|
|
286
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
287
|
+
<rect width="400" height="250" fill="white"/>
|
|
288
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M219.79 157.837C213.914 171.264 207.538 181.501 198.65 189.921C188.763 199.357 177.01 204.366 163.537 205.528C152.43 206.471 141.61 205.165 130.934 201.971C120.039 198.777 110.149 193.768 101.551 186.146C94.4577 179.759 89.0119 172.136 84.7831 163.571C78.2622 150.433 73.8915 136.641 71.8848 122.05C70.5959 112.614 70.5241 103.249 72.9616 94.0301C75.2538 85.1745 79.9116 77.7709 86.3608 71.4555C92.7365 65.2119 100.117 60.4219 107.999 56.4297C120.113 50.4047 132.796 45.9035 146.125 43.5085C155.656 41.7661 165.187 41.3305 174.789 43.2882C183.816 45.1775 191.556 49.4601 198.292 55.7755C205.601 62.5999 211.047 70.8013 215.488 79.7303C220.578 90.0379 224.161 100.854 225.809 112.324C227.385 123.719 226.668 134.968 223.59 146.079C222.154 150.869 220.506 155.443 219.789 157.837H219.79Z" stroke="#262627" stroke-width="1.63146"/>
|
|
289
|
+
<path d="M150.256 110.24V105.956H172.542V110.24H163.657V134.631H159.213V110.24H150.256ZM209.948 134.92C207.582 134.92 205.504 133.758 204.499 132.309V142.906H200.273V113.942H204.499V116.337C205.29 114.959 207.582 113.652 210.018 113.652C215.968 113.652 219.122 117.567 219.122 124.248C219.122 130.856 215.896 134.918 209.95 134.918L209.948 134.92ZM214.676 124.25C214.676 122.145 214.175 120.475 213.243 119.241C212.24 118.006 211.021 117.354 209.517 117.354C208.013 117.354 206.722 117.934 205.791 119.241C204.788 120.475 204.359 122.145 204.359 124.25C204.359 126.354 204.859 128.023 205.791 129.258C206.794 130.492 208.013 131.073 209.517 131.073C211.021 131.073 212.312 130.492 213.243 129.258C214.173 128.023 214.676 126.354 214.676 124.25V124.25ZM241.618 125.481H227.217C227.217 128.749 229.08 131.146 232.234 131.146C234.526 131.146 236.533 129.841 237.536 127.661L241.119 129.113C239.04 133.175 236.676 134.921 232.162 134.921C225.424 134.921 222.703 129.185 222.703 124.322C222.703 119.385 225.497 113.722 232.162 113.722C238.683 113.722 241.548 119.094 241.548 123.667V125.478H241.618V125.481ZM227.289 121.925H237.175C236.82 119.386 235.099 117.425 232.232 117.425C229.581 117.425 227.79 119.241 227.289 121.928V121.925ZM245.06 117.716V113.942H247.711V112.852C247.711 107.987 250.289 105.592 254.518 105.592C255.88 105.592 256.955 105.809 257.887 106.318L257.027 109.948C256.309 109.584 255.521 109.367 254.661 109.367C252.87 109.367 251.937 110.456 251.937 112.634V114.012H256.453V117.789H251.939V134.629H247.713V117.789H245.06V117.716V117.716ZM259.107 124.25C259.107 121.274 259.965 118.732 261.828 116.699C263.62 114.668 266.127 113.652 269.137 113.652C272.146 113.652 274.583 114.666 276.375 116.698C278.166 118.73 279.099 121.272 279.099 124.248C279.099 127.224 278.166 129.762 276.375 131.797C274.583 133.83 272.146 134.848 269.137 134.848C266.127 134.848 263.62 133.83 261.828 131.797C260.037 129.839 259.104 127.297 259.104 124.248L259.107 124.25ZM263.548 124.25C263.548 126.137 264.049 127.733 264.98 129.111C265.984 130.492 267.346 131.146 269.066 131.146C270.785 131.146 272.146 130.493 273.149 129.113C274.153 127.733 274.655 126.137 274.655 124.251C274.655 122.362 274.153 120.765 273.149 119.458C272.146 118.08 270.784 117.425 269.066 117.425C267.346 117.425 265.982 118.151 264.98 119.458C264.051 120.838 263.548 122.434 263.548 124.25V124.25ZM287.338 134.557H283.113V113.942H287.338V117.352C288.7 114.959 291.064 113.578 293.358 113.578C294.288 113.578 295.15 113.725 295.936 114.087L295.221 118.006C294.575 117.571 293.786 117.425 292.856 117.425C291.351 117.425 290.061 118.225 288.986 119.894C287.909 121.564 287.338 123.886 287.338 126.935V134.559V134.557ZM300.236 113.942H304.465V117.425C306.113 114.885 308.12 113.578 310.627 113.578C313.349 113.578 315.641 115.249 316.215 117.861C317.647 115.104 319.941 113.577 322.521 113.577C326.175 113.577 328.325 116.045 328.325 119.747V134.482H324.097V120.691C324.097 118.513 322.951 117.352 321.088 117.352C318.435 117.352 316.357 120.837 316.357 126.281V134.557H312.131V120.767C312.131 118.587 310.985 117.425 309.121 117.425C306.397 117.425 304.39 120.91 304.39 126.79V134.629H300.165V113.942H300.235H300.236ZM196.403 113.942H191.532L184.582 129.04L178.059 113.944H173.26L182.144 134.484L178.275 142.907H183.146L196.403 113.944V113.942Z" fill="#262627"/>
|
|
290
|
+
</svg>
|
|
291
|
+
<div class="submenu-item-badge">
|
|
292
|
+
Demo
|
|
293
|
+
</div>
|
|
294
|
+
</div>
|
|
295
|
+
`,
|
|
296
|
+
contentData: (t) => ({
|
|
297
|
+
[`data.embed-${t}`]: {
|
|
298
|
+
embed: {
|
|
299
|
+
src: "https://form.typeform.com/to/sUxq2a0h?typeform-medium=embed-snippet",
|
|
300
|
+
width: "560",
|
|
301
|
+
height: "315",
|
|
302
|
+
style: "border:0;",
|
|
303
|
+
allow: "fullscreen",
|
|
304
|
+
allowfullscreen: "true",
|
|
305
|
+
// Only default value in embed component, override here if needed
|
|
306
|
+
loading: "lazy"
|
|
307
|
+
},
|
|
308
|
+
size: "medium"
|
|
309
|
+
// null will use dimensions set by iframe attributes
|
|
310
|
+
}
|
|
311
|
+
})
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
previewUrl: `
|
|
315
|
+
<div style="position: relative;">
|
|
316
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
317
|
+
<rect width="400" height="250" fill="white"/>
|
|
318
|
+
<path d="M112.999 149.988V175L137.99 149.988H337.996V75H100.499L63 149.988H112.999Z" fill="#D41F26"/>
|
|
319
|
+
<path d="M138.05 124.976H142.22V99.8936H138.05L138.05 124.976ZM142.79 94.4205C142.79 95.9324 141.491 97.0254 140.086 97.0254C138.731 97.0254 137.529 95.9324 137.529 94.4205C137.529 92.8061 138.731 91.7622 140.086 91.7622C141.491 91.7622 142.79 92.8061 142.79 94.4205ZM151.179 107.872V124.976H146.955V99.8409H150.285L150.863 102.401C151.8 100.207 153.825 99.6884 155.234 99.5817C159.763 99.3215 163.516 103.549 163.516 107.872V124.976H159.294V107.872C159.294 105.683 157.426 103.805 155.184 103.805C152.997 103.805 151.18 105.683 151.18 107.872H151.179ZM172.082 125.015H167.916V97.7412C167.916 92.8925 172.549 89.3477 177.81 89.3477V93.5193C174.742 93.5193 172.082 95.4488 172.082 97.7412V105.459H177.239V109.63H172.082V125.015ZM194.295 107.859C194.295 105.199 192.161 103.791 190.026 103.791C187.943 103.791 185.757 105.199 185.757 107.859V116.979C185.757 119.642 187.943 120.997 190.026 120.997C192.161 120.997 194.295 119.642 194.295 116.979L194.295 107.859ZM198.513 116.979C198.513 122.561 194.244 125.274 190.026 125.274C185.757 125.274 181.59 122.561 181.59 116.979V107.859C181.59 102.228 185.808 99.6204 190.026 99.6204C194.295 99.6204 198.513 102.228 198.513 107.859V116.979ZM207.158 117.402C207.006 119.85 209.245 120.942 211.427 120.942C213.406 120.942 215.386 119.588 215.386 117.454V107.233C215.386 105.355 213.199 103.898 211.323 103.843C209.188 103.843 207.158 105.303 207.158 107.388V117.402ZM211.217 135.282C209.403 135.282 206.639 134.293 204.609 132.464L207.006 129.13C208.511 130.378 210.232 131.007 211.217 131.007C213.509 131.007 215.386 129.234 215.386 127.043V122.614C214.661 124.648 212.577 125.169 211.323 125.169C206.951 125.169 202.941 122.298 202.941 117.402V107.388C202.941 103.217 207.006 99.2528 211.323 99.6201C212.991 99.7762 215.075 100.405 215.753 102.805L216.165 99.8796H219.602V127.043C219.602 131.79 215.697 135.282 211.217 135.282V135.282ZM224.256 125.042V100.067H227.744L228.214 102.622C229.673 98.917 233.681 98.8653 236.493 101.111L235.036 104.915C232.586 103.192 228.839 103.615 228.425 107.049V125.042H224.256ZM246.239 121.08C248.215 121.08 250.298 119.464 250.298 117.59V115.037C250.298 112.949 248.482 111.489 246.239 111.489C244.053 111.489 242.227 113.267 242.227 115.505V116.961C242.227 119.209 244.053 121.08 246.239 121.08V121.08ZM238.011 116.961V115.505C238.011 111.127 241.345 107.369 246.133 107.369C247.804 107.369 249.831 108.466 250.405 110.137L250.299 107.945C250.299 105.756 248.482 103.929 246.239 103.929C245.199 103.929 243.691 104.555 242.277 105.91L239.993 102.42C241.763 100.802 244.207 99.6571 246.239 99.6571C250.666 99.6571 254.515 103.354 254.515 107.945V124.996H251.138L250.715 122.329C250.195 124.53 247.538 125.306 246.239 125.306C241.763 125.306 238.011 121.449 238.011 116.961V116.961ZM263.297 124.996H259.136V99.9139H262.409L262.934 102.366C263.977 100.334 265.903 99.6571 267.412 99.6007C269.496 99.55 272.251 100.539 273.549 103.773C274.804 100.539 277.353 99.6007 279.754 99.6007C284.23 99.6007 287.875 103.253 287.875 107.891V124.996H283.705V107.891C283.763 102.209 275.584 102.469 275.584 107.891V124.996H271.419V107.891C271.419 105.702 269.598 103.825 267.305 103.825C265.066 103.825 263.297 105.702 263.297 107.891V124.996Z" fill="#FEFEFE"/>
|
|
320
|
+
</svg>
|
|
321
|
+
<div class="submenu-item-badge">
|
|
322
|
+
Demo
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
`,
|
|
326
|
+
contentData: (t) => ({
|
|
327
|
+
[`data.embed-${t}`]: {
|
|
328
|
+
embed: {
|
|
329
|
+
src: "https://e.infogram.com/0dad863d-adfd-465d-b406-04fcd5cf6960?src=embed",
|
|
330
|
+
width: "560",
|
|
331
|
+
height: "315",
|
|
332
|
+
style: "border:0;",
|
|
333
|
+
allow: "fullscreen",
|
|
334
|
+
allowfullscreen: "true",
|
|
335
|
+
// Only default value in embed component, override here if needed
|
|
336
|
+
loading: "lazy"
|
|
337
|
+
},
|
|
338
|
+
size: "medium"
|
|
339
|
+
// null will use dimensions set by iframe attributes
|
|
340
|
+
}
|
|
341
|
+
})
|
|
342
|
+
}
|
|
343
|
+
];
|
|
344
|
+
function y(e) {
|
|
345
|
+
"@babel/helpers - typeof";
|
|
346
|
+
return y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
347
|
+
return typeof t;
|
|
348
|
+
} : function(t) {
|
|
349
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
350
|
+
}, y(e);
|
|
351
|
+
}
|
|
352
|
+
var O = /^\s+/, R = /\s+$/;
|
|
353
|
+
function l(e, t) {
|
|
354
|
+
if (e = e || "", t = t || {}, e instanceof l)
|
|
355
|
+
return e;
|
|
356
|
+
if (!(this instanceof l))
|
|
357
|
+
return new l(e, t);
|
|
358
|
+
var a = T(e);
|
|
359
|
+
this._originalInput = e, this._r = a.r, this._g = a.g, this._b = a.b, this._a = a.a, this._roundA = Math.round(100 * this._a) / 100, this._format = t.format || a.format, this._gradientType = t.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = a.ok;
|
|
360
|
+
}
|
|
361
|
+
l.prototype = {
|
|
362
|
+
isDark: function() {
|
|
363
|
+
return this.getBrightness() < 128;
|
|
364
|
+
},
|
|
365
|
+
isLight: function() {
|
|
366
|
+
return !this.isDark();
|
|
367
|
+
},
|
|
368
|
+
isValid: function() {
|
|
369
|
+
return this._ok;
|
|
370
|
+
},
|
|
371
|
+
getOriginalInput: function() {
|
|
372
|
+
return this._originalInput;
|
|
373
|
+
},
|
|
374
|
+
getFormat: function() {
|
|
375
|
+
return this._format;
|
|
376
|
+
},
|
|
377
|
+
getAlpha: function() {
|
|
378
|
+
return this._a;
|
|
379
|
+
},
|
|
380
|
+
getBrightness: function() {
|
|
381
|
+
var t = this.toRgb();
|
|
382
|
+
return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
|
|
383
|
+
},
|
|
384
|
+
getLuminance: function() {
|
|
385
|
+
var t = this.toRgb(), a, i, n, r, s, o;
|
|
386
|
+
return a = t.r / 255, i = t.g / 255, n = t.b / 255, a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), i <= 0.03928 ? s = i / 12.92 : s = Math.pow((i + 0.055) / 1.055, 2.4), n <= 0.03928 ? o = n / 12.92 : o = Math.pow((n + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * s + 0.0722 * o;
|
|
387
|
+
},
|
|
388
|
+
setAlpha: function(t) {
|
|
389
|
+
return this._a = Z(t), this._roundA = Math.round(100 * this._a) / 100, this;
|
|
390
|
+
},
|
|
391
|
+
toHsv: function() {
|
|
392
|
+
var t = S(this._r, this._g, this._b);
|
|
393
|
+
return {
|
|
394
|
+
h: t.h * 360,
|
|
395
|
+
s: t.s,
|
|
396
|
+
v: t.v,
|
|
397
|
+
a: this._a
|
|
398
|
+
};
|
|
399
|
+
},
|
|
400
|
+
toHsvString: function() {
|
|
401
|
+
var t = S(this._r, this._g, this._b), a = Math.round(t.h * 360), i = Math.round(t.s * 100), n = Math.round(t.v * 100);
|
|
402
|
+
return this._a == 1 ? "hsv(" + a + ", " + i + "%, " + n + "%)" : "hsva(" + a + ", " + i + "%, " + n + "%, " + this._roundA + ")";
|
|
403
|
+
},
|
|
404
|
+
toHsl: function() {
|
|
405
|
+
var t = V(this._r, this._g, this._b);
|
|
406
|
+
return {
|
|
407
|
+
h: t.h * 360,
|
|
408
|
+
s: t.s,
|
|
409
|
+
l: t.l,
|
|
410
|
+
a: this._a
|
|
411
|
+
};
|
|
412
|
+
},
|
|
413
|
+
toHslString: function() {
|
|
414
|
+
var t = V(this._r, this._g, this._b), a = Math.round(t.h * 360), i = Math.round(t.s * 100), n = Math.round(t.l * 100);
|
|
415
|
+
return this._a == 1 ? "hsl(" + a + ", " + i + "%, " + n + "%)" : "hsla(" + a + ", " + i + "%, " + n + "%, " + this._roundA + ")";
|
|
416
|
+
},
|
|
417
|
+
toHex: function(t) {
|
|
418
|
+
return B(this._r, this._g, this._b, t);
|
|
419
|
+
},
|
|
420
|
+
toHexString: function(t) {
|
|
421
|
+
return "#" + this.toHex(t);
|
|
422
|
+
},
|
|
423
|
+
toHex8: function(t) {
|
|
424
|
+
return P(this._r, this._g, this._b, this._a, t);
|
|
425
|
+
},
|
|
426
|
+
toHex8String: function(t) {
|
|
427
|
+
return "#" + this.toHex8(t);
|
|
428
|
+
},
|
|
429
|
+
toRgb: function() {
|
|
430
|
+
return {
|
|
431
|
+
r: Math.round(this._r),
|
|
432
|
+
g: Math.round(this._g),
|
|
433
|
+
b: Math.round(this._b),
|
|
434
|
+
a: this._a
|
|
435
|
+
};
|
|
436
|
+
},
|
|
437
|
+
toRgbString: function() {
|
|
438
|
+
return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
|
|
439
|
+
},
|
|
440
|
+
toPercentageRgb: function() {
|
|
441
|
+
return {
|
|
442
|
+
r: Math.round(f(this._r, 255) * 100) + "%",
|
|
443
|
+
g: Math.round(f(this._g, 255) * 100) + "%",
|
|
444
|
+
b: Math.round(f(this._b, 255) * 100) + "%",
|
|
445
|
+
a: this._a
|
|
446
|
+
};
|
|
447
|
+
},
|
|
448
|
+
toPercentageRgbString: function() {
|
|
449
|
+
return this._a == 1 ? "rgb(" + Math.round(f(this._r, 255) * 100) + "%, " + Math.round(f(this._g, 255) * 100) + "%, " + Math.round(f(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(f(this._r, 255) * 100) + "%, " + Math.round(f(this._g, 255) * 100) + "%, " + Math.round(f(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
|
450
|
+
},
|
|
451
|
+
toName: function() {
|
|
452
|
+
return this._a === 0 ? "transparent" : this._a < 1 ? !1 : a1[B(this._r, this._g, this._b, !0)] || !1;
|
|
453
|
+
},
|
|
454
|
+
toFilter: function(t) {
|
|
455
|
+
var a = "#" + A(this._r, this._g, this._b, this._a), i = a, n = this._gradientType ? "GradientType = 1, " : "";
|
|
456
|
+
if (t) {
|
|
457
|
+
var r = l(t);
|
|
458
|
+
i = "#" + A(r._r, r._g, r._b, r._a);
|
|
459
|
+
}
|
|
460
|
+
return "progid:DXImageTransform.Microsoft.gradient(" + n + "startColorstr=" + a + ",endColorstr=" + i + ")";
|
|
461
|
+
},
|
|
462
|
+
toString: function(t) {
|
|
463
|
+
var a = !!t;
|
|
464
|
+
t = t || this._format;
|
|
465
|
+
var i = !1, n = this._a < 1 && this._a >= 0, r = !a && n && (t === "hex" || t === "hex6" || t === "hex3" || t === "hex4" || t === "hex8" || t === "name");
|
|
466
|
+
return r ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (i = this.toRgbString()), t === "prgb" && (i = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (i = this.toHexString()), t === "hex3" && (i = this.toHexString(!0)), t === "hex4" && (i = this.toHex8String(!0)), t === "hex8" && (i = this.toHex8String()), t === "name" && (i = this.toName()), t === "hsl" && (i = this.toHslString()), t === "hsv" && (i = this.toHsvString()), i || this.toHexString());
|
|
467
|
+
},
|
|
468
|
+
clone: function() {
|
|
469
|
+
return l(this.toString());
|
|
470
|
+
},
|
|
471
|
+
_applyModification: function(t, a) {
|
|
472
|
+
var i = t.apply(null, [this].concat([].slice.call(a)));
|
|
473
|
+
return this._r = i._r, this._g = i._g, this._b = i._b, this.setAlpha(i._a), this;
|
|
474
|
+
},
|
|
475
|
+
lighten: function() {
|
|
476
|
+
return this._applyModification(W, arguments);
|
|
477
|
+
},
|
|
478
|
+
brighten: function() {
|
|
479
|
+
return this._applyModification(K, arguments);
|
|
480
|
+
},
|
|
481
|
+
darken: function() {
|
|
482
|
+
return this._applyModification(Q, arguments);
|
|
483
|
+
},
|
|
484
|
+
desaturate: function() {
|
|
485
|
+
return this._applyModification(N, arguments);
|
|
486
|
+
},
|
|
487
|
+
saturate: function() {
|
|
488
|
+
return this._applyModification(j, arguments);
|
|
489
|
+
},
|
|
490
|
+
greyscale: function() {
|
|
491
|
+
return this._applyModification(q, arguments);
|
|
492
|
+
},
|
|
493
|
+
spin: function() {
|
|
494
|
+
return this._applyModification(J, arguments);
|
|
495
|
+
},
|
|
496
|
+
_applyCombination: function(t, a) {
|
|
497
|
+
return t.apply(null, [this].concat([].slice.call(a)));
|
|
498
|
+
},
|
|
499
|
+
analogous: function() {
|
|
500
|
+
return this._applyCombination(e1, arguments);
|
|
501
|
+
},
|
|
502
|
+
complement: function() {
|
|
503
|
+
return this._applyCombination(X, arguments);
|
|
504
|
+
},
|
|
505
|
+
monochromatic: function() {
|
|
506
|
+
return this._applyCombination(t1, arguments);
|
|
507
|
+
},
|
|
508
|
+
splitcomplement: function() {
|
|
509
|
+
return this._applyCombination(Y, arguments);
|
|
510
|
+
},
|
|
511
|
+
// Disabled until https://github.com/bgrins/TinyColor/issues/254
|
|
512
|
+
// polyad: function (number) {
|
|
513
|
+
// return this._applyCombination(polyad, [number]);
|
|
514
|
+
// },
|
|
515
|
+
triad: function() {
|
|
516
|
+
return this._applyCombination(L, [3]);
|
|
517
|
+
},
|
|
518
|
+
tetrad: function() {
|
|
519
|
+
return this._applyCombination(L, [4]);
|
|
520
|
+
}
|
|
521
|
+
};
|
|
522
|
+
l.fromRatio = function(e, t) {
|
|
523
|
+
if (y(e) == "object") {
|
|
524
|
+
var a = {};
|
|
525
|
+
for (var i in e)
|
|
526
|
+
e.hasOwnProperty(i) && (i === "a" ? a[i] = e[i] : a[i] = w(e[i]));
|
|
527
|
+
e = a;
|
|
528
|
+
}
|
|
529
|
+
return l(e, t);
|
|
530
|
+
};
|
|
531
|
+
function T(e) {
|
|
532
|
+
var t = {
|
|
533
|
+
r: 0,
|
|
534
|
+
g: 0,
|
|
535
|
+
b: 0
|
|
536
|
+
}, a = 1, i = null, n = null, r = null, s = !1, o = !1;
|
|
537
|
+
return typeof e == "string" && (e = l1(e)), y(e) == "object" && (m(e.r) && m(e.g) && m(e.b) ? (t = $(e.r, e.g, e.b), s = !0, o = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : m(e.h) && m(e.s) && m(e.v) ? (i = w(e.s), n = w(e.v), t = z(e.h, i, n), s = !0, o = "hsv") : m(e.h) && m(e.s) && m(e.l) && (i = w(e.s), r = w(e.l), t = E(e.h, i, r), s = !0, o = "hsl"), e.hasOwnProperty("a") && (a = e.a)), a = Z(a), {
|
|
538
|
+
ok: s,
|
|
539
|
+
format: e.format || o,
|
|
540
|
+
r: Math.min(255, Math.max(t.r, 0)),
|
|
541
|
+
g: Math.min(255, Math.max(t.g, 0)),
|
|
542
|
+
b: Math.min(255, Math.max(t.b, 0)),
|
|
543
|
+
a
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
function $(e, t, a) {
|
|
547
|
+
return {
|
|
548
|
+
r: f(e, 255) * 255,
|
|
549
|
+
g: f(t, 255) * 255,
|
|
550
|
+
b: f(a, 255) * 255
|
|
551
|
+
};
|
|
552
|
+
}
|
|
553
|
+
function V(e, t, a) {
|
|
554
|
+
e = f(e, 255), t = f(t, 255), a = f(a, 255);
|
|
555
|
+
var i = Math.max(e, t, a), n = Math.min(e, t, a), r, s, o = (i + n) / 2;
|
|
556
|
+
if (i == n)
|
|
557
|
+
r = s = 0;
|
|
558
|
+
else {
|
|
559
|
+
var d = i - n;
|
|
560
|
+
switch (s = o > 0.5 ? d / (2 - i - n) : d / (i + n), i) {
|
|
561
|
+
case e:
|
|
562
|
+
r = (t - a) / d + (t < a ? 6 : 0);
|
|
563
|
+
break;
|
|
564
|
+
case t:
|
|
565
|
+
r = (a - e) / d + 2;
|
|
566
|
+
break;
|
|
567
|
+
case a:
|
|
568
|
+
r = (e - t) / d + 4;
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
r /= 6;
|
|
572
|
+
}
|
|
573
|
+
return {
|
|
574
|
+
h: r,
|
|
575
|
+
s,
|
|
576
|
+
l: o
|
|
577
|
+
};
|
|
578
|
+
}
|
|
579
|
+
function E(e, t, a) {
|
|
580
|
+
var i, n, r;
|
|
581
|
+
e = f(e, 360), t = f(t, 100), a = f(a, 100);
|
|
582
|
+
function s(p, b, c) {
|
|
583
|
+
return c < 0 && (c += 1), c > 1 && (c -= 1), c < 1 / 6 ? p + (b - p) * 6 * c : c < 1 / 2 ? b : c < 2 / 3 ? p + (b - p) * (2 / 3 - c) * 6 : p;
|
|
584
|
+
}
|
|
585
|
+
if (t === 0)
|
|
586
|
+
i = n = r = a;
|
|
587
|
+
else {
|
|
588
|
+
var o = a < 0.5 ? a * (1 + t) : a + t - a * t, d = 2 * a - o;
|
|
589
|
+
i = s(d, o, e + 1 / 3), n = s(d, o, e), r = s(d, o, e - 1 / 3);
|
|
590
|
+
}
|
|
591
|
+
return {
|
|
592
|
+
r: i * 255,
|
|
593
|
+
g: n * 255,
|
|
594
|
+
b: r * 255
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
function S(e, t, a) {
|
|
598
|
+
e = f(e, 255), t = f(t, 255), a = f(a, 255);
|
|
599
|
+
var i = Math.max(e, t, a), n = Math.min(e, t, a), r, s, o = i, d = i - n;
|
|
600
|
+
if (s = i === 0 ? 0 : d / i, i == n)
|
|
601
|
+
r = 0;
|
|
602
|
+
else {
|
|
603
|
+
switch (i) {
|
|
604
|
+
case e:
|
|
605
|
+
r = (t - a) / d + (t < a ? 6 : 0);
|
|
606
|
+
break;
|
|
607
|
+
case t:
|
|
608
|
+
r = (a - e) / d + 2;
|
|
609
|
+
break;
|
|
610
|
+
case a:
|
|
611
|
+
r = (e - t) / d + 4;
|
|
612
|
+
break;
|
|
613
|
+
}
|
|
614
|
+
r /= 6;
|
|
615
|
+
}
|
|
616
|
+
return {
|
|
617
|
+
h: r,
|
|
618
|
+
s,
|
|
619
|
+
v: o
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
function z(e, t, a) {
|
|
623
|
+
e = f(e, 360) * 6, t = f(t, 100), a = f(a, 100);
|
|
624
|
+
var i = Math.floor(e), n = e - i, r = a * (1 - t), s = a * (1 - n * t), o = a * (1 - (1 - n) * t), d = i % 6, p = [a, s, r, r, o, a][d], b = [o, a, a, s, r, r][d], c = [r, r, o, a, a, s][d];
|
|
625
|
+
return {
|
|
626
|
+
r: p * 255,
|
|
627
|
+
g: b * 255,
|
|
628
|
+
b: c * 255
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
function B(e, t, a, i) {
|
|
632
|
+
var n = [g(Math.round(e).toString(16)), g(Math.round(t).toString(16)), g(Math.round(a).toString(16))];
|
|
633
|
+
return i && n[0].charAt(0) == n[0].charAt(1) && n[1].charAt(0) == n[1].charAt(1) && n[2].charAt(0) == n[2].charAt(1) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) : n.join("");
|
|
634
|
+
}
|
|
635
|
+
function P(e, t, a, i, n) {
|
|
636
|
+
var r = [g(Math.round(e).toString(16)), g(Math.round(t).toString(16)), g(Math.round(a).toString(16)), g(F(i))];
|
|
637
|
+
return n && r[0].charAt(0) == r[0].charAt(1) && r[1].charAt(0) == r[1].charAt(1) && r[2].charAt(0) == r[2].charAt(1) && r[3].charAt(0) == r[3].charAt(1) ? r[0].charAt(0) + r[1].charAt(0) + r[2].charAt(0) + r[3].charAt(0) : r.join("");
|
|
638
|
+
}
|
|
639
|
+
function A(e, t, a, i) {
|
|
640
|
+
var n = [g(F(i)), g(Math.round(e).toString(16)), g(Math.round(t).toString(16)), g(Math.round(a).toString(16))];
|
|
641
|
+
return n.join("");
|
|
642
|
+
}
|
|
643
|
+
l.equals = function(e, t) {
|
|
644
|
+
return !e || !t ? !1 : l(e).toRgbString() == l(t).toRgbString();
|
|
645
|
+
};
|
|
646
|
+
l.random = function() {
|
|
647
|
+
return l.fromRatio({
|
|
648
|
+
r: Math.random(),
|
|
649
|
+
g: Math.random(),
|
|
650
|
+
b: Math.random()
|
|
651
|
+
});
|
|
652
|
+
};
|
|
653
|
+
function N(e, t) {
|
|
654
|
+
t = t === 0 ? 0 : t || 10;
|
|
655
|
+
var a = l(e).toHsl();
|
|
656
|
+
return a.s -= t / 100, a.s = k(a.s), l(a);
|
|
657
|
+
}
|
|
658
|
+
function j(e, t) {
|
|
659
|
+
t = t === 0 ? 0 : t || 10;
|
|
660
|
+
var a = l(e).toHsl();
|
|
661
|
+
return a.s += t / 100, a.s = k(a.s), l(a);
|
|
662
|
+
}
|
|
663
|
+
function q(e) {
|
|
664
|
+
return l(e).desaturate(100);
|
|
665
|
+
}
|
|
666
|
+
function W(e, t) {
|
|
667
|
+
t = t === 0 ? 0 : t || 10;
|
|
668
|
+
var a = l(e).toHsl();
|
|
669
|
+
return a.l += t / 100, a.l = k(a.l), l(a);
|
|
670
|
+
}
|
|
671
|
+
function K(e, t) {
|
|
672
|
+
t = t === 0 ? 0 : t || 10;
|
|
673
|
+
var a = l(e).toRgb();
|
|
674
|
+
return a.r = Math.max(0, Math.min(255, a.r - Math.round(255 * -(t / 100)))), a.g = Math.max(0, Math.min(255, a.g - Math.round(255 * -(t / 100)))), a.b = Math.max(0, Math.min(255, a.b - Math.round(255 * -(t / 100)))), l(a);
|
|
675
|
+
}
|
|
676
|
+
function Q(e, t) {
|
|
677
|
+
t = t === 0 ? 0 : t || 10;
|
|
678
|
+
var a = l(e).toHsl();
|
|
679
|
+
return a.l -= t / 100, a.l = k(a.l), l(a);
|
|
680
|
+
}
|
|
681
|
+
function J(e, t) {
|
|
682
|
+
var a = l(e).toHsl(), i = (a.h + t) % 360;
|
|
683
|
+
return a.h = i < 0 ? 360 + i : i, l(a);
|
|
684
|
+
}
|
|
685
|
+
function X(e) {
|
|
686
|
+
var t = l(e).toHsl();
|
|
687
|
+
return t.h = (t.h + 180) % 360, l(t);
|
|
688
|
+
}
|
|
689
|
+
function L(e, t) {
|
|
690
|
+
if (isNaN(t) || t <= 0)
|
|
691
|
+
throw new Error("Argument to polyad must be a positive number");
|
|
692
|
+
for (var a = l(e).toHsl(), i = [l(e)], n = 360 / t, r = 1; r < t; r++)
|
|
693
|
+
i.push(l({
|
|
694
|
+
h: (a.h + r * n) % 360,
|
|
695
|
+
s: a.s,
|
|
696
|
+
l: a.l
|
|
697
|
+
}));
|
|
698
|
+
return i;
|
|
699
|
+
}
|
|
700
|
+
function Y(e) {
|
|
701
|
+
var t = l(e).toHsl(), a = t.h;
|
|
702
|
+
return [l(e), l({
|
|
703
|
+
h: (a + 72) % 360,
|
|
704
|
+
s: t.s,
|
|
705
|
+
l: t.l
|
|
706
|
+
}), l({
|
|
707
|
+
h: (a + 216) % 360,
|
|
708
|
+
s: t.s,
|
|
709
|
+
l: t.l
|
|
710
|
+
})];
|
|
711
|
+
}
|
|
712
|
+
function e1(e, t, a) {
|
|
713
|
+
t = t || 6, a = a || 30;
|
|
714
|
+
var i = l(e).toHsl(), n = 360 / a, r = [l(e)];
|
|
715
|
+
for (i.h = (i.h - (n * t >> 1) + 720) % 360; --t; )
|
|
716
|
+
i.h = (i.h + n) % 360, r.push(l(i));
|
|
717
|
+
return r;
|
|
718
|
+
}
|
|
719
|
+
function t1(e, t) {
|
|
720
|
+
t = t || 6;
|
|
721
|
+
for (var a = l(e).toHsv(), i = a.h, n = a.s, r = a.v, s = [], o = 1 / t; t--; )
|
|
722
|
+
s.push(l({
|
|
723
|
+
h: i,
|
|
724
|
+
s: n,
|
|
725
|
+
v: r
|
|
726
|
+
})), r = (r + o) % 1;
|
|
727
|
+
return s;
|
|
728
|
+
}
|
|
729
|
+
l.mix = function(e, t, a) {
|
|
730
|
+
a = a === 0 ? 0 : a || 50;
|
|
731
|
+
var i = l(e).toRgb(), n = l(t).toRgb(), r = a / 100, s = {
|
|
732
|
+
r: (n.r - i.r) * r + i.r,
|
|
733
|
+
g: (n.g - i.g) * r + i.g,
|
|
734
|
+
b: (n.b - i.b) * r + i.b,
|
|
735
|
+
a: (n.a - i.a) * r + i.a
|
|
736
|
+
};
|
|
737
|
+
return l(s);
|
|
738
|
+
};
|
|
739
|
+
l.readability = function(e, t) {
|
|
740
|
+
var a = l(e), i = l(t);
|
|
741
|
+
return (Math.max(a.getLuminance(), i.getLuminance()) + 0.05) / (Math.min(a.getLuminance(), i.getLuminance()) + 0.05);
|
|
742
|
+
};
|
|
743
|
+
l.isReadable = function(e, t, a) {
|
|
744
|
+
var i = l.readability(e, t), n, r;
|
|
745
|
+
switch (r = !1, n = s1(a), n.level + n.size) {
|
|
746
|
+
case "AAsmall":
|
|
747
|
+
case "AAAlarge":
|
|
748
|
+
r = i >= 4.5;
|
|
749
|
+
break;
|
|
750
|
+
case "AAlarge":
|
|
751
|
+
r = i >= 3;
|
|
752
|
+
break;
|
|
753
|
+
case "AAAsmall":
|
|
754
|
+
r = i >= 7;
|
|
755
|
+
break;
|
|
756
|
+
}
|
|
757
|
+
return r;
|
|
758
|
+
};
|
|
759
|
+
l.mostReadable = function(e, t, a) {
|
|
760
|
+
var i = null, n = 0, r, s, o, d;
|
|
761
|
+
a = a || {}, s = a.includeFallbackColors, o = a.level, d = a.size;
|
|
762
|
+
for (var p = 0; p < t.length; p++)
|
|
763
|
+
r = l.readability(e, t[p]), r > n && (n = r, i = l(t[p]));
|
|
764
|
+
return l.isReadable(e, i, {
|
|
765
|
+
level: o,
|
|
766
|
+
size: d
|
|
767
|
+
}) || !s ? i : (a.includeFallbackColors = !1, l.mostReadable(e, ["#fff", "#000"], a));
|
|
768
|
+
};
|
|
769
|
+
var M = l.names = {
|
|
770
|
+
aliceblue: "f0f8ff",
|
|
771
|
+
antiquewhite: "faebd7",
|
|
772
|
+
aqua: "0ff",
|
|
773
|
+
aquamarine: "7fffd4",
|
|
774
|
+
azure: "f0ffff",
|
|
775
|
+
beige: "f5f5dc",
|
|
776
|
+
bisque: "ffe4c4",
|
|
777
|
+
black: "000",
|
|
778
|
+
blanchedalmond: "ffebcd",
|
|
779
|
+
blue: "00f",
|
|
780
|
+
blueviolet: "8a2be2",
|
|
781
|
+
brown: "a52a2a",
|
|
782
|
+
burlywood: "deb887",
|
|
783
|
+
burntsienna: "ea7e5d",
|
|
784
|
+
cadetblue: "5f9ea0",
|
|
785
|
+
chartreuse: "7fff00",
|
|
786
|
+
chocolate: "d2691e",
|
|
787
|
+
coral: "ff7f50",
|
|
788
|
+
cornflowerblue: "6495ed",
|
|
789
|
+
cornsilk: "fff8dc",
|
|
790
|
+
crimson: "dc143c",
|
|
791
|
+
cyan: "0ff",
|
|
792
|
+
darkblue: "00008b",
|
|
793
|
+
darkcyan: "008b8b",
|
|
794
|
+
darkgoldenrod: "b8860b",
|
|
795
|
+
darkgray: "a9a9a9",
|
|
796
|
+
darkgreen: "006400",
|
|
797
|
+
darkgrey: "a9a9a9",
|
|
798
|
+
darkkhaki: "bdb76b",
|
|
799
|
+
darkmagenta: "8b008b",
|
|
800
|
+
darkolivegreen: "556b2f",
|
|
801
|
+
darkorange: "ff8c00",
|
|
802
|
+
darkorchid: "9932cc",
|
|
803
|
+
darkred: "8b0000",
|
|
804
|
+
darksalmon: "e9967a",
|
|
805
|
+
darkseagreen: "8fbc8f",
|
|
806
|
+
darkslateblue: "483d8b",
|
|
807
|
+
darkslategray: "2f4f4f",
|
|
808
|
+
darkslategrey: "2f4f4f",
|
|
809
|
+
darkturquoise: "00ced1",
|
|
810
|
+
darkviolet: "9400d3",
|
|
811
|
+
deeppink: "ff1493",
|
|
812
|
+
deepskyblue: "00bfff",
|
|
813
|
+
dimgray: "696969",
|
|
814
|
+
dimgrey: "696969",
|
|
815
|
+
dodgerblue: "1e90ff",
|
|
816
|
+
firebrick: "b22222",
|
|
817
|
+
floralwhite: "fffaf0",
|
|
818
|
+
forestgreen: "228b22",
|
|
819
|
+
fuchsia: "f0f",
|
|
820
|
+
gainsboro: "dcdcdc",
|
|
821
|
+
ghostwhite: "f8f8ff",
|
|
822
|
+
gold: "ffd700",
|
|
823
|
+
goldenrod: "daa520",
|
|
824
|
+
gray: "808080",
|
|
825
|
+
green: "008000",
|
|
826
|
+
greenyellow: "adff2f",
|
|
827
|
+
grey: "808080",
|
|
828
|
+
honeydew: "f0fff0",
|
|
829
|
+
hotpink: "ff69b4",
|
|
830
|
+
indianred: "cd5c5c",
|
|
831
|
+
indigo: "4b0082",
|
|
832
|
+
ivory: "fffff0",
|
|
833
|
+
khaki: "f0e68c",
|
|
834
|
+
lavender: "e6e6fa",
|
|
835
|
+
lavenderblush: "fff0f5",
|
|
836
|
+
lawngreen: "7cfc00",
|
|
837
|
+
lemonchiffon: "fffacd",
|
|
838
|
+
lightblue: "add8e6",
|
|
839
|
+
lightcoral: "f08080",
|
|
840
|
+
lightcyan: "e0ffff",
|
|
841
|
+
lightgoldenrodyellow: "fafad2",
|
|
842
|
+
lightgray: "d3d3d3",
|
|
843
|
+
lightgreen: "90ee90",
|
|
844
|
+
lightgrey: "d3d3d3",
|
|
845
|
+
lightpink: "ffb6c1",
|
|
846
|
+
lightsalmon: "ffa07a",
|
|
847
|
+
lightseagreen: "20b2aa",
|
|
848
|
+
lightskyblue: "87cefa",
|
|
849
|
+
lightslategray: "789",
|
|
850
|
+
lightslategrey: "789",
|
|
851
|
+
lightsteelblue: "b0c4de",
|
|
852
|
+
lightyellow: "ffffe0",
|
|
853
|
+
lime: "0f0",
|
|
854
|
+
limegreen: "32cd32",
|
|
855
|
+
linen: "faf0e6",
|
|
856
|
+
magenta: "f0f",
|
|
857
|
+
maroon: "800000",
|
|
858
|
+
mediumaquamarine: "66cdaa",
|
|
859
|
+
mediumblue: "0000cd",
|
|
860
|
+
mediumorchid: "ba55d3",
|
|
861
|
+
mediumpurple: "9370db",
|
|
862
|
+
mediumseagreen: "3cb371",
|
|
863
|
+
mediumslateblue: "7b68ee",
|
|
864
|
+
mediumspringgreen: "00fa9a",
|
|
865
|
+
mediumturquoise: "48d1cc",
|
|
866
|
+
mediumvioletred: "c71585",
|
|
867
|
+
midnightblue: "191970",
|
|
868
|
+
mintcream: "f5fffa",
|
|
869
|
+
mistyrose: "ffe4e1",
|
|
870
|
+
moccasin: "ffe4b5",
|
|
871
|
+
navajowhite: "ffdead",
|
|
872
|
+
navy: "000080",
|
|
873
|
+
oldlace: "fdf5e6",
|
|
874
|
+
olive: "808000",
|
|
875
|
+
olivedrab: "6b8e23",
|
|
876
|
+
orange: "ffa500",
|
|
877
|
+
orangered: "ff4500",
|
|
878
|
+
orchid: "da70d6",
|
|
879
|
+
palegoldenrod: "eee8aa",
|
|
880
|
+
palegreen: "98fb98",
|
|
881
|
+
paleturquoise: "afeeee",
|
|
882
|
+
palevioletred: "db7093",
|
|
883
|
+
papayawhip: "ffefd5",
|
|
884
|
+
peachpuff: "ffdab9",
|
|
885
|
+
peru: "cd853f",
|
|
886
|
+
pink: "ffc0cb",
|
|
887
|
+
plum: "dda0dd",
|
|
888
|
+
powderblue: "b0e0e6",
|
|
889
|
+
purple: "800080",
|
|
890
|
+
rebeccapurple: "663399",
|
|
891
|
+
red: "f00",
|
|
892
|
+
rosybrown: "bc8f8f",
|
|
893
|
+
royalblue: "4169e1",
|
|
894
|
+
saddlebrown: "8b4513",
|
|
895
|
+
salmon: "fa8072",
|
|
896
|
+
sandybrown: "f4a460",
|
|
897
|
+
seagreen: "2e8b57",
|
|
898
|
+
seashell: "fff5ee",
|
|
899
|
+
sienna: "a0522d",
|
|
900
|
+
silver: "c0c0c0",
|
|
901
|
+
skyblue: "87ceeb",
|
|
902
|
+
slateblue: "6a5acd",
|
|
903
|
+
slategray: "708090",
|
|
904
|
+
slategrey: "708090",
|
|
905
|
+
snow: "fffafa",
|
|
906
|
+
springgreen: "00ff7f",
|
|
907
|
+
steelblue: "4682b4",
|
|
908
|
+
tan: "d2b48c",
|
|
909
|
+
teal: "008080",
|
|
910
|
+
thistle: "d8bfd8",
|
|
911
|
+
tomato: "ff6347",
|
|
912
|
+
turquoise: "40e0d0",
|
|
913
|
+
violet: "ee82ee",
|
|
914
|
+
wheat: "f5deb3",
|
|
915
|
+
white: "fff",
|
|
916
|
+
whitesmoke: "f5f5f5",
|
|
917
|
+
yellow: "ff0",
|
|
918
|
+
yellowgreen: "9acd32"
|
|
919
|
+
}, a1 = l.hexNames = i1(M);
|
|
920
|
+
function i1(e) {
|
|
921
|
+
var t = {};
|
|
922
|
+
for (var a in e)
|
|
923
|
+
e.hasOwnProperty(a) && (t[e[a]] = a);
|
|
924
|
+
return t;
|
|
925
|
+
}
|
|
926
|
+
function Z(e) {
|
|
927
|
+
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
928
|
+
}
|
|
929
|
+
function f(e, t) {
|
|
930
|
+
r1(e) && (e = "100%");
|
|
931
|
+
var a = n1(e);
|
|
932
|
+
return e = Math.min(t, Math.max(0, parseFloat(e))), a && (e = parseInt(e * t, 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : e % t / parseFloat(t);
|
|
933
|
+
}
|
|
934
|
+
function k(e) {
|
|
935
|
+
return Math.min(1, Math.max(0, e));
|
|
936
|
+
}
|
|
937
|
+
function h(e) {
|
|
938
|
+
return parseInt(e, 16);
|
|
939
|
+
}
|
|
940
|
+
function r1(e) {
|
|
941
|
+
return typeof e == "string" && e.indexOf(".") != -1 && parseFloat(e) === 1;
|
|
942
|
+
}
|
|
943
|
+
function n1(e) {
|
|
944
|
+
return typeof e == "string" && e.indexOf("%") != -1;
|
|
945
|
+
}
|
|
946
|
+
function g(e) {
|
|
947
|
+
return e.length == 1 ? "0" + e : "" + e;
|
|
948
|
+
}
|
|
949
|
+
function w(e) {
|
|
950
|
+
return e <= 1 && (e = e * 100 + "%"), e;
|
|
951
|
+
}
|
|
952
|
+
function F(e) {
|
|
953
|
+
return Math.round(parseFloat(e) * 255).toString(16);
|
|
954
|
+
}
|
|
955
|
+
function D(e) {
|
|
956
|
+
return h(e) / 255;
|
|
957
|
+
}
|
|
958
|
+
var u = function() {
|
|
959
|
+
var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", a = "(?:" + t + ")|(?:" + e + ")", i = "[\\s|\\(]+(" + a + ")[,|\\s]+(" + a + ")[,|\\s]+(" + a + ")\\s*\\)?", n = "[\\s|\\(]+(" + a + ")[,|\\s]+(" + a + ")[,|\\s]+(" + a + ")[,|\\s]+(" + a + ")\\s*\\)?";
|
|
960
|
+
return {
|
|
961
|
+
CSS_UNIT: new RegExp(a),
|
|
962
|
+
rgb: new RegExp("rgb" + i),
|
|
963
|
+
rgba: new RegExp("rgba" + n),
|
|
964
|
+
hsl: new RegExp("hsl" + i),
|
|
965
|
+
hsla: new RegExp("hsla" + n),
|
|
966
|
+
hsv: new RegExp("hsv" + i),
|
|
967
|
+
hsva: new RegExp("hsva" + n),
|
|
968
|
+
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
969
|
+
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
970
|
+
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
971
|
+
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
972
|
+
};
|
|
973
|
+
}();
|
|
974
|
+
function m(e) {
|
|
975
|
+
return !!u.CSS_UNIT.exec(e);
|
|
976
|
+
}
|
|
977
|
+
function l1(e) {
|
|
978
|
+
e = e.replace(O, "").replace(R, "").toLowerCase();
|
|
979
|
+
var t = !1;
|
|
980
|
+
if (M[e])
|
|
981
|
+
e = M[e], t = !0;
|
|
982
|
+
else if (e == "transparent")
|
|
983
|
+
return {
|
|
984
|
+
r: 0,
|
|
985
|
+
g: 0,
|
|
986
|
+
b: 0,
|
|
987
|
+
a: 0,
|
|
988
|
+
format: "name"
|
|
989
|
+
};
|
|
990
|
+
var a;
|
|
991
|
+
return (a = u.rgb.exec(e)) ? {
|
|
992
|
+
r: a[1],
|
|
993
|
+
g: a[2],
|
|
994
|
+
b: a[3]
|
|
995
|
+
} : (a = u.rgba.exec(e)) ? {
|
|
996
|
+
r: a[1],
|
|
997
|
+
g: a[2],
|
|
998
|
+
b: a[3],
|
|
999
|
+
a: a[4]
|
|
1000
|
+
} : (a = u.hsl.exec(e)) ? {
|
|
1001
|
+
h: a[1],
|
|
1002
|
+
s: a[2],
|
|
1003
|
+
l: a[3]
|
|
1004
|
+
} : (a = u.hsla.exec(e)) ? {
|
|
1005
|
+
h: a[1],
|
|
1006
|
+
s: a[2],
|
|
1007
|
+
l: a[3],
|
|
1008
|
+
a: a[4]
|
|
1009
|
+
} : (a = u.hsv.exec(e)) ? {
|
|
1010
|
+
h: a[1],
|
|
1011
|
+
s: a[2],
|
|
1012
|
+
v: a[3]
|
|
1013
|
+
} : (a = u.hsva.exec(e)) ? {
|
|
1014
|
+
h: a[1],
|
|
1015
|
+
s: a[2],
|
|
1016
|
+
v: a[3],
|
|
1017
|
+
a: a[4]
|
|
1018
|
+
} : (a = u.hex8.exec(e)) ? {
|
|
1019
|
+
r: h(a[1]),
|
|
1020
|
+
g: h(a[2]),
|
|
1021
|
+
b: h(a[3]),
|
|
1022
|
+
a: D(a[4]),
|
|
1023
|
+
format: t ? "name" : "hex8"
|
|
1024
|
+
} : (a = u.hex6.exec(e)) ? {
|
|
1025
|
+
r: h(a[1]),
|
|
1026
|
+
g: h(a[2]),
|
|
1027
|
+
b: h(a[3]),
|
|
1028
|
+
format: t ? "name" : "hex"
|
|
1029
|
+
} : (a = u.hex4.exec(e)) ? {
|
|
1030
|
+
r: h(a[1] + "" + a[1]),
|
|
1031
|
+
g: h(a[2] + "" + a[2]),
|
|
1032
|
+
b: h(a[3] + "" + a[3]),
|
|
1033
|
+
a: D(a[4] + "" + a[4]),
|
|
1034
|
+
format: t ? "name" : "hex8"
|
|
1035
|
+
} : (a = u.hex3.exec(e)) ? {
|
|
1036
|
+
r: h(a[1] + "" + a[1]),
|
|
1037
|
+
g: h(a[2] + "" + a[2]),
|
|
1038
|
+
b: h(a[3] + "" + a[3]),
|
|
1039
|
+
format: t ? "name" : "hex"
|
|
1040
|
+
} : !1;
|
|
1041
|
+
}
|
|
1042
|
+
function s1(e) {
|
|
1043
|
+
var t, a;
|
|
1044
|
+
return e = e || {
|
|
1045
|
+
level: "AA",
|
|
1046
|
+
size: "small"
|
|
1047
|
+
}, t = (e.level || "AA").toUpperCase(), a = (e.size || "small").toLowerCase(), t !== "AA" && t !== "AAA" && (t = "AA"), a !== "small" && a !== "large" && (a = "small"), {
|
|
1048
|
+
level: t,
|
|
1049
|
+
size: a
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
C.loadOptions({
|
|
1053
|
+
namespaces: "packageGroupTemplate",
|
|
1054
|
+
messages: {
|
|
1055
|
+
en: {
|
|
1056
|
+
title: "Scope of Work"
|
|
1057
|
+
},
|
|
1058
|
+
sv: {
|
|
1059
|
+
title: "Omfattning"
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
});
|
|
1063
|
+
const o1 = (e) => {
|
|
1064
|
+
const t = Array(2).fill().map(() => v());
|
|
1065
|
+
return [
|
|
1066
|
+
{
|
|
1067
|
+
itemId: `packageGroup-${e}`,
|
|
1068
|
+
itemType: "section",
|
|
1069
|
+
value: {
|
|
1070
|
+
title: `data.packageGroups.${e}.title`
|
|
1071
|
+
},
|
|
1072
|
+
parentId: "0",
|
|
1073
|
+
nodeId: t[0]
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
itemId: "group",
|
|
1077
|
+
itemType: "selectionGroup",
|
|
1078
|
+
value: {
|
|
1079
|
+
groupId: e,
|
|
1080
|
+
type: `data.packageGroups.${e}.type`,
|
|
1081
|
+
packages: `data.packageGroups.${e}.packages`
|
|
1082
|
+
// todo: add articles when migration exists
|
|
1083
|
+
},
|
|
1084
|
+
parentId: t[0],
|
|
1085
|
+
nodeId: t[1]
|
|
1086
|
+
}
|
|
1087
|
+
];
|
|
1088
|
+
}, d1 = (e, t = "en") => [
|
|
1089
|
+
{
|
|
1090
|
+
key: `packageGroups.${e}`,
|
|
1091
|
+
validationKey: "packageGroups",
|
|
1092
|
+
defaultValue: {
|
|
1093
|
+
type: "",
|
|
1094
|
+
title: C.t("packageGroupTemplate:title", { lng: t }),
|
|
1095
|
+
hideGroupPrice: !1,
|
|
1096
|
+
packages: []
|
|
1097
|
+
},
|
|
1098
|
+
defaultValidation: {
|
|
1099
|
+
[e]: {
|
|
1100
|
+
type: "",
|
|
1101
|
+
title: C.t("packageGroupTemplate:title", { lng: t }),
|
|
1102
|
+
hideGroupPrice: !1,
|
|
1103
|
+
packages: []
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
$ref: `${_.api.baseUrl}/schemas/packageGroups/1.json`
|
|
1107
|
+
}
|
|
1108
|
+
], f1 = () => null, u1 = ({
|
|
1109
|
+
includeMockData: e,
|
|
1110
|
+
document: t = null,
|
|
1111
|
+
contentData: a = null
|
|
1112
|
+
} = {}) => {
|
|
1113
|
+
const i = v(), { language: n } = t || {};
|
|
1114
|
+
let r = null;
|
|
1115
|
+
typeof a == "function" ? r = a(i) : e && (r = f1());
|
|
1116
|
+
const s = o1(i), o = d1(i, n);
|
|
1117
|
+
return {
|
|
1118
|
+
readView: s,
|
|
1119
|
+
validation: o,
|
|
1120
|
+
...r && { data: r }
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
C.loadOptions({
|
|
1124
|
+
namespaces: "packageGroupContentItems",
|
|
1125
|
+
messages: {
|
|
1126
|
+
en: {
|
|
1127
|
+
single: {
|
|
1128
|
+
previewText: "Single",
|
|
1129
|
+
previewImgText: '<tspan x="105.213" y="54.943">Package</tspan>',
|
|
1130
|
+
art: "Sample product"
|
|
1131
|
+
},
|
|
1132
|
+
checkbox: {
|
|
1133
|
+
previewText: "Multi",
|
|
1134
|
+
pkgBaseName: "Base Package",
|
|
1135
|
+
pkgBaseDescription: `
|
|
1136
|
+
<p>Describe what's included in this package.</p>
|
|
1137
|
+
<p>
|
|
1138
|
+
Offer several packages and let your client pick which ones they'd like to have.
|
|
1139
|
+
</p>
|
|
1140
|
+
<p>
|
|
1141
|
+
This package is setup as a base package. This means your client can't unselect this option. If you wish to change this, click on the "Change"-button to the right.
|
|
1142
|
+
</p>
|
|
1143
|
+
`,
|
|
1144
|
+
pkgOptionName: "Optional package",
|
|
1145
|
+
pkgOptionDescription: `
|
|
1146
|
+
<p>Describe what's included in this package..</p>
|
|
1147
|
+
<p>This is a optional package that your client can select.</p>
|
|
1148
|
+
`,
|
|
1149
|
+
artBase: "Sample product A",
|
|
1150
|
+
artOption: "Sample product B"
|
|
1151
|
+
},
|
|
1152
|
+
radio: {
|
|
1153
|
+
previewText: "Packages",
|
|
1154
|
+
pkgAName: "Option A",
|
|
1155
|
+
pkgRadioDescription: `
|
|
1156
|
+
<p>Describe what's included in this package.</p>
|
|
1157
|
+
<p>
|
|
1158
|
+
With package options you can offer several packages and let your client choose one of them. For example you could offer Small, Medium and Large-packages.
|
|
1159
|
+
</p>
|
|
1160
|
+
`,
|
|
1161
|
+
pkgBName: "Option B",
|
|
1162
|
+
artA: "Sample product A",
|
|
1163
|
+
artB: "Sample product B"
|
|
1164
|
+
}
|
|
1165
|
+
},
|
|
1166
|
+
sv: {
|
|
1167
|
+
single: {
|
|
1168
|
+
previewText: "Enkel",
|
|
1169
|
+
previewImgText: '<tspan x="135.213" y="54.943">Paket</tspan>',
|
|
1170
|
+
art: "Exempelvara"
|
|
1171
|
+
},
|
|
1172
|
+
checkbox: {
|
|
1173
|
+
previewText: "Flera val",
|
|
1174
|
+
pkgBaseName: "Grundpaket",
|
|
1175
|
+
pkgBaseDescription: `
|
|
1176
|
+
<p>Beskriv vad paketet innehåller.</p>
|
|
1177
|
+
<p>
|
|
1178
|
+
Erbjud flera alternativ som din kund välja. Din kund kan välja att ha ett eller fler alternativ som tillval.
|
|
1179
|
+
</p>
|
|
1180
|
+
<p>
|
|
1181
|
+
Det här paketet är inställt som ett grundpaket. Det betyder att din kund inte kan välja bort det här paketalternativet. Du kan ändra inställningen genom att klicka på "Ändra"-knappen till höger.
|
|
1182
|
+
</p>
|
|
1183
|
+
`,
|
|
1184
|
+
pkgOptionName: "Valbart alternativ",
|
|
1185
|
+
pkgOptionDescription: `
|
|
1186
|
+
<p>Beskriv vad paketet innehåller.</p>
|
|
1187
|
+
<p>Det här är ett valbart paket som din kund kan välja till.</p>
|
|
1188
|
+
`,
|
|
1189
|
+
artBase: "Exempelvara A",
|
|
1190
|
+
artOption: "Exempelvara B"
|
|
1191
|
+
},
|
|
1192
|
+
radio: {
|
|
1193
|
+
previewText: "Paket",
|
|
1194
|
+
pkgAName: "Alternativ A",
|
|
1195
|
+
pkgRadioDescription: `
|
|
1196
|
+
<p>Beskriv vad paketet innehåller.</p>
|
|
1197
|
+
<p>
|
|
1198
|
+
Med paketval så kan du erbjuda olika paket som din kund kan välja mellan. Din kund kan enbart välja ett av alternativen. Till exempel så kan du erbjuda small-, medium- eller large-alternativ.
|
|
1199
|
+
</p>
|
|
1200
|
+
`,
|
|
1201
|
+
pkgBName: "Alternativ B",
|
|
1202
|
+
artA: "Exempelvara A",
|
|
1203
|
+
artB: "Exempelvara B"
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
});
|
|
1208
|
+
const g1 = ({
|
|
1209
|
+
language: e = "en",
|
|
1210
|
+
currency: t = "USD",
|
|
1211
|
+
_getters: a,
|
|
1212
|
+
allArticles: i = []
|
|
1213
|
+
} = {}) => {
|
|
1214
|
+
const n = H(a, "settings/defaultVatRate") || null, r = !H(a, "settings/hidePriceOnNewlyAddedArticles"), s = (o) => C.t(`packageGroupContentItems:${o}`, { lng: e });
|
|
1215
|
+
return [
|
|
1216
|
+
{
|
|
1217
|
+
previewUrl: `
|
|
1218
|
+
<div style="position: relative;">
|
|
1219
|
+
<svg fill="none" viewBox="0 0 400 250" xmlns="http://www.w3.org/2000/svg">
|
|
1220
|
+
<g clip-path="url(#single-clip0)">
|
|
1221
|
+
<path fill="url(#single-paint0_linear)" d="M0 0h400v250H0z"/>
|
|
1222
|
+
<g filter="url(#single-filter0_d)">
|
|
1223
|
+
<rect x="76" y="61" width="247.373" height="127.676" rx="5.32" fill="url(#single-paint1_linear)"/>
|
|
1224
|
+
</g>
|
|
1225
|
+
<text transform="translate(-18 142)" fill="#1B1B1B" style="white-space:pre" font-family="Inter" font-size="45.219" font-weight="bold" letter-spacing="0em">
|
|
1226
|
+
$$$
|
|
1227
|
+
</text>
|
|
1228
|
+
</g>
|
|
1229
|
+
<defs>
|
|
1230
|
+
<linearGradient id="single-paint0_linear" x1="286.5" y1="261" x2="118" y2="0" gradientUnits="userSpaceOnUse">
|
|
1231
|
+
<stop stop-color="#27A707"/>
|
|
1232
|
+
<stop offset="1" stop-color="#14F400"/>
|
|
1233
|
+
</linearGradient>
|
|
1234
|
+
<linearGradient id="single-paint1_linear" x1="199.687" y1="61" x2="199.687" y2="188.676" gradientUnits="userSpaceOnUse">
|
|
1235
|
+
<stop stop-color="#fff"/>
|
|
1236
|
+
<stop offset="1" stop-color="#D2D2D2"/>
|
|
1237
|
+
</linearGradient>
|
|
1238
|
+
<clipPath id="single-clip0">
|
|
1239
|
+
<path fill="#fff" d="M0 0h400v250H0z"/>
|
|
1240
|
+
</clipPath>
|
|
1241
|
+
<filter id="single-filter0_d" x="55" y="56" width="277.373" height="157.676" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
1242
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
1243
|
+
<feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
1244
|
+
<feMorphology radius="1" in="SourceAlpha" result="effect1_dropShadow"/>
|
|
1245
|
+
<feOffset dx="-6" dy="10"/>
|
|
1246
|
+
<feGaussianBlur stdDeviation="8"/>
|
|
1247
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
|
|
1248
|
+
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
1249
|
+
<feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
|
1250
|
+
</filter>
|
|
1251
|
+
</defs>
|
|
1252
|
+
</svg>
|
|
1253
|
+
<div class="submenu-item-badge">
|
|
1254
|
+
${s("single.previewText")}
|
|
1255
|
+
</div>
|
|
1256
|
+
</div>
|
|
1257
|
+
`,
|
|
1258
|
+
contentData: (o) => {
|
|
1259
|
+
const d = v();
|
|
1260
|
+
return {
|
|
1261
|
+
[`data.packageGroups.${o}`]: {
|
|
1262
|
+
type: "single",
|
|
1263
|
+
title: C.t("packageGroupTemplate:title", { lng: e }),
|
|
1264
|
+
hideGroupPrice: !1,
|
|
1265
|
+
packages: [
|
|
1266
|
+
{
|
|
1267
|
+
isSelected: !0,
|
|
1268
|
+
isSelectedDefault: !0,
|
|
1269
|
+
toggable: !1,
|
|
1270
|
+
packageId: d,
|
|
1271
|
+
data: {
|
|
1272
|
+
name: "",
|
|
1273
|
+
description: "",
|
|
1274
|
+
prices: { type: "fixed", currency: t }
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
]
|
|
1278
|
+
},
|
|
1279
|
+
articles: [
|
|
1280
|
+
...i,
|
|
1281
|
+
x({
|
|
1282
|
+
vat: n,
|
|
1283
|
+
showPrice: r,
|
|
1284
|
+
currency: t,
|
|
1285
|
+
packageId: d,
|
|
1286
|
+
name: s("single.art"),
|
|
1287
|
+
price: 1e5
|
|
1288
|
+
})
|
|
1289
|
+
]
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
previewUrl: `
|
|
1295
|
+
<div style="position: relative;">
|
|
1296
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1297
|
+
<g clip-path="url(#packages-clip0)">
|
|
1298
|
+
<path fill="url(#packages-paint0_linear)" d="M0 0h400v250H0z"/>
|
|
1299
|
+
<g filter="url(#packages-filter0_d)">
|
|
1300
|
+
<rect x="39.428" y="21.98" width="247.373" height="127.676" rx="5.32" transform="rotate(-23 39.428 21.98)" fill="url(#packages-paint1_linear)"/>
|
|
1301
|
+
<text transform="rotate(-23 59.361 -474.421)" fill="#1B1B1B" style="white-space:pre" font-family="Inter" font-size="45.219" font-weight="bold" letter-spacing="0em">
|
|
1302
|
+
<tspan x=".479" y="55.012">$</tspan>
|
|
1303
|
+
</text>
|
|
1304
|
+
<rect x="84.584" y="43.267" width="51.869" height="51.869" rx="3.99" transform="rotate(-23 84.584 43.267)" fill="#A6A6A6"/>
|
|
1305
|
+
</g>
|
|
1306
|
+
<g filter="url(#packages-filter1_d)">
|
|
1307
|
+
<rect x="97.143" y="53.931" width="247.373" height="127.676" rx="5.32" transform="rotate(-13 97.143 53.931)" fill="url(#packages-paint2_linear)"/>
|
|
1308
|
+
<text transform="rotate(-13 326.98 -1018.966)" fill="#1B1B1B" style="white-space:pre" font-family="Inter" font-size="45.219" font-weight="bold" letter-spacing="0em">
|
|
1309
|
+
<tspan x=".294" y="55.012">$$</tspan>
|
|
1310
|
+
</text>
|
|
1311
|
+
<rect x="137.914" y="82.737" width="51.869" height="51.869" rx="3.99" transform="rotate(-13 137.914 82.737)" fill="#A6A6A6"/>
|
|
1312
|
+
</g>
|
|
1313
|
+
<g filter="url(#packages-filter2_d)">
|
|
1314
|
+
<rect x="168.127" y="88.995" width="247.373" height="127.676" rx="5.32" transform="rotate(-3 168.127 88.995)" fill="url(#packages-paint3_linear)"/>
|
|
1315
|
+
<text transform="rotate(-3 2204.02 -5540.062)" fill="#1B1B1B" style="white-space:pre" font-family="Inter" font-size="45.219" font-weight="bold" letter-spacing="0em">
|
|
1316
|
+
<tspan x=".108" y="55.012">$$$</tspan>
|
|
1317
|
+
</text>
|
|
1318
|
+
<rect x="203.279" y="124.443" width="51.869" height="51.869" rx="3.99" transform="rotate(-3 203.279 124.443)" fill="#04BB00"/>
|
|
1319
|
+
<path d="M217.94 150.117l8.387 7.551 17.012-18.452" stroke="#fff" stroke-width="6.65"/>
|
|
1320
|
+
</g>
|
|
1321
|
+
</g>
|
|
1322
|
+
<defs>
|
|
1323
|
+
<linearGradient id="packages-paint0_linear" x1="259.5" y1="264" x2="48" y2="-7.5" gradientUnits="userSpaceOnUse">
|
|
1324
|
+
<stop stop-color="#2E94F3"/>
|
|
1325
|
+
<stop offset="1" stop-color="#007FF4"/>
|
|
1326
|
+
</linearGradient>
|
|
1327
|
+
<linearGradient id="packages-paint1_linear" x1="163.114" y1="21.98" x2="163.114" y2="149.656" gradientUnits="userSpaceOnUse">
|
|
1328
|
+
<stop stop-color="#fff"/>
|
|
1329
|
+
<stop offset="1" stop-color="#D2D2D2"/>
|
|
1330
|
+
</linearGradient>
|
|
1331
|
+
<linearGradient id="packages-paint2_linear" x1="220.829" y1="53.931" x2="220.829" y2="181.608" gradientUnits="userSpaceOnUse">
|
|
1332
|
+
<stop stop-color="#fff"/>
|
|
1333
|
+
<stop offset="1" stop-color="#D2D2D2"/>
|
|
1334
|
+
</linearGradient>
|
|
1335
|
+
<linearGradient id="packages-paint3_linear" x1="291.814" y1="88.995" x2="291.814" y2="216.672" gradientUnits="userSpaceOnUse">
|
|
1336
|
+
<stop stop-color="#fff"/>
|
|
1337
|
+
<stop offset="1" stop-color="#D2D2D2"/>
|
|
1338
|
+
</linearGradient>
|
|
1339
|
+
<filter id="packages-filter0_d" x="19.632" y="-83.475" width="317.187" height="253.775" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
1340
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
1341
|
+
<feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
1342
|
+
<feOffset dy="10.998"/>
|
|
1343
|
+
<feGaussianBlur stdDeviation="9.898"/>
|
|
1344
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>
|
|
1345
|
+
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
1346
|
+
<feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
|
1347
|
+
</filter>
|
|
1348
|
+
<filter id="packages-filter1_d" x="77.347" y="-10.514" width="309.346" height="219.643" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
1349
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
1350
|
+
<feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
1351
|
+
<feOffset dy="10.998"/>
|
|
1352
|
+
<feGaussianBlur stdDeviation="9.898"/>
|
|
1353
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>
|
|
1354
|
+
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
1355
|
+
<feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
|
1356
|
+
</filter>
|
|
1357
|
+
<filter id="packages-filter2_d" x="148.331" y="67.251" width="293.308" height="180.04" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
1358
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
1359
|
+
<feColorMatrix in="SourceAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
1360
|
+
<feOffset dy="10.998"/>
|
|
1361
|
+
<feGaussianBlur stdDeviation="9.898"/>
|
|
1362
|
+
<feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>
|
|
1363
|
+
<feBlend in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
1364
|
+
<feBlend in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
|
1365
|
+
</filter>
|
|
1366
|
+
<clipPath id="packages-clip0">
|
|
1367
|
+
<path fill="#fff" d="M0 0h400v250H0z"/>
|
|
1368
|
+
</clipPath>
|
|
1369
|
+
</defs>
|
|
1370
|
+
</svg>
|
|
1371
|
+
<div class="submenu-item-badge">
|
|
1372
|
+
${s("radio.previewText")}
|
|
1373
|
+
</div>
|
|
1374
|
+
</div>
|
|
1375
|
+
`,
|
|
1376
|
+
contentData: (o) => {
|
|
1377
|
+
const d = Array(2).fill().map(() => v());
|
|
1378
|
+
return {
|
|
1379
|
+
[`data.packageGroups.${o}`]: {
|
|
1380
|
+
type: "radio",
|
|
1381
|
+
title: C.t("packageGroupTemplate:title", { lng: e }),
|
|
1382
|
+
hideGroupPrice: !1,
|
|
1383
|
+
packages: [
|
|
1384
|
+
{
|
|
1385
|
+
isSelected: !0,
|
|
1386
|
+
isSelectedDefault: !0,
|
|
1387
|
+
toggable: !0,
|
|
1388
|
+
packageId: d[0],
|
|
1389
|
+
data: {
|
|
1390
|
+
name: s("radio.pkgAName"),
|
|
1391
|
+
description: s("radio.pkgRadioDescription"),
|
|
1392
|
+
prices: { type: "fixed", currency: t }
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
isSelected: !1,
|
|
1397
|
+
isSelectedDefault: !1,
|
|
1398
|
+
toggable: !0,
|
|
1399
|
+
packageId: d[1],
|
|
1400
|
+
data: {
|
|
1401
|
+
name: s("radio.pkgBName"),
|
|
1402
|
+
description: "",
|
|
1403
|
+
prices: { type: "fixed", currency: t }
|
|
1404
|
+
}
|
|
1405
|
+
}
|
|
1406
|
+
]
|
|
1407
|
+
},
|
|
1408
|
+
articles: [
|
|
1409
|
+
...i,
|
|
1410
|
+
x({
|
|
1411
|
+
vat: n,
|
|
1412
|
+
showPrice: r,
|
|
1413
|
+
currency: t,
|
|
1414
|
+
packageId: d[0],
|
|
1415
|
+
name: s("radio.artA"),
|
|
1416
|
+
price: 1e5
|
|
1417
|
+
}),
|
|
1418
|
+
x({
|
|
1419
|
+
vat: n,
|
|
1420
|
+
showPrice: r,
|
|
1421
|
+
currency: t,
|
|
1422
|
+
packageId: d[1],
|
|
1423
|
+
name: s("radio.artB"),
|
|
1424
|
+
price: 2e5
|
|
1425
|
+
})
|
|
1426
|
+
]
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
previewUrl: `
|
|
1432
|
+
<div style="position: relative;">
|
|
1433
|
+
<svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
1434
|
+
<g clip-path="url(#radio-clip0)">
|
|
1435
|
+
<rect width="400" height="250" fill="url(#radio-paint0_linear)"/>
|
|
1436
|
+
<g filter="url(#radio-filter0_d)">
|
|
1437
|
+
<rect x="77" y="-21" width="209" height="110" rx="5.31985" fill="url(#paint1_linear)"/>
|
|
1438
|
+
<text transform="translate(170.686 -3.73047)" fill="#1B1B1B" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="45.2187" font-weight="bold" letter-spacing="0em"><tspan x="27.6409" y="55.0121">A</tspan></text>
|
|
1439
|
+
<rect x="110.248" y="8.23877" width="51.8686" height="51.8686" rx="3.98989" fill="#04BB00"/>
|
|
1440
|
+
<line x1="136" y1="18" x2="136" y2="50" stroke="white" stroke-width="8"/>
|
|
1441
|
+
<line x1="120" y1="34" x2="152" y2="34" stroke="white" stroke-width="8"/>
|
|
1442
|
+
</g>
|
|
1443
|
+
<g filter="url(#radio-filter1_d)">
|
|
1444
|
+
<rect x="121" y="48" width="208" height="110" rx="5.31985" fill="url(#radio-paint2_linear)"/>
|
|
1445
|
+
<text transform="translate(214.236 65.2695)" fill="#1B1B1B" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="45.2187" font-weight="bold" letter-spacing="0em"><tspan x="29.3928" y="55.0121">B</tspan></text>
|
|
1446
|
+
<rect x="154.09" y="77.2388" width="51.6204" height="51.8686" rx="3.98989" fill="#9B9B9B"/>
|
|
1447
|
+
</g>
|
|
1448
|
+
<g filter="url(#radio-filter2_d)">
|
|
1449
|
+
<rect x="179" y="112" width="209" height="110" rx="5.31985" fill="url(#radio-paint3_linear)"/>
|
|
1450
|
+
<text transform="translate(272.686 129.27)" fill="#1B1B1B" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="45.2187" font-weight="bold" letter-spacing="0em"><tspan x="27.5526" y="55.0121">C</tspan></text>
|
|
1451
|
+
<rect x="212.248" y="141.239" width="51.8686" height="51.8686" rx="3.98989" fill="#04BB00"/>
|
|
1452
|
+
<line x1="238" y1="151" x2="238" y2="183" stroke="white" stroke-width="8"/>
|
|
1453
|
+
<line x1="222" y1="167" x2="254" y2="167" stroke="white" stroke-width="8"/>
|
|
1454
|
+
</g>
|
|
1455
|
+
</g>
|
|
1456
|
+
<defs>
|
|
1457
|
+
<filter id="radio-filter0_d" x="57.204" y="-29.7982" width="248.592" height="149.592" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
1458
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
1459
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
1460
|
+
<feOffset dy="10.9978"/>
|
|
1461
|
+
<feGaussianBlur stdDeviation="9.89799"/>
|
|
1462
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>
|
|
1463
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
1464
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
|
1465
|
+
</filter>
|
|
1466
|
+
<filter id="radio-filter1_d" x="101.204" y="39.2018" width="247.592" height="149.592" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
1467
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
1468
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
1469
|
+
<feOffset dy="10.9978"/>
|
|
1470
|
+
<feGaussianBlur stdDeviation="9.89799"/>
|
|
1471
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>
|
|
1472
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
1473
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
|
1474
|
+
</filter>
|
|
1475
|
+
<filter id="radio-filter2_d" x="159.204" y="103.202" width="248.592" height="149.592" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
|
1476
|
+
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
|
|
1477
|
+
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/>
|
|
1478
|
+
<feOffset dy="10.9978"/>
|
|
1479
|
+
<feGaussianBlur stdDeviation="9.89799"/>
|
|
1480
|
+
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.13 0"/>
|
|
1481
|
+
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow"/>
|
|
1482
|
+
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow" result="shape"/>
|
|
1483
|
+
</filter>
|
|
1484
|
+
<linearGradient id="radio-paint0_linear" x1="116.5" y1="-1.93873e-06" x2="261" y2="266" gradientUnits="userSpaceOnUse">
|
|
1485
|
+
<stop stop-color="#FFAC2F"/>
|
|
1486
|
+
<stop offset="1" stop-color="#F09000"/>
|
|
1487
|
+
</linearGradient>
|
|
1488
|
+
<linearGradient id="paint1_linear" x1="181.5" y1="-21" x2="181.5" y2="89" gradientUnits="userSpaceOnUse">
|
|
1489
|
+
<stop stop-color="white"/>
|
|
1490
|
+
<stop offset="1" stop-color="#D2D2D2"/>
|
|
1491
|
+
</linearGradient>
|
|
1492
|
+
<linearGradient id="radio-paint2_linear" x1="225" y1="48" x2="225" y2="158" gradientUnits="userSpaceOnUse">
|
|
1493
|
+
<stop stop-color="white"/>
|
|
1494
|
+
<stop offset="1" stop-color="#D2D2D2"/>
|
|
1495
|
+
</linearGradient>
|
|
1496
|
+
<linearGradient id="radio-paint3_linear" x1="283.5" y1="112" x2="283.5" y2="222" gradientUnits="userSpaceOnUse">
|
|
1497
|
+
<stop stop-color="white"/>
|
|
1498
|
+
<stop offset="1" stop-color="#D2D2D2"/>
|
|
1499
|
+
</linearGradient>
|
|
1500
|
+
<clipPath id="radio-clip0">
|
|
1501
|
+
<rect width="400" height="250" fill="white"/>
|
|
1502
|
+
</clipPath>
|
|
1503
|
+
</defs>
|
|
1504
|
+
</svg>
|
|
1505
|
+
<div class="submenu-item-badge">
|
|
1506
|
+
${s("checkbox.previewText")}
|
|
1507
|
+
</div>
|
|
1508
|
+
</div>
|
|
1509
|
+
`,
|
|
1510
|
+
contentData: (o) => {
|
|
1511
|
+
const d = Array(2).fill().map(() => v());
|
|
1512
|
+
return {
|
|
1513
|
+
[`data.packageGroups.${o}`]: {
|
|
1514
|
+
type: "checkbox",
|
|
1515
|
+
title: C.t("packageGroupTemplate:title", { lng: e }),
|
|
1516
|
+
hideGroupPrice: !1,
|
|
1517
|
+
packages: [
|
|
1518
|
+
{
|
|
1519
|
+
isSelected: !0,
|
|
1520
|
+
isSelectedDefault: !0,
|
|
1521
|
+
toggable: !1,
|
|
1522
|
+
packageId: d[0],
|
|
1523
|
+
data: {
|
|
1524
|
+
name: s("checkbox.pkgBaseName"),
|
|
1525
|
+
description: s("checkbox.pkgBaseDescription"),
|
|
1526
|
+
prices: { type: "fixed", currency: t }
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
isSelected: !1,
|
|
1531
|
+
isSelectedDefault: !1,
|
|
1532
|
+
toggable: !0,
|
|
1533
|
+
packageId: d[1],
|
|
1534
|
+
data: {
|
|
1535
|
+
name: s("checkbox.pkgOptionName"),
|
|
1536
|
+
description: s("checkbox.pkgOptionDescription"),
|
|
1537
|
+
prices: { type: "fixed", currency: t }
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
]
|
|
1541
|
+
},
|
|
1542
|
+
articles: [
|
|
1543
|
+
...i,
|
|
1544
|
+
x({
|
|
1545
|
+
vat: n,
|
|
1546
|
+
showPrice: r,
|
|
1547
|
+
currency: t,
|
|
1548
|
+
packageId: d[0],
|
|
1549
|
+
name: s("checkbox.artBase"),
|
|
1550
|
+
price: 1e5
|
|
1551
|
+
}),
|
|
1552
|
+
x({
|
|
1553
|
+
vat: n,
|
|
1554
|
+
showPrice: r,
|
|
1555
|
+
currency: t,
|
|
1556
|
+
packageId: d[1],
|
|
1557
|
+
name: s("checkbox.artOption"),
|
|
1558
|
+
price: 2e5
|
|
1559
|
+
})
|
|
1560
|
+
]
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
];
|
|
1565
|
+
};
|
|
1566
|
+
export {
|
|
1567
|
+
c1 as a,
|
|
1568
|
+
p1 as b,
|
|
1569
|
+
g1 as c,
|
|
1570
|
+
u1 as g,
|
|
1571
|
+
l as t
|
|
1572
|
+
};
|