@cling-se/widget 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/{AddClientCallout-7LpWNu29.js → AddClientCallout-D9a9MCUX.js} +3 -3
  2. package/dist/{AnswerModal-DnTU4eo8.js → AnswerModal-D8x72yGp.js} +3 -3
  3. package/dist/{AttachmentItem-DcwbrFUh.js → AttachmentItem-BvRfBRk6.js} +2 -2
  4. package/dist/{BaseDatePicker-BpyeJH3N.js → BaseDatePicker-BmvP7mNA.js} +2 -2
  5. package/dist/{BaseInput-DJreiE5M.js → BaseInput-DDxP_o2d.js} +1 -1
  6. package/dist/{BaseUpload-iosxX2-N.js → BaseUpload-BYXTgBXu.js} +2 -2
  7. package/dist/{BlockMedia-DnbdVEZz.js → BlockMedia-BjasKSPl.js} +1 -1
  8. package/dist/{CCallout-CgviPbdr.js → CCallout-D66Z5Gmx.js} +2 -2
  9. package/dist/{CDropdownItem-CTJ55d4m.js → CDropdownItem-CsY-c0bJ.js} +1 -1
  10. package/dist/{CField-FGP7ehRq.js → CField-P1DJ6Xte.js} +1 -1
  11. package/dist/{CPhoneFormat-8u5dmTPd.js → CPhoneFormat-CWaOjZ6c.js} +1 -1
  12. package/dist/{CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-Dc_pbPEA.js → CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-ZmW20zh4.js} +1 -1
  13. package/dist/{ClientAutocomplete-hcl0bJxO.js → ClientAutocomplete-CS5EWC8m.js} +2 -2
  14. package/dist/{ClientModal-B8PkUqY2.js → ClientModal-JsCpUq7_.js} +4 -4
  15. package/dist/{ColorPicker-6AIHrfJ5.js → ColorPicker-D2qM7zAH.js} +1 -1
  16. package/dist/{CompanyModal-H4hHfy7Y.js → CompanyModal-Cy41VR2V.js} +4 -4
  17. package/dist/{ContentWrapper-CHZtfhFI.js → ContentWrapper-BZV21UxA.js} +6 -6
  18. package/dist/{CoverBlockSettings-etwL5N5l.js → CoverBlockSettings-BKSeVFDE.js} +5 -5
  19. package/dist/{DocAnswer-Udn1ItYd.js → DocAnswer-kP7uwYPw.js} +2 -2
  20. package/dist/{DocDetails-BQz-is7P.js → DocDetails-CQokGcQU.js} +4 -4
  21. package/dist/{DocForm-Cvuxr89v.js → DocForm--8jg79O2.js} +21 -21
  22. package/dist/{DocFormSend-Bo6YPSMr.js → DocFormSend-yMGm0yem.js} +3 -3
  23. package/dist/{DocLinks-DlWyanFQ.js → DocLinks-tR60r1YR.js} +2 -2
  24. package/dist/{DocModalBase-BnuOPozg.js → DocModalBase-CTK46Brc.js} +1 -1
  25. package/dist/{DocPrint-Uw8zz2tr.js → DocPrint-GY73q9cl.js} +1 -1
  26. package/dist/{DocReceipt-DsRzRjD8.js → DocReceipt-pTTh1XRW.js} +1 -1
  27. package/dist/{DocSendReminder-BEEEh-L9.js → DocSendReminder-C4MsDwmQ.js} +1 -1
  28. package/dist/{DocTextEditor-C-qeLSQa.js → DocTextEditor-C-22iwpJ.js} +8 -8
  29. package/dist/{DocTimeline-Bz29bHJu.js → DocTimeline-CwcPVMLq.js} +1 -1
  30. package/dist/{DocumentClient-1O7wxh-X.js → DocumentClient-C9Lm9899.js} +5 -5
  31. package/dist/{DocumentLayout-BrN5peVY.js → DocumentLayout-BijbYCjw.js} +4 -4
  32. package/dist/{DocumentLogotype-Bbas4MsY.js → DocumentLogotype-EyAhhuyy.js} +3 -3
  33. package/dist/{DocumentVoided-Dy-pp_ng.js → DocumentVoided-D5t8akG5.js} +1 -1
  34. package/dist/{EmbedInput-bXXwMP4u.js → EmbedInput-BgRj0APU.js} +2 -2
  35. package/dist/{EmbedSettings-BA2THNrd.js → EmbedSettings-D2AVYJsR.js} +2 -2
  36. package/dist/{ErrorCallout-Dvy9895L.js → ErrorCallout-C2Hz9_Kw.js} +1 -1
  37. package/dist/{FilePreviewModal-r84Ah3lE.js → FilePreviewModal-qE7IG4wX.js} +2 -2
  38. package/dist/{Flag-CDN9A_59.js → Flag-BCpOsl81.js} +1 -1
  39. package/dist/{HeaderSettings-DoDFhLcR.js → HeaderSettings-BZNxb77S.js} +7 -7
  40. package/dist/{ImageSelectModal-D6ifkvIw.js → ImageSelectModal-FTD0imPM.js} +3 -3
  41. package/dist/{ImageUploadWrapper-K0-MmL-L.js → ImageUploadWrapper-Dt-_sMWf.js} +2 -2
  42. package/dist/{Index-oYQ9EfP9.js → Index-21Rqe72Y.js} +4 -4
  43. package/dist/{Index-CUZJomAi.js → Index-5j91zO6f.js} +5 -5
  44. package/dist/{Index-Btlub0dK.js → Index-BCXTn1sC.js} +1 -1
  45. package/dist/{Index-DwlzPadK.js → Index-BDET3dI8.js} +7 -7
  46. package/dist/{Index-3p6X7Ln-.js → Index-BFaUGjUB.js} +3 -3
  47. package/dist/{Index-YdyeCcFX.js → Index-BKlCGLNd.js} +5 -5
  48. package/dist/{Index-DvA5sZ1U.js → Index-BoLTPa35.js} +4 -4
  49. package/dist/{Index-BN64idjX.js → Index-CBbfIsZN.js} +6 -6
  50. package/dist/{Index-B6gB5CD3.js → Index-CFdROMC3.js} +4 -4
  51. package/dist/{Index-ByCpvqCC.js → Index-CJODaFN6.js} +6 -6
  52. package/dist/{Index-BNeg0lcx.js → Index-C_xGmfku.js} +1 -1
  53. package/dist/{Index-BVNgUe07.js → Index-CcukWQRL.js} +2 -2
  54. package/dist/{Index-DWHl_jys.js → Index-Cl5xExRO.js} +3 -3
  55. package/dist/{Index-B6u3OUGH.js → Index-Cp6jRq1R.js} +2 -2
  56. package/dist/{Index-d5iMi4y5.js → Index-CuoBquDv.js} +2 -2
  57. package/dist/{Index-BtzGGZEN.js → Index-Cwl2NC2m.js} +11 -11
  58. package/dist/{Index-Di3ibm8r.js → Index-D-bjhn09.js} +5 -5
  59. package/dist/{Index-BNGaREiU.js → Index-D2nfeQ5x.js} +5 -5
  60. package/dist/{Index-bIYFzizT.js → Index-D5bdxU_9.js} +2 -2
  61. package/dist/{Index-CnOdi4ux.js → Index-DFtgMiak.js} +2 -2
  62. package/dist/{Index-Be-J2RvQ.js → Index-DGZ31KnZ.js} +4 -4
  63. package/dist/{Index-CSg7HLqX.js → Index-DJR3xxCd.js} +4 -4
  64. package/dist/{Index-DoKh3I_O.js → Index-DMY-Sq_M.js} +5 -5
  65. package/dist/{Index-TPRXPN4a.js → Index-DlhEipBL.js} +4 -4
  66. package/dist/{Index-Dk-kPbWy.js → Index-Dv7cLrE4.js} +2 -2
  67. package/dist/{Index-ID37TIgR.js → Index-In1yv5wC.js} +2 -2
  68. package/dist/{Index-DT9AWIQ2.js → Index-UamytEM4.js} +6 -6
  69. package/dist/{Index-Cj_3udAp.js → Index-WMiYQ88f.js} +5 -5
  70. package/dist/{Index-DnDY3FUU.js → Index-WNn-Ygm3.js} +4 -4
  71. package/dist/{Index-BQVjSt_5.js → Index-_IbAcZwx.js} +8 -8
  72. package/dist/{Index-phsroK51.js → Index-djTZz7Ns.js} +4 -4
  73. package/dist/{Index-B26J4tXQ.js → Index-sfUDC-CQ.js} +4 -4
  74. package/dist/{Index-Dl87oWQa.js → Index-tPwll4sB.js} +3 -3
  75. package/dist/{Index-b0dDsObZ.js → Index-xgTLuqmb.js} +5 -5
  76. package/dist/{InputToggleRow-ClHkgn7s.js → InputToggleRow-BEO32u0P.js} +1 -1
  77. package/dist/{ManualPopover-DrhgZvGC.js → ManualPopover-BBh0cUw5.js} +1 -1
  78. package/dist/{MediaWrapper-BxNEJOT7.js → MediaWrapper-CoMogZxx.js} +3 -3
  79. package/dist/{NotBindingText-BhKMdYBN.js → NotBindingText-BT1Q6RMl.js} +2 -2
  80. package/dist/{PackageGroup--pDNkIMj.js → PackageGroup-FdTMDsjx.js} +5 -5
  81. package/dist/{PdfTerms-BL34ex7f.js → PdfTerms-DyPWsQVj.js} +2 -2
  82. package/dist/{PdfViewer-CPSINxc8.js → PdfViewer-DypsavPs.js} +2 -2
  83. package/dist/{PlainHtml-Dc76U4EV.js → PlainHtml-BfBjldPv.js} +1 -1
  84. package/dist/{PriceHeader-CEGF-DO3.js → PriceHeader-C7uxm0UF.js} +6 -6
  85. package/dist/{SearchApi-D4yY2KZj.js → SearchApi-BFRaO76p.js} +2 -2
  86. package/dist/{Setup-BJIY_mWN.js → Setup-5Bd2oKy5.js} +1 -1
  87. package/dist/{TermsSettings-DM4pvL-n.js → TermsSettings-qp4QTvSS.js} +3 -3
  88. package/dist/{ThemeColorRow-D7TCU3ap.js → ThemeColorRow-BVO3w229.js} +3 -3
  89. package/dist/{ToggleBinding-CSgFUF6o.js → ToggleBinding-kUXMHL_T.js} +3 -3
  90. package/dist/{UploadModal-Cz7o7DeT.js → UploadModal-pc_pdLKq.js} +2 -2
  91. package/dist/{VideoPlayerInput-Db0RRtb5.js → VideoPlayerInput-D_pGBwqs.js} +3 -3
  92. package/dist/{VideoPlayerSettings-BgbNuWbP.js → VideoPlayerSettings-j923whT9.js} +2 -2
  93. package/dist/{VideoSelectModal-BIKeCzUZ.js → VideoSelectModal-YwoeiHje.js} +3 -3
  94. package/dist/{answerDocumentMixin-Bqg9Of1S.js → answerDocumentMixin-B_U73rNw.js} +3 -3
  95. package/dist/{debounce-DceKdgy2.js → debounce-BsRaWg59.js} +1 -1
  96. package/dist/{focusDrawerMixin-Cx41U1xU.js → focusDrawerMixin-JAewKqED.js} +1 -1
  97. package/dist/{formComponentsInstall-CWgaR4yB.js → formComponentsInstall-D4n0po7Z.js} +12 -12
  98. package/dist/{formDrawerState-DLCSwrgc.js → formDrawerState-zC8aJ2vd.js} +1 -1
  99. package/dist/{formValidationMixin-CsLym0iM.js → formValidationMixin-BZkYLjQt.js} +1 -1
  100. package/dist/{index-0kj8-T7-.js → index-B3HvM0tt.js} +5 -5
  101. package/dist/{index-By9c7IPL.js → index-CoyXZLrG.js} +5 -5
  102. package/dist/{index-C6C4uskP.js → index-DMs1rzm_.js} +1 -1
  103. package/dist/{index-Cp7dG8Zm.js → index-DNfDl5X3.js} +2 -2
  104. package/dist/{index-C16hoSRM.js → index-RA-At4z5.js} +1 -1
  105. package/dist/{index-4MqvoLi4.js → index-g89MyoBh.js} +1 -1
  106. package/dist/index.es.js +1 -1
  107. package/dist/index.umd.js +5 -5
  108. package/dist/{main-DBw231uy.js → main-DdTHuJSP.js} +14 -14
  109. package/dist/{mapFormMixin-BrtcYsT9.js → mapFormMixin-jUVHvbDZ.js} +1 -1
  110. package/dist/{omit-DQqb9hkZ.js → omit-Cu3_dgaV.js} +1 -1
  111. package/dist/{publicSenderState-BysO0Mzz.js → publicSenderState-DbENjyL4.js} +1 -1
  112. package/dist/{throttle-DKrISvLg.js → throttle-DP3fD_7G.js} +2 -2
  113. package/dist/{tinycolor-Be3bF6zy.js → tinycolor-BK1IhVpb.js} +1 -1
  114. package/dist/{tippy.esm-yjYH8SnL.js → tippy.esm-BZYdaq3J.js} +5 -5
  115. package/dist/{utils-DP30AdJH.js → utils-D8WP6t_z.js} +1 -1
  116. package/package.json +1 -1
package/dist/index.umd.js CHANGED
@@ -219,7 +219,7 @@ $t(documentTemplateView.smsContent) $t(documentTemplateView.readMore)
219
219
  $t(documentTemplateView.smsContent) $t(documentTemplateView.readMore)
220
220
 
221
221
  {{docLink}}`}}},email:"e-post",enterYour:"Skriv in ditt {{thing}}",event:{accepted:"Dokumentet undertecknades av {{by}}.",denied:"Dokumentet nekades av {{by}}.",event_plural:"händelser",expired:"Dokumentets giltighetstid har passerat.",requestChange:"Dokumentet markerades manuellt som {{status}}.",sent:"Dokument skickades till {{to}}.",statusChanged:"Dokumentet markerades som {{status}}.",viewed:"Har visats",viewedName:"{{name}} har visat dokumentet"},goBack:"Tillbaka",less:"mindre",login:"Login",logout:"Logout",myPages:{docCallout:{form:{text:"Du kan nå alla tidigare dokument du mottagit till din e-post via dokumentbiblioteket.",title:"Tips"},loginLink:"inloggningslänk",goToMyPagesTitle:"Gå till dina dokument"},documentItem:{approved:"Godkändes",expired:"Förföll"},documentsPlaceholder:"Du har inte tagit emot några dokument.",pageDescription:"Här samlas alla dina mottagna dokument.",requestForm:{alreadySentDescription:"En inloggningslänk har redan skickats till {{email}}. Det kan ta någon minut innan du får den.",alreadySentTitle:"Inloggningslänken är redan skickad",emailFormat:"Din e-post ska vara i formatet: namn@exempel.se",emailRequired:"Skriv in din e-postadress",sendLink:"Skicka inloggningslänk",sentDescription:"En inloggningslänk har skickats din din e-post, {{email}}, använd den för att logga in.",sentDescriptionSub:"Av säkerhetsskäl så kan du enbart logga in via en inloggningslänk.",sentTitle:"Inloggningslänk skickad till din inkorg"},title:"Mina sidor"},name:"namn",orgNoShort:"org-nr",participant_plural:"deltagare",phone:"telefon",price:{approx:"Ungefärligt pris",discount:"Rabatt",fixed:"Fast pris",markup:"Påslag",maxPrice:"maxpris",net:"Netto",openAcc:"Löpande räkning",openAccMaxPrice:"Löpande räkning med maxpris",openAccPrice:"Löpande räkning",price:"pris",price_plural:"priser",pricing:"prisform",proposal:"Prisförslag",total:"Totalpris"},print:"Skriv ut{{thing,inlineSpace}}",download:"Ladda ned{{thing,inlineSpace}}",reference:"referens",replyBy:"Svara senast",see:"se",select:"Välj{{thing,inlineSpace}}",send:"Skicka{{thing,inlineSpace}}",series:hm.series,show:"Visa{{thing,inlineSpace}}",socialNo:"personnummer",status:{accepted:"Signerad",active:"Pågående",archived:"Arkiverad",expired:"Förfallen",voided:"Återkallad",completed:"Klar",denied:"Nekad",draft:"Utkast",new:"Utkast",semiSigned:"Delsignerad",sent:"Skickad",signed:"Signerad"},summaryBottom:{chooseFrom:"Välj bland flera paket",forDetails:"för detaljer",noOfOptions:"{{count}} st",option:"valbara",option_plural:"valbara",reverseVat:"Moms {{- amount}}. Omvänd skattskyldighet gäller"},theDocument:"dokumentet",theSender:"avsändaren",times:"gång",times_plural:"gånger",total:"total",tryAgain:"Försök igen",unitType:hm.unitType,vat:hm.vat},pM=["en","sv","de","fi","fr","es","nl"],V1e={en:"English",sv:"Svenska",fi:"Suomi",de:"Deutsch",fr:"Français",es:"Español",nl:"Nederlands"},U1e={en:{document:L1e},sv:{document:z1e},de:{document:R1e},fi:{document:N1e},fr:{document:B1e},es:{document:F1e},nl:{document:j1e}},fM=pM,F4=n$.createInstance();F4.use(gO).use(yO).use(vO).init({...bO(F4),resources:U1e,whitelist:fM,fallbackLng:"en",namespaces:["document"],defaultNS:"document",fallbackNS:"document"});const ku=new um(F4,gse);function N4(n,t){Object.entries(n).forEach(([r,i])=>{var a,o;(o=(a=t==null?void 0:t.style)==null?void 0:a.setProperty)==null||o.call(a,r,i)})}function hM(n={}){Object.keys(n).forEach(t=>{const r=n[t];Object.keys(r).forEach(i=>{const a=r[i];(i==="document"?ku:Fe).i18next.addResources(t,i,a)})})}var mM={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(typeof self<"u"?self:Zt,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(c,l,(function(u){return o[u]}).bind(null,l));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=44)}([function(r,i,a){var o=a(28)("wks"),s=a(14),c=a(1).Symbol,l=typeof c=="function";(r.exports=function(u){return o[u]||(o[u]=l&&c[u]||(l?c:s)("Symbol."+u))}).store=o},function(r,i){var a=r.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=a)},function(r,i,a){var o=a(1),s=a(7),c=a(3),l=a(19),u=a(24),d=function(p,f,h){var m,g,y,b,_=p&d.F,S=p&d.G,k=p&d.S,E=p&d.P,T=p&d.B,A=S?o:k?o[f]||(o[f]={}):(o[f]||{}).prototype,$=S?s:s[f]||(s[f]={}),I=$.prototype||($.prototype={});for(m in S&&(h=f),h)y=((g=!_&&A&&A[m]!==void 0)?A:h)[m],b=T&&g?u(y,o):E&&typeof y=="function"?u(Function.call,y):y,A&&l(A,m,y,p&d.U),$[m]!=y&&c($,m,b),E&&I[m]!=y&&(I[m]=y)};o.core=s,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,r.exports=d},function(r,i,a){var o=a(4),s=a(13);r.exports=a(8)?function(c,l,u){return o.f(c,l,s(1,u))}:function(c,l,u){return c[l]=u,c}},function(r,i,a){var o=a(12),s=a(34),c=a(23),l=Object.defineProperty;i.f=a(8)?Object.defineProperty:function(u,d,p){if(o(u),d=c(d,!0),o(p),s)try{return l(u,d,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported!");return"value"in p&&(u[d]=p.value),u}},function(r,i){r.exports=function(a){return typeof a=="object"?a!==null:typeof a=="function"}},function(r,i){var a={}.hasOwnProperty;r.exports=function(o,s){return a.call(o,s)}},function(r,i){var a=r.exports={version:"2.5.7"};typeof __e=="number"&&(__e=a)},function(r,i,a){r.exports=!a(9)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(r,i){r.exports=function(a){try{return!!a()}catch{return!0}}},function(r,i,a){var o=a(37),s=a(29);r.exports=Object.keys||function(c){return o(c,s)}},function(r,i,a){var o=a(25),s=a(17);r.exports=function(c){return o(s(c))}},function(r,i,a){var o=a(5);r.exports=function(s){if(!o(s))throw TypeError(s+" is not an object!");return s}},function(r,i){r.exports=function(a,o){return{enumerable:!(1&a),configurable:!(2&a),writable:!(4&a),value:o}}},function(r,i){var a=0,o=Math.random();r.exports=function(s){return"Symbol(".concat(s===void 0?"":s,")_",(++a+o).toString(36))}},function(r,i){r.exports={}},function(r,i,a){var o=a(17);r.exports=function(s){return Object(o(s))}},function(r,i){r.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(r,i){r.exports=!1},function(r,i,a){var o=a(1),s=a(3),c=a(6),l=a(14)("src"),u=Function.toString,d=(""+u).split("toString");a(7).inspectSource=function(p){return u.call(p)},(r.exports=function(p,f,h,m){var g=typeof h=="function";g&&(c(h,"name")||s(h,"name",f)),p[f]!==h&&(g&&(c(h,l)||s(h,l,p[f]?""+p[f]:d.join(String(f)))),p===o?p[f]=h:m?p[f]?p[f]=h:s(p,f,h):(delete p[f],s(p,f,h)))})(Function.prototype,"toString",function(){return typeof this=="function"&&this[l]||u.call(this)})},function(r,i){var a={}.toString;r.exports=function(o){return a.call(o).slice(8,-1)}},function(r,i){i.f={}.propertyIsEnumerable},function(r,i){var a=Math.ceil,o=Math.floor;r.exports=function(s){return isNaN(s=+s)?0:(s>0?o:a)(s)}},function(r,i,a){var o=a(5);r.exports=function(s,c){if(!o(s))return s;var l,u;if(c&&typeof(l=s.toString)=="function"&&!o(u=l.call(s))||typeof(l=s.valueOf)=="function"&&!o(u=l.call(s))||!c&&typeof(l=s.toString)=="function"&&!o(u=l.call(s)))return u;throw TypeError("Can't convert object to primitive value")}},function(r,i,a){var o=a(47);r.exports=function(s,c,l){if(o(s),c===void 0)return s;switch(l){case 1:return function(u){return s.call(c,u)};case 2:return function(u,d){return s.call(c,u,d)};case 3:return function(u,d,p){return s.call(c,u,d,p)}}return function(){return s.apply(c,arguments)}}},function(r,i,a){var o=a(20);r.exports=Object("z").propertyIsEnumerable(0)?Object:function(s){return o(s)=="String"?s.split(""):Object(s)}},function(r,i,a){var o=a(22),s=Math.min;r.exports=function(c){return c>0?s(o(c),9007199254740991):0}},function(r,i,a){var o=a(28)("keys"),s=a(14);r.exports=function(c){return o[c]||(o[c]=s(c))}},function(r,i,a){var o=a(7),s=a(1),c=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(r.exports=function(l,u){return c[l]||(c[l]=u!==void 0?u:{})})("versions",[]).push({version:o.version,mode:a(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(r,i){r.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(r,i,a){var o=a(4).f,s=a(6),c=a(0)("toStringTag");r.exports=function(l,u,d){l&&!s(l=d?l:l.prototype,c)&&o(l,c,{configurable:!0,value:u})}},function(r,i,a){var o=a(0)("unscopables"),s=Array.prototype;s[o]==null&&a(3)(s,o,{}),r.exports=function(c){s[o][c]=!0}},function(r,i){i.f=Object.getOwnPropertySymbols},function(r,i,a){var o=a(18),s=a(2),c=a(19),l=a(3),u=a(15),d=a(48),p=a(30),f=a(52),h=a(0)("iterator"),m=!([].keys&&"next"in[].keys()),g=function(){return this};r.exports=function(y,b,_,S,k,E,T){d(_,b,S);var A,$,I,R=function(M){if(!m&&M in B)return B[M];switch(M){case"keys":case"values":return function(){return new _(this,M)}}return function(){return new _(this,M)}},Y=b+" Iterator",F=k=="values",D=!1,B=y.prototype,z=B[h]||B["@@iterator"]||k&&B[k],K=z||R(k),te=k?F?R("entries"):K:void 0,j=b=="Array"&&B.entries||z;if(j&&(I=f(j.call(new y)))!==Object.prototype&&I.next&&(p(I,Y,!0),o||typeof I[h]=="function"||l(I,h,g)),F&&z&&z.name!=="values"&&(D=!0,K=function(){return z.call(this)}),o&&!T||!m&&!D&&B[h]||l(B,h,K),u[b]=K,u[Y]=g,k)if(A={values:F?K:R("values"),keys:E?K:R("keys"),entries:te},T)for($ in A)$ in B||c(B,$,A[$]);else s(s.P+s.F*(m||D),b,A);return A}},function(r,i,a){r.exports=!a(8)&&!a(9)(function(){return Object.defineProperty(a(35)("div"),"a",{get:function(){return 7}}).a!=7})},function(r,i,a){var o=a(5),s=a(1).document,c=o(s)&&o(s.createElement);r.exports=function(l){return c?s.createElement(l):{}}},function(r,i,a){var o=a(12),s=a(49),c=a(29),l=a(27)("IE_PROTO"),u=function(){},d=function(){var p,f=a(35)("iframe"),h=c.length;for(f.style.display="none",a(51).appendChild(f),f.src="javascript:",(p=f.contentWindow.document).open(),p.write("<script>document.F=Object<\/script>"),p.close(),d=p.F;h--;)delete d.prototype[c[h]];return d()};r.exports=Object.create||function(p,f){var h;return p!==null?(u.prototype=o(p),h=new u,u.prototype=null,h[l]=p):h=d(),f===void 0?h:s(h,f)}},function(r,i,a){var o=a(6),s=a(11),c=a(38)(!1),l=a(27)("IE_PROTO");r.exports=function(u,d){var p,f=s(u),h=0,m=[];for(p in f)p!=l&&o(f,p)&&m.push(p);for(;d.length>h;)o(f,p=d[h++])&&(~c(m,p)||m.push(p));return m}},function(r,i,a){var o=a(11),s=a(26),c=a(50);r.exports=function(l){return function(u,d,p){var f,h=o(u),m=s(h.length),g=c(p,m);if(l&&d!=d){for(;m>g;)if((f=h[g++])!=f)return!0}else for(;m>g;g++)if((l||g in h)&&h[g]===d)return l||g||0;return!l&&-1}}},function(r,i,a){var o=a(31),s=a(65),c=a(15),l=a(11);r.exports=a(33)(Array,"Array",function(u,d){this._t=l(u),this._i=0,this._k=d},function(){var u=this._t,d=this._k,p=this._i++;return!u||p>=u.length?(this._t=void 0,s(1)):s(0,d=="keys"?p:d=="values"?u[p]:[p,u[p]])},"values"),c.Arguments=c.Array,o("keys"),o("values"),o("entries")},function(r,i,a){var o=a(20);r.exports=Array.isArray||function(s){return o(s)=="Array"}},function(r,i,a){var o=a(1),s=a(7),c=a(18),l=a(42),u=a(4).f;r.exports=function(d){var p=s.Symbol||(s.Symbol=c?{}:o.Symbol||{});d.charAt(0)=="_"||d in p||u(p,d,{value:l.f(d)})}},function(r,i,a){i.f=a(0)},function(r,i,a){var o=a(37),s=a(29).concat("length","prototype");i.f=Object.getOwnPropertyNames||function(c){return o(c,s)}},function(r,i,a){a.r(i),a(45),a(53),a(60),a(61),a(39),a(66),a(68),a(70),a(74),a(75),a(80);function o(h,m){for(var g=0;g<m.length;g++){var y=m[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}var s={methods:{$smoothReflow:function(h){var m=(function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this._smoothElements.push(new p(g))}).bind(this);Array.isArray(h)?h.forEach(m):m(h)},$unsmoothReflow:function(h){var m=(function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d(),y=this.$el,b=this._smoothElements.findIndex(function(_){return l(y,_.options.el)===l(y,g.el)});if(b===-1)return void console.error("VSR_ERROR: $unsmoothReflow failed due to invalid el option");this._smoothElements[b].scheduleRemoval()}).bind(this);Array.isArray(h)?h.forEach(m):m(h)}},beforeMount:function(){var h=this;this._smoothElements=[],this._endListener=function(m){var g=!0,y=!1,b=void 0;try{for(var _,S=h._smoothElements[Symbol.iterator]();!(g=(_=S.next()).done);g=!0)_.value.endListener(m)}catch(k){y=!0,b=k}finally{try{g||S.return==null||S.return()}finally{if(y)throw b}}}},mounted:function(){this.$el.addEventListener("transitionend",this._endListener,{passive:!0})},destroyed:function(){this.$el.removeEventListener("transitionend",this._endListener,{passive:!0})},beforeUpdate:function(){this.$el.addEventListener("transitionend",this._endListener,{passive:!0}),c(this);var h=!0,m=!1,g=void 0;try{for(var y,b=this._smoothElements[Symbol.iterator]();!(h=(y=b.next()).done);h=!0){var _=y.value,S=l(this.$el,_.options.el);_.setSmoothElement(S),_.setBeforeValues()}}catch(k){m=!0,g=k}finally{try{h||b.return==null||b.return()}finally{if(m)throw g}}},updated:function(){var h=this;this.$nextTick(function(){var m=!0,g=!1,y=void 0;try{for(var b,_=h._smoothElements[Symbol.iterator]();!(m=(b=_.next()).done);m=!0){var S=b.value,k=l(h.$el,S.options.el);S.setSmoothElement(k),S.doSmoothReflow()}}catch(E){g=!0,y=E}finally{try{m||_.return==null||_.return()}finally{if(g)throw y}}c(h)})}};function c(h){for(var m=h._smoothElements.length;m--;){var g=h._smoothElements[m];g.isRemoved&&(g.stopTransition(),h._smoothElements.splice(m,1))}}function l(h,m){return!h||h instanceof Node&&h.nodeType===Node.COMMENT_NODE?null:m===null?h:function(g,y){return typeof y=="string"?g.matches(y)?g:g.querySelector(y):y}(h,m)}var u={INACTIVE:"INACTIVE",ACTIVE:"ACTIVE"},d=function(){return{el:null,property:"height",transitionEvent:null,hideOverflow:!0,debug:!1}},p=function(){function h(m){(function(_,S){if(!(_ instanceof S))throw new TypeError("Cannot call a class as a function")})(this,h);var g=d();Object.assign(g,m);var y=this.parsePropertyOption(g.property);g.transition||(g.transition=y.map(function(_){return"".concat(_," .5s")}).join(","));var b={$smoothEl:null,properties:y,beforeRect:{},state:u.INACTIVE,isRemoved:!1};Object.assign(this,{options:g},b),this.endListener=this.endListener.bind(this),this.debug=this.debug.bind(this)}return function(m,g,y){g&&o(m.prototype,g)}(h,[{key:"setSmoothElement",value:function(m){this.$smoothEl=m}},{key:"transitionTo",value:function(m){this.state=m}},{key:"parsePropertyOption",value:function(m){return typeof m=="string"?[m]:Array.isArray(m)?m:[]}},{key:"setBeforeValues",value:function(){var m=this.$smoothEl;if(this.beforeRect={},m){var g=window.getComputedStyle(m)||{},y=g.transition,b=g.overflowX,_=g.overflowY;this.computedTransition=y,this.overflowX=b,this.overflowY=_,this.beforeRect=f(m),this.state===u.ACTIVE&&(this.stopTransition(),this.debug("Transition was interrupted."))}}},{key:"didValuesChange",value:function(m,g){var y=m,b=g;if(Object.keys(m).length===0)return!1;var _=!0,S=!1,k=void 0;try{for(var E,T=this.properties[Symbol.iterator]();!(_=(E=T.next()).done);_=!0){var A=E.value;if(A==="transform"&&(y.top!==b.top||y.left!==b.left)||y[A]!==b[A])return!0}}catch($){S=!0,k=$}finally{try{_||T.return==null||T.return()}finally{if(S)throw k}}return!1}},{key:"doSmoothReflow",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data update",g=this.$smoothEl;if(!g)return this.debug("Could not find registered el to perform doSmoothReflow."),void this.transitionTo(u.INACTIVE);if(this.state!==u.ACTIVE){var y=this.beforeRect,b=this.properties,_=this.options,S=this.overflowX,k=this.overflowY,E=this.debug;this.transitionTo(u.ACTIVE),E("doSmoothReflow triggered by:",typeof m=="string"?m:m.target);var T=f(g);if(!this.didValuesChange(y,T))return E("Property values did not change."),void this.transitionTo(u.INACTIVE);E("beforeRect",y),E("afterRect",T),this.saveOverflowValues(g,S,k);var A=!0,$=!1,I=void 0;try{for(var R,Y=b[Symbol.iterator]();!(A=(R=Y.next()).done);A=!0){var F=R.value;if(F==="transform"){var D=y.left-T.left,B=y.top-T.top;g.style.transform="translate(".concat(D,"px, ").concat(B,"px)")}else g.style[F]=y[F]+"px"}}catch(G){$=!0,I=G}finally{try{A||Y.return==null||Y.return()}finally{if($)throw I}}g.offsetHeight,g.style.transition=[this.computedTransition,_.transition].filter(function(G){return G}).join(",");var z=!0,K=!1,te=void 0;try{for(var j,M=b[Symbol.iterator]();!(z=(j=M.next()).done);z=!0){var q=j.value;q==="transform"?g.style.transform="":g.style[q]=T[q]+"px"}}catch(G){K=!0,te=G}finally{try{z||M.return==null||M.return()}finally{if(K)throw te}}}}},{key:"endListener",value:function(m){var g=this.$smoothEl,y=this.properties;g===m.target?y.includes(m.propertyName)&&(this.stopTransition(),this.hasRegisteredEventEmitter()&&this.setBeforeValues()):this.isRegisteredEventEmitter(g,m)&&this.doSmoothReflow(m)}},{key:"hasRegisteredEventEmitter",value:function(){var m=this.options.transitionEvent;return m!==null&&Object.keys(m).length>0}},{key:"isRegisteredEventEmitter",value:function(m,g){if(!this.hasRegisteredEventEmitter())return!1;var y=g.target,b=this.options.transitionEvent,_=b.selector,S=b.propertyName;if(S!=null&&S!==g.propertyName||_!=null&&!y.matches(_))return!1;if(this.properties.indexOf("transform")===-1){var k=!1,E=g.composedPath?g.composedPath():[],T=!0,A=!1,$=void 0;try{for(var I,R=E[Symbol.iterator]();!(T=(I=R.next()).done);T=!0)if(m===I.value){k=!0;break}}catch(Y){A=!0,$=Y}finally{try{T||R.return==null||R.return()}finally{if(A)throw $}}if(!k)return!1}return!0}},{key:"saveOverflowValues",value:function(m,g,y){this.options.hideOverflow&&(this.overflowX=g,this.overflowY=y,m.style.overflowX="hidden",m.style.overflowY="hidden")}},{key:"restoreOverflowValues",value:function(m){var g=this.options,y=this.overflowX,b=this.overflowY;g.hideOverflow&&(m.style.overflowX=y,m.style.overflowY=b)}},{key:"stopTransition",value:function(){var m=this.$smoothEl,g=this.properties,y=!0,b=!1,_=void 0;try{for(var S,k=g[Symbol.iterator]();!(y=(S=k.next()).done);y=!0){var E=S.value;m.style[E]=null}}catch(T){b=!0,_=T}finally{try{y||k.return==null||k.return()}finally{if(b)throw _}}this.restoreOverflowValues(m),m.style.transition=null,this.transitionTo(u.INACTIVE)}},{key:"scheduleRemoval",value:function(){this.isRemoved=!0}},{key:"debug",value:function(){if(this.options.debug){var m=["VSR_DEBUG:"].concat(Array.from(arguments));console.log.apply(null,m)}}}]),h}(),f=function(h){h.style.overflow="hidden";var m=h.getBoundingClientRect(),g=m.top,y=m.right,b=m.bottom,_=m.left,S=m.width,k=m.height,E=m.x,T=m.y;return h.style.overflow=null,{top:g,right:y,bottom:b,left:_,width:S,height:k,x:E,y:T}};typeof Element<"u"&&Element.prototype&&!Element.prototype.matches&&(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(h){for(var m=(this.document||this.ownerDocument).querySelectorAll(h),g=m.length;--g>=0&&m.item(g)!==this;);return g>-1}),i.default=s},function(r,i,a){var o=a(46)(!0);a(33)(String,"String",function(s){this._t=String(s),this._i=0},function(){var s,c=this._t,l=this._i;return l>=c.length?{value:void 0,done:!0}:(s=o(c,l),this._i+=s.length,{value:s,done:!1})})},function(r,i,a){var o=a(22),s=a(17);r.exports=function(c){return function(l,u){var d,p,f=String(s(l)),h=o(u),m=f.length;return h<0||h>=m?c?"":void 0:(d=f.charCodeAt(h))<55296||d>56319||h+1===m||(p=f.charCodeAt(h+1))<56320||p>57343?c?f.charAt(h):d:c?f.slice(h,h+2):p-56320+(d-55296<<10)+65536}}},function(r,i){r.exports=function(a){if(typeof a!="function")throw TypeError(a+" is not a function!");return a}},function(r,i,a){var o=a(36),s=a(13),c=a(30),l={};a(3)(l,a(0)("iterator"),function(){return this}),r.exports=function(u,d,p){u.prototype=o(l,{next:s(1,p)}),c(u,d+" Iterator")}},function(r,i,a){var o=a(4),s=a(12),c=a(10);r.exports=a(8)?Object.defineProperties:function(l,u){s(l);for(var d,p=c(u),f=p.length,h=0;f>h;)o.f(l,d=p[h++],u[d]);return l}},function(r,i,a){var o=a(22),s=Math.max,c=Math.min;r.exports=function(l,u){return(l=o(l))<0?s(l+u,0):c(l,u)}},function(r,i,a){var o=a(1).document;r.exports=o&&o.documentElement},function(r,i,a){var o=a(6),s=a(16),c=a(27)("IE_PROTO"),l=Object.prototype;r.exports=Object.getPrototypeOf||function(u){return u=s(u),o(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?l:null}},function(r,i,a){var o=a(24),s=a(2),c=a(16),l=a(54),u=a(55),d=a(26),p=a(56),f=a(57);s(s.S+s.F*!a(59)(function(h){Array.from(h)}),"Array",{from:function(h){var m,g,y,b,_=c(h),S=typeof this=="function"?this:Array,k=arguments.length,E=k>1?arguments[1]:void 0,T=E!==void 0,A=0,$=f(_);if(T&&(E=o(E,k>2?arguments[2]:void 0,2)),$==null||S==Array&&u($))for(g=new S(m=d(_.length));m>A;A++)p(g,A,T?E(_[A],A):_[A]);else for(b=$.call(_),g=new S;!(y=b.next()).done;A++)p(g,A,T?l(b,E,[y.value,A],!0):y.value);return g.length=A,g}})},function(r,i,a){var o=a(12);r.exports=function(s,c,l,u){try{return u?c(o(l)[0],l[1]):c(l)}catch(p){var d=s.return;throw d!==void 0&&o(d.call(s)),p}}},function(r,i,a){var o=a(15),s=a(0)("iterator"),c=Array.prototype;r.exports=function(l){return l!==void 0&&(o.Array===l||c[s]===l)}},function(r,i,a){var o=a(4),s=a(13);r.exports=function(c,l,u){l in c?o.f(c,l,s(0,u)):c[l]=u}},function(r,i,a){var o=a(58),s=a(0)("iterator"),c=a(15);r.exports=a(7).getIteratorMethod=function(l){if(l!=null)return l[s]||l["@@iterator"]||c[o(l)]}},function(r,i,a){var o=a(20),s=a(0)("toStringTag"),c=o(function(){return arguments}())=="Arguments";r.exports=function(l){var u,d,p;return l===void 0?"Undefined":l===null?"Null":typeof(d=function(f,h){try{return f[h]}catch{}}(u=Object(l),s))=="string"?d:c?o(u):(p=o(u))=="Object"&&typeof u.callee=="function"?"Arguments":p}},function(r,i,a){var o=a(0)("iterator"),s=!1;try{var c=[7][o]();c.return=function(){s=!0},Array.from(c,function(){throw 2})}catch{}r.exports=function(l,u){if(!u&&!s)return!1;var d=!1;try{var p=[7],f=p[o]();f.next=function(){return{done:d=!0}},p[o]=function(){return f},l(p)}catch{}return d}},function(r,i,a){var o=a(2),s=a(38)(!0);o(o.P,"Array",{includes:function(c){return s(this,c,arguments.length>1?arguments[1]:void 0)}}),a(31)("includes")},function(r,i,a){var o=a(2),s=a(62);o(o.P+o.F*a(64)("includes"),"String",{includes:function(c){return!!~s(this,c,"includes").indexOf(c,arguments.length>1?arguments[1]:void 0)}})},function(r,i,a){var o=a(63),s=a(17);r.exports=function(c,l,u){if(o(l))throw TypeError("String#"+u+" doesn't accept regex!");return String(s(c))}},function(r,i,a){var o=a(5),s=a(20),c=a(0)("match");r.exports=function(l){var u;return o(l)&&((u=l[c])!==void 0?!!u:s(l)=="RegExp")}},function(r,i,a){var o=a(0)("match");r.exports=function(s){var c=/./;try{"/./"[s](c)}catch{try{return c[o]=!1,!"/./"[s](c)}catch{}}return!0}},function(r,i){r.exports=function(a,o){return{value:o,done:!!a}}},function(r,i,a){var o=a(16),s=a(10);a(67)("keys",function(){return function(c){return s(o(c))}})},function(r,i,a){var o=a(2),s=a(7),c=a(9);r.exports=function(l,u){var d=(s.Object||{})[l]||Object[l],p={};p[l]=u(d),o(o.S+o.F*c(function(){d(1)}),"Object",p)}},function(r,i,a){var o=a(2);o(o.S+o.F,"Object",{assign:a(69)})},function(r,i,a){var o=a(10),s=a(32),c=a(21),l=a(16),u=a(25),d=Object.assign;r.exports=!d||a(9)(function(){var p={},f={},h=Symbol(),m="abcdefghijklmnopqrst";return p[h]=7,m.split("").forEach(function(g){f[g]=g}),d({},p)[h]!=7||Object.keys(d({},f)).join("")!=m})?function(p,f){for(var h=l(p),m=arguments.length,g=1,y=s.f,b=c.f;m>g;)for(var _,S=u(arguments[g++]),k=y?o(S).concat(y(S)):o(S),E=k.length,T=0;E>T;)b.call(S,_=k[T++])&&(h[_]=S[_]);return h}:d},function(r,i,a){var o=a(2),s=a(71)(6),c="findIndex",l=!0;c in[]&&Array(1)[c](function(){l=!1}),o(o.P+o.F*l,"Array",{findIndex:function(u){return s(this,u,arguments.length>1?arguments[1]:void 0)}}),a(31)(c)},function(r,i,a){var o=a(24),s=a(25),c=a(16),l=a(26),u=a(72);r.exports=function(d,p){var f=d==1,h=d==2,m=d==3,g=d==4,y=d==6,b=d==5||y,_=p||u;return function(S,k,E){for(var T,A,$=c(S),I=s($),R=o(k,E,3),Y=l(I.length),F=0,D=f?_(S,Y):h?_(S,0):void 0;Y>F;F++)if((b||F in I)&&(A=R(T=I[F],F,$),d)){if(f)D[F]=A;else if(A)switch(d){case 3:return!0;case 5:return T;case 6:return F;case 2:D.push(T)}else if(g)return!1}return y?-1:m||g?g:D}}},function(r,i,a){var o=a(73);r.exports=function(s,c){return new(o(s))(c)}},function(r,i,a){var o=a(5),s=a(40),c=a(0)("species");r.exports=function(l){var u;return s(l)&&(typeof(u=l.constructor)!="function"||u!==Array&&!s(u.prototype)||(u=void 0),o(u)&&(u=u[c])===null&&(u=void 0)),u===void 0?Array:u}},function(r,i,a){a(41)("asyncIterator")},function(r,i,a){var o=a(1),s=a(6),c=a(8),l=a(2),u=a(19),d=a(76).KEY,p=a(9),f=a(28),h=a(30),m=a(14),g=a(0),y=a(42),b=a(41),_=a(77),S=a(40),k=a(12),E=a(5),T=a(11),A=a(23),$=a(13),I=a(36),R=a(78),Y=a(79),F=a(4),D=a(10),B=Y.f,z=F.f,K=R.f,te=o.Symbol,j=o.JSON,M=j&&j.stringify,q=g("_hidden"),G=g("toPrimitive"),ee={}.propertyIsEnumerable,ae=f("symbol-registry"),ve=f("symbols"),ye=f("op-symbols"),me=Object.prototype,de=typeof te=="function",W=o.QObject,J=!W||!W.prototype||!W.prototype.findChild,Q=c&&p(function(){return I(z({},"a",{get:function(){return z(this,"a",{value:7}).a}})).a!=7})?function(N,Z,pe){var _e=B(me,Z);_e&&delete me[Z],z(N,Z,pe),_e&&N!==me&&z(me,Z,_e)}:z,xe=function(N){var Z=ve[N]=I(te.prototype);return Z._k=N,Z},we=de&&typeof te.iterator=="symbol"?function(N){return typeof N=="symbol"}:function(N){return N instanceof te},X=function(N,Z,pe){return N===me&&X(ye,Z,pe),k(N),Z=A(Z,!0),k(pe),s(ve,Z)?(pe.enumerable?(s(N,q)&&N[q][Z]&&(N[q][Z]=!1),pe=I(pe,{enumerable:$(0,!1)})):(s(N,q)||z(N,q,$(1,{})),N[q][Z]=!0),Q(N,Z,pe)):z(N,Z,pe)},ue=function(N,Z){k(N);for(var pe,_e=_(Z=T(Z)),Te=0,$e=_e.length;$e>Te;)X(N,pe=_e[Te++],Z[pe]);return N},ie=function(N){var Z=ee.call(this,N=A(N,!0));return!(this===me&&s(ve,N)&&!s(ye,N))&&(!(Z||!s(this,N)||!s(ve,N)||s(this,q)&&this[q][N])||Z)},ke=function(N,Z){if(N=T(N),Z=A(Z,!0),N!==me||!s(ve,Z)||s(ye,Z)){var pe=B(N,Z);return!pe||!s(ve,Z)||s(N,q)&&N[q][Z]||(pe.enumerable=!0),pe}},U=function(N){for(var Z,pe=K(T(N)),_e=[],Te=0;pe.length>Te;)s(ve,Z=pe[Te++])||Z==q||Z==d||_e.push(Z);return _e},oe=function(N){for(var Z,pe=N===me,_e=K(pe?ye:T(N)),Te=[],$e=0;_e.length>$e;)!s(ve,Z=_e[$e++])||pe&&!s(me,Z)||Te.push(ve[Z]);return Te};de||(u((te=function(){if(this instanceof te)throw TypeError("Symbol is not a constructor!");var N=m(arguments.length>0?arguments[0]:void 0),Z=function(pe){this===me&&Z.call(ye,pe),s(this,q)&&s(this[q],N)&&(this[q][N]=!1),Q(this,N,$(1,pe))};return c&&J&&Q(me,N,{configurable:!0,set:Z}),xe(N)}).prototype,"toString",function(){return this._k}),Y.f=ke,F.f=X,a(43).f=R.f=U,a(21).f=ie,a(32).f=oe,c&&!a(18)&&u(me,"propertyIsEnumerable",ie,!0),y.f=function(N){return xe(g(N))}),l(l.G+l.W+l.F*!de,{Symbol:te});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),V=0;re.length>V;)g(re[V++]);for(var P=D(g.store),C=0;P.length>C;)b(P[C++]);l(l.S+l.F*!de,"Symbol",{for:function(N){return s(ae,N+="")?ae[N]:ae[N]=te(N)},keyFor:function(N){if(!we(N))throw TypeError(N+" is not a symbol!");for(var Z in ae)if(ae[Z]===N)return Z},useSetter:function(){J=!0},useSimple:function(){J=!1}}),l(l.S+l.F*!de,"Object",{create:function(N,Z){return Z===void 0?I(N):ue(I(N),Z)},defineProperty:X,defineProperties:ue,getOwnPropertyDescriptor:ke,getOwnPropertyNames:U,getOwnPropertySymbols:oe}),j&&l(l.S+l.F*(!de||p(function(){var N=te();return M([N])!="[null]"||M({a:N})!="{}"||M(Object(N))!="{}"})),"JSON",{stringify:function(N){for(var Z,pe,_e=[N],Te=1;arguments.length>Te;)_e.push(arguments[Te++]);if(pe=Z=_e[1],(E(Z)||N!==void 0)&&!we(N))return S(Z)||(Z=function($e,ze){if(typeof pe=="function"&&(ze=pe.call(this,$e,ze)),!we(ze))return ze}),_e[1]=Z,M.apply(j,_e)}}),te.prototype[G]||a(3)(te.prototype,G,te.prototype.valueOf),h(te,"Symbol"),h(Math,"Math",!0),h(o.JSON,"JSON",!0)},function(r,i,a){var o=a(14)("meta"),s=a(5),c=a(6),l=a(4).f,u=0,d=Object.isExtensible||function(){return!0},p=!a(9)(function(){return d(Object.preventExtensions({}))}),f=function(m){l(m,o,{value:{i:"O"+ ++u,w:{}}})},h=r.exports={KEY:o,NEED:!1,fastKey:function(m,g){if(!s(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!c(m,o)){if(!d(m))return"F";if(!g)return"E";f(m)}return m[o].i},getWeak:function(m,g){if(!c(m,o)){if(!d(m))return!0;if(!g)return!1;f(m)}return m[o].w},onFreeze:function(m){return p&&h.NEED&&d(m)&&!c(m,o)&&f(m),m}}},function(r,i,a){var o=a(10),s=a(32),c=a(21);r.exports=function(l){var u=o(l),d=s.f;if(d)for(var p,f=d(l),h=c.f,m=0;f.length>m;)h.call(l,p=f[m++])&&u.push(p);return u}},function(r,i,a){var o=a(11),s=a(43).f,c={}.toString,l=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];r.exports.f=function(u){return l&&c.call(u)=="[object Window]"?function(d){try{return s(d)}catch{return l.slice()}}(u):s(o(u))}},function(r,i,a){var o=a(21),s=a(13),c=a(11),l=a(23),u=a(6),d=a(34),p=Object.getOwnPropertyDescriptor;i.f=a(8)?p:function(f,h){if(f=c(f),h=l(h,!0),d)try{return p(f,h)}catch{}if(u(f,h))return s(!o.f.call(f,h),f[h])}},function(r,i,a){for(var o=a(39),s=a(10),c=a(19),l=a(1),u=a(3),d=a(15),p=a(0),f=p("iterator"),h=p("toStringTag"),m=d.Array,g={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=s(g),b=0;b<y.length;b++){var _,S=y[b],k=g[S],E=l[S],T=E&&E.prototype;if(T&&(T[f]||u(T,f,m),T[h]||u(T,h,S),d[S]=m,k))for(_ in o)T[_]||c(T,_,o[_],!0)}}]).default})})(mM);var H1e=mM.exports;const W1e=un(H1e);function he(n,t,r,i,a,o,s,c){var l=typeof n=="function"?n.options:n;return t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),i&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),{exports:n,options:l}}const G1e={property:["height","width"],transition:"height 150ms cubic-bezier(0.175, 0.885, 0.32, 1), width .25s ease-out, transform 150ms cubic-bezier(0.175, 0.885, 0.32, 1)"},q1e={name:"Animation",mixins:[W1e],props:{tag:{type:String,default:"div"},options:{type:Object,default:null}},mounted(){this.$smoothReflow({...G1e,...this.options})}};var Y1e=function(){var t=this,r=t._self._c;return r(t.tag,{tag:"component"},[t._t("default")],2)},K1e=[],Z1e=he(q1e,Y1e,K1e,!1,null,null);const xv=Z1e.exports,gM={empty:"<path></path>","chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',email:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',warning:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',edit:'<path d="M20 14.66V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.34"></path><polygon points="18 2 22 6 12 16 8 16 8 12 18 2"></polygon>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',"user-add":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',zap:'<polygon points="6 2 3 14 10 14 9 23 21 9 12 9 15 2"></polygon>',handle:'<circle cx="8" cy="12" r="1"></circle><circle cx="8" cy="5" r="1"></circle><circle cx="8" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle>',cog:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',template:'<path d="M13.1288235 8.96823529L7.64823529 18.1176471c-.22993777.3981997-.23131063.8885068-.00360637 1.2879879.22770427.3994812.65028474.6481349 1.11007696.6531885H19.7158824c.4597922-.0050536.8823726-.2537073 1.1100769-.6531885.2277043-.3994811.2263314-.8897882-.0036064-1.2879879l-5.4805882-9.14941181c-.2346013-.38675914-.6541207-.622952-1.1064706-.622952-.4523499 0-.8718693.23619286-1.1064706.622952zM9.52035111 1.52159478C8.8745304 1.30537258 8.18329779 1.188235 7.46470624 1.188235 3.89109903 1.188235.994118 4.08521603.994118 7.65882324c0 3.26867116 2.42367552 5.97126256 5.57193953 6.40868706"/><path d="M8.6634487 11.52342624L6.89650942 6.08534626c-.22086107-.67974048.1511342-1.40982229.83087467-1.63068336l8.61545314-2.79933041c.67974054-.2208611 1.40982235.15113417 1.63068342.83087465l2.79933043 8.61545318c.20002516.61561413-.086223 1.2725192-.6469517 1.5550493"/>',"template-color":'<g fill="none" stroke="none" fill-rule="evenodd"><path fill="#3CD740" d="M7.20527962 6.31188761C6.64248136 6.10988982 6.03696274 6 5.40621512 6 2.42045261 6 0 8.46243776 0 11.5000057 0 14.5375966 2.42045261 17 5.40621512 17c1.78482731 0 3.38970782-.9439359 4.37423872-2.3006513l-4.03718867-.690644 1.46201445-7.69681709z"/><path fill="#299DFF" d="M8.79874995 3L7 13.2257595l4.8157688.8511636L16 7l2.0689267 3.6486439L19 4.80307079z"/><path fill="#E60DFF" d="M10 19.2989721L16 9l6 10.2989721z"/></g>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="20" y1="20" x2="16.65" y2="16.65"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',paper:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',"paper-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V8l-6-6z"/><path d="M14 3v5h5M16 13H8M16 17H8M10 9H8"/>',"paper-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',user:'<path d="M5.52 19c.64-2.2 1.84-3 3.22-3h6.52c1.38 0 2.58.8 3.22 3"/><circle cx="12" cy="10" r="3"/><circle cx="12" cy="12" r="10"/>',person:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',"arrow-down":'<path d="M12 5v13M5 12l7 7 7-7"/>',"arrow-up":'<path d="M12 19V6M5 12l7-7 7 7"/>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',"chevron-left":'<polyline points="14 18 8 12 14 6"></polyline>',"chevron-right":'<path d="M9 18l6-6-6-6"/>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-up-down":'<polyline points="17 8 12 3 7 8"></polyline><polyline points="17 15 12 20 7 15"></polyline>',"chevron-up":'<path d="M18 15l-6-6-6 6"/>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',dollar:'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',check:'<polyline points="20 6 9 17 4 12"></polyline>',send:'<line x1="22" y1="11" x2="8" y2="11"></line><polygon points="22 11 4 20 8 11 4 2 22 11"></polygon>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',alert:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"circle-status":'<circle cx="12" cy="12" r="11" fill="currentColor" opacity="0.5"></circle><circle cx="12" cy="12" r="4" fill="currentColor"></circle>',circle:'<circle cx="12" cy="12" r="10"></circle>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"new-window":'<g fill="none" fill-rule="evenodd"><path d="M18 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8c0-1.1.9-2 2-2h5M15 3h6v6M10 14L20.2 3.8"/></g>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',print:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',sort:'<line x1="6" y1="16" x2="8" y2="16"></line><line x1="6" y1="10" x2="14" y2="10"></line><line x1="6" y1="4" x2="20" y2="4"></line>',"square-filled-check":'<path fill="#currentColor" stroke="none" fill-rule="nonzero" d="M7 3h10c2.209139 0 4 1.790861 4 4v10c0 2.209139-1.790861 4-4 4H7c-2.209139 0-4-1.790861-4-4V7c0-2.209139 1.790861-4 4-4zm1.08963645 8.479072c-.2954885-.1600713-.65162073-.1610177-.94795577-.0025191l-.43065247.2303401c-.07620551.0407595-.14427685.0951688-.2008263.1605199-.25504929.2947468-.22286811.7404446.07187866.9954938l3.84044413 3.3232002a1.0000081 1.0000081 0 00.0946803.0725235c.4576881.3090956 1.079289.1886376 1.3883846-.2690505l5.1003142-7.55220409c.2865705-.42433447.2063135-.99658014-.18593-1.3257115l-.0020995-.00176176c-.3854696-.32344738-.9583065-.28155332-1.292616.09453464l-4.9815245 5.60406241-2.45409735-1.3294276z"/>',"colored-dots":'<circle cx="6" cy="6" r="4" stroke="none" fill="red"></circle><circle cx="18" cy="6" r="4" stroke="none" fill="#ff7a14"></circle><circle cx="6" cy="18" r="4" stroke="none" fill="#2bb8d4"></circle><circle cx="18" cy="18" r="4" stroke="none" fill="#3352ff"></circle>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path><',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',crown:'<path d="M2 4L5 16H19L22 4L16 11L12 4L8 11L2 4ZM5 20H19" />',lamp:'<path d="M9 17v3c0 1.1.9 2 2 2h2a2 2 0 0 0 2-2v-3M15 16.59c0-.77.46-1.45 1.09-1.9a7 7 0 1 0-8.18 0A2.41 2.41 0 0 1 9 16.58V17h6v-.41zM12 17v-5m-2 0h4" />',"paper-invoice":'<path d="M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"/><path d="M14 2v6h6M10 8H8M10 5H8m0 7h8v3.46H8zm8 7h-2"/>',drop:'<path d="M12,21 C15.3137085,21 18,18.3904147 18,15 C18,11.6666667 16,8 12,4 C8,8 6,11.6666667 6,15 C6,18.3904147 8.6862915,21 12,21 Z"></path>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',logout:'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',linkedin:'<path fill="currentColor" stroke="none" d="M22.23 0H1.77C.8 0 0 .77 0 1.72v20.56C0 23.23.8 24 1.77 24h20.46c.98 0 1.77-.77 1.77-1.72V1.72C24 .77 23.2 0 22.23 0zM7.27 20.1H3.65V9.24h3.62V20.1zM5.47 7.76h-.03c-1.22 0-2-.83-2-1.87 0-1.06.8-1.87 2.05-1.87 1.24 0 2 .8 2.02 1.87 0 1.04-.78 1.87-2.05 1.87zM20.34 20.1h-3.63v-5.8c0-1.45-.52-2.45-1.83-2.45-1 0-1.6.67-1.87 1.32-.1.23-.11.55-.11.88v6.05H9.28s.05-9.82 0-10.84h3.63v1.54a3.6 3.6 0 0 1 3.26-1.8c2.39 0 4.18 1.56 4.18 4.89v6.21z"></path>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"rotate-left":'<path d="M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38"/>',image:'<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><path d="M20.4 14.5L16 10 4 20"/>',textType:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',desktop:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2" /><line x1="12" y1="18" x2="12.01" y2="18" />',mobile:'<rect x="6" y="4" width="12" height="18" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',help:'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',reset:'<path d="M2.5 2v6h6M2.66 15.57a10 10 0 1 0 .57-8.38"/>',company:'<path d="M4 19L4 5H14.5V11.5M14.5 19V11.5M14.5 11.5H20V19" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="7.5" x2="7.75" y2="9.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="7.5" x2="10.75" y2="9.5" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="11.5" x2="7.75" y2="13.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="11.5" x2="10.75" y2="13.5" stroke="currentColor" stroke-linecap="butt" /><line x1="7.75" y1="15.5" x2="7.75" y2="17.5" stroke="currentColor" stroke-linecap="butt" /><line x1="10.75" y1="15.5" x2="10.75" y2="17.5" stroke="currentColor" stroke-linecap="butt" />',pipedrive:'<path d="M10.57 5.38c-.06-.47-.37-1.04-1.6-1.04H6v2.58h1.21c.2 0 .26.1.26.28v12.91h3.3v-5.26c.84.7 1.9 1.1 3 1.08 3.1 0 5.1-2.46 5.1-5.97 0-3.57-1.94-5.96-5-5.96a4.3 4.3 0 0 0-3.3 1.38Zm2.7 1.42c1.5 0 2.5 1.29 2.5 3.2 0 2.2-1.27 3.17-2.54 3.17-1.7 0-2.48-1.63-2.48-3.14 0-2.39 1.3-3.23 2.52-3.23Z" fill="currentColor" stroke="none" />',hubspot:'<path d="M15.82 8.26V5.99a1.73 1.73 0 0 0 1-1.57v-.05c0-.96-.78-1.74-1.73-1.74h-.05c-.96 0-1.73.78-1.73 1.74v.05a1.75 1.75 0 0 0 1 1.57v2.27c-.86.13-1.66.48-2.33 1.03L5.82 4.46a1.97 1.97 0 0 0-1.13-2.3 1.93 1.93 0 0 0-2.65 1.42 1.98 1.98 0 0 0 .82 2.01 1.94 1.94 0 0 0 2.04.07l6.06 4.76a4.98 4.98 0 0 0 .08 5.57L9.2 17.85a1.6 1.6 0 0 0-2.06 1.54c0 .89.71 1.61 1.6 1.61a1.6 1.6 0 0 0 1.52-2.08l1.82-1.83a4.88 4.88 0 0 0 5.61.27 4.97 4.97 0 0 0-1.87-9.1Zm-.76 7.44a2.5 2.5 0 0 1-2.39-1.56 2.56 2.56 0 0 1 1.4-3.35c.32-.13.66-.19 1-.18a2.53 2.53 0 0 1 2.43 2.54c0 1.37-1.08 2.5-2.43 2.55" fill="currentColor" stroke="none" />',salesforce:'<path d="M10.15 6.64a3.93 3.93 0 0 1 6.19.8c.58-.26 1.23-.4 1.92-.4A4.7 4.7 0 0 1 23 11.69a4.7 4.7 0 0 1-5.67 4.57 3.49 3.49 0 0 1-4.55 1.4c-.6 1.37-2 2.34-3.64 2.34a3.96 3.96 0 0 1-3.71-2.52A3.64 3.64 0 0 1 1 13.94c0-1.34.74-2.51 1.84-3.14a3.99 3.99 0 0 1-.36-1.65A4.2 4.2 0 0 1 6.75 5a4.3 4.3 0 0 1 3.4 1.64Z" fill="currentColor" stroke="none" />',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',sidebar:'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="8" y1="4" x2="8" y2="20"></line>',table:'<path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4H6.25ZM4.5 10v4h4v-4h-4Zm5.5 0v4h4v-4h-4Zm5.5 0v4h4v-4h-4ZM14 15.5h-4v4h4v-4Zm1.5 4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4v4Zm0-11h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-1.5-4h-4v4h4v-4Zm-9.5 11v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4h-4Z" fill="currentColor" stroke="none"/>',tableMergeCells:'<path d="M6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25ZM4.5 6.25c0-.966.784-1.75 1.75-1.75H11v3H4.5V6.25Zm8 10.25h7v1.25a1.75 1.75 0 0 1-1.75 1.75H12.5v-3Zm7-9h-7v-3h5.25c.966 0 1.75.784 1.75 1.75V7.5Zm-8.5 9v3H6.25a1.75 1.75 0 0 1-1.75-1.75V16.5H11ZM4.5 9h15v6h-15V9Z" fill="currentColor" stroke="none"/>',tableSplitCells:'<path d="M12.5 10H11v4h1.5v-4Z" fill="currentColor" stroke="none"/><path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V7.5H11v-3H6.25Zm13.25 12h-7v3h5.25a1.75 1.75 0 0 0 1.75-1.75V16.5Zm0-10.25a1.75 1.75 0 0 0-1.75-1.75H12.5v3h7V6.25ZM4.5 16.5v1.25c0 .966.784 1.75 1.75 1.75H11v-3H4.5Zm0-1.5h15V9h-15v6Z" fill="currentColor" stroke="none"/>',tableDeleteColumn:'<path d="M22 3.75a.75.75 0 0 0-.75-.75h-1A3.25 3.25 0 0 0 17 6.25v11.5A3.25 3.25 0 0 0 20.25 21h1a.75.75 0 0 0 0-1.5h-1a1.75 1.75 0 0 1-1.75-1.75V15.5h2.75a.75.75 0 0 0 0-1.5H18.5v-4h2.75a.75.75 0 0 0 0-1.5H18.5V6.25c0-.966.784-1.75 1.75-1.75h1a.75.75 0 0 0 .75-.75ZM2 3.75A.75.75 0 0 1 2.75 3h1A3.25 3.25 0 0 1 7 6.25v11.5A3.25 3.25 0 0 1 3.75 21h-1a.75.75 0 0 1 0-1.5h1a1.75 1.75 0 0 0 1.75-1.75V15.5H2.75a.75.75 0 0 1 0-1.5H5.5v-4H2.75a.75.75 0 0 1 0-1.5H5.5V6.25A1.75 1.75 0 0 0 3.75 4.5h-1A.75.75 0 0 1 2 3.75ZM10.94 12l-1.47 1.47a.75.75 0 1 0 1.06 1.06L12 13.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L13.06 12l1.47-1.47a.75.75 0 1 0-1.06-1.06L12 10.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L10.94 12Z" fill="currentColor" stroke="none"/><path d="M11.25 8.727c.026.023.051.047.076.072l.674.674.674-.674c.025-.025.05-.049.076-.072V2.75a.75.75 0 0 0-1.5 0v5.977ZM11.25 15.523v5.727a.75.75 0 0 0 1.5 0v-5.727a1.826 1.826 0 0 1-.076-.072L12 14.777l-.674.674-.076.072Z" fill="currentColor" stroke="none"/>',tableDeleteRow:'<path d="M3.75 2a.75.75 0 0 0-.75.75v1A3.25 3.25 0 0 0 6.25 7h11.5A3.25 3.25 0 0 0 21 3.75v-1a.75.75 0 0 0-1.5 0v1a1.75 1.75 0 0 1-1.75 1.75H15.5V2.75a.75.75 0 0 0-1.5 0V5.5h-4V2.75a.75.75 0 0 0-1.5 0V5.5H6.25A1.75 1.75 0 0 1 4.5 3.75v-1A.75.75 0 0 0 3.75 2ZM3.75 22a.75.75 0 0 1-.75-.75v-1A3.25 3.25 0 0 1 6.25 17h11.5A3.25 3.25 0 0 1 21 20.25v1a.75.75 0 0 1-1.5 0v-1a1.75 1.75 0 0 0-1.75-1.75H15.5v2.75a.75.75 0 0 1-1.5 0V18.5h-4v2.75a.75.75 0 0 1-1.5 0V18.5H6.25a1.75 1.75 0 0 0-1.75 1.75v1a.75.75 0 0 1-.75.75ZM12 13.06l1.47 1.47a.75.75 0 1 0 1.06-1.06L13.06 12l1.47-1.47a.75.75 0 1 0-1.06-1.06L12 10.94l-1.47-1.47a.75.75 0 1 0-1.06 1.06L10.94 12l-1.47 1.47a.75.75 0 1 0 1.06 1.06L12 13.06Z" fill="currentColor" stroke="none"/><path d="M8.727 12.75c.023-.026.047-.051.072-.076L9.473 12l-.674-.674a1.845 1.845 0 0 1-.072-.076H2.75a.75.75 0 0 0 0 1.5h5.977ZM15.523 12.75h5.727a.75.75 0 0 0 0-1.5h-5.727a1.826 1.826 0 0 1-.072.076l-.674.674.674.674.072.076Z" fill="currentColor" stroke="none"/>',tableInsertColumn:'<path d="M4.5 3.75v16.5a.75.75 0 0 1-1.5 0V3.75a.75.75 0 0 1 1.5 0ZM14.25 3a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 14.25 21h-4.5a2.25 2.25 0 0 1-2.25-2.25V5.25A2.25 2.25 0 0 1 9.75 3h4.5ZM15 5.25a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0-.75.75V8.5h6V5.25ZM9 14h6v-4H9v4Zm0 1.5v3.25c0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75V15.5H9ZM21 20.25V3.75a.75.75 0 0 0-1.5 0v16.5a.75.75 0 0 0 1.5 0Z" fill="currentColor" stroke="none"/>',tableInsertRowBefore:'<path d="M20.25 4.5a.75.75 0 0 0 0-1.5H3.75a.75.75 0 0 0 0 1.5h16.5ZM20.25 8.5a.75.75 0 0 1 .75.75v8.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75v-8.5a.75.75 0 0 1 .75-.75h16.5ZM14 10h-4v4h4v-4Zm-5.5 0h-4v4h4v-4Zm0 5.5h-4v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4Zm5.5 0h-4v4h4v-4Zm1.5 4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4v4Zm4-9.5h-4v4h4v-4Z" fill="currentColor" stroke="none"/>',tableInsertRowAfter:'<path d="M3.75 15.5a.75.75 0 0 1-.75-.75v-8.5A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v8.5a.75.75 0 0 1-.75.75H3.75ZM10 14h4v-4h-4v4Zm0-5.5h4v-4h-4v4Zm5.5 5.5h4v-4h-4v4Zm0-5.5h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-7-4H6.25A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4Zm-4 9.5h4v-4h-4v4ZM3.75 19.5a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75Z" fill="currentColor" stroke="none"/>',tableInsertColumnBefore:'<path d="M4.5 3.75a.75.75 0 0 0-1.5 0v16.5a.75.75 0 0 0 1.5 0V3.75ZM8.5 3.75A.75.75 0 0 1 9.25 3h8.5A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21h-8.5a.75.75 0 0 1-.75-.75V3.75ZM10 10v4h4v-4h-4Zm0 5.5v4h4v-4h-4Zm5.5 0v4h2.25a1.75 1.75 0 0 0 1.75-1.75V15.5h-4Zm0-5.5v4h4v-4h-4Zm4-1.5V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4h4Zm-9.5-4v4h4v-4h-4Z" fill="currentColor" stroke="none"/>',tableInsertColumnAfter:'<path d="M15.5 3.75a.75.75 0 0 0-.75-.75h-8.5A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h8.5a.75.75 0 0 0 .75-.75V3.75ZM14 10v4h-4v-4h4Zm-9.5 4v-4h4v4h-4ZM14 8.5h-4v-4h4v4Zm-5.5 0h-4V6.25c0-.966.784-1.75 1.75-1.75H8.5v4Zm0 11H6.25a1.75 1.75 0 0 1-1.75-1.75V15.5h4v4Zm1.5-4h4v4h-4v-4ZM19.5 3.75a.75.75 0 0 1 1.5 0v16.5a.75.75 0 0 1-1.5 0V3.75Z" fill="currentColor" stroke="none"/>',tableDelete:'<path d="M3 6.25A3.25 3.25 0 0 1 6.25 3h11.5A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V10h-4v1.313a6.471 6.471 0 0 0-1.5.709V10h-4v4h2.022a6.471 6.471 0 0 0-.709 1.5H10v4h1.313c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25ZM6.25 4.5A1.75 1.75 0 0 0 4.5 6.25V8.5h4v-4H6.25ZM4.5 10v4h4v-4h-4Zm11-1.5h4V6.25a1.75 1.75 0 0 0-1.75-1.75H15.5v4Zm-1.5-4h-4v4h4v-4Zm-9.5 11v2.25c0 .966.784 1.75 1.75 1.75H8.5v-4h-4Z" fill="currentColor" stroke="none"/><path d="M23 17.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0Zm-5.5-.707-1.646-1.647a.5.5 0 0 0-.708.708l1.647 1.646-1.647 1.646a.5.5 0 0 0 .708.708l1.646-1.647 1.646 1.647a.5.5 0 0 0 .708-.708L18.207 17.5l1.647-1.646a.5.5 0 0 0-.708-.708L17.5 16.793Z" fill="currentColor" stroke="none"/>',tableEditCell:'<path d="M3 8.75A2.25 2.25 0 0 1 5.25 6.5h13.5a2.25 2.25 0 0 1 2.123 1.504A3.285 3.285 0 0 0 20.715 8h-.002c-.466 0-.932.1-1.365.297A.749.749 0 0 0 18.75 8H15.5v3.853l-1.5 1.5V8h-4v6h3.353l-.865.865a3.686 3.686 0 0 0-.508.635H5.25A2.25 2.25 0 0 1 3 13.25v-4.5ZM5.25 8a.75.75 0 0 0-.75.75v4.5c0 .414.336.75.75.75H8.5V8H5.25Zm15.465 1h-.002c-.585 0-1.17.223-1.615.67l-5.902 5.902a2.684 2.684 0 0 0-.707 1.247l-.458 1.831a1.087 1.087 0 0 0 1.319 1.318l1.83-.457a2.684 2.684 0 0 0 1.248-.707l5.902-5.902A2.286 2.286 0 0 0 20.715 9Z" fill="currentColor" stroke="none"/>',tableHeaderCell:'<path d="M3 9.75C3 9.15326 3.23705 8.58097 3.65901 8.15901C4.08097 7.73705 4.65326 7.5 5.25 7.5H18.75C19.3467 7.5 19.919 7.73705 20.341 8.15901C20.7629 8.58097 21 9.15326 21 9.75V14.25C21 14.8467 20.7629 15.419 20.341 15.841C19.919 16.2629 19.3467 16.5 18.75 16.5H5.25C4.65326 16.5 4.08097 16.2629 3.65901 15.841C3.23705 15.419 3 14.8467 3 14.25V9.75ZM5.25 9C5.05109 9 4.86032 9.07902 4.71967 9.21967C4.57902 9.36032 4.5 9.55109 4.5 9.75V14.25C4.5 14.664 4.836 15 5.25 15H8.5V9H5.25ZM15.5 15H18.75C18.9489 15 19.1397 14.921 19.2803 14.7803C19.421 14.6397 19.5 14.4489 19.5 14.25V9.75C19.5 9.55109 19.421 9.36032 19.2803 9.21967C19.1397 9.07902 18.9489 9 18.75 9H15.5V15Z" fill="currentColor" stroke="none"/>',editorImage:'<path d="M17.75 3A3.25 3.25 0 0 1 21 6.25v11.5A3.25 3.25 0 0 1 17.75 21H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5Zm.58 16.401-5.805-5.686a.75.75 0 0 0-.966-.071l-.084.07-5.807 5.687c.182.064.378.099.582.099h11.5c.203 0 .399-.035.58-.099l-5.805-5.686L18.33 19.4ZM17.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v11.5c0 .208.036.408.103.594l5.823-5.701a2.25 2.25 0 0 1 3.02-.116l.128.116 5.822 5.702c.067-.186.104-.386.104-.595V6.25a1.75 1.75 0 0 0-1.75-1.75Zm-2.498 2a2.252 2.252 0 1 1 0 4.504 2.252 2.252 0 0 1 0-4.504Zm0 1.5a.752.752 0 1 0 0 1.504.752.752 0 0 0 0-1.504Z" stroke-width="0.5" fill="currentColor"/>',editorFont:'<path d="M7 2a.75.75 0 0 1 .704.49l2.951 7.985.013.032.222.602-.828 2.086-.626-1.694H4.564l-1.113 3.01a.75.75 0 1 1-1.407-.521l1.288-3.483a.766.766 0 0 1 .012-.033L6.297 2.49A.75.75 0 0 1 7 2ZM5.12 10H8.88l-1.88-5.087L5.118 10ZM13.806 6.473a.75.75 0 0 1 1.395 0l5.554 14.031h.494a.75.75 0 1 1 0 1.5H18.75a.75.75 0 0 1 0-1.5h.392l-1.19-3.004h-6.91L9.85 20.504h.4a.75.75 0 1 1 0 1.5H7.75a.75.75 0 1 1 0-1.5h.485l5.57-14.03ZM17.36 16l-2.857-7.215L11.638 16h5.72Z" stroke-width="0.5" fill="currentColor"/>',editorLine:'<path d="M2.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 2.5 12ZM6.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 6.5 12ZM10.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM14.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM18.5 12a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75ZM4.75 2a.75.75 0 0 0-.75.75V7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2.75a.75.75 0 0 0-1.5 0V7a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V2.75A.75.75 0 0 0 4.75 2ZM19.25 22a.75.75 0 0 0 .75-.75V17a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4.25a.75.75 0 0 0 1.5 0V17a.5.5 0 0 1 .5-.5h12a.5.5 0 0 1 .5.5v4.25c0 .414.336.75.75.75Z" stroke-width="0.5" fill="currentColor"/>',editorQuote:'<path d="M7.5 6a2.5 2.5 0 0 1 2.495 2.336l.005.206c-.01 3.555-1.24 6.614-3.705 9.223a.75.75 0 1 1-1.09-1.03c1.64-1.737 2.66-3.674 3.077-5.859A2.5 2.5 0 1 1 7.5 6Zm9 0a2.5 2.5 0 0 1 2.495 2.336l.005.206c-.01 3.56-1.238 6.614-3.705 9.223a.75.75 0 1 1-1.09-1.03c1.643-1.738 2.662-3.672 3.078-5.859A2.5 2.5 0 1 1 16.5 6Z" stroke-width="0.5" fill="currentColor"/>',editorBulletList:'<path d="M3.25 17.5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494l-.102.006H6.75a.75.75 0 0 1-.102-1.493L6.75 18h14.5-14.5Zm-3.5-7a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494L21.25 13H6.75a.75.75 0 0 1-.102-1.493l.102-.007h14.5-14.5Zm-3.5-7A1.25 1.25 0 1 1 3.25 7a1.25 1.25 0 0 1 0-2.499Zm3.5.5h14.5a.75.75 0 0 1 .102 1.494l-.102.006H6.75a.75.75 0 0 1-.102-1.493L6.75 5h14.5-14.5Z" stroke-width="0.5" fill="currentColor"/>',editorNumberedList:'<path d="M6 2.75a.75.75 0 0 0-1.434-.307l-.002.003a1.45 1.45 0 0 1-.067.132 4.126 4.126 0 0 1-.238.384c-.217.313-.524.663-.906.902a.75.75 0 1 0 .794 1.272c.125-.078.243-.161.353-.248V7.25a.75.75 0 0 0 1.5 0v-4.5ZM20.5 18.75a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM20.5 12.244a.75.75 0 0 0-.75-.75h-9a.75.75 0 1 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM20.5 5.75a.75.75 0 0 0-.75-.75h-9a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 .75-.75ZM5.15 10.52c-.3-.053-.676.066-.87.26a.75.75 0 1 1-1.06-1.06c.556-.556 1.43-.812 2.192-.677.397.07.805.254 1.115.605.316.358.473.825.473 1.352 0 .62-.271 1.08-.606 1.42-.278.283-.63.511-.906.689l-.08.051a5.88 5.88 0 0 0-.481.34H6.25a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75c0-1.314.984-1.953 1.575-2.337l.06-.04c.318-.205.533-.345.69-.504.134-.136.175-.238.175-.369 0-.223-.061-.318-.098-.36a.42.42 0 0 0-.251-.12ZM2.97 21.28s.093.084.004.005l.006.005.013.013a1.426 1.426 0 0 0 .15.125c.095.07.227.158.397.243.341.17.83.329 1.46.329.64 0 1.196-.181 1.601-.54.408-.36.61-.857.595-1.359A1.775 1.775 0 0 0 6.77 19c.259-.305.412-.685.426-1.101a1.73 1.73 0 0 0-.595-1.36C6.196 16.181 5.64 16 5 16c-.63 0-1.119.158-1.46.33a2.592 2.592 0 0 0-.51.334 1.426 1.426 0 0 0-.037.033l-.013.013-.006.005-.002.003H2.97l-.001.002a.75.75 0 0 0 1.048 1.072 1.1 1.1 0 0 1 .192-.121c.159-.08.42-.171.79-.171.36 0 .536.1.608.164.07.061.09.127.088.187a.325.325 0 0 1-.123.23c-.089.077-.263.169-.573.169a.75.75 0 0 0 0 1.5c.31 0 .484.092.573.168.091.08.121.166.123.231a.232.232 0 0 1-.088.187c-.072.064-.247.164-.608.164a1.75 1.75 0 0 1-.79-.17 1.1 1.1 0 0 1-.192-.122.75.75 0 0 0-1.048 1.072Zm.002-4.563-.001.002c.007-.006.2-.168 0-.002Z" stroke-width="0.5" fill="currentColor"/>',editorMention:'<path d="M22 12v1.75a3.75 3.75 0 0 1-7.149 1.586C14.033 16.356 12.84 17 11.5 17 8.992 17 7 14.742 7 12s1.992-5 4.5-5c1.159 0 2.208.482 3.001 1.272L14.5 7.75a.75.75 0 0 1 1.493-.102L16 7.75v6a2.25 2.25 0 0 0 4.495.154l.005-.154V12a8.5 8.5 0 1 0-5.515 7.961.75.75 0 0 1 .527 1.405A9.98 9.98 0 0 1 12 22C6.477 22 2 17.523 2 12S6.477 2 12 2c5.43 0 9.848 4.327 9.996 9.72L22 12v1.75V12ZM11.5 8.5c-1.635 0-3 1.548-3 3.5s1.365 3.5 3 3.5c1.634 0 3-1.548 3-3.5s-1.366-3.5-3-3.5Z" stroke-width="0.5" fill="currentColor"/>',editorH1:'<path d="M19.59 5.081a.746.746 0 0 0-.809.084.751.751 0 0 0-.249.367c-.69 2.051-2.057 3.409-3.168 4.075a.75.75 0 0 0 .772 1.286c.774-.464 1.623-1.18 2.364-2.146v9.503a.75.75 0 0 0 1.5 0V5.772a.75.75 0 0 0-.41-.69ZM3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5V5.75Z" fill="currentColor" stroke-width="0.5"/>',editorH2:'<path d="M4.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H11v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H4.5V5.75Zm10.921 2.085c.23-.46.913-1.335 2.58-1.335.842 0 1.459.26 1.86.639.397.376.64.921.64 1.611 0 1.963-1.3 3.068-2.958 4.343l-.212.163C15.825 14.409 14 15.806 14 18.25a.75.75 0 0 0 .75.75h6.5a.75.75 0 0 0 0-1.5h-5.66c.315-1.252 1.427-2.11 2.866-3.218C20.05 13.057 22 11.537 22 8.75c0-1.06-.383-2.015-1.11-2.702C20.166 5.364 19.158 5 18 5c-2.333 0-3.484 1.291-3.92 2.165a.75.75 0 0 0 1.341.67Z" fill="currentColor" stroke-width="0.5"/>',editorH3:'<svg width="24" height="24" fill="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 5.75a.75.75 0 0 0-1.5 0v12.5a.75.75 0 0 0 1.5 0V12.5H10v5.75a.75.75 0 0 0 1.5 0V5.75a.75.75 0 0 0-1.5 0V11H3.5V5.75Zm11.92 2.085c.23-.46.914-1.335 2.58-1.335.843 0 1.46.26 1.86.639.398.376.64.921.64 1.611 0 .606-.161 1.026-.384 1.332-.228.314-.555.554-.953.735-.816.37-1.802.433-2.383.433a.75.75 0 0 0 0 1.5c.581 0 1.567.063 2.383.433.398.18.725.42.953.735.223.306.384.726.384 1.332 0 1.086-.914 2.25-2.5 2.25-1.727 0-2.348-.76-2.553-1.276a.75.75 0 1 0-1.394.552C14.508 17.926 15.727 19 18 19c2.414 0 4-1.836 4-3.75 0-.894-.245-1.63-.67-2.214A3.679 3.679 0 0 0 20.144 12a3.679 3.679 0 0 0 1.186-1.036c.425-.584.67-1.32.67-2.214 0-1.06-.383-2.015-1.11-2.702C20.165 5.364 19.157 5 18 5c-2.334 0-3.484 1.291-3.92 2.165a.75.75 0 1 0 1.34.67Z" fill="currentColor" stroke-width="0.5"/>',editorSnippets:'<path d="m11.066 8.004.184-.005h7.5a3.25 3.25 0 0 1 3.245 3.065l.005.185v7.5a3.25 3.25 0 0 1-3.066 3.245l-.184.005h-7.5a3.25 3.25 0 0 1-3.245-3.066L8 18.75v-7.5a3.25 3.25 0 0 1 3.066-3.245Zm7.684 1.495h-7.5a1.75 1.75 0 0 0-1.744 1.606l-.006.144v7.5a1.75 1.75 0 0 0 1.607 1.744l.143.006h7.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143v-7.5a1.75 1.75 0 0 0-1.75-1.75ZM15 11a.75.75 0 0 1 .75.75v2.498h2.5a.75.75 0 0 1 0 1.5h-2.5v2.502a.75.75 0 0 1-1.5 0v-2.502h-2.5a.75.75 0 1 1 0-1.5h2.5V11.75A.75.75 0 0 1 15 11Zm.582-6.767.052.177.693 2.588h-1.553l-.588-2.2a1.75 1.75 0 0 0-2.144-1.238L4.798 5.502a1.75 1.75 0 0 0-1.27 1.995l.032.148 1.942 7.244A1.75 1.75 0 0 0 7 16.176v1.506a3.252 3.252 0 0 1-2.895-2.228l-.052-.176-1.941-7.245a3.25 3.25 0 0 1 2.12-3.928l.178-.052 7.244-1.941a3.25 3.25 0 0 1 3.928 2.12Z" fill="currentColor" stroke-width="0.5" />',editorItalic:'<path d="M10.649 18.5h3.847a1 1 0 0 1 0 2h-9.5a.997.997 0 0 1-.996-1c0-.552.445-1 .996-1h3.51L13.332 6H9.997a1 1 0 0 1 0-2H18.5a1 1 0 0 1 0 2h-3.025L10.65 18.5Z" fill="currentColor" stroke-width="0.25" />',question:'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',layout:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',chat:'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',thumbsup:'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',thumbsdown:'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',error:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',bankId:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M6.52062 20.2043C7.26873 20.2043 7.92724 20.5001 7.80085 21.2878L7.65813 22.1764C7.60772 22.4904 7.61709 22.5844 7.97808 22.5913L7.61127 23.4261C6.97292 23.4674 6.66405 23.4024 6.51067 23.1355C6.17212 23.3375 5.79976 23.4379 5.40099 23.4379C4.67773 23.4379 4.42892 23.077 4.49325 22.6741C4.5235 22.4838 4.63953 22.295 4.82386 22.1407C5.22064 21.809 6.2035 21.7611 6.58765 21.5071C6.62116 21.2228 6.50244 21.1219 6.14031 21.1219C5.71725 21.1219 5.36407 21.2584 4.7608 21.6551L4.90779 20.7362C5.43295 20.3698 5.93751 20.2041 6.52062 20.2041V20.2043ZM11.0695 20.2043C11.7643 20.2043 12.088 20.6314 11.9794 21.3358L11.6556 23.4379H10.4098L10.678 21.6974C10.7266 21.3787 10.6354 21.2336 10.39 21.2336C10.1923 21.2336 10.0138 21.3421 9.84014 21.5764L9.55314 23.4379H8.30769L8.79707 20.2575H10.0431L9.97889 20.6735C10.3725 20.336 10.6742 20.2041 11.0695 20.2041V20.2043ZM14.202 19.1483L13.891 21.2615L15.0807 20.1162H16.6154L15.0875 21.5322L16.3123 23.4379H14.754L13.8088 21.903H13.7972L13.5716 23.4379H12.3295L12.9597 19.1483H14.2019H14.202ZM3.06305 19.2803C4.09477 19.2803 4.34798 19.7884 4.2737 20.2538C4.21363 20.6321 3.95049 20.9095 3.49065 21.0925C4.07006 21.305 4.29572 21.6411 4.21264 22.1605C4.10854 22.816 3.52104 23.3059 2.75602 23.3059H0L0.641041 19.2803H3.06305V19.2803ZM21.718 19.2803C23.328 19.2803 23.7929 20.4136 23.6441 21.3462C23.4978 22.261 22.7511 23.3059 21.3364 23.3059H18.989L19.6326 19.2803H21.718ZM18.9231 19.2803L18.2765 23.3059H16.8132L17.4599 19.2803H18.9231ZM6.50386 22.028C6.16417 22.2356 5.53818 22.1998 5.46987 22.6263C5.43749 22.8279 5.56715 22.9756 5.77534 22.9756C5.97799 22.9756 6.22466 22.8928 6.41681 22.7626C6.40388 22.6919 6.41013 22.6146 6.43285 22.4725L6.50386 22.028V22.028ZM2.20133 21.5647H1.72814L1.5485 22.692H1.98533C2.47115 22.692 2.75645 22.5031 2.81922 22.1076C2.87318 21.7711 2.67479 21.5647 2.20133 21.5647V21.5647ZM21.3271 20.2359H20.9365L20.5987 22.3496H20.9831C21.69 22.3496 22.0796 22.0131 22.1952 21.2932C22.2797 20.7619 22.1138 20.2359 21.3271 20.2359ZM2.41292 19.8937H1.99399L1.8257 20.9502H2.24464C2.71811 20.9502 2.93893 20.7083 2.9848 20.4191C3.03366 20.1127 2.88653 19.8937 2.41292 19.8937ZM6.23006 3.04568C6.69004 3.04568 7.04521 3.1404 7.22982 3.31266C7.35863 3.43323 7.40663 3.59101 7.36857 3.7698C7.33165 3.94234 7.13567 4.16701 6.8417 4.36951C6.00866 4.94693 6.15295 5.54537 6.21728 5.71536C6.41013 6.22675 7.05401 6.50267 7.56099 6.50267H8.63744L7.63342 12.7449H7.6506C7.27683 15.0776 6.99877 16.8367 6.94722 17.1683H0.98897C1.10315 16.4348 2.59441 7.11333 2.68885 6.50452H2.78045L3.08989 6.50523H3.16118L3.40204 6.5058L3.46537 6.50594L3.55342 6.50608H3.60611L3.63053 6.50622L3.69458 6.50637H3.76615L3.77439 6.50651H3.78518C4.50135 6.50267 5.16128 6.17988 5.46717 5.68383C5.76625 5.2027 5.6525 4.68691 5.17236 4.33728C5.01231 4.22111 4.82812 4.03266 4.86419 3.79948C4.91361 3.48464 5.45652 3.04568 6.22992 3.04568H6.23006ZM15.4962 1C20.9811 1 24.8058 3.38239 23.8547 9.32686C23.0857 14.1259 19.1722 17.1685 14.3813 17.1685H13.2454L14.0159 12.3253C15.9563 12.3037 17.5822 11.4008 17.9181 9.30542C18.2788 7.05013 17.1333 6.08189 15.0016 6.06542C15.002 6.06201 15.002 6.06017 15.002 6.06017H13.4342C13.0732 6.06017 12.6094 5.86206 12.4891 5.5431C12.4516 5.44426 12.3752 5.08781 12.9597 4.68137C13.1841 4.52502 13.5738 4.20606 13.6556 3.82447C13.7225 3.50466 13.6275 3.1955 13.3936 2.97709C13.1271 2.72757 12.6821 2.59508 12.1068 2.59508C11.1461 2.59508 10.4113 3.16909 10.3278 3.70462C10.3226 3.73941 10.3191 3.78017 10.3191 3.82476C10.3191 4.03778 10.4029 4.35148 10.8016 4.64317C10.9478 4.75011 11.0896 4.90731 11.0896 5.11763C11.0896 5.21406 11.0597 5.32071 10.9869 5.43957C10.7585 5.81051 10.2284 6.0613 9.66604 6.06443L8.63744 6.06201L9.44748 1H15.4962Z" fill="currentColor" />',bankIdColor:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M6.52062 20.2043C7.26873 20.2043 7.92724 20.5001 7.80085 21.2878L7.65813 22.1764C7.60772 22.4904 7.61709 22.5844 7.97808 22.5913L7.61127 23.4261C6.97292 23.4674 6.66405 23.4024 6.51067 23.1355C6.17212 23.3375 5.79976 23.4379 5.40099 23.4379C4.67773 23.4379 4.42892 23.077 4.49325 22.6741C4.5235 22.4838 4.63953 22.295 4.82386 22.1407C5.22064 21.809 6.2035 21.7611 6.58765 21.5071C6.62116 21.2228 6.50244 21.1219 6.14031 21.1219C5.71725 21.1219 5.36407 21.2584 4.7608 21.6551L4.90779 20.7362C5.43295 20.3698 5.93751 20.2041 6.52062 20.2041V20.2043ZM11.0695 20.2043C11.7643 20.2043 12.088 20.6314 11.9794 21.3358L11.6556 23.4379H10.4098L10.678 21.6974C10.7266 21.3787 10.6354 21.2336 10.39 21.2336C10.1923 21.2336 10.0138 21.3421 9.84014 21.5764L9.55314 23.4379H8.30769L8.79707 20.2575H10.0431L9.97889 20.6735C10.3725 20.336 10.6742 20.2041 11.0695 20.2041V20.2043ZM14.202 19.1483L13.891 21.2615L15.0807 20.1162H16.6154L15.0875 21.5322L16.3123 23.4379H14.754L13.8088 21.903H13.7972L13.5716 23.4379H12.3295L12.9597 19.1483H14.2019H14.202ZM3.06305 19.2803C4.09477 19.2803 4.34798 19.7884 4.2737 20.2538C4.21363 20.6321 3.95049 20.9095 3.49065 21.0925C4.07006 21.305 4.29572 21.6411 4.21264 22.1605C4.10854 22.816 3.52104 23.3059 2.75602 23.3059H0L0.641041 19.2803H3.06305V19.2803ZM21.718 19.2803C23.328 19.2803 23.7929 20.4136 23.6441 21.3462C23.4978 22.261 22.7511 23.3059 21.3364 23.3059H18.989L19.6326 19.2803H21.718ZM18.9231 19.2803L18.2765 23.3059H16.8132L17.4599 19.2803H18.9231ZM6.50386 22.028C6.16417 22.2356 5.53818 22.1998 5.46987 22.6263C5.43749 22.8279 5.56715 22.9756 5.77534 22.9756C5.97799 22.9756 6.22466 22.8928 6.41681 22.7626C6.40388 22.6919 6.41013 22.6146 6.43285 22.4725L6.50386 22.028V22.028ZM2.20133 21.5647H1.72814L1.5485 22.692H1.98533C2.47115 22.692 2.75645 22.5031 2.81922 22.1076C2.87318 21.7711 2.67479 21.5647 2.20133 21.5647V21.5647ZM21.3271 20.2359H20.9365L20.5987 22.3496H20.9831C21.69 22.3496 22.0796 22.0131 22.1952 21.2932C22.2797 20.7619 22.1138 20.2359 21.3271 20.2359ZM2.41292 19.8937H1.99399L1.8257 20.9502H2.24464C2.71811 20.9502 2.93893 20.7083 2.9848 20.4191C3.03366 20.1127 2.88653 19.8937 2.41292 19.8937ZM6.23006 3.04568C6.69004 3.04568 7.04521 3.1404 7.22982 3.31266C7.35863 3.43323 7.40663 3.59101 7.36857 3.7698C7.33165 3.94234 7.13567 4.16701 6.8417 4.36951C6.00866 4.94693 6.15295 5.54537 6.21728 5.71536C6.41013 6.22675 7.05401 6.50267 7.56099 6.50267H8.63744L7.63342 12.7449H7.6506C7.27683 15.0776 6.99877 16.8367 6.94722 17.1683H0.98897C1.10315 16.4348 2.59441 7.11333 2.68885 6.50452H2.78045L3.08989 6.50523H3.16118L3.40204 6.5058L3.46537 6.50594L3.55342 6.50608H3.60611L3.63053 6.50622L3.69458 6.50637H3.76615L3.77439 6.50651H3.78518C4.50135 6.50267 5.16128 6.17988 5.46717 5.68383C5.76625 5.2027 5.6525 4.68691 5.17236 4.33728C5.01231 4.22111 4.82812 4.03266 4.86419 3.79948C4.91361 3.48464 5.45652 3.04568 6.22992 3.04568H6.23006ZM15.4962 1C20.9811 1 24.8058 3.38239 23.8547 9.32686C23.0857 14.1259 19.1722 17.1685 14.3813 17.1685H13.2454L14.0159 12.3253C15.9563 12.3037 17.5822 11.4008 17.9181 9.30542C18.2788 7.05013 17.1333 6.08189 15.0016 6.06542C15.002 6.06201 15.002 6.06017 15.002 6.06017H13.4342C13.0732 6.06017 12.6094 5.86206 12.4891 5.5431C12.4516 5.44426 12.3752 5.08781 12.9597 4.68137C13.1841 4.52502 13.5738 4.20606 13.6556 3.82447C13.7225 3.50466 13.6275 3.1955 13.3936 2.97709C13.1271 2.72757 12.6821 2.59508 12.1068 2.59508C11.1461 2.59508 10.4113 3.16909 10.3278 3.70462C10.3226 3.73941 10.3191 3.78017 10.3191 3.82476C10.3191 4.03778 10.4029 4.35148 10.8016 4.64317C10.9478 4.75011 11.0896 4.90731 11.0896 5.11763C11.0896 5.21406 11.0597 5.32071 10.9869 5.43957C10.7585 5.81051 10.2284 6.0613 9.66604 6.06443L8.63744 6.06201L9.44748 1H15.4962Z" fill="#183E4F" />',statusDraft:'<path d="M7.5 4.20996V4.21996" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.21001 7.5V7.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 12V12.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M4.21001 16.5V16.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M7.5 19.79V19.8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 21V21.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 19.79V19.8" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M19.79 16.5V16.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 12V12.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M19.79 7.5V7.51" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M16.5 4.20996V4.21996" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 3V3.01" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>',statusSent:'<path d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>',statusScheduled:'<path d="M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 12H15.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 7V12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusSemiSigned:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 17C14.7614 17 17 14.7614 17 12C17 9.23858 14.7614 7 12 7V12V17Z" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusAccepted:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.7474 9.66436C17.1143 9.25158 17.0771 8.61951 16.6644 8.25259C16.2516 7.88567 15.6195 7.92285 15.2526 8.33564L10.6667 13.4948L8.74741 11.3356C8.38049 10.9229 7.74842 10.8857 7.33564 11.2526C6.92285 11.6195 6.88567 12.2516 7.25259 12.6644L9.91926 15.6644C10.109 15.8779 10.381 16 10.6667 16C10.9523 16 11.2243 15.8779 11.4141 15.6644L16.7474 9.66436Z" fill="currentColor" stroke="none" />',statusDenied:'<path stroke="none" fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM9.70711 8.29289C9.31658 7.90237 8.68342 7.90237 8.29289 8.29289C7.90237 8.68342 7.90237 9.31658 8.29289 9.70711L10.5858 12L8.29289 14.2929C7.90237 14.6834 7.90237 15.3166 8.29289 15.7071C8.68342 16.0976 9.31658 16.0976 9.70711 15.7071L12 13.4142L14.2929 15.7071C14.6834 16.0976 15.3166 16.0976 15.7071 15.7071C16.0976 15.3166 16.0976 14.6834 15.7071 14.2929L13.4142 12L15.7071 9.70711C16.0976 9.31658 16.0976 8.68342 15.7071 8.29289C15.3166 7.90237 14.6834 7.90237 14.2929 8.29289L12 10.5858L9.70711 8.29289Z" fill="currentColor"/>',statusActive:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM10.9577 7.61329L15.781 10.2442C17.1708 11.0022 17.1708 12.9978 15.7811 13.7558L10.9577 16.3867C9.62496 17.1137 8 16.149 8 14.6309V9.36908C8 7.85097 9.62495 6.88634 10.9577 7.61329Z" fill="currentColor"/><path d="M15.781 10.2442L16.2599 9.36631L16.2599 9.36631L15.781 10.2442ZM10.9577 7.61329L10.4789 8.49119L10.4789 8.49119L10.9577 7.61329ZM15.7811 13.7558L15.3022 12.8779L15.3022 12.8779L15.7811 13.7558ZM10.9577 16.3867L10.4789 15.5088L10.4789 15.5088L10.9577 16.3867ZM12 22C17.5228 22 22 17.5228 22 12H20C20 16.4183 16.4183 20 12 20V22ZM2 12C2 17.5228 6.47715 22 12 22V20C7.58172 20 4 16.4183 4 12H2ZM12 2C6.47715 2 2 6.47715 2 12H4C4 7.58172 7.58172 4 12 4V2ZM22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12H22ZM16.2599 9.36631L11.4366 6.7354L10.4789 8.49119L15.3022 11.1221L16.2599 9.36631ZM16.2599 14.6337C18.3445 13.4966 18.3445 10.5034 16.2599 9.36631L15.3022 11.1221C15.9971 11.5011 15.9971 12.4989 15.3022 12.8779L16.2599 14.6337ZM11.4366 17.2646L16.2599 14.6337L15.3022 12.8779L10.4789 15.5088L11.4366 17.2646ZM7 14.6309C7 16.9081 9.43743 18.355 11.4366 17.2646L10.4789 15.5088C9.81248 15.8723 9 15.39 9 14.6309H7ZM7 9.36908V14.6309H9V9.36908H7ZM11.4366 6.7354C9.43743 5.64497 7 7.09191 7 9.36908H9C9 8.61002 9.81248 8.12771 10.4789 8.49119L11.4366 6.7354Z" fill="currentColor" stroke="none" />',statusCompleted:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>',statusArchive:'<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M15 11l-3 3l-3 -3"></path><path d="M20 6.667v10.666a2.667 2.667 0 0 1 -2.667 2.667h-10.666a2.667 2.667 0 0 1 -2.667 -2.667v-10.666a2.667 2.667 0 0 1 2.667 -2.667h10.666a2.667 2.667 0 0 1 2.667 2.667z"></path>',statusExpired:'<path d="M12 21C14.3869 21 16.6761 20.0518 18.364 18.364C20.0518 16.6761 21 14.3869 21 12C21 9.61305 20.0518 7.32387 18.364 5.63604C16.6761 3.94821 14.3869 3 12 3C9.61305 3 7.32387 3.94821 5.63604 5.63604C3.94821 7.32387 3 9.61305 3 12C3 14.3869 3.94821 16.6761 5.63604 18.364C7.32387 20.0518 9.61305 21 12 21V21Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path stroke="none" d="M18 12.5405C17.8949 13.6778 17.4681 14.7615 16.7696 15.665C16.071 16.5685 15.1296 17.2544 14.0554 17.6424C12.9813 18.0304 11.8189 18.1044 10.7042 17.8559C9.5895 17.6073 8.56866 17.0465 7.7611 16.2389C6.95354 15.4313 6.39267 14.4105 6.14412 13.2958C5.89557 12.1811 5.96962 11.0187 6.35761 9.94457C6.74559 8.87043 7.43147 7.929 8.33497 7.23045C9.23848 6.53189 10.3222 6.10509 11.4595 6C10.7937 6.90076 10.4733 8.01056 10.5566 9.12758C10.6399 10.2446 11.1213 11.2946 11.9134 12.0866C12.7054 12.8787 13.7554 13.3601 14.8724 13.4434C15.9894 13.5267 17.0992 13.2063 18 12.5405Z" fill="currentColor"/>',statusVoided:'<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM6 11C5.44772 11 5 11.4477 5 12C5 12.5523 5.44772 13 6 13H18C18.5523 13 19 12.5523 19 12C19 11.4477 18.5523 11 18 11H6Z" fill="currentColor" stroke="none"/>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',admin:'<path d="M15 6.99989086C16.1045695 6.99989086 17 7.89532136 17 8.99989086L17 16.458686C17 17.1113133 16.6815784 17.722892 16.1469254 18.0971494L12 21 7.85307456 18.0971494C7.31842164 17.722892 7 17.1113133 7 16.458686L7 8.99989086C7 7.89532136 7.8954305 6.99989086 9 6.99989086 9.00005899 5.34308677 10.3431821 4 12 4 13.6568179 4 14.999941 5.34308677 15 6.99989086zM4 13L7 13"></path><polyline points="3 7 5 9 7 9"></polyline><polyline points="21 7 19 9 17 9"></polyline><polyline points="3 19 5 17 7 17"></polyline><polyline points="17 17 19 17 21 19 21 19"></polyline><path d="M17,13 L20,13"></path>'},J1e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function X1e(n){return Object.keys(n).map(t=>`${t}="${n[t]}"`).join(" ")}class Q1e{constructor(t,r,i=[]){this.name=t,this.contents=r,this.tags=i,this.attrs={...J1e,class:`feather feather-${t}`}}toSvg(t={}){const r={...this.attrs,...t,class:`${this.attrs.class} ${t.class}`};return`<svg ${X1e(r)}>${this.contents}</svg>`}toString(){return this.contents}}var e0e=he({name:"CIcon",props:{animation:{type:String,default:void 0},animationSpeed:{type:String,default:void 0},fill:{type:String,default:"none"},size:{type:[Number,String],default:22},stroke:{type:String,default:"currentColor"},strokeLinecap:{type:String,default:"round"},strokeLinejoin:{type:String,default:"round"},strokeWidth:{type:[Number,String],default:2},tag:{type:String,default:"i"},type:{type:String,required:!0,validator(n){if(!gM[n])throw new Error(`"${n}" is not an available icon type.`);return!0}}},render(n){const{animation:t,animationSpeed:r,size:i,type:a}=this,o=new Q1e(a,gM[a]);return n(this.tag,{attrs:{"data-name":a,"data-tags":o?o.tags:"","data-type":a},class:{feather:!0,[`feather--${a}`]:a,[`feather--${t}`]:t,[`feather--${r}`]:r},on:this.$listeners},[o?n("svg",{attrs:{...o.attrs,fill:this.fill||"currentColor",height:i,stroke:this.stroke||"currentColor","stroke-linecap":this.strokeLinecap,"stroke-linejoin":this.strokeLinejoin,"stroke-width":this.strokeWidth,width:i},style:{...i?{width:`${i}px`,height:`${i}px`}:{}},class:[o.attrs?o.attrs.class:"","feather__content"],domProps:{innerHTML:o.contents}}):""])}},null,null,!1,null,"fbd1ff56");const Dm=e0e.exports;function t0e(){for(var n=0,t,r,i="";n<arguments.length;)(t=arguments[n++])&&(r=vM(t))&&(i&&(i+=" "),i+=r);return i}function vM(n){if(typeof n=="string")return n;for(var t,r="",i=0;i<n.length;i++)n[i]&&(t=vM(n[i]))&&(r&&(r+=" "),r+=t);return r}function B4(){return B4=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])}return n},B4.apply(this,arguments)}function n0e(n){if(n<1)return{get:function(){},set:function(){}};var t=0,r=new Map,i=new Map;function a(o,s){r.set(o,s),t++,t>n&&(t=0,i=r,r=new Map)}return{get:function(s){var c=r.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return a(s,c),c},set:function(s,c){r.has(s)?r.set(s,c):a(s,c)}}}var j4="-";function r0e(n){var t=a0e(n);function r(a){var o=a.split(j4);return o[0]===""&&o.length!==1&&o.shift(),yM(o,t)||i0e(a)}function i(a){return n.conflictingClassGroups[a]||[]}return{getClassGroupId:r,getConflictingClassGroupIds:i}}function yM(n,t){var r;if(n.length===0)return t.classGroupId;var i=n[0],a=t.nextPart.get(i),o=a?yM(n.slice(1),a):void 0;if(o)return o;if(t.validators.length!==0){var s=n.join(j4);return(r=t.validators.find(function(c){var l=c.validator;return l(s)}))==null?void 0:r.classGroupId}}var bM=/^\[(.+)\]$/;function i0e(n){if(bM.test(n)){var t=bM.exec(n)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}function a0e(n){var t=n.theme,r=n.prefix,i={nextPart:new Map,validators:[]},a=s0e(Object.entries(n.classGroups),r);return a.forEach(function(o){var s=o[0],c=o[1];z4(c,i,s,t)}),i}function z4(n,t,r,i){n.forEach(function(a){if(typeof a=="string"){var o=a===""?t:wM(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(o0e(a)){z4(a(i),t,r,i);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(function(s){var c=s[0],l=s[1];z4(l,wM(t,c),r,i)})})}function wM(n,t){var r=n;return t.split(j4).forEach(function(i){r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r}function o0e(n){return n.isThemeGetter}function s0e(n,t){return t?n.map(function(r){var i=r[0],a=r[1],o=a.map(function(s){return typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(function(c){var l=c[0],u=c[1];return[t+l,u]})):s});return[i,o]}):n}var _M="!";function l0e(n){var t=n.separator||":";return function(i){for(var a=0,o=[],s=0,c=0;c<i.length;c++){var l=i[c];a===0&&l===t[0]&&(t.length===1||i.slice(c,c+t.length)===t)&&(o.push(i.slice(s,c)),s=c+t.length),l==="["?a++:l==="]"&&a--}var u=o.length===0?i:i.substring(s),d=u.startsWith(_M),p=d?u.substring(1):u;return{modifiers:o,hasImportantModifier:d,baseClassName:p}}}function c0e(n){if(n.length<=1)return n;var t=[],r=[];return n.forEach(function(i){var a=i[0]==="[";a?(t.push.apply(t,r.sort().concat([i])),r=[]):r.push(i)}),t.push.apply(t,r.sort()),t}function u0e(n){return B4({cache:n0e(n.cacheSize),splitModifiers:l0e(n)},r0e(n))}var d0e=/\s+/;function p0e(n,t){var r=t.splitModifiers,i=t.getClassGroupId,a=t.getConflictingClassGroupIds,o=new Set;return n.trim().split(d0e).map(function(s){var c=r(s),l=c.modifiers,u=c.hasImportantModifier,d=c.baseClassName,p=i(d);if(!p)return{isTailwindClass:!1,originalClassName:s};var f=c0e(l).join(":"),h=u?f+_M:f;return{isTailwindClass:!0,modifierId:h,classGroupId:p,originalClassName:s}}).reverse().filter(function(s){if(!s.isTailwindClass)return!0;var c=s.modifierId,l=s.classGroupId,u=c+l;return o.has(u)?!1:(o.add(u),a(l).forEach(function(d){return o.add(c+d)}),!0)}).reverse().map(function(s){return s.originalClassName}).join(" ")}function f0e(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var i,a,o,s=c;function c(u){var d=t[0],p=t.slice(1),f=p.reduce(function(h,m){return m(h)},d());return i=u0e(f),a=i.cache.get,o=i.cache.set,s=l,l(u)}function l(u){var d=a(u);if(d)return d;var p=p0e(u,i);return o(u,p),p}return function(){return s(t0e.apply(null,arguments))}}function Yn(n){var t=function(i){return i[n]||[]};return t.isThemeGetter=!0,t}var Zl=/^\[(.+)\]$/,h0e=/^\d+\/\d+$/,m0e=new Set(["px","full","screen"]),g0e=/^(\d+)?(xs|sm|md|lg|xl)$/,v0e=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,y0e=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function fo(n){return!Number.isNaN(Number(n))||m0e.has(n)||h0e.test(n)||Su(n)}function Su(n){var t,r=(t=Zl.exec(n))==null?void 0:t[1];return r?r.startsWith("length:")||v0e.test(r):!1}function b0e(n){var t,r=(t=Zl.exec(n))==null?void 0:t[1];return r?r.startsWith("size:"):!1}function w0e(n){var t,r=(t=Zl.exec(n))==null?void 0:t[1];return r?r.startsWith("position:"):!1}function _0e(n){var t,r=(t=Zl.exec(n))==null?void 0:t[1];return r?r.startsWith("url(")||r.startsWith("url:"):!1}function xM(n){var t,r=(t=Zl.exec(n))==null?void 0:t[1];return r?!Number.isNaN(Number(r))||r.startsWith("number:"):!1}function Ri(n){var t,r=(t=Zl.exec(n))==null?void 0:t[1];return r?Number.isInteger(Number(r)):Number.isInteger(Number(n))}function ri(n){return Zl.test(n)}function Mm(){return!0}function Jl(n){return g0e.test(n)}function x0e(n){var t,r=(t=Zl.exec(n))==null?void 0:t[1];return r?y0e.test(r):!1}function C0e(){var n=Yn("colors"),t=Yn("spacing"),r=Yn("blur"),i=Yn("brightness"),a=Yn("borderColor"),o=Yn("borderRadius"),s=Yn("borderSpacing"),c=Yn("borderWidth"),l=Yn("contrast"),u=Yn("grayscale"),d=Yn("hueRotate"),p=Yn("invert"),f=Yn("gap"),h=Yn("gradientColorStops"),m=Yn("inset"),g=Yn("margin"),y=Yn("opacity"),b=Yn("padding"),_=Yn("saturate"),S=Yn("scale"),k=Yn("sepia"),E=Yn("skew"),T=Yn("space"),A=Yn("translate"),$=function(){return["auto","contain","none"]},I=function(){return["auto","hidden","clip","visible","scroll"]},R=function(){return["auto",t]},Y=function(){return["",fo]},F=function(){return["auto",Ri]},D=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},B=function(){return["solid","dashed","dotted","double","none"]},z=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},K=function(){return["start","end","center","between","around","evenly"]},te=function(){return["","0",ri]},j=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[Mm],spacing:[fo],blur:["none","",Jl,Su],brightness:[Ri],borderColor:[n],borderRadius:["none","","full",Jl,Su],borderSpacing:[t],borderWidth:Y(),contrast:[Ri],grayscale:te(),hueRotate:[Ri],invert:te(),gap:[t],gradientColorStops:[n],inset:R(),margin:R(),opacity:[Ri],padding:[t],saturate:[Ri],scale:[Ri],sepia:te(),skew:[Ri,ri],space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",ri]}],container:["container"],columns:[{columns:[Jl]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(D(),[ri])}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:[Ri]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ri]}],grow:[{grow:te()}],shrink:[{shrink:te()}],order:[{order:["first","last","none",Ri]}],"grid-cols":[{"grid-cols":[Mm]}],"col-start-end":[{col:["auto",{span:[Ri]}]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Mm]}],"row-start-end":[{row:["auto",{span:[Ri]}]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ri]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ri]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:K()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(K(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(K(),["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",fo]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Jl]},Jl,Su]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",fo]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",Jl,Su]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",xM]}],"font-family":[{font:[Mm]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Su]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",fo]}],"list-style-type":[{list:["none","disc","decimal",ri]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(B(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",fo]}],"underline-offset":[{"underline-offset":["auto",fo]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Su]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",ri]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(D(),[w0e])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",b0e]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},_0e]}],"bg-color":[{bg:[n]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(B(),["hidden"])}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(B())}],"outline-offset":[{"outline-offset":[fo]}],"outline-w":[{outline:[fo]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[fo]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Jl,x0e]}],"shadow-color":[{shadow:[Mm]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":z()}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jl,ri]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[p]}],saturate:[{saturate:[_]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ri]}],duration:[{duration:[Ri]}],ease:[{ease:["linear","in","out","in-out",ri]}],delay:[{delay:[Ri]}],animate:[{animate:["none","spin","ping","pulse","bounce",ri]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Ri,ri]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ri]}],accent:[{accent:["auto",n]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ri]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ri]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[fo,xM]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var k0e=f0e(C0e);const CM={defaultLinkTags:["a","button","input","label","router-link","nuxt-link","n-link","RouterLink","NuxtLink","NLink"],defaultButtonRounded:!1},S0e={name:"CButton",components:{CIcon:Dm},inheritAttrs:!1,props:{type:{type:String,default:null,validator:n=>["primary","secondary","tertiary","success","warning","danger","text","none"].indexOf(n)>=0},size:{type:String,default:null,validator:n=>["small","normal","default","medium","large"].indexOf(n)>=0},pattern:{type:String,default:"primary",validator:n=>["primary","secondary","tertiary"].indexOf(n)>=0},label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:()=>CM.defaultButtonRounded},loading:Boolean,disabled:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:n=>["button","submit","reset"].indexOf(n)>=0},tag:{type:String,default:"button",validator:n=>CM.defaultLinkTags.indexOf(n)>=0},raised:Boolean,wide:Boolean,circle:Boolean,icon:String,iconProps:{type:Object,default:()=>({})},dropdownIcon:Boolean,taller:Boolean,thinner:Boolean,rounder:Boolean,to:{type:[Object,String],default:void 0,validator(n){return!!(n===void 0||typeof n=="string"||n.name&&typeof n.name=="string")}}},computed:{computedTag(){const n=this.$attrs.disabled!==void 0&&this.$attrs.disabled!==!1;return this.to&&!n?"router-link":n?"button":this.tag},iconSize(){return this.size==="medium"?20:this.size==="large"?24:this.size==="small"?16:18},computedPatternClass(){return["secondary","text","none"].includes(this.type)?"":`is-pattern-${this.pattern}`},computedTypeClass(){return["secondary","text","none"].includes(this.type)?"":`is-${this.type}`}},methods:{tailwindClasses(...n){const t=[];return this.type==="secondary"?(t.push("bg-primary-500 border-primary-500 text-white"),t.push("disabled:bg-primary-500 disabled:border-primary-500 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-primary-600 hover:border-primary-600 hover:text-white"),t.push("focus:bg-primary-700 focus:border-primary-700 focus:text-white focus:!ring focus:ring-primary-500 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-primary-100 border-primary-100 text-primary-600"),t.push("disabled:bg-primary-100 disabled:border-primary-100 disabled:text-primary-600"),t.push("hover:bg-primary-200 hover:border-primary-200 hover:text-primary-700"),t.push("focus:bg-primary-300 focus:border-primary-300 focus:text-primary-700 [&.is-focused]:text-primary-700")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-primary-500"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-primary-500"),t.push("hover:bg-primary-50 hover:border-primary-50 hover:text-primary-500"),t.push("focus:bg-primary-100 focus:border-primary-100 focus:text-primary-500 focus:bg-primary-100 [&.is-focused]:text-primary-500")),this.outlined&&(t.push("bg-transparent text-primary-500"),t.push("disabled:bg-transparent disabled:text-primary-500"))):this.type==="text"?(t.push("bg-gray-800 border-gray-800 text-white"),t.push("disabled:bg-gray-800 disabled:border-gray-800 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-700 hover:border-gray-700 hover:text-white"),t.push("focus:bg-gray-900 focus:border-gray-900 focus:text-white focus:!ring focus:ring-gray-800 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-gray-400 border-gray-400 text-white"),t.push("disabled:bg-gray-400 disabled:border-gray-400 disabled:text-white"),t.push("hover:bg-gray-500 hover:border-gray-500 hover:text-white"),t.push("focus:bg-gray-310 focus:border-gray-310 focus:text-white [&.is-focused]:text-white")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-gray-800"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-gray-800"),t.push("hover:bg-gray-100 hover:border-gray-50 hover:text-gray-800"),t.push("focus:bg-gray-100 focus:border-gray-100 focus:text-gray-800 focus:bg-gray-100 [&.is-focused]:text-gray-800")),this.outlined&&(t.push("bg-transparent text-gray-800"),t.push("disabled:bg-transparent disabled:text-gray-800"))):this.type==="none"?(t.push("bg-gray-500 border-gray-500 text-white"),t.push("disabled:bg-gray-500 disabled:border-gray-500 disabled:text-white disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-600 hover:border-gray-600 hover:text-white"),t.push("focus:bg-gray-700 focus:border-gray-700 focus:text-white focus:!ring focus:ring-gray-500 focus:ring-opacity-20 [&.is-focused]:text-white"),this.pattern==="secondary"?(t.push("bg-gray-100 border-gray-100 text-gray-600"),t.push("disabled:bg-gray-100 disabled:border-gray-100 disabled:text-gray-600"),t.push("hover:bg-gray-200 hover:border-gray-200 hover:text-gray-700"),t.push("focus:bg-gray-300 focus:border-gray-300 focus:text-gray-700 [&.is-focused]:text-gray-700")):this.pattern==="tertiary"&&(t.push("bg-transparent border-transparent text-gray-500"),t.push("disabled:bg-transparent disabled:border-transparent disabled:text-gray-500"),t.push("hover:bg-gray-50 hover:border-gray-50 hover:text-gray-500"),t.push("focus:bg-gray-100 focus:border-gray-100 focus:text-gray-500 focus:bg-gray-100 [&.is-focused]:text-gray-500")),this.outlined&&(t.push("bg-transparent text-gray-500"),t.push("disabled:bg-transparent disabled:text-gray-500"))):this.type===null&&(t.push("bg-white border-white text-gray-800"),t.push("disabled:bg-white disabled:border-white disabled:text-gray-800 disabled:opacity-50 disabled:shadow-none"),t.push("hover:bg-gray-100 hover:border-gray-100 hover:text-gray-800"),t.push("focus:bg-white focus:border-white focus:text-gray-800 focus:!ring focus:ring-primary-500 focus:ring-opacity-20 [&.is-focused]:text-gray-800")),k0e(...t,...n)}}};var T0e=function(){var t=this,r=t._self._c;return r(t.computedTag,t._g(t._b({tag:"component",staticClass:"c-button font-config button",class:[`is-${t.size}`,t.computedPatternClass,t.computedTypeClass,t.tailwindClasses(t.$attrs.class),{"is-rounded":t.rounded,"is-rounder":t.rounder,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected,"is-raised":t.raised,"is-wide":t.wide,"is-taller":t.taller,"is-thinner":t.thinner,"is-circle":t.circle}],attrs:{type:t.nativeType,disabled:t.disabled||t.loading,to:t.to}},"component",t.$attrs,!1),t.$listeners),[t.icon?r("CIcon",t._b({staticClass:"icon",attrs:{type:t.icon}},"CIcon",{size:t.iconSize,...t.iconProps},!1)):t._e(),t.iconLeft?r("CIcon",t._b({staticClass:"icon",attrs:{type:t.iconLeft}},"CIcon",{size:t.iconSize,...t.iconProps},!1)):t._e(),t.label?r("span",[t._v(t._s(t.label))]):t.$slots.default?r("span",[t._t("default")],2):t._e(),t.iconRight||t.dropdownIcon?r("CIcon",t._b({staticClass:"icon",class:{"icon-right-absolute":t.dropdownIcon},attrs:{type:t.iconRight||"chevron-up-down"}},"CIcon",{size:t.iconSize,...t.iconProps},!1)):t._e()],1)},E0e=[],$0e=he(S0e,T0e,E0e,!1,null,null);const bp=$0e.exports,V4={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:{type:String,default:"primary"},disabled:Boolean,required:Boolean,name:String,size:{type:String,default:"default"}},data(){return{newValue:this.value}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n)}}},watch:{value(n){this.newValue=n}},methods:{focus(){this.$refs.input.focus()}}},A0e={name:"CCheckbox",mixins:[V4],props:{indeterminate:Boolean,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1},inverted:Boolean}};var O0e=function(){var t=this,r=t._self._c;return r("label",{ref:"label",staticClass:"c-checkbox checkbox",class:[`is-${t.size}`,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.label.click())}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue,type:"checkbox"},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(i){i.stopPropagation()},change:function(i){var a=t.computedValue,o=i.target,s=o.checked?t.trueValue:t.falseValue;if(Array.isArray(a)){var c=t.nativeValue,l=t._i(a,c);o.checked?l<0&&(t.computedValue=a.concat([c])):l>-1&&(t.computedValue=a.slice(0,l).concat(a.slice(l+1)))}else t.computedValue=s}}}),r("span",{staticClass:"check",class:[`is-${t.type}`,{"is-inverted":t.inverted}]},[r("svg",{attrs:{viewBox:"0 0 30 30"}},[r("polyline",{attrs:{points:"21 8 12 20 7 15"}})])]),t.$slots.default?r("span",{staticClass:"control-label"},[t._t("default")],2):t._e()])},D0e=[],M0e=he(A0e,O0e,D0e,!1,null,null);const Tu=M0e.exports,U4={props:{size:String,expanded:Boolean,loading:Boolean,rounded:Boolean,icon:String,iconPack:String,autocomplete:String,maxlength:[Number,String],useHtml5Validation:{type:Boolean,default:()=>!1},validationMessage:String},data(){return{isValid:!0,isFocused:!1,newIconPack:this.iconPack||""}},computed:{parentField(){let n=this.$parent;for(let t=0;t<3;t++)n&&!n.$data._isField&&(n=n.$parent);return n},statusType(){if(this.parentField&&this.parentField.newType){if(typeof this.parentField.newType=="string")return this.parentField.newType;for(const n in this.parentField.newType)if(this.parentField.newType[n])return n}},statusMessage(){if(this.parentField)return this.parentField.newMessage},iconSize(){switch(this.size){case"is-small":return this.size;case"is-medium":return;case"is-large":return this.newIconPack==="mdi"?"is-medium":""}}},methods:{focus(){this.$data._elementRef!==void 0&&this.$nextTick(()=>{const n=this.$el.querySelector(this.$data._elementRef);n&&n.focus()})},blur(){this.$nextTick(()=>{const n=this.$el.querySelector(this.$data._elementRef);n&&n.blur()})},onBlur(n){this.isFocused=!1,this.$emit("blur",n),this.checkHtml5Validity()},onFocus(n){this.isFocused=!0,this.$emit("focus",n)},getElement(){return this.$el.querySelector(this.$data._elementRef)},setInvalid(){const n="is-danger",t=this.validationMessage||this.getElement().validationMessage;this.setValidity(n,t)},setValidity(n,t){this.$nextTick(()=>{this.parentField&&(this.parentField.type||(this.parentField.newType=n),this.parentField.message||(this.parentField.newMessage=t))})},checkHtml5Validity(){if(this.useHtml5Validation&&this.$refs[this.$data._elementRef]!==void 0&&this.getElement()!==null)return this.getElement().checkValidity()?(this.setValidity(null,null),this.isValid=!0):(this.setInvalid(),this.isValid=!1),this.isValid}}},P0e={name:"CInput",components:{CIcon:Dm},mixins:[U4],inheritAttrs:!1,props:{value:{type:[Number,String],default:""},type:{type:String,default:"text"},passwordReveal:Boolean,iconClickable:Boolean,hasCounter:{type:Boolean,default:()=>!0},customClass:{type:String,default:""},iconRight:{type:String,default:""},iconRightClickable:Boolean,filled:Boolean,expanded:Boolean,autoResize:Boolean,reset:Boolean,static:Boolean,iconProps:{type:Object,default:()=>({})}},data(){return{newValue:this.value,newType:this.type,newAutocomplete:this.autocomplete||"on",isPasswordVisible:!1,_elementRef:this.type==="textarea"?"textarea":"input",inputSuffixOffset:null}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n),!this.isValid&&this.checkHtml5Validity()}},rootClasses(){return[this.iconPosition,`is-${this.size}`,{"is-expanded":this.expanded,"is-loading":this.loading,"is-clearfix":!this.hasMessage}]},inputClasses(){return[this.statusType,`is-${this.size}`,{"is-rounded":this.rounded,"is-filled":this.filled,"is-reset":this.reset,"is-static":this.static}]},hasIconRight(){return this.passwordReveal||this.loading||this.statusTypeIcon||this.iconRight},rightIcon(){return this.passwordReveal?this.passwordVisibleIcon:this.statusTypeIcon?this.statusTypeIcon:this.iconRight},rightIconType(){return this.passwordReveal?"is-primary":this.statusTypeIcon?this.statusType:null},iconPosition(){return this.icon&&this.hasIconRight?"has-icons-left has-icons-right":!this.icon&&this.hasIconRight?"has-icons-right":this.icon?"has-icons-left":""},statusTypeIcon(){switch(this.statusType){case"is-success":return"check";case"is-danger":return"alert-triangle";case"is-info":return"information";case"is-warning":return"alert";default:return""}},statusTypeIconColor(){switch(this.statusType){case"is-success":return"text-green-500";case"is-danger":return"text-red-500";case"is-info":return"text-blue-500";case"is-warning":return"text-orange-500";default:return""}},hasMessage(){return!!this.statusMessage},passwordVisibleIcon(){return this.isPasswordVisible?"eye-off":"eye"},valueLength(){return typeof this.computedValue=="string"?this.computedValue.length:typeof this.computedValue=="number"?this.computedValue.toString().length:0}},watch:{value(n){this.newValue=n}},mounted(){this.type==="textarea"&&this.autoResize&&this.$refs.textarea.scrollHeight!==0&&this.$nextTick(()=>{this.$refs.textarea.setAttribute("style",`height: ${this.$refs.textarea.scrollHeight}px`)}),this.$slots.suffix&&(this.inputSuffixOffset=this.calcInputSuffixOffset())},methods:{togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible,this.newType=this.isPasswordVisible?"text":"password",this.$nextTick(()=>{this.$refs[this.$data._elementRef].focus()})},onInput(n){n.target&&(this.computedValue=n.target.value),this.$nextTick(()=>{n.target&&this.autoResize&&this.type==="textarea"&&this.resize(n)})},iconClick(n,t){this.$emit(n,t),this.$nextTick(()=>{this.$refs[this.$data._elementRef].focus()})},rightIconClick(n){this.passwordReveal?this.togglePasswordVisibility():this.iconRightClickable&&this.iconClick("icon-right-click",n)},resize({target:n}){n.style.height="1px",n.style.height=`${n.scrollHeight}px`},calcInputSuffixOffset(){return this.$slots.suffix?{paddingRight:`${this.$el.querySelector(".suffix").offsetWidth+10}px`}:null}}};var I0e=function(){var t=this,r=t._self._c;return r("div",{staticClass:"control",class:t.rootClasses},[t.type!=="textarea"?r("input",t._b({ref:"input",staticClass:"input",class:[t.inputClasses,t.customClass],style:[t.inputSuffixOffset],attrs:{type:t.newType,autocomplete:t.newAutocomplete,maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus,keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;t.isFocused}}},"input",t.$attrs,!1)):r("textarea",t._b({ref:"textarea",staticClass:"textarea",class:[t.inputClasses,t.customClass,{autosize:t.autoResize}],attrs:{maxlength:t.maxlength},domProps:{value:t.computedValue},on:{input:t.onInput,blur:t.onBlur,focus:t.onFocus,keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;t.isFocused}}},"textarea",t.$attrs,!1)),t._v(" "),t.icon?r("div",{staticClass:"is-left icon",class:{"is-clickable":t.iconClickable},on:{click:function(i){return t.iconClick("icon-click",i)}}},[r("CIcon",t._b({attrs:{type:t.icon}},"CIcon",{size:t.iconSize,...t.iconProps},!1))],1):t._e(),!t.loading&&t.hasIconRight?r("div",{staticClass:"is-right icon",class:{"is-clickable":t.passwordReveal||t.iconRightClickable},on:{click:t.rightIconClick}},[r("CIcon",t._b({class:t.statusTypeIconColor,attrs:{type:t.rightIcon}},"CIcon",{size:t.iconSize,...t.iconProps},!1))],1):t._e(),t.$slots.suffix?r("div",{staticClass:"suffix"},[t._t("suffix")],2):t._e()])},R0e=[],L0e=he(P0e,I0e,R0e,!1,null,"22ce7045");const Ws=L0e.exports;class F0e{constructor(){Dn(this,"id","directive-name");this.store=null,this.isInitialized=!1}install(t,r){this.isInitialized||(t.directive(this.id,this._getDirective()),this.load(t,r),this.isInitialized=!0)}load(t,r){}bind(...t){this.update(...t)}inserted(){}update(t,r,i,a){}componentUpdated(t,r,i,a){}unbind(){}_getDirective(){return{bind:this.bind.bind(this),update:this.update.bind(this),inserted:this.inserted.bind(this),componentUpdated:this.componentUpdated.bind(this),unbind:this.unbind.bind(this)}}}class N0e extends F0e{constructor(){super(...arguments);Dn(this,"id","click-outside");Dn(this,"HANDLER","_vue_clickaway_handler")}bind(r,i,a){this.unbind(r);const o=a.context,s=i.value;if(typeof s!="function"){Je.environment!=="production"&&Be.util.warn(`v-${i.name}="${i.expression}" expects a function value, got ${s}`);return}let c=!1;setTimeout(()=>{c=!0},0),r[this.HANDLER]=function(u){const d=u.path||(u.composedPath?u.composedPath():void 0);return c&&(d?d.indexOf(r)<0:!r.contains(u.target))?s.call(o,u):!1},document.documentElement.addEventListener("click",r[this.HANDLER],!1)}unbind(r){document.documentElement.removeEventListener("click",r[this.HANDLER],!1),delete r[this.HANDLER]}}const B0e=new N0e;class Pm extends Error{constructor(r={}){super(r);Dn(this,"isCustom",!0);Dn(this,"code",null);Dn(this,"httpStatusCode",null);Dn(this,"payload",{code:null,fallbackCode:null,string:null,object:null,objectId:null,action:null,actionPayload:null,retries:0,axios:null,showMessage:!0});typeof r.stack=="string"&&(this.stack=r.stack.replace(/.*\n/i,`${this.constructor.name}: ${r.message}
222
- `))}add(r){return this.payload={...this.payload,...r},this}getPayload(){return this.payload}setErrorCodeFromResponse(){const{data:r,status:i}=this.getPayload().axios||{};if(!r&&!i)return;const{errorCode:a}=r||{};a&&this.add({code:a}),i&&(this.httpStatusCode=i)}setMessageFromResponse(){const{data:r}=this.getPayload().axios||{};if(!r)return!1;const{message:i}=r||{};return i?(this.message=i,!0):!1}}class kM extends Pm{constructor(t){if(super(t),this.name="NotFoundError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse()}}class SM extends Pm{constructor(t){if(super(t),this.name="ForbiddenError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class TM extends Pm{constructor(t){if(super(t),this.name="ValidationError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class EM extends Pm{constructor(t){if(super(t),this.name="NetworkError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{config:r}=t;this.add({axios:r}),this.code="ECONNREFUSED"}}class H4 extends Pm{constructor(t){if(super(t),this.name="GeneralError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}const $M=Object.freeze(Object.defineProperty({__proto__:null,ForbiddenError:SM,GeneralError:H4,NetworkError:EM,NotFoundError:kM,ValidationError:TM},Symbol.toStringTag,{value:"Module"}));var j0e=T4,z0e=1,V0e=4;function U0e(n){return j0e(n,z0e|V0e)}var H0e=U0e;const Gs=un(H0e),W0e=n=>{const t=Object.keys(n);let r="";return t.forEach(i=>{const a=typeof n[i]=="object",o=a&&n[i].length>=0;a||(r+=`${i}=${n[i]}&`),a&&o&&n[i].forEach(s=>{r+=`${i}=${s}&`})}),r&&r.slice(0,-1)},AM=n=>{W4.push(n)},G0e=n=>{W4.map(t=>t(n))};function OM(n=""){console.error("User should be logged out!!"),mt.removeItem("token"),mt.removeItem("tokenExpires"),mt.removeItem("refreshToken"),ur.trigger("user:unauthorized",{error:n})}let Im=!1,W4=[];const q0e=(n,{renewToken:t})=>{n.interceptors.request.use(r=>{const i=r;if(i.url.includes("/auth")||i.url.startsWith("/public/"))return i;const a=i.headers["X-TOKEN"];if(!a)return i;const o=mt.getItem("tokenExpires");if(a&&o){const s=new Date;s.setSeconds(s.getSeconds()+30);const c=new Date(o);if(s>c)return t(),new Promise(u=>{AM(d=>{i.headers["X-TOKEN"]=d,u(i)})})}return i},r=>Promise.reject(r))},Y0e=(n,{renewToken:t})=>{n.interceptors.response.use(r=>r,r=>{if(!r||!r.response)return Promise.reject(r);const{config:i,response:a}=r,{status:o,data:s}=a,{errorCode:c}=s,l=i;if(l.url.startsWith("/public/"))return Promise.reject(r);function u(){if(c===8001)return!0;const d=mt.getItem("tokenExpires");if(d){const p=new Date,f=new Date(d);return p>f}return!1}if(o===401&&l.headers["X-TOKEN"]&&u()&&!Im)return t(),new Promise(p=>{AM(f=>{l.headers["X-TOKEN"]=f,p(en(l))})});if(o===401&&typeof c>"u"){if(l.url.includes("auth/companyUser")&&!l.headers["X-TOKEN"])return Promise.reject(r);if(l.url.includes("auth/actionlink")&&!l.headers["X-TOKEN"])return Promise.reject(r);OM(r==null?void 0:r.message)}return Promise.reject(r)})},DM=n=>(vv(n.data),n),K0e=n=>{n.interceptors.response.use(DM,t=>{const{response:r,config:i}=t;if(!r)throw new EM(t);if(Object.prototype.hasOwnProperty.call(i,"errorHandle")&&i.errorHandle===!1)return Promise.reject(t);const{status:a}=r;switch(a){case 404:throw new kM(t);case 401:throw new SM(t);case 412:throw new TM(t);default:throw new H4(t)}})},Z0e=n=>{n.interceptors.response.use(t=>{var r,i;if((i=(r=t.config)==null?void 0:r.url)!=null&&i.includes("document")&&t.config.method==="post"){const a=JSON.parse(t.config.data);a.__tempId&&(t.data.__tempId=a.__tempId)}return t},t=>Promise.reject(t))},J0e=n=>{n.interceptors.request.use(t=>{if(["post","put"].includes(t.method)&&t.data&&!(t.data instanceof FormData)){const r=Gs(t.data);D4(r),t.data=r}return t},t=>Promise.reject(t))},X0e=({baseUrl:n,withCredentials:t,cache:r})=>{const i=en.create({baseURL:n,timeout:2e4,adapter:r,withCredentials:t,paramsSerializer:p=>W0e(p)});i.defaults.headers["X-CLIENT"]="widget",i.defaults.headers["X-CLIENT-VERSION"]="0.13.2";const a=async(p,f,h=null,m={})=>{const g=f.startsWith("/public/"),y=mt.getItem("token");switch(y&&!g&&(i.defaults.headers["X-TOKEN"]=y),p){case"get":return i.get(f,m);case"post":return i.post(f,h,m);case"put":return i.put(f,h,m);case"delete":return i.delete(f,m);case"patch":return i.patch(f,h,m);default:throw new Error(`SendRequest failed as method: '${p}' is not implemented`)}},o=(p,f={})=>a("get",p,null,f),s=(p,f={},h={})=>a("put",p,f,h),c=(p,f,h={})=>a("post",p,f,h),l=(p,f={})=>a("delete",p,null,f),u=(p,f={})=>a("patch",p,null,f),d=async()=>{if(!Im)try{Im=!0;const p=mt.getItem("refreshToken"),f=await c("/auth/companyUser",{refreshToken:p});if(!f.data||!f.data.token)throw new Error("No token was defined in result");const{token:h,tokenExpires:m,refreshToken:g}=f.data;mt.setItem("token",h),mt.setItem("tokenExpires",m),g&&mt.setItem("refreshToken",g),Im=!1,G0e(h),W4=[]}catch(p){return console.error(p),OM(p==null?void 0:p.message)}finally{Im=!1}};return q0e(i,{renewToken:d}),Y0e(i,{renewToken:d}),DM(i),K0e(i),J0e(i),Z0e(i),{instance:i,get:o,put:s,post:c,del:l,patch:u,renewToken:d}},G4=new Map;function Q0e(n){if(typeof n>"u")throw new Error("Missing valid parameter url");if(typeof n!="string")throw new Error("Parameter url must be a string");const{data:t,cachedAt:r,expiresAt:i}=G4.get(n)||{};return Date.now()>r+6e4*30||i&&Date.now()>i?(G4.delete(n),null):t}const eve=async n=>{const{url:t,params:r={}}=n,i=Object.keys(r).map(s=>`${s}=${r[s]}`).join("&"),a=`${t}${i?`?${i}`:""}`;return Q0e(a),await en({...n,adapter:en.defaults.adapter})},wp={withCredentials:!0,baseUrl:Je.api.baseUrl},{get:xt,post:rn,put:Ur,patch:ns,del:qi,instance:t9t,renewToken:tve}=X0e({withCredentials:wp.withCredentials,baseUrl:wp.baseUrl,cache:eve});async function MM(n){const t=x1e(n);return xt(`/project${t}`,{saveCache:!0})}const nve=async(n,t={})=>xt("/project",n,{params:t}),rve=async(n,t={})=>xt(`/project/${n}`,{params:t,saveCache:!0}),ive=async(n,t,r={})=>Ur(`/project/${n}`,t,{params:r,invalidateCache:{type:"project",id:n}}),ave=async n=>ns(`/project/${n}`),ove=async(n,t={})=>qi(`/project/${n}`,{params:t,invalidateCache:{type:"project",id:n}}),sve=async()=>xt("/project/createDemo"),lve=()=>xt("/"),cve=async(n,t={})=>rn("/auth/actionlink",{token:n,...t}),uve=async n=>rn("/register",n),dve=async(n,t)=>rn("/companyUser/forgottenPassword/new",{password:n,resetPasswordToken:t}),pve=async n=>rn("/public/consent",n),fve=async n=>xt(`/projectFile/${n}`),hve=async n=>rn("/projectFile",n),mve=async(n,t)=>Ur(`/projectFile/${n}`,t),gve=async n=>qi(`/projectFile/${n}`),vve=async n=>ns(`/projectFile/${n}`),yve=async(n,t={})=>xt(`/projectNote/${n}`,{params:t}),bve=async(n,t={})=>rn("/projectNote",n,{params:t}),wve=async(n,t,r={})=>Ur(`/projectNote/${n}`,t,{params:r}),_ve=async n=>xt(`/file/${n}`),PM=async n=>rn("/file",n),xve=async(n,t)=>Ur(`/file/${n}`,t),Cve=async n=>qi(`/file/${n}`),kve=async n=>ns(`/file/${n}`),Sve=async(n={})=>xt("/article",{params:n}),Tve=async n=>xt(`/article/${n}`),Eve=async n=>rn("/article",n),$ve=async(n,t)=>Ur(`/article/${n}`,t),Ave=async n=>qi(`/article/${n}`),Ove=async n=>ns(`/article/${n}`),Dve=async n=>rn("/search",{type:"article",query:n}),Rm={get:async(n,t={})=>xt(n?`/unitType/${n}`:"/unitType",{params:t,saveCache:!0}),post:async(n,t={})=>rn("/unitType",n,{params:t}),put:async(n,t,r={})=>Ur(`/unitType/${n}`,t,{params:r,invalidateCache:{type:"unitType",id:n}}),delete:async(n,t={})=>qi(`/unitType/${n}`,{params:t,invalidateCache:{type:"unitType",id:n}})},Mve=async(n={})=>xt("/templateMessage",{params:n,saveCache:!0}),Pve=async(n,t={})=>xt(`/templateMessage/${n}`,{params:t,saveCache:!0}),Ive=async(n,t={})=>rn("/templateMessage",n,{params:t}),Rve=async(n,t,r={})=>Ur(`/templateMessage/${n}`,t,{params:r,invalidateCache:{type:"templateMessage",id:n}}),Lve=async(n,t={})=>qi(`/templateMessage/${n}`,{params:t,invalidateCache:{type:"templateMessage",id:n}}),Fve=async(n,t={})=>ns(`/templateMessage/${n}`,{params:t}),Nve=async(n={})=>xt("/endCustomer",{params:n}),Bve=async(n,t={})=>xt(`/endCustomer/${n}`,{params:t}),jve=async(n,t={})=>rn("/endCustomer",n,{params:t}),zve=async(n,t,r={})=>Ur(`/endCustomer/${n}`,t,{params:r}),Vve=async(n,t={})=>qi(`/endCustomer/${n}`,{params:t}),Uve=async(n,t={})=>ns(`/endCustomer/${n}`,{params:t}),Hve=async(n={})=>xt("/companyUser",{params:n,saveCache:!0}),Wve=async(n,t={})=>xt(`/companyUser/${n}`,{params:t,saveCache:!0}),Gve=async(n,t={})=>rn("/companyUser",n,{params:t}),qve=async(n,t,r={})=>Ur(`/companyUser/${n}`,t,{params:r,invalidateCache:{type:"companyUser",id:n}}),Yve=async(n,t={})=>qi(`/companyUser/${n}`,{params:t,invalidateCache:{type:"companyUser",id:n}}),Kve=async(n,t={})=>ns(`/companyUser/${n}`,{params:t}),IM={getPublic:async(n,t={})=>xt(`/public/companyUser/${n}`,{params:t}),getConnectedUsers:async(n={})=>xt("/companyUser/self/connectedUsers",{params:n}),getConnectedUserAuth:async(n,t={})=>xt(`/companyUser/self/connectedUsers/${n}/auth`,{params:t}),setConnectedUserDefault:async(n,t={})=>Ur(`/companyUser/self/connectedUsers/${n}/setDefaultAuth`,{params:t}),verifyEmail:async(n,t={})=>rn("/public/verifyEmail/companyUser",n,{params:t})},Zve=async(n,t=null,r={})=>Ur(`/companyAccount/accountType/${n}`,t,{params:r}),Jve=async(n={})=>xt("/companyAccount/getNumberOfManagers",{params:n}),Xve=async(n={})=>rn("/companyAccount/addUserLicenseInvoice",{},{params:n}),Qve=async(n,t={})=>xt(`/promotionCode/${n}/canUse`,{params:t}),eye=async(n,t={})=>xt("/promotionCode/inUse",{params:t}),Cv={product:async(n,t={})=>rn("/companyAccount/product",n,{params:t}),cancelAll:async(n={})=>qi("/companyAccount/subscription",{params:n}),getPrices:async(n={})=>xt("/companyAccount/price",{params:n}),getUpcomingInvoices:async(n={})=>xt("/companyAccount/upcomingInvoice",{params:n}),getPaymentHistory:async(n={})=>xt("/companyAccount/paymentHistory",{params:n}),putPaymentMethod:async(n,t={})=>Ur("/companyAccount/paymentMethod",n,{params:t}),putCustomer:async(n,t={})=>Ur("/companyAccount/customer",n,{params:t}),createCheckoutSession:async(n,t={})=>rn("/companyAccount/create-checkout-session",n,{params:t})},tye=async(n,t)=>rn(`/project/${n}/projectMember/${t}`,null,{invalidateCache:{type:"project",id:n}}),nye=async(n,t)=>qi(`/project/${n}/projectMember/${t}`,{invalidateCache:{type:"project",id:n}}),Yi={get:async(n,t={})=>xt(`/document/${n}`,{params:t,saveCache:!0}),getAll:async(n={})=>xt("/document",{params:n,saveCache:!0}),post:async(n,t={})=>rn("/document",n,{params:t}),send:async(n,t={},r={})=>rn(`/document/${n}/send`,t,{params:r,invalidateCache:{type:"document",id:n}}),clearAnswers:async(n,t={},r={})=>rn(`/document/${n}/clearAnswers`,t,{params:r,invalidateCache:{type:"document",id:n}}),put:async(n,t,r={})=>Ur(`/document/${n}`,t,{params:r,invalidateCache:{type:"document",id:n}}),delete:async(n,t={})=>qi(`/document/${n}`,{params:t,invalidateCache:{type:"document",id:n}}),patch:async(n,t={})=>ns(`/document/${n}`,{params:t}),validate:async(n,t={})=>rn("/documentValidate",n,{params:t})},Xl={get:async(n,t={})=>xt(n?`/template/${n}`:"/template",{params:t}),post:async(n,t={})=>rn("/template",n,{params:t}),put:async(n,t,r={})=>Ur(`/template/${n}`,t,{params:r}),delete:async(n,t={})=>qi(`/template/${n}`,{params:t}),patch:async(n,t={})=>ns(`/template/${n}`,{params:t})},q4={get:async(n={})=>xt("/templateGallery",{params:n})},rye={get:async(n,t={})=>xt(`/public/templateStat/${n}`,{params:t})},_p={get:async(n,t={})=>xt(`/public/document/${n}`,{params:t}),put:async(n,t,r={})=>Ur(`/public/document/${n}`,t,{headers:r}),answer:async(n,t,r={},i={})=>rn(`/public/document/${n}/answer`,t,{params:r,headers:i}),feedback:async(n,t,r={})=>rn(`/public/document/${n}/feedback`,t,{params:r})},RM={get:async(n,t={})=>xt(`/public/pdfJob/${n}`,{params:t}),addDocument:async(n,t={})=>xt(`/public/document/${n}/pdfJob/start`,{params:t})},LM={getDocuments:async(n={})=>{const t=mt.getItem("clientToken");return en.get(`${wp.baseUrl}/client/document`,{headers:{Authorization:t},params:n})},requestMagicLink:async(n,t={})=>en.post(`${wp.baseUrl}/client/requestMagicLink`,n,{params:t})},kv={get:async(n,t={})=>xt(`/public/company/${n}`,{params:t}),getCertificates:async(n,t={})=>xt(`/public/company/${n}/certificates`,{params:t}),getReferences:async(n,t={})=>xt(`/public/company/${n}/references`,{params:t})},iye={get:async(n,t={})=>xt(`${wp.baseUrl}/public/signature/${n}`,{params:t})},Y4={post:async(n,t={})=>rn("/voucher",n,{params:t}),canUse:async(n,t={})=>xt(`/voucher/${n}/canUse`,{params:t})},Ql={getAuthUrl:async(n,t={})=>xt("/extension/authUrl",{params:{...t,service:n}}),getPublicAuthUrl:async(n,t={})=>xt("/public/extension/authUrl",{params:{...t,service:n}}),install:async(n,t,r={})=>rn("/extension/install",t,{params:{...r,service:n}}),uninstall:async(n,t={})=>qi("/extension/uninstall",{params:{...t,service:n}}),suggestClients:async(n,t={})=>xt("/extension/suggestClients",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),signupWithCrm:async(n,t,r={})=>rn("/public/extension/register",t,{params:{...r,service:n}}),search:async(n,t={})=>xt("/extension/search",{params:{...t,service:n},saveCache:!0,cacheTtl:10}),getFields:async(n,t={})=>xt("/extension/fields",{params:{...t,service:n},saveCache:!0,cacheTtl:60}),getExternalReferenceDetails:async(n,t={})=>xt("/extension/externalReferenceDetails",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),settings:async(n,t={})=>xt("/extension/settings",{params:{...t,service:n}})},ii={get:xt,post:rn,put:Ur,del:qi,patch:ns,authData:wp,getProjects:MM};function aye(n){try{const t=`${n}=`,r=document.cookie.split(";");for(let i=0;i<r.length;i++){let a=r[i];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}}catch{}return null}const oye="disabledThirdParties",sye=["google","facebook","segment","logrocket","rollbar"];function lye(){let n=[];try{const t=JSON.parse(aye(oye));Array.isArray(t)&&(n=t)}catch{}return n.filter(t=>sye.includes(t))}var FM={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(Zt,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(c,l,(function(u){return o[u]}).bind(null,l));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=6)}([function(r,i,a){var o=a(12),s={};function c(E,T){return T===l(E)}function l(E){var T=typeof E;return T!=="object"?T:E?E instanceof Error?"error":{}.toString.call(E).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function u(E){return c(E,"function")}function d(E){var T=Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),A=RegExp("^"+T+"$");return p(E)&&A.test(E)}function p(E){var T=typeof E;return E!=null&&(T=="object"||T=="function")}function f(){var E=k();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(T){var A=(E+16*Math.random())%16|0;return E=Math.floor(E/16),(T==="x"?A:7&A|8).toString(16)})}var h={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function m(E,T){var A,$;try{A=s.stringify(E)}catch(I){if(T&&u(T))try{A=T(E)}catch(R){$=R}else $=I}return{error:$,value:A}}function g(E,T){return function(A,$){try{T(A,$)}catch(I){E.error(I)}}}function y(E){return function T(A,$){var I,R,Y,F={};try{for(R in A)(I=A[R])&&(c(I,"object")||c(I,"array"))?$.includes(I)?F[R]="Removed circular reference: "+l(I):((Y=$.slice()).push(I),F[R]=T(I,Y)):F[R]=I}catch(D){F="Failed cloning custom data: "+D.message}return F}(E,[E])}var b=["log","network","dom","navigation","error","manual"],_=["critical","error","warning","info","debug"];function S(E,T){for(var A=0;A<E.length;++A)if(E[A]===T)return!0;return!1}function k(){return Date.now?+Date.now():+new Date}r.exports={addParamsAndAccessTokenToPath:function(E,T,A){(A=A||{}).access_token=E;var $,I=[];for($ in A)Object.prototype.hasOwnProperty.call(A,$)&&I.push([$,A[$]].join("="));var R="?"+I.sort().join("&");(T=T||{}).path=T.path||"";var Y,F=T.path.indexOf("?"),D=T.path.indexOf("#");F!==-1&&(D===-1||D>F)?(Y=T.path,T.path=Y.substring(0,F)+R+"&"+Y.substring(F+1)):D!==-1?(Y=T.path,T.path=Y.substring(0,D)+R+Y.substring(D)):T.path=T.path+R},createItem:function(E,T,A,$,I){for(var R,Y,F,D,B,z,K=[],te=[],j=0,M=E.length;j<M;++j){var q=l(z=E[j]);switch(te.push(q),q){case"undefined":break;case"string":R?K.push(z):R=z;break;case"function":D=g(T,z);break;case"date":K.push(z);break;case"error":case"domexception":case"exception":Y?K.push(z):Y=z;break;case"object":case"array":if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}if($&&q==="object"&&!B){for(var G=0,ee=$.length;G<ee;++G)if(z[$[G]]!==void 0){B=z;break}if(B)break}F?K.push(z):F=z;break;default:if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}K.push(z)}}F&&(F=y(F)),K.length>0&&(F||(F=y({})),F.extraArgs=y(K));var ae={message:R,err:Y,custom:F,timestamp:k(),callback:D,notifier:A,diagnostic:{},uuid:f()};return function(ve,ye){ye&&ye.level!==void 0&&(ve.level=ye.level,delete ye.level),ye&&ye.skipFrames!==void 0&&(ve.skipFrames=ye.skipFrames,delete ye.skipFrames)}(ae,F),$&&B&&(ae.request=B),I&&(ae.lambdaContext=I),ae._originalArgs=E,ae.diagnostic.original_arg_types=te,ae},addErrorContext:function(E,T){var A=E.data.custom||{},$=!1;try{for(var I=0;I<T.length;++I)T[I].hasOwnProperty("rollbarContext")&&(A=o(A,y(T[I].rollbarContext)),$=!0);$&&(E.data.custom=A)}catch(R){E.diagnostic.error_context="Failed: "+R.message}},createTelemetryEvent:function(E){for(var T,A,$,I,R=0,Y=E.length;R<Y;++R)switch(l(I=E[R])){case"string":!T&&S(b,I)?T=I:!$&&S(_,I)&&($=I);break;case"object":A=I}return{type:T||"manual",metadata:A||{},level:$}},filterIp:function(E,T){if(E&&E.user_ip&&T!==!0){var A=E.user_ip;if(T)try{var $;if(A.indexOf(".")!==-1)($=A.split(".")).pop(),$.push("0"),A=$.join(".");else if(A.indexOf(":")!==-1){if(($=A.split(":")).length>2){var I=$.slice(0,3),R=I[2].indexOf("/");R!==-1&&(I[2]=I[2].substring(0,R)),A=I.concat("0000:0000:0000:0000:0000").join(":")}}else A=null}catch{A=null}else A=null;E.user_ip=A}},formatArgsAsString:function(E){var T,A,$,I=[];for(T=0,A=E.length;T<A;++T){switch(l($=E[T])){case"object":($=($=m($)).error||$.value).length>500&&($=$.substr(0,497)+"...");break;case"null":$="null";break;case"undefined":$="undefined";break;case"symbol":$=$.toString()}I.push($)}return I.join(" ")},formatUrl:function(E,T){if(!(T=T||E.protocol)&&E.port&&(E.port===80?T="http:":E.port===443&&(T="https:")),T=T||"https:",!E.hostname)return null;var A=T+"//"+E.hostname;return E.port&&(A=A+":"+E.port),E.path&&(A+=E.path),A},get:function(E,T){if(E){var A=T.split("."),$=E;try{for(var I=0,R=A.length;I<R;++I)$=$[A[I]]}catch{$=void 0}return $}},handleOptions:function(E,T,A,$){var I=o(E,T,A);return I=function(R,Y){return R.hostWhiteList&&!R.hostSafeList&&(R.hostSafeList=R.hostWhiteList,R.hostWhiteList=void 0,Y&&Y.log("hostWhiteList is deprecated. Use hostSafeList.")),R.hostBlackList&&!R.hostBlockList&&(R.hostBlockList=R.hostBlackList,R.hostBlackList=void 0,Y&&Y.log("hostBlackList is deprecated. Use hostBlockList.")),R}(I,$),!T||T.overwriteScrubFields||T.scrubFields&&(I.scrubFields=(E.scrubFields||[]).concat(T.scrubFields)),I},isError:function(E){return c(E,"error")||c(E,"exception")},isFiniteNumber:function(E){return Number.isFinite(E)},isFunction:u,isIterable:function(E){var T=l(E);return T==="object"||T==="array"},isNativeFunction:d,isObject:p,isString:function(E){return typeof E=="string"||E instanceof String},isType:c,isPromise:function(E){return p(E)&&c(E.then,"function")},jsonParse:function(E){var T,A;try{T=s.parse(E)}catch($){A=$}return{error:A,value:T}},LEVELS:{debug:0,info:1,warning:2,error:3,critical:4},makeUnhandledStackInfo:function(E,T,A,$,I,R,Y,F){var D={url:T||"",line:A,column:$};D.func=F.guessFunctionName(D.url,D.line),D.context=F.gatherContext(D.url,D.line);var B=typeof document<"u"&&document&&document.location&&document.location.href,z=typeof window<"u"&&window&&window.navigator&&window.navigator.userAgent;return{mode:R,message:I?String(I):E||Y,url:B,stack:[D],useragent:z}},merge:o,now:k,redact:function(){return"********"},RollbarJSON:s,sanitizeUrl:function(E){var T=function(A){if(c(A,"string")){for(var $=h,I=$.parser[$.strictMode?"strict":"loose"].exec(A),R={},Y=0,F=$.key.length;Y<F;++Y)R[$.key[Y]]=I[Y]||"";return R[$.q.name]={},R[$.key[12]].replace($.q.parser,function(D,B,z){B&&(R[$.q.name][B]=z)}),R}}(E);return T?(T.anchor===""&&(T.source=T.source.replace("#","")),E=T.source.replace("?"+T.query,"")):"(unknown)"},set:function(E,T,A){if(E){var $=T.split("."),I=$.length;if(!(I<1))if(I!==1)try{for(var R=E[$[0]]||{},Y=R,F=1;F<I-1;++F)R[$[F]]=R[$[F]]||{},R=R[$[F]];R[$[I-1]]=A,E[$[0]]=Y}catch{return}else E[$[0]]=A}},setupJSON:function(E){u(s.stringify)&&u(s.parse)||(c(JSON,"undefined")||(E?(d(JSON.stringify)&&(s.stringify=JSON.stringify),d(JSON.parse)&&(s.parse=JSON.parse)):(u(JSON.stringify)&&(s.stringify=JSON.stringify),u(JSON.parse)&&(s.parse=JSON.parse))),u(s.stringify)&&u(s.parse)||E&&E(s))},stringify:m,maxByteSize:function(E){for(var T=0,A=E.length,$=0;$<A;$++){var I=E.charCodeAt($);I<128?T+=1:I<2048?T+=2:I<65536&&(T+=3)}return T},typeName:l,uuid4:f}},function(r,i,a){a(17);var o=a(18),s=a(0);r.exports={error:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.error(s.formatArgsAsString(c)):console.error.apply(console,c)},info:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.info(s.formatArgsAsString(c)):console.info.apply(console,c)},log:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.log(s.formatArgsAsString(c)):console.log.apply(console,c)}}},function(r,i,a){r.exports={parse:function(o){var s,c,l={protocol:null,auth:null,host:null,path:null,hash:null,href:o,hostname:null,port:null,pathname:null,search:null,query:null};if((s=o.indexOf("//"))!==-1?(l.protocol=o.substring(0,s),c=s+2):c=0,(s=o.indexOf("@",c))!==-1&&(l.auth=o.substring(c,s),c=s+1),(s=o.indexOf("/",c))===-1){if((s=o.indexOf("?",c))===-1)return(s=o.indexOf("#",c))===-1?l.host=o.substring(c):(l.host=o.substring(c,s),l.hash=o.substring(s)),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),l;l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s}else l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s;if((s=o.indexOf("#",c))===-1?l.path=o.substring(c):(l.path=o.substring(c,s),l.hash=o.substring(s)),l.path){var u=l.path.split("?");l.pathname=u[0],l.query=u[1],l.search=l.query?"?"+l.query:null}return l}}},function(r,i,a){var o=a(24),s=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function c(){return null}function l(p){var f={};return f._stackFrame=p,f.url=p.fileName,f.line=p.lineNumber,f.func=p.functionName,f.column=p.columnNumber,f.args=p.args,f.context=null,f}function u(p,f){return{stack:function(){var h=[];f=f||0;try{h=o.parse(p)}catch{h=[]}for(var m=[],g=f;g<h.length;g++)m.push(new l(h[g]));return m}(),message:p.message,name:d(p),rawStack:p.stack,rawException:p}}function d(p){var f=p.name&&p.name.length&&p.name,h=p.constructor.name&&p.constructor.name.length&&p.constructor.name;return f&&h?f==="Error"?h:f:f||h}r.exports={guessFunctionName:function(){return"?"},guessErrorClass:function(p){if(!p||!p.match)return["Unknown error. There was no error message to display.",""];var f=p.match(s),h="(unknown)";return f&&(h=f[f.length-1],p=(p=p.replace((f[f.length-2]||"")+h+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[h,p]},gatherContext:c,parse:function(p,f){var h=p;if(h.nested||h.cause){for(var m=[];h;)m.push(new u(h,f)),h=h.nested||h.cause,f=0;return m[0].traceChain=m,m[0]}return new u(h,f)},Stack:u,Frame:l}},function(r,i,a){var o=a(0),s=a(5);function c(l,u){var d=u.split("."),p=d.length-1;try{for(var f=0;f<=p;++f)f<p?l=l[d[f]]:l[d[f]]=o.redact()}catch{}}r.exports=function(l,u,d){if(u=u||[],d)for(var p=0;p<d.length;++p)c(l,d[p]);var f=function(g){for(var y,b=[],_=0;_<g.length;++_)y="^\\[?(%5[bB])?"+g[_]+"\\[?(%5[bB])?\\]?(%5[dD])?$",b.push(new RegExp(y,"i"));return b}(u),h=function(g){for(var y,b=[],_=0;_<g.length;++_)y="\\[?(%5[bB])?"+g[_]+"\\[?(%5[bB])?\\]?(%5[dD])?",b.push(new RegExp("("+y+"=)([^&\\n]+)","igm"));return b}(u);function m(g,y){return y+o.redact()}return s(l,function g(y,b,_){var S=function(k,E){var T;for(T=0;T<f.length;++T)if(f[T].test(k)){E=o.redact();break}return E}(y,b);return S===b?o.isType(b,"object")||o.isType(b,"array")?s(b,g,_):function(k){var E;if(o.isType(k,"string"))for(E=0;E<h.length;++E)k=k.replace(h[E],m);return k}(S):S})}},function(r,i,a){var o=a(0);r.exports=function(s,c,l){var u,d,p,f,h=o.isType(s,"object"),m=o.isType(s,"array"),g=[];if(l=l||{obj:[],mapped:[]},h){if(f=l.obj.indexOf(s),h&&f!==-1)return l.mapped[f]||l.obj[f];l.obj.push(s),f=l.obj.length-1}if(h)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&g.push(u);else if(m)for(p=0;p<s.length;++p)g.push(p);var y=h?{}:[],b=!0;for(p=0;p<g.length;++p)d=s[u=g[p]],y[u]=c(u,d,l),b=b&&y[u]===s[u];return h&&!b&&(l.mapped[f]=y),b?s:y}},function(r,i,a){r.exports=a(7)},function(r,i,a){var o=a(8),s=typeof window<"u"&&window._rollbarConfig,c=s&&s.globalAlias||"Rollbar",l=typeof window<"u"&&window[c]&&typeof window[c].shimId=="function"&&window[c].shimId()!==void 0;if(typeof window>"u"||window._rollbarStartTime||(window._rollbarStartTime=new Date().getTime()),!l&&s){var u=new o(s);window[c]=u}else typeof window<"u"?(window.rollbar=o,window._rollbarDidLoad=!0):typeof self<"u"&&(self.rollbar=o,self._rollbarDidLoad=!0);r.exports=o},function(r,i,a){var o=a(9),s=a(31),c=a(32),l=a(35),u=a(37),d=a(4),p=a(38);o.setComponents({telemeter:s,instrumenter:c,polyfillJSON:l,wrapGlobals:u,scrub:d,truncation:p}),r.exports=o},function(r,i,a){var o=a(10),s=a(0),c=a(15),l=a(1),u=a(19),d=a(20),p=a(2),f=a(23),h=a(26),m=a(27),g=a(28),y=a(3);function b(I,R){this.options=s.handleOptions($,I,null,l),this.options._configuredOptions=I;var Y=this.components.telemeter,F=this.components.instrumenter,D=this.components.polyfillJSON;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var B=this.components.truncation,z=new d(B),K=new c(this.options,z,p,B);Y&&(this.telemeter=new Y(this.options)),this.client=R||new o(this.options,K,l,this.telemeter,"browser");var te=E(),j=typeof document<"u"&&document;this.isChrome=te.chrome&&te.chrome.runtime,this.anonymousErrorsPending=0,function(M,q,G){M.addTransform(f.handleDomException).addTransform(f.handleItemWithError).addTransform(f.ensureItemHasSomethingToSay).addTransform(f.addBaseInfo).addTransform(f.addRequestInfo(G)).addTransform(f.addClientInfo(G)).addTransform(f.addPluginInfo(G)).addTransform(f.addBody).addTransform(h.addMessageWithError).addTransform(h.addTelemetryData).addTransform(h.addConfigToPayload).addTransform(f.addScrubber(q.scrub)).addTransform(h.addPayloadOptions).addTransform(h.userTransform(l)).addTransform(h.addConfiguredOptions).addTransform(h.addDiagnosticKeys).addTransform(h.itemToPayload)}(this.client.notifier,this,te),this.client.queue.addPredicate(g.checkLevel).addPredicate(m.checkIgnore).addPredicate(g.userCheckIgnore(l)).addPredicate(g.urlIsNotBlockListed(l)).addPredicate(g.urlIsSafeListed(l)).addPredicate(g.messageIsIgnored(l)),this.setupUnhandledCapture(),F&&(this.instrumenter=new F(this.options,this.client.telemeter,this,te,j),this.instrumenter.instrument()),s.setupJSON(D),this.rollbar=this}var _=null;function S(I){var R="Rollbar is not initialized";l.error(R),I&&I(new Error(R))}function k(I){for(var R=0,Y=I.length;R<Y;++R)if(s.isFunction(I[R]))return I[R]}function E(){return typeof window<"u"&&window||typeof self<"u"&&self}b.init=function(I,R){return _?_.global(I).configure(I):_=new b(I,R)},b.prototype.components={},b.setComponents=function(I){b.prototype.components=I},b.prototype.global=function(I){return this.client.global(I),this},b.global=function(I){if(_)return _.global(I);S()},b.prototype.configure=function(I,R){var Y=this.options,F={};return R&&(F={payload:R}),this.options=s.handleOptions(Y,I,F,l),this.options._configuredOptions=s.handleOptions(Y._configuredOptions,I,F),this.client.configure(this.options,R),this.instrumenter&&this.instrumenter.configure(this.options),this.setupUnhandledCapture(),this},b.configure=function(I,R){if(_)return _.configure(I,R);S()},b.prototype.lastError=function(){return this.client.lastError},b.lastError=function(){if(_)return _.lastError();S()},b.prototype.log=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.log(I),{uuid:R}},b.log=function(){if(_)return _.log.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.debug=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.debug(I),{uuid:R}},b.debug=function(){if(_)return _.debug.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.info=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.info(I),{uuid:R}},b.info=function(){if(_)return _.info.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.warn=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warn(I),{uuid:R}},b.warn=function(){if(_)return _.warn.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.warning=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warning(I),{uuid:R}},b.warning=function(){if(_)return _.warning.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.error=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.error(I),{uuid:R}},b.error=function(){if(_)return _.error.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.critical=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.critical(I),{uuid:R}},b.critical=function(){if(_)return _.critical.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.buildJsonPayload=function(I){return this.client.buildJsonPayload(I)},b.buildJsonPayload=function(){if(_)return _.buildJsonPayload.apply(_,arguments);S()},b.prototype.sendJsonPayload=function(I){return this.client.sendJsonPayload(I)},b.sendJsonPayload=function(){if(_)return _.sendJsonPayload.apply(_,arguments);S()},b.prototype.setupUnhandledCapture=function(){var I=E();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(u.captureUncaughtExceptions(I,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(I,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(u.captureUnhandledRejections(I,this),this.unhandledRejectionsInitialized=!0)},b.prototype.handleUncaughtException=function(I,R,Y,F,D,B){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&D===null&&R==="")return"anonymous";var z,K=s.makeUnhandledStackInfo(I,R,Y,F,D,"onerror","uncaught exception",y);s.isError(D)?(z=this._createItem([I,D,B]))._unhandledStackInfo=K:s.isError(R)?(z=this._createItem([I,R,B]))._unhandledStackInfo=K:(z=this._createItem([I,B])).stackInfo=K,z.level=this.options.uncaughtErrorLevel,z._isUncaught=!0,this.client.log(z)}},b.prototype.handleAnonymousErrors=function(){if(this.options.inspectAnonymousErrors&&this.isChrome){var I=this;try{Error.prepareStackTrace=function(R,Y){if(I.options.inspectAnonymousErrors&&I.anonymousErrorsPending){if(I.anonymousErrorsPending-=1,!R)return;R._isAnonymous=!0,I.handleUncaughtException(R.message,null,null,null,R)}return R.stack}}catch(R){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",R)}}},b.prototype.handleUnhandledRejection=function(I,R){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var Y="unhandled rejection was null or undefined!";if(I)if(I.message)Y=I.message;else{var F=s.stringify(I);F.value&&(Y=F.value)}var D,B=I&&I._rollbarContext||R&&R._rollbarContext;s.isError(I)?D=this._createItem([Y,I,B]):(D=this._createItem([Y,I,B])).stackInfo=s.makeUnhandledStackInfo(Y,"",0,0,null,"unhandledrejection","",y),D.level=this.options.uncaughtErrorLevel,D._isUncaught=!0,D._originalArgs=D._originalArgs||[],D._originalArgs.push(R),this.client.log(D)}},b.prototype.wrap=function(I,R,Y){try{var F;if(F=s.isFunction(R)?R:function(){return R||{}},!s.isFunction(I)||I._isWrap)return I;if(!I._rollbar_wrapped&&(I._rollbar_wrapped=function(){Y&&s.isFunction(Y)&&Y.apply(this,arguments);try{return I.apply(this,arguments)}catch(z){var B=z;throw B&&window._rollbarWrappedError!==B&&(s.isType(B,"string")&&(B=new String(B)),B._rollbarContext=F()||{},B._rollbarContext._wrappedSource=I.toString(),window._rollbarWrappedError=B),B}},I._rollbar_wrapped._isWrap=!0,I.hasOwnProperty))for(var D in I)I.hasOwnProperty(D)&&D!=="_rollbar_wrapped"&&(I._rollbar_wrapped[D]=I[D]);return I._rollbar_wrapped}catch{return I}},b.wrap=function(I,R){if(_)return _.wrap(I,R);S()},b.prototype.captureEvent=function(){var I=s.createTelemetryEvent(arguments);return this.client.captureEvent(I.type,I.metadata,I.level)},b.captureEvent=function(){if(_)return _.captureEvent.apply(_,arguments);S()},b.prototype.captureDomContentLoaded=function(I,R){return R||(R=new Date),this.client.captureDomContentLoaded(R)},b.prototype.captureLoad=function(I,R){return R||(R=new Date),this.client.captureLoad(R)},b.prototype.loadFull=function(){l.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")},b.prototype._createItem=function(I){return s.createItem(I,l,this)};var T=a(29),A=a(30),$={version:T.version,scrubFields:A.scrubFields,logLevel:T.logLevel,reportLevel:T.reportLevel,uncaughtErrorLevel:T.uncaughtErrorLevel,endpoint:T.endpoint,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1};r.exports=b},function(r,i,a){var o=a(11),s=a(13),c=a(14),l=a(0);function u(f,h,m,g,y){this.options=l.merge(f),this.logger=m,u.rateLimiter.configureGlobal(this.options),u.rateLimiter.setPlatformOptions(y,this.options),this.api=h,this.queue=new s(u.rateLimiter,h,m,this.options);var b=this.options.tracer||null;p(b)?(this.tracer=b,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new c(this.queue,this.options),this.telemeter=g,d(f),this.lastError=null,this.lastErrorHash="none"}function d(f){f.stackTraceLimit&&(Error.stackTraceLimit=f.stackTraceLimit)}function p(f){if(!f||!f.scope||typeof f.scope!="function")return!1;var h=f.scope();return!(!h||!h.active||typeof h.active!="function")}u.rateLimiter=new o({maxItems:0,itemsPerMinute:60}),u.prototype.global=function(f){return u.rateLimiter.configureGlobal(f),this},u.prototype.configure=function(f,h){var m=this.options,g={};h&&(g={payload:h}),this.options=l.merge(m,f,g);var y=this.options.tracer||null;return p(y)?(this.tracer=y,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),d(f),this.global(this.options),p(f.tracer)&&(this.tracer=f.tracer),this},u.prototype.log=function(f){var h=this._defaultLogLevel();return this._log(h,f)},u.prototype.debug=function(f){this._log("debug",f)},u.prototype.info=function(f){this._log("info",f)},u.prototype.warn=function(f){this._log("warning",f)},u.prototype.warning=function(f){this._log("warning",f)},u.prototype.error=function(f){this._log("error",f)},u.prototype.critical=function(f){this._log("critical",f)},u.prototype.wait=function(f){this.queue.wait(f)},u.prototype.captureEvent=function(f,h,m){return this.telemeter&&this.telemeter.captureEvent(f,h,m)},u.prototype.captureDomContentLoaded=function(f){return this.telemeter&&this.telemeter.captureDomContentLoaded(f)},u.prototype.captureLoad=function(f){return this.telemeter&&this.telemeter.captureLoad(f)},u.prototype.buildJsonPayload=function(f){return this.api.buildJsonPayload(f)},u.prototype.sendJsonPayload=function(f){this.api.postJsonPayload(f)},u.prototype._log=function(f,h){var m;if(h.callback&&(m=h.callback,delete h.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(h)){if(m){var g=new Error("ignored identical item");g.item=h,m(g)}}else try{this._addTracingInfo(h),h.level=h.level||f,this.telemeter&&this.telemeter._captureRollbarItem(h),h.telemetryEvents=this.telemeter&&this.telemeter.copyEvents()||[],this.notifier.log(h,m)}catch(y){m&&m(y),this.logger.error(y)}},u.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},u.prototype._sameAsLastError=function(f){if(!f._isUncaught)return!1;var h=function(m){var g=m.message||"",y=(m.err||{}).stack||String(m.err);return g+"::"+y}(f);return this.lastErrorHash===h||(this.lastError=f.err,this.lastErrorHash=h,!1)},u.prototype._addTracingInfo=function(f){if(this.tracer){var h=this.tracer.scope().active();if(function(y){if(!y||!y.context||typeof y.context!="function")return!1;var b=y.context();return!(!b||!b.toSpanId||!b.toTraceId||typeof b.toSpanId!="function"||typeof b.toTraceId!="function")}(h)){h.setTag("rollbar.error_uuid",f.uuid),h.setTag("rollbar.has_error",!0),h.setTag("error",!0),h.setTag("rollbar.item_url","https://rollbar.com/item/uuid/?uuid="+f.uuid),h.setTag("rollbar.occurrence_url","https://rollbar.com/occurrence/uuid/?uuid="+f.uuid);var m=h.context().toSpanId(),g=h.context().toTraceId();f.custom?(f.custom.opentracing_span_id=m,f.custom.opentracing_trace_id=g):f.custom={opentracing_span_id:m,opentracing_trace_id:g}}}},r.exports=u},function(r,i,a){var o=a(0);function s(u){this.startTime=o.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(u)}function c(u,d,p){return!u.ignoreRateLimit&&d>=1&&p>d}function l(u,d,p,f,h,m,g){var y=null;return p&&(p=new Error(p)),p||f||(y=function(b,_,S,k,E){var T,A=_.environment||_.payload&&_.payload.environment;T=E?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.";var $={body:{message:{body:T,extra:{maxItems:S,itemsPerMinute:k}}},language:"javascript",environment:A,notifier:{version:_.notifier&&_.notifier.version||_.version}};return b==="browser"?($.platform="browser",$.framework="browser-js",$.notifier.name="rollbar-browser-js"):b==="server"?($.framework=_.framework||"node-js",$.notifier.name=_.notifier.name):b==="react-native"&&($.framework=_.framework||"react-native",$.notifier.name=_.notifier.name),$}(u,d,h,m,g)),{error:p,shouldSend:f,payload:y}}s.globalSettings={startTime:o.now(),maxItems:void 0,itemsPerMinute:void 0},s.prototype.configureGlobal=function(u){u.startTime!==void 0&&(s.globalSettings.startTime=u.startTime),u.maxItems!==void 0&&(s.globalSettings.maxItems=u.maxItems),u.itemsPerMinute!==void 0&&(s.globalSettings.itemsPerMinute=u.itemsPerMinute)},s.prototype.shouldSend=function(u,d){var p=(d=d||o.now())-this.startTime;(p<0||p>=6e4)&&(this.startTime=d,this.perMinCounter=0);var f=s.globalSettings.maxItems,h=s.globalSettings.itemsPerMinute;if(c(u,f,this.counter))return l(this.platform,this.platformOptions,f+" max items reached",!1);if(c(u,h,this.perMinCounter))return l(this.platform,this.platformOptions,h+" items per minute reached",!1);this.counter++,this.perMinCounter++;var m=!c(u,f,this.counter),g=m;return m=m&&!c(u,h,this.perMinCounter),l(this.platform,this.platformOptions,null,m,f,h,g)},s.prototype.setPlatformOptions=function(u,d){this.platform=u,this.platformOptions=d},r.exports=s},function(r,i,a){var o=Object.prototype.hasOwnProperty,s=Object.prototype.toString,c=function(l){if(!l||s.call(l)!=="[object Object]")return!1;var u,d=o.call(l,"constructor"),p=l.constructor&&l.constructor.prototype&&o.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!p)return!1;for(u in l);return u===void 0||o.call(l,u)};r.exports=function l(){var u,d,p,f,h,m={},g=null,y=arguments.length;for(u=0;u<y;u++)if((g=arguments[u])!=null)for(h in g)d=m[h],m!==(p=g[h])&&(p&&c(p)?(f=d&&c(d)?d:{},m[h]=l(f,p)):p!==void 0&&(m[h]=p));return m}},function(r,i,a){var o=a(0);function s(l,u,d,p){this.rateLimiter=l,this.api=u,this.logger=d,this.options=p,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}s.prototype.configure=function(l){this.api&&this.api.configure(l);var u=this.options;return this.options=o.merge(u,l),this},s.prototype.addPredicate=function(l){return o.isFunction(l)&&this.predicates.push(l),this},s.prototype.addPendingItem=function(l){this.pendingItems.push(l)},s.prototype.removePendingItem=function(l){var u=this.pendingItems.indexOf(l);u!==-1&&this.pendingItems.splice(u,1)},s.prototype.addItem=function(l,u,d,p){u&&o.isFunction(u)||(u=function(){});var f=this._applyPredicates(l);if(f.stop)return this.removePendingItem(p),void u(f.err);if(this._maybeLog(l,d),this.removePendingItem(p),this.options.transmit){this.pendingRequests.push(l);try{this._makeApiRequest(l,(function(h,m){this._dequeuePendingRequest(l),u(h,m)}).bind(this))}catch(h){this._dequeuePendingRequest(l),u(h)}}else u(new Error("Transmit disabled"))},s.prototype.wait=function(l){o.isFunction(l)&&(this.waitCallback=l,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval((function(){this._maybeCallWait()}).bind(this),500)))},s.prototype._applyPredicates=function(l){for(var u=null,d=0,p=this.predicates.length;d<p;d++)if(!(u=this.predicates[d](l,this.options))||u.err!==void 0)return{stop:!0,err:u.err};return{stop:!1,err:null}},s.prototype._makeApiRequest=function(l,u){var d=this.rateLimiter.shouldSend(l);d.shouldSend?this.api.postItem(l,(function(p,f){p?this._maybeRetry(p,l,u):u(p,f)}).bind(this)):d.error?u(d.error):this.api.postItem(d.payload,u)};var c=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];s.prototype._maybeRetry=function(l,u,d){var p=!1;if(this.options.retryInterval){for(var f=0,h=c.length;f<h;f++)if(l.code===c[f]){p=!0;break}p&&o.isFiniteNumber(this.options.maxRetries)&&(u.retries=u.retries?u.retries+1:1,u.retries>this.options.maxRetries&&(p=!1))}p?this._retryApiRequest(u,d):d(l)},s.prototype._retryApiRequest=function(l,u){this.retryQueue.push({item:l,callback:u}),this.retryHandle||(this.retryHandle=setInterval((function(){for(;this.retryQueue.length;){var d=this.retryQueue.shift();this._makeApiRequest(d.item,d.callback)}}).bind(this),this.options.retryInterval))},s.prototype._dequeuePendingRequest=function(l){var u=this.pendingRequests.indexOf(l);u!==-1&&(this.pendingRequests.splice(u,1),this._maybeCallWait())},s.prototype._maybeLog=function(l,u){if(this.logger&&this.options.verbose){var d=u;if(d=(d=d||o.get(l,"body.trace.exception.message"))||o.get(l,"body.trace_chain.0.exception.message"))return void this.logger.error(d);(d=o.get(l,"body.message.body"))&&this.logger.log(d)}},s.prototype._maybeCallWait=function(){return!(!o.isFunction(this.waitCallback)||this.pendingItems.length!==0||this.pendingRequests.length!==0)&&(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),!0)},r.exports=s},function(r,i,a){var o=a(0);function s(c,l){this.queue=c,this.options=l,this.transforms=[],this.diagnostic={}}s.prototype.configure=function(c){this.queue&&this.queue.configure(c);var l=this.options;return this.options=o.merge(l,c),this},s.prototype.addTransform=function(c){return o.isFunction(c)&&this.transforms.push(c),this},s.prototype.log=function(c,l){if(l&&o.isFunction(l)||(l=function(){}),!this.options.enabled)return l(new Error("Rollbar is not enabled"));this.queue.addPendingItem(c);var u=c.err;this._applyTransforms(c,(function(d,p){if(d)return this.queue.removePendingItem(c),l(d,null);this.queue.addItem(p,l,u,c)}).bind(this))},s.prototype._applyTransforms=function(c,l){var u=-1,d=this.transforms.length,p=this.transforms,f=this.options,h=function(m,g){m?l(m,null):++u!==d?p[u](g,f,h):l(null,g)};h(null,c)},r.exports=s},function(r,i,a){var o=a(0),s=a(16),c={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443};function l(d,p,f,h,m){this.options=d,this.transport=p,this.url=f,this.truncation=h,this.jsonBackup=m,this.accessToken=d.accessToken,this.transportOptions=u(d,f)}function u(d,p){return s.getTransportFromOptions(d,c,p)}l.prototype.postItem=function(d,p){var f=s.transportOptions(this.transportOptions,"POST"),h=s.buildPayload(this.accessToken,d,this.jsonBackup),m=this;setTimeout(function(){m.transport.post(m.accessToken,f,h,p)},0)},l.prototype.buildJsonPayload=function(d,p){var f,h=s.buildPayload(this.accessToken,d,this.jsonBackup);return(f=this.truncation?this.truncation.truncate(h):o.stringify(h)).error?(p&&p(f.error),null):f.value},l.prototype.postJsonPayload=function(d,p){var f=s.transportOptions(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,f,d,p)},l.prototype.configure=function(d){var p=this.oldOptions;return this.options=o.merge(p,d),this.transportOptions=u(this.options,this.url),this.options.accessToken!==void 0&&(this.accessToken=this.options.accessToken),this},r.exports=l},function(r,i,a){var o=a(0);r.exports={buildPayload:function(s,c,l){if(!o.isType(c.context,"string")){var u=o.stringify(c.context,l);u.error?c.context="Error: could not serialize 'context'":c.context=u.value||"",c.context.length>255&&(c.context=c.context.substr(0,255))}return{access_token:s,data:c}},getTransportFromOptions:function(s,c,l){var u=c.hostname,d=c.protocol,p=c.port,f=c.path,h=c.search,m=s.timeout,g=function(_){var S=typeof window<"u"&&window||typeof self<"u"&&self,k=_.defaultTransport||"xhr";return S.fetch===void 0&&(k="xhr"),S.XMLHttpRequest===void 0&&(k="fetch"),k}(s),y=s.proxy;if(s.endpoint){var b=l.parse(s.endpoint);u=b.hostname,d=b.protocol,p=b.port,f=b.pathname,h=b.search}return{timeout:m,hostname:u,protocol:d,port:p,path:f,search:h,proxy:y,transport:g}},transportOptions:function(s,c){var l=s.protocol||"https:",u=s.port||(l==="http:"?80:l==="https:"?443:void 0),d=s.hostname,p=s.path,f=s.timeout,h=s.transport;return s.search&&(p+=s.search),s.proxy&&(p=l+"//"+d+p,d=s.proxy.host||s.proxy.hostname,u=s.proxy.port,l=s.proxy.protocol||l),{timeout:f,protocol:l,hostname:d,path:p,port:u,method:c,transport:h}},appendPathToPath:function(s,c){var l=/\/$/.test(s),u=/^\//.test(c);return l&&u?c=c.substring(1):l||u||(c="/"+c),s+c}}},function(r,i){(function(a){a.console||(a.console={});for(var o,s,c=a.console,l=function(){},u=["memory"],d="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");o=u.pop();)c[o]||(c[o]={});for(;s=d.pop();)c[s]||(c[s]=l)})(typeof window>"u"?this:window)},function(r,i,a){var o={ieVersion:function(){if(typeof document<"u"){for(var s=3,c=document.createElement("div"),l=c.getElementsByTagName("i");c.innerHTML="<!--[if gt IE "+ ++s+"]><i></i><![endif]-->",l[0];);return s>4?s:void 0}}};r.exports=o},function(r,i,a){function o(s,c,l,u){s._rollbarWrappedError&&(u[4]||(u[4]=s._rollbarWrappedError),u[5]||(u[5]=s._rollbarWrappedError._rollbarContext),s._rollbarWrappedError=null);var d=c.handleUncaughtException.apply(c,u);l&&l.apply(s,u),d==="anonymous"&&(c.anonymousErrorsPending+=1)}r.exports={captureUncaughtExceptions:function(s,c,l){if(s){var u;if(typeof c._rollbarOldOnError=="function")u=c._rollbarOldOnError;else if(s.onerror){for(u=s.onerror;u._rollbarOldOnError;)u=u._rollbarOldOnError;c._rollbarOldOnError=u}c.handleAnonymousErrors();var d=function(){var p=Array.prototype.slice.call(arguments,0);o(s,c,u,p)};l&&(d._rollbarOldOnError=u),s.onerror=d}},captureUnhandledRejections:function(s,c,l){if(s){typeof s._rollbarURH=="function"&&s._rollbarURH.belongsToShim&&s.removeEventListener("unhandledrejection",s._rollbarURH);var u=function(d){var p,f,h;try{p=d.reason}catch{p=void 0}try{f=d.promise}catch{f="[unhandledrejection] error getting `promise` from event"}try{h=d.detail,!p&&h&&(p=h.reason,f=h.promise)}catch{}p||(p="[unhandledrejection] error getting `reason` from event"),c&&c.handleUnhandledRejection&&c.handleUnhandledRejection(p,f)};u.belongsToShim=l,s._rollbarURH=u,s.addEventListener("unhandledrejection",u)}}}},function(r,i,a){var o=a(0),s=a(21),c=a(22);function l(u){this.truncation=u}l.prototype.get=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){}),o.addParamsAndAccessTokenToPath(u,d,p);var m=o.formatUrl(d);this._makeZoneRequest(u,m,"GET",null,f,h,d.timeout,d.transport)},l.prototype.post=function(u,d,p,f,h){if(f&&o.isFunction(f)||(f=function(){}),!p)return f(new Error("Cannot send empty request"));var m;if((m=this.truncation?this.truncation.truncate(p):o.stringify(p)).error)return f(m.error);var g=m.value,y=o.formatUrl(d);this._makeZoneRequest(u,y,"POST",g,f,h,d.timeout,d.transport)},l.prototype.postJsonPayload=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){});var m=o.formatUrl(d);this._makeZoneRequest(u,m,"POST",p,f,h,d.timeout,d.transport)},l.prototype._makeZoneRequest=function(){var u=typeof window<"u"&&window||h!==void 0&&h,d=u&&u.Zone&&u.Zone.current,p=Array.prototype.slice.call(arguments);if(d&&d._name==="angular"){var f=d._parent,h=this;f.run(function(){h._makeRequest.apply(void 0,p)})}else this._makeRequest.apply(void 0,p)},l.prototype._makeRequest=function(u,d,p,f,h,m,g,y){if(typeof RollbarProxy<"u")return function(b,_){new RollbarProxy().sendJsonPayload(b,function(S){},function(S){_(new Error(S))})}(f,h);y==="fetch"?s(u,d,p,f,h,g):c(u,d,p,f,h,m,g)},r.exports=l},function(r,i,a){var o=a(1),s=a(0);r.exports=function(c,l,u,d,p,f){var h,m;s.isFiniteNumber(f)&&(h=new AbortController,m=setTimeout(function(){h.abort()},f)),fetch(l,{method:u,headers:{"Content-Type":"application/json","X-Rollbar-Access-Token":c,signal:h&&h.signal},body:d}).then(function(g){return m&&clearTimeout(m),g.json()}).then(function(g){p(null,g)}).catch(function(g){o.error(g.message),p(g)})}},function(r,i,a){var o=a(0),s=a(1);function c(l,u){var d=new Error(l);return d.code=u||"ENOTFOUND",d}r.exports=function(l,u,d,p,f,h,m){var g;if(!(g=h?h():function(){var _,S,k=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],E=k.length;for(S=0;S<E;S++)try{_=k[S]();break}catch{}return _}()))return f(new Error("No way to send a request"));try{try{var y=function(){try{if(y&&g.readyState===4){y=void 0;var _=o.jsonParse(g.responseText);if((E=g)&&E.status&&E.status===200)return void f(_.error,_.value);if(function(T){return T&&o.isType(T.status,"number")&&T.status>=400&&T.status<600}(g)){if(g.status===403){var S=_.value&&_.value.message;s.error(S)}f(new Error(String(g.status)))}else f(c("XHR response had no status code (likely connection failure)"))}}catch(T){var k;k=T&&T.stack?T:new Error(T),f(k)}var E};g.open(d,u,!0),g.setRequestHeader&&(g.setRequestHeader("Content-Type","application/json"),g.setRequestHeader("X-Rollbar-Access-Token",l)),o.isFiniteNumber(m)&&(g.timeout=m),g.onreadystatechange=y,g.send(p)}catch{if(typeof XDomainRequest<"u"){if(!window||!window.location)return f(new Error("No window available during request, unknown environment"));window.location.href.substring(0,5)==="http:"&&u.substring(0,5)==="https"&&(u="http"+u.substring(5));var b=new XDomainRequest;b.onprogress=function(){},b.ontimeout=function(){f(c("Request timed out","ETIMEDOUT"))},b.onerror=function(){f(new Error("Error during request"))},b.onload=function(){var S=o.jsonParse(b.responseText);f(S.error,S.value)},b.open(d,u,!0),b.send(p)}else f(new Error("Cannot find a method to transport a request"))}}catch(_){f(_)}}},function(r,i,a){var o=a(0),s=a(3),c=a(1);function l(f,h,m){var g=f.message,y=f.custom;g||(g="Item sent with null or missing arguments.");var b={body:g};y&&(b.extra=o.merge(y)),o.set(f,"data.body",{message:b}),m(null,f)}function u(f){var h=f.stackInfo.stack;return h&&h.length===0&&f._unhandledStackInfo&&f._unhandledStackInfo.stack&&(h=f._unhandledStackInfo.stack),h}function d(f,h,m){var g=f&&f.data.description,y=f&&f.custom,b=u(f),_=s.guessErrorClass(h.message),S={exception:{class:p(h,_[0],m),message:_[1]}};if(g&&(S.exception.description=g),b){var k,E,T,A,$,I,R,Y;for(b.length===0&&(S.exception.stack=h.rawStack,S.exception.raw=String(h.rawException)),S.frames=[],R=0;R<b.length;++R)E={filename:(k=b[R]).url?o.sanitizeUrl(k.url):"(unknown)",lineno:k.line||null,method:k.func&&k.func!=="?"?k.func:"[anonymous]",colno:k.column},m.sendFrameUrl&&(E.url=k.url),E.method&&E.method.endsWith&&E.method.endsWith("_rollbar_wrapped")||(T=A=$=null,(I=k.context?k.context.length:0)&&(Y=Math.floor(I/2),A=k.context.slice(0,Y),T=k.context[Y],$=k.context.slice(Y)),T&&(E.code=T),(A||$)&&(E.context={},A&&A.length&&(E.context.pre=A),$&&$.length&&(E.context.post=$)),k.args&&(E.args=k.args),S.frames.push(E));S.frames.reverse(),y&&(S.extra=o.merge(y))}return S}function p(f,h,m){return f.name?f.name:m.guessErrorClass?h:"(unknown)"}r.exports={handleDomException:function(f,h,m){if(f.err&&s.Stack(f.err).name==="DOMException"){var g=new Error;g.name=f.err.name,g.message=f.err.message,g.stack=f.err.stack,g.nested=f.err,f.err=g}m(null,f)},handleItemWithError:function(f,h,m){if(f.data=f.data||{},f.err)try{f.stackInfo=f.err._savedStackTrace||s.parse(f.err,f.skipFrames),h.addErrorContext&&function(g){var y=[],b=g.err;for(y.push(b);b.nested||b.cause;)b=b.nested||b.cause,y.push(b);o.addErrorContext(g,y)}(f)}catch(g){c.error("Error while parsing the error object.",g);try{f.message=f.err.message||f.err.description||f.message||String(f.err)}catch(y){f.message=String(f.err)||String(y)}delete f.err}m(null,f)},ensureItemHasSomethingToSay:function(f,h,m){f.message||f.stackInfo||f.custom||m(new Error("No message, stack info, or custom data"),null),m(null,f)},addBaseInfo:function(f,h,m){var g=h.payload&&h.payload.environment||h.environment;f.data=o.merge(f.data,{environment:g,level:f.level,endpoint:h.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:f.uuid,notifier:{name:"rollbar-browser-js",version:h.version},custom:f.custom}),m(null,f)},addRequestInfo:function(f){return function(h,m,g){var y={};f&&f.location&&(y.url=f.location.href,y.query_string=f.location.search);var b="$remote_ip";m.captureIp?m.captureIp!==!0&&(b+="_anonymize"):b=null,b&&(y.user_ip=b),Object.keys(y).length>0&&o.set(h,"data.request",y),g(null,h)}},addClientInfo:function(f){return function(h,m,g){if(!f)return g(null,h);var y=f.navigator||{},b=f.screen||{};o.set(h,"data.client",{runtime_ms:h.timestamp-f._rollbarStartTime,timestamp:Math.round(h.timestamp/1e3),javascript:{browser:y.userAgent,language:y.language,cookie_enabled:y.cookieEnabled,screen:{width:b.width,height:b.height}}}),g(null,h)}},addPluginInfo:function(f){return function(h,m,g){if(!f||!f.navigator)return g(null,h);for(var y,b=[],_=f.navigator.plugins||[],S=0,k=_.length;S<k;++S)y=_[S],b.push({name:y.name,description:y.description});o.set(h,"data.client.javascript.plugins",b),g(null,h)}},addBody:function(f,h,m){f.stackInfo?f.stackInfo.traceChain?function(g,y,b){for(var _=g.stackInfo.traceChain,S=[],k=_.length,E=0;E<k;E++){var T=d(g,_[E],y);S.push(T)}o.set(g,"data.body",{trace_chain:S}),b(null,g)}(f,h,m):function(g,y,b){if(u(g)){var _=d(g,g.stackInfo,y);o.set(g,"data.body",{trace:_}),b(null,g)}else{var S=g.stackInfo,k=s.guessErrorClass(S.message),E=p(S,k[0],y),T=k[1];g.message=E+": "+T,l(g,y,b)}}(f,h,m):l(f,h,m)},addScrubber:function(f){return function(h,m,g){if(f){var y=m.scrubFields||[],b=m.scrubPaths||[];h.data=f(h.data,y,b)}g(null,h)}}}},function(r,i,a){var o,s,c;(function(l,u){s=[a(25)],(c=typeof(o=function(d){var p=/(^|@)\S+:\d+/,f=/^\s*at .*(\S+:\d+|\(native\))/m,h=/^(eval@)?(\[native code])?$/;return{parse:function(m){if(m.stacktrace!==void 0||m["opera#sourceloc"]!==void 0)return this.parseOpera(m);if(m.stack&&m.stack.match(f))return this.parseV8OrIE(m);if(m.stack)return this.parseFFOrSafari(m);throw new Error("Cannot parse given Error object")},extractLocation:function(m){if(m.indexOf(":")===-1)return[m];var g=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(m.replace(/[()]/g,""));return[g[1],g[2]||void 0,g[3]||void 0]},parseV8OrIE:function(m){return m.stack.split(`
222
+ `))}add(r){return this.payload={...this.payload,...r},this}getPayload(){return this.payload}setErrorCodeFromResponse(){const{data:r,status:i}=this.getPayload().axios||{};if(!r&&!i)return;const{errorCode:a}=r||{};a&&this.add({code:a}),i&&(this.httpStatusCode=i)}setMessageFromResponse(){const{data:r}=this.getPayload().axios||{};if(!r)return!1;const{message:i}=r||{};return i?(this.message=i,!0):!1}}class kM extends Pm{constructor(t){if(super(t),this.name="NotFoundError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse()}}class SM extends Pm{constructor(t){if(super(t),this.name="ForbiddenError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class TM extends Pm{constructor(t){if(super(t),this.name="ValidationError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}class EM extends Pm{constructor(t){if(super(t),this.name="NetworkError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{config:r}=t;this.add({axios:r}),this.code="ECONNREFUSED"}}class H4 extends Pm{constructor(t){if(super(t),this.name="GeneralError",this.message=typeof t=="string"||!t?t:t.message,typeof t=="string"||!t)return;const{response:r}=t;this.add({axios:r}),this.setErrorCodeFromResponse(),this.setMessageFromResponse()}}const $M=Object.freeze(Object.defineProperty({__proto__:null,ForbiddenError:SM,GeneralError:H4,NetworkError:EM,NotFoundError:kM,ValidationError:TM},Symbol.toStringTag,{value:"Module"}));var j0e=T4,z0e=1,V0e=4;function U0e(n){return j0e(n,z0e|V0e)}var H0e=U0e;const Gs=un(H0e),W0e=n=>{const t=Object.keys(n);let r="";return t.forEach(i=>{const a=typeof n[i]=="object",o=a&&n[i].length>=0;a||(r+=`${i}=${n[i]}&`),a&&o&&n[i].forEach(s=>{r+=`${i}=${s}&`})}),r&&r.slice(0,-1)},AM=n=>{W4.push(n)},G0e=n=>{W4.map(t=>t(n))};function OM(n=""){console.error("User should be logged out!!"),mt.removeItem("token"),mt.removeItem("tokenExpires"),mt.removeItem("refreshToken"),ur.trigger("user:unauthorized",{error:n})}let Im=!1,W4=[];const q0e=(n,{renewToken:t})=>{n.interceptors.request.use(r=>{const i=r;if(i.url.includes("/auth")||i.url.startsWith("/public/"))return i;const a=i.headers["X-TOKEN"];if(!a)return i;const o=mt.getItem("tokenExpires");if(a&&o){const s=new Date;s.setSeconds(s.getSeconds()+30);const c=new Date(o);if(s>c)return t(),new Promise(u=>{AM(d=>{i.headers["X-TOKEN"]=d,u(i)})})}return i},r=>Promise.reject(r))},Y0e=(n,{renewToken:t})=>{n.interceptors.response.use(r=>r,r=>{if(!r||!r.response)return Promise.reject(r);const{config:i,response:a}=r,{status:o,data:s}=a,{errorCode:c}=s,l=i;if(l.url.startsWith("/public/"))return Promise.reject(r);function u(){if(c===8001)return!0;const d=mt.getItem("tokenExpires");if(d){const p=new Date,f=new Date(d);return p>f}return!1}if(o===401&&l.headers["X-TOKEN"]&&u()&&!Im)return t(),new Promise(p=>{AM(f=>{l.headers["X-TOKEN"]=f,p(en(l))})});if(o===401&&typeof c>"u"){if(l.url.includes("auth/companyUser")&&!l.headers["X-TOKEN"])return Promise.reject(r);if(l.url.includes("auth/actionlink")&&!l.headers["X-TOKEN"])return Promise.reject(r);OM(r==null?void 0:r.message)}return Promise.reject(r)})},DM=n=>(vv(n.data),n),K0e=n=>{n.interceptors.response.use(DM,t=>{const{response:r,config:i}=t;if(!r)throw new EM(t);if(Object.prototype.hasOwnProperty.call(i,"errorHandle")&&i.errorHandle===!1)return Promise.reject(t);const{status:a}=r;switch(a){case 404:throw new kM(t);case 401:throw new SM(t);case 412:throw new TM(t);default:throw new H4(t)}})},Z0e=n=>{n.interceptors.response.use(t=>{var r,i;if((i=(r=t.config)==null?void 0:r.url)!=null&&i.includes("document")&&t.config.method==="post"){const a=JSON.parse(t.config.data);a.__tempId&&(t.data.__tempId=a.__tempId)}return t},t=>Promise.reject(t))},J0e=n=>{n.interceptors.request.use(t=>{if(["post","put"].includes(t.method)&&t.data&&!(t.data instanceof FormData)){const r=Gs(t.data);D4(r),t.data=r}return t},t=>Promise.reject(t))},X0e=({baseUrl:n,withCredentials:t,cache:r})=>{const i=en.create({baseURL:n,timeout:2e4,adapter:r,withCredentials:t,paramsSerializer:p=>W0e(p)});i.defaults.headers["X-CLIENT"]="widget",i.defaults.headers["X-CLIENT-VERSION"]="0.13.3";const a=async(p,f,h=null,m={})=>{const g=f.startsWith("/public/"),y=mt.getItem("token");switch(y&&!g&&(i.defaults.headers["X-TOKEN"]=y),p){case"get":return i.get(f,m);case"post":return i.post(f,h,m);case"put":return i.put(f,h,m);case"delete":return i.delete(f,m);case"patch":return i.patch(f,h,m);default:throw new Error(`SendRequest failed as method: '${p}' is not implemented`)}},o=(p,f={})=>a("get",p,null,f),s=(p,f={},h={})=>a("put",p,f,h),c=(p,f,h={})=>a("post",p,f,h),l=(p,f={})=>a("delete",p,null,f),u=(p,f={})=>a("patch",p,null,f),d=async()=>{if(!Im)try{Im=!0;const p=mt.getItem("refreshToken"),f=await c("/auth/companyUser",{refreshToken:p});if(!f.data||!f.data.token)throw new Error("No token was defined in result");const{token:h,tokenExpires:m,refreshToken:g}=f.data;mt.setItem("token",h),mt.setItem("tokenExpires",m),g&&mt.setItem("refreshToken",g),Im=!1,G0e(h),W4=[]}catch(p){return console.error(p),OM(p==null?void 0:p.message)}finally{Im=!1}};return q0e(i,{renewToken:d}),Y0e(i,{renewToken:d}),DM(i),K0e(i),J0e(i),Z0e(i),{instance:i,get:o,put:s,post:c,del:l,patch:u,renewToken:d}},G4=new Map;function Q0e(n){if(typeof n>"u")throw new Error("Missing valid parameter url");if(typeof n!="string")throw new Error("Parameter url must be a string");const{data:t,cachedAt:r,expiresAt:i}=G4.get(n)||{};return Date.now()>r+6e4*30||i&&Date.now()>i?(G4.delete(n),null):t}const eve=async n=>{const{url:t,params:r={}}=n,i=Object.keys(r).map(s=>`${s}=${r[s]}`).join("&"),a=`${t}${i?`?${i}`:""}`;return Q0e(a),await en({...n,adapter:en.defaults.adapter})},wp={withCredentials:!0,baseUrl:Je.api.baseUrl},{get:xt,post:rn,put:Ur,patch:ns,del:qi,instance:t9t,renewToken:tve}=X0e({withCredentials:wp.withCredentials,baseUrl:wp.baseUrl,cache:eve});async function MM(n){const t=x1e(n);return xt(`/project${t}`,{saveCache:!0})}const nve=async(n,t={})=>xt("/project",n,{params:t}),rve=async(n,t={})=>xt(`/project/${n}`,{params:t,saveCache:!0}),ive=async(n,t,r={})=>Ur(`/project/${n}`,t,{params:r,invalidateCache:{type:"project",id:n}}),ave=async n=>ns(`/project/${n}`),ove=async(n,t={})=>qi(`/project/${n}`,{params:t,invalidateCache:{type:"project",id:n}}),sve=async()=>xt("/project/createDemo"),lve=()=>xt("/"),cve=async(n,t={})=>rn("/auth/actionlink",{token:n,...t}),uve=async n=>rn("/register",n),dve=async(n,t)=>rn("/companyUser/forgottenPassword/new",{password:n,resetPasswordToken:t}),pve=async n=>rn("/public/consent",n),fve=async n=>xt(`/projectFile/${n}`),hve=async n=>rn("/projectFile",n),mve=async(n,t)=>Ur(`/projectFile/${n}`,t),gve=async n=>qi(`/projectFile/${n}`),vve=async n=>ns(`/projectFile/${n}`),yve=async(n,t={})=>xt(`/projectNote/${n}`,{params:t}),bve=async(n,t={})=>rn("/projectNote",n,{params:t}),wve=async(n,t,r={})=>Ur(`/projectNote/${n}`,t,{params:r}),_ve=async n=>xt(`/file/${n}`),PM=async n=>rn("/file",n),xve=async(n,t)=>Ur(`/file/${n}`,t),Cve=async n=>qi(`/file/${n}`),kve=async n=>ns(`/file/${n}`),Sve=async(n={})=>xt("/article",{params:n}),Tve=async n=>xt(`/article/${n}`),Eve=async n=>rn("/article",n),$ve=async(n,t)=>Ur(`/article/${n}`,t),Ave=async n=>qi(`/article/${n}`),Ove=async n=>ns(`/article/${n}`),Dve=async n=>rn("/search",{type:"article",query:n}),Rm={get:async(n,t={})=>xt(n?`/unitType/${n}`:"/unitType",{params:t,saveCache:!0}),post:async(n,t={})=>rn("/unitType",n,{params:t}),put:async(n,t,r={})=>Ur(`/unitType/${n}`,t,{params:r,invalidateCache:{type:"unitType",id:n}}),delete:async(n,t={})=>qi(`/unitType/${n}`,{params:t,invalidateCache:{type:"unitType",id:n}})},Mve=async(n={})=>xt("/templateMessage",{params:n,saveCache:!0}),Pve=async(n,t={})=>xt(`/templateMessage/${n}`,{params:t,saveCache:!0}),Ive=async(n,t={})=>rn("/templateMessage",n,{params:t}),Rve=async(n,t,r={})=>Ur(`/templateMessage/${n}`,t,{params:r,invalidateCache:{type:"templateMessage",id:n}}),Lve=async(n,t={})=>qi(`/templateMessage/${n}`,{params:t,invalidateCache:{type:"templateMessage",id:n}}),Fve=async(n,t={})=>ns(`/templateMessage/${n}`,{params:t}),Nve=async(n={})=>xt("/endCustomer",{params:n}),Bve=async(n,t={})=>xt(`/endCustomer/${n}`,{params:t}),jve=async(n,t={})=>rn("/endCustomer",n,{params:t}),zve=async(n,t,r={})=>Ur(`/endCustomer/${n}`,t,{params:r}),Vve=async(n,t={})=>qi(`/endCustomer/${n}`,{params:t}),Uve=async(n,t={})=>ns(`/endCustomer/${n}`,{params:t}),Hve=async(n={})=>xt("/companyUser",{params:n,saveCache:!0}),Wve=async(n,t={})=>xt(`/companyUser/${n}`,{params:t,saveCache:!0}),Gve=async(n,t={})=>rn("/companyUser",n,{params:t}),qve=async(n,t,r={})=>Ur(`/companyUser/${n}`,t,{params:r,invalidateCache:{type:"companyUser",id:n}}),Yve=async(n,t={})=>qi(`/companyUser/${n}`,{params:t,invalidateCache:{type:"companyUser",id:n}}),Kve=async(n,t={})=>ns(`/companyUser/${n}`,{params:t}),IM={getPublic:async(n,t={})=>xt(`/public/companyUser/${n}`,{params:t}),getConnectedUsers:async(n={})=>xt("/companyUser/self/connectedUsers",{params:n}),getConnectedUserAuth:async(n,t={})=>xt(`/companyUser/self/connectedUsers/${n}/auth`,{params:t}),setConnectedUserDefault:async(n,t={})=>Ur(`/companyUser/self/connectedUsers/${n}/setDefaultAuth`,{params:t}),verifyEmail:async(n,t={})=>rn("/public/verifyEmail/companyUser",n,{params:t})},Zve=async(n,t=null,r={})=>Ur(`/companyAccount/accountType/${n}`,t,{params:r}),Jve=async(n={})=>xt("/companyAccount/getNumberOfManagers",{params:n}),Xve=async(n={})=>rn("/companyAccount/addUserLicenseInvoice",{},{params:n}),Qve=async(n,t={})=>xt(`/promotionCode/${n}/canUse`,{params:t}),eye=async(n,t={})=>xt("/promotionCode/inUse",{params:t}),Cv={product:async(n,t={})=>rn("/companyAccount/product",n,{params:t}),cancelAll:async(n={})=>qi("/companyAccount/subscription",{params:n}),getPrices:async(n={})=>xt("/companyAccount/price",{params:n}),getUpcomingInvoices:async(n={})=>xt("/companyAccount/upcomingInvoice",{params:n}),getPaymentHistory:async(n={})=>xt("/companyAccount/paymentHistory",{params:n}),putPaymentMethod:async(n,t={})=>Ur("/companyAccount/paymentMethod",n,{params:t}),putCustomer:async(n,t={})=>Ur("/companyAccount/customer",n,{params:t}),createCheckoutSession:async(n,t={})=>rn("/companyAccount/create-checkout-session",n,{params:t})},tye=async(n,t)=>rn(`/project/${n}/projectMember/${t}`,null,{invalidateCache:{type:"project",id:n}}),nye=async(n,t)=>qi(`/project/${n}/projectMember/${t}`,{invalidateCache:{type:"project",id:n}}),Yi={get:async(n,t={})=>xt(`/document/${n}`,{params:t,saveCache:!0}),getAll:async(n={})=>xt("/document",{params:n,saveCache:!0}),post:async(n,t={})=>rn("/document",n,{params:t}),send:async(n,t={},r={})=>rn(`/document/${n}/send`,t,{params:r,invalidateCache:{type:"document",id:n}}),clearAnswers:async(n,t={},r={})=>rn(`/document/${n}/clearAnswers`,t,{params:r,invalidateCache:{type:"document",id:n}}),put:async(n,t,r={})=>Ur(`/document/${n}`,t,{params:r,invalidateCache:{type:"document",id:n}}),delete:async(n,t={})=>qi(`/document/${n}`,{params:t,invalidateCache:{type:"document",id:n}}),patch:async(n,t={})=>ns(`/document/${n}`,{params:t}),validate:async(n,t={})=>rn("/documentValidate",n,{params:t})},Xl={get:async(n,t={})=>xt(n?`/template/${n}`:"/template",{params:t}),post:async(n,t={})=>rn("/template",n,{params:t}),put:async(n,t,r={})=>Ur(`/template/${n}`,t,{params:r}),delete:async(n,t={})=>qi(`/template/${n}`,{params:t}),patch:async(n,t={})=>ns(`/template/${n}`,{params:t})},q4={get:async(n={})=>xt("/templateGallery",{params:n})},rye={get:async(n,t={})=>xt(`/public/templateStat/${n}`,{params:t})},_p={get:async(n,t={})=>xt(`/public/document/${n}`,{params:t}),put:async(n,t,r={})=>Ur(`/public/document/${n}`,t,{headers:r}),answer:async(n,t,r={},i={})=>rn(`/public/document/${n}/answer`,t,{params:r,headers:i}),feedback:async(n,t,r={})=>rn(`/public/document/${n}/feedback`,t,{params:r})},RM={get:async(n,t={})=>xt(`/public/pdfJob/${n}`,{params:t}),addDocument:async(n,t={})=>xt(`/public/document/${n}/pdfJob/start`,{params:t})},LM={getDocuments:async(n={})=>{const t=mt.getItem("clientToken");return en.get(`${wp.baseUrl}/client/document`,{headers:{Authorization:t},params:n})},requestMagicLink:async(n,t={})=>en.post(`${wp.baseUrl}/client/requestMagicLink`,n,{params:t})},kv={get:async(n,t={})=>xt(`/public/company/${n}`,{params:t}),getCertificates:async(n,t={})=>xt(`/public/company/${n}/certificates`,{params:t}),getReferences:async(n,t={})=>xt(`/public/company/${n}/references`,{params:t})},iye={get:async(n,t={})=>xt(`${wp.baseUrl}/public/signature/${n}`,{params:t})},Y4={post:async(n,t={})=>rn("/voucher",n,{params:t}),canUse:async(n,t={})=>xt(`/voucher/${n}/canUse`,{params:t})},Ql={getAuthUrl:async(n,t={})=>xt("/extension/authUrl",{params:{...t,service:n}}),getPublicAuthUrl:async(n,t={})=>xt("/public/extension/authUrl",{params:{...t,service:n}}),install:async(n,t,r={})=>rn("/extension/install",t,{params:{...r,service:n}}),uninstall:async(n,t={})=>qi("/extension/uninstall",{params:{...t,service:n}}),suggestClients:async(n,t={})=>xt("/extension/suggestClients",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),signupWithCrm:async(n,t,r={})=>rn("/public/extension/register",t,{params:{...r,service:n}}),search:async(n,t={})=>xt("/extension/search",{params:{...t,service:n},saveCache:!0,cacheTtl:10}),getFields:async(n,t={})=>xt("/extension/fields",{params:{...t,service:n},saveCache:!0,cacheTtl:60}),getExternalReferenceDetails:async(n,t={})=>xt("/extension/externalReferenceDetails",{params:{...t,service:n},saveCache:!0,cacheTtl:20}),settings:async(n,t={})=>xt("/extension/settings",{params:{...t,service:n}})},ii={get:xt,post:rn,put:Ur,del:qi,patch:ns,authData:wp,getProjects:MM};function aye(n){try{const t=`${n}=`,r=document.cookie.split(";");for(let i=0;i<r.length;i++){let a=r[i];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}}catch{}return null}const oye="disabledThirdParties",sye=["google","facebook","segment","logrocket","rollbar"];function lye(){let n=[];try{const t=JSON.parse(aye(oye));Array.isArray(t)&&(n=t)}catch{}return n.filter(t=>sye.includes(t))}var FM={exports:{}};(function(n,t){(function(r,i){n.exports=i()})(Zt,function(){return function(r){var i={};function a(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return r[o].call(s.exports,s,s.exports,a),s.l=!0,s.exports}return a.m=r,a.c=i,a.d=function(o,s,c){a.o(o,s)||Object.defineProperty(o,s,{enumerable:!0,get:c})},a.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},a.t=function(o,s){if(1&s&&(o=a(o)),8&s||4&s&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(a.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&s&&typeof o!="string")for(var l in o)a.d(c,l,(function(u){return o[u]}).bind(null,l));return c},a.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(s,"a",s),s},a.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},a.p="",a(a.s=6)}([function(r,i,a){var o=a(12),s={};function c(E,T){return T===l(E)}function l(E){var T=typeof E;return T!=="object"?T:E?E instanceof Error?"error":{}.toString.call(E).match(/\s([a-zA-Z]+)/)[1].toLowerCase():"null"}function u(E){return c(E,"function")}function d(E){var T=Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),A=RegExp("^"+T+"$");return p(E)&&A.test(E)}function p(E){var T=typeof E;return E!=null&&(T=="object"||T=="function")}function f(){var E=k();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(T){var A=(E+16*Math.random())%16|0;return E=Math.floor(E/16),(T==="x"?A:7&A|8).toString(16)})}var h={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};function m(E,T){var A,$;try{A=s.stringify(E)}catch(I){if(T&&u(T))try{A=T(E)}catch(R){$=R}else $=I}return{error:$,value:A}}function g(E,T){return function(A,$){try{T(A,$)}catch(I){E.error(I)}}}function y(E){return function T(A,$){var I,R,Y,F={};try{for(R in A)(I=A[R])&&(c(I,"object")||c(I,"array"))?$.includes(I)?F[R]="Removed circular reference: "+l(I):((Y=$.slice()).push(I),F[R]=T(I,Y)):F[R]=I}catch(D){F="Failed cloning custom data: "+D.message}return F}(E,[E])}var b=["log","network","dom","navigation","error","manual"],_=["critical","error","warning","info","debug"];function S(E,T){for(var A=0;A<E.length;++A)if(E[A]===T)return!0;return!1}function k(){return Date.now?+Date.now():+new Date}r.exports={addParamsAndAccessTokenToPath:function(E,T,A){(A=A||{}).access_token=E;var $,I=[];for($ in A)Object.prototype.hasOwnProperty.call(A,$)&&I.push([$,A[$]].join("="));var R="?"+I.sort().join("&");(T=T||{}).path=T.path||"";var Y,F=T.path.indexOf("?"),D=T.path.indexOf("#");F!==-1&&(D===-1||D>F)?(Y=T.path,T.path=Y.substring(0,F)+R+"&"+Y.substring(F+1)):D!==-1?(Y=T.path,T.path=Y.substring(0,D)+R+Y.substring(D)):T.path=T.path+R},createItem:function(E,T,A,$,I){for(var R,Y,F,D,B,z,K=[],te=[],j=0,M=E.length;j<M;++j){var q=l(z=E[j]);switch(te.push(q),q){case"undefined":break;case"string":R?K.push(z):R=z;break;case"function":D=g(T,z);break;case"date":K.push(z);break;case"error":case"domexception":case"exception":Y?K.push(z):Y=z;break;case"object":case"array":if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}if($&&q==="object"&&!B){for(var G=0,ee=$.length;G<ee;++G)if(z[$[G]]!==void 0){B=z;break}if(B)break}F?K.push(z):F=z;break;default:if(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException){Y?K.push(z):Y=z;break}K.push(z)}}F&&(F=y(F)),K.length>0&&(F||(F=y({})),F.extraArgs=y(K));var ae={message:R,err:Y,custom:F,timestamp:k(),callback:D,notifier:A,diagnostic:{},uuid:f()};return function(ve,ye){ye&&ye.level!==void 0&&(ve.level=ye.level,delete ye.level),ye&&ye.skipFrames!==void 0&&(ve.skipFrames=ye.skipFrames,delete ye.skipFrames)}(ae,F),$&&B&&(ae.request=B),I&&(ae.lambdaContext=I),ae._originalArgs=E,ae.diagnostic.original_arg_types=te,ae},addErrorContext:function(E,T){var A=E.data.custom||{},$=!1;try{for(var I=0;I<T.length;++I)T[I].hasOwnProperty("rollbarContext")&&(A=o(A,y(T[I].rollbarContext)),$=!0);$&&(E.data.custom=A)}catch(R){E.diagnostic.error_context="Failed: "+R.message}},createTelemetryEvent:function(E){for(var T,A,$,I,R=0,Y=E.length;R<Y;++R)switch(l(I=E[R])){case"string":!T&&S(b,I)?T=I:!$&&S(_,I)&&($=I);break;case"object":A=I}return{type:T||"manual",metadata:A||{},level:$}},filterIp:function(E,T){if(E&&E.user_ip&&T!==!0){var A=E.user_ip;if(T)try{var $;if(A.indexOf(".")!==-1)($=A.split(".")).pop(),$.push("0"),A=$.join(".");else if(A.indexOf(":")!==-1){if(($=A.split(":")).length>2){var I=$.slice(0,3),R=I[2].indexOf("/");R!==-1&&(I[2]=I[2].substring(0,R)),A=I.concat("0000:0000:0000:0000:0000").join(":")}}else A=null}catch{A=null}else A=null;E.user_ip=A}},formatArgsAsString:function(E){var T,A,$,I=[];for(T=0,A=E.length;T<A;++T){switch(l($=E[T])){case"object":($=($=m($)).error||$.value).length>500&&($=$.substr(0,497)+"...");break;case"null":$="null";break;case"undefined":$="undefined";break;case"symbol":$=$.toString()}I.push($)}return I.join(" ")},formatUrl:function(E,T){if(!(T=T||E.protocol)&&E.port&&(E.port===80?T="http:":E.port===443&&(T="https:")),T=T||"https:",!E.hostname)return null;var A=T+"//"+E.hostname;return E.port&&(A=A+":"+E.port),E.path&&(A+=E.path),A},get:function(E,T){if(E){var A=T.split("."),$=E;try{for(var I=0,R=A.length;I<R;++I)$=$[A[I]]}catch{$=void 0}return $}},handleOptions:function(E,T,A,$){var I=o(E,T,A);return I=function(R,Y){return R.hostWhiteList&&!R.hostSafeList&&(R.hostSafeList=R.hostWhiteList,R.hostWhiteList=void 0,Y&&Y.log("hostWhiteList is deprecated. Use hostSafeList.")),R.hostBlackList&&!R.hostBlockList&&(R.hostBlockList=R.hostBlackList,R.hostBlackList=void 0,Y&&Y.log("hostBlackList is deprecated. Use hostBlockList.")),R}(I,$),!T||T.overwriteScrubFields||T.scrubFields&&(I.scrubFields=(E.scrubFields||[]).concat(T.scrubFields)),I},isError:function(E){return c(E,"error")||c(E,"exception")},isFiniteNumber:function(E){return Number.isFinite(E)},isFunction:u,isIterable:function(E){var T=l(E);return T==="object"||T==="array"},isNativeFunction:d,isObject:p,isString:function(E){return typeof E=="string"||E instanceof String},isType:c,isPromise:function(E){return p(E)&&c(E.then,"function")},jsonParse:function(E){var T,A;try{T=s.parse(E)}catch($){A=$}return{error:A,value:T}},LEVELS:{debug:0,info:1,warning:2,error:3,critical:4},makeUnhandledStackInfo:function(E,T,A,$,I,R,Y,F){var D={url:T||"",line:A,column:$};D.func=F.guessFunctionName(D.url,D.line),D.context=F.gatherContext(D.url,D.line);var B=typeof document<"u"&&document&&document.location&&document.location.href,z=typeof window<"u"&&window&&window.navigator&&window.navigator.userAgent;return{mode:R,message:I?String(I):E||Y,url:B,stack:[D],useragent:z}},merge:o,now:k,redact:function(){return"********"},RollbarJSON:s,sanitizeUrl:function(E){var T=function(A){if(c(A,"string")){for(var $=h,I=$.parser[$.strictMode?"strict":"loose"].exec(A),R={},Y=0,F=$.key.length;Y<F;++Y)R[$.key[Y]]=I[Y]||"";return R[$.q.name]={},R[$.key[12]].replace($.q.parser,function(D,B,z){B&&(R[$.q.name][B]=z)}),R}}(E);return T?(T.anchor===""&&(T.source=T.source.replace("#","")),E=T.source.replace("?"+T.query,"")):"(unknown)"},set:function(E,T,A){if(E){var $=T.split("."),I=$.length;if(!(I<1))if(I!==1)try{for(var R=E[$[0]]||{},Y=R,F=1;F<I-1;++F)R[$[F]]=R[$[F]]||{},R=R[$[F]];R[$[I-1]]=A,E[$[0]]=Y}catch{return}else E[$[0]]=A}},setupJSON:function(E){u(s.stringify)&&u(s.parse)||(c(JSON,"undefined")||(E?(d(JSON.stringify)&&(s.stringify=JSON.stringify),d(JSON.parse)&&(s.parse=JSON.parse)):(u(JSON.stringify)&&(s.stringify=JSON.stringify),u(JSON.parse)&&(s.parse=JSON.parse))),u(s.stringify)&&u(s.parse)||E&&E(s))},stringify:m,maxByteSize:function(E){for(var T=0,A=E.length,$=0;$<A;$++){var I=E.charCodeAt($);I<128?T+=1:I<2048?T+=2:I<65536&&(T+=3)}return T},typeName:l,uuid4:f}},function(r,i,a){a(17);var o=a(18),s=a(0);r.exports={error:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.error(s.formatArgsAsString(c)):console.error.apply(console,c)},info:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.info(s.formatArgsAsString(c)):console.info.apply(console,c)},log:function(){var c=Array.prototype.slice.call(arguments,0);c.unshift("Rollbar:"),o.ieVersion()<=8?console.log(s.formatArgsAsString(c)):console.log.apply(console,c)}}},function(r,i,a){r.exports={parse:function(o){var s,c,l={protocol:null,auth:null,host:null,path:null,hash:null,href:o,hostname:null,port:null,pathname:null,search:null,query:null};if((s=o.indexOf("//"))!==-1?(l.protocol=o.substring(0,s),c=s+2):c=0,(s=o.indexOf("@",c))!==-1&&(l.auth=o.substring(c,s),c=s+1),(s=o.indexOf("/",c))===-1){if((s=o.indexOf("?",c))===-1)return(s=o.indexOf("#",c))===-1?l.host=o.substring(c):(l.host=o.substring(c,s),l.hash=o.substring(s)),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),l;l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s}else l.host=o.substring(c,s),l.hostname=l.host.split(":")[0],l.port=l.host.split(":")[1],l.port&&(l.port=parseInt(l.port,10)),c=s;if((s=o.indexOf("#",c))===-1?l.path=o.substring(c):(l.path=o.substring(c,s),l.hash=o.substring(s)),l.path){var u=l.path.split("?");l.pathname=u[0],l.query=u[1],l.search=l.query?"?"+l.query:null}return l}}},function(r,i,a){var o=a(24),s=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): ");function c(){return null}function l(p){var f={};return f._stackFrame=p,f.url=p.fileName,f.line=p.lineNumber,f.func=p.functionName,f.column=p.columnNumber,f.args=p.args,f.context=null,f}function u(p,f){return{stack:function(){var h=[];f=f||0;try{h=o.parse(p)}catch{h=[]}for(var m=[],g=f;g<h.length;g++)m.push(new l(h[g]));return m}(),message:p.message,name:d(p),rawStack:p.stack,rawException:p}}function d(p){var f=p.name&&p.name.length&&p.name,h=p.constructor.name&&p.constructor.name.length&&p.constructor.name;return f&&h?f==="Error"?h:f:f||h}r.exports={guessFunctionName:function(){return"?"},guessErrorClass:function(p){if(!p||!p.match)return["Unknown error. There was no error message to display.",""];var f=p.match(s),h="(unknown)";return f&&(h=f[f.length-1],p=(p=p.replace((f[f.length-2]||"")+h+":","")).replace(/(^[\s]+|[\s]+$)/g,"")),[h,p]},gatherContext:c,parse:function(p,f){var h=p;if(h.nested||h.cause){for(var m=[];h;)m.push(new u(h,f)),h=h.nested||h.cause,f=0;return m[0].traceChain=m,m[0]}return new u(h,f)},Stack:u,Frame:l}},function(r,i,a){var o=a(0),s=a(5);function c(l,u){var d=u.split("."),p=d.length-1;try{for(var f=0;f<=p;++f)f<p?l=l[d[f]]:l[d[f]]=o.redact()}catch{}}r.exports=function(l,u,d){if(u=u||[],d)for(var p=0;p<d.length;++p)c(l,d[p]);var f=function(g){for(var y,b=[],_=0;_<g.length;++_)y="^\\[?(%5[bB])?"+g[_]+"\\[?(%5[bB])?\\]?(%5[dD])?$",b.push(new RegExp(y,"i"));return b}(u),h=function(g){for(var y,b=[],_=0;_<g.length;++_)y="\\[?(%5[bB])?"+g[_]+"\\[?(%5[bB])?\\]?(%5[dD])?",b.push(new RegExp("("+y+"=)([^&\\n]+)","igm"));return b}(u);function m(g,y){return y+o.redact()}return s(l,function g(y,b,_){var S=function(k,E){var T;for(T=0;T<f.length;++T)if(f[T].test(k)){E=o.redact();break}return E}(y,b);return S===b?o.isType(b,"object")||o.isType(b,"array")?s(b,g,_):function(k){var E;if(o.isType(k,"string"))for(E=0;E<h.length;++E)k=k.replace(h[E],m);return k}(S):S})}},function(r,i,a){var o=a(0);r.exports=function(s,c,l){var u,d,p,f,h=o.isType(s,"object"),m=o.isType(s,"array"),g=[];if(l=l||{obj:[],mapped:[]},h){if(f=l.obj.indexOf(s),h&&f!==-1)return l.mapped[f]||l.obj[f];l.obj.push(s),f=l.obj.length-1}if(h)for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&g.push(u);else if(m)for(p=0;p<s.length;++p)g.push(p);var y=h?{}:[],b=!0;for(p=0;p<g.length;++p)d=s[u=g[p]],y[u]=c(u,d,l),b=b&&y[u]===s[u];return h&&!b&&(l.mapped[f]=y),b?s:y}},function(r,i,a){r.exports=a(7)},function(r,i,a){var o=a(8),s=typeof window<"u"&&window._rollbarConfig,c=s&&s.globalAlias||"Rollbar",l=typeof window<"u"&&window[c]&&typeof window[c].shimId=="function"&&window[c].shimId()!==void 0;if(typeof window>"u"||window._rollbarStartTime||(window._rollbarStartTime=new Date().getTime()),!l&&s){var u=new o(s);window[c]=u}else typeof window<"u"?(window.rollbar=o,window._rollbarDidLoad=!0):typeof self<"u"&&(self.rollbar=o,self._rollbarDidLoad=!0);r.exports=o},function(r,i,a){var o=a(9),s=a(31),c=a(32),l=a(35),u=a(37),d=a(4),p=a(38);o.setComponents({telemeter:s,instrumenter:c,polyfillJSON:l,wrapGlobals:u,scrub:d,truncation:p}),r.exports=o},function(r,i,a){var o=a(10),s=a(0),c=a(15),l=a(1),u=a(19),d=a(20),p=a(2),f=a(23),h=a(26),m=a(27),g=a(28),y=a(3);function b(I,R){this.options=s.handleOptions($,I,null,l),this.options._configuredOptions=I;var Y=this.components.telemeter,F=this.components.instrumenter,D=this.components.polyfillJSON;this.wrapGlobals=this.components.wrapGlobals,this.scrub=this.components.scrub;var B=this.components.truncation,z=new d(B),K=new c(this.options,z,p,B);Y&&(this.telemeter=new Y(this.options)),this.client=R||new o(this.options,K,l,this.telemeter,"browser");var te=E(),j=typeof document<"u"&&document;this.isChrome=te.chrome&&te.chrome.runtime,this.anonymousErrorsPending=0,function(M,q,G){M.addTransform(f.handleDomException).addTransform(f.handleItemWithError).addTransform(f.ensureItemHasSomethingToSay).addTransform(f.addBaseInfo).addTransform(f.addRequestInfo(G)).addTransform(f.addClientInfo(G)).addTransform(f.addPluginInfo(G)).addTransform(f.addBody).addTransform(h.addMessageWithError).addTransform(h.addTelemetryData).addTransform(h.addConfigToPayload).addTransform(f.addScrubber(q.scrub)).addTransform(h.addPayloadOptions).addTransform(h.userTransform(l)).addTransform(h.addConfiguredOptions).addTransform(h.addDiagnosticKeys).addTransform(h.itemToPayload)}(this.client.notifier,this,te),this.client.queue.addPredicate(g.checkLevel).addPredicate(m.checkIgnore).addPredicate(g.userCheckIgnore(l)).addPredicate(g.urlIsNotBlockListed(l)).addPredicate(g.urlIsSafeListed(l)).addPredicate(g.messageIsIgnored(l)),this.setupUnhandledCapture(),F&&(this.instrumenter=new F(this.options,this.client.telemeter,this,te,j),this.instrumenter.instrument()),s.setupJSON(D),this.rollbar=this}var _=null;function S(I){var R="Rollbar is not initialized";l.error(R),I&&I(new Error(R))}function k(I){for(var R=0,Y=I.length;R<Y;++R)if(s.isFunction(I[R]))return I[R]}function E(){return typeof window<"u"&&window||typeof self<"u"&&self}b.init=function(I,R){return _?_.global(I).configure(I):_=new b(I,R)},b.prototype.components={},b.setComponents=function(I){b.prototype.components=I},b.prototype.global=function(I){return this.client.global(I),this},b.global=function(I){if(_)return _.global(I);S()},b.prototype.configure=function(I,R){var Y=this.options,F={};return R&&(F={payload:R}),this.options=s.handleOptions(Y,I,F,l),this.options._configuredOptions=s.handleOptions(Y._configuredOptions,I,F),this.client.configure(this.options,R),this.instrumenter&&this.instrumenter.configure(this.options),this.setupUnhandledCapture(),this},b.configure=function(I,R){if(_)return _.configure(I,R);S()},b.prototype.lastError=function(){return this.client.lastError},b.lastError=function(){if(_)return _.lastError();S()},b.prototype.log=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.log(I),{uuid:R}},b.log=function(){if(_)return _.log.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.debug=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.debug(I),{uuid:R}},b.debug=function(){if(_)return _.debug.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.info=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.info(I),{uuid:R}},b.info=function(){if(_)return _.info.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.warn=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warn(I),{uuid:R}},b.warn=function(){if(_)return _.warn.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.warning=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.warning(I),{uuid:R}},b.warning=function(){if(_)return _.warning.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.error=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.error(I),{uuid:R}},b.error=function(){if(_)return _.error.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.critical=function(){var I=this._createItem(arguments),R=I.uuid;return this.client.critical(I),{uuid:R}},b.critical=function(){if(_)return _.critical.apply(_,arguments);var I=k(arguments);S(I)},b.prototype.buildJsonPayload=function(I){return this.client.buildJsonPayload(I)},b.buildJsonPayload=function(){if(_)return _.buildJsonPayload.apply(_,arguments);S()},b.prototype.sendJsonPayload=function(I){return this.client.sendJsonPayload(I)},b.sendJsonPayload=function(){if(_)return _.sendJsonPayload.apply(_,arguments);S()},b.prototype.setupUnhandledCapture=function(){var I=E();this.unhandledExceptionsInitialized||(this.options.captureUncaught||this.options.handleUncaughtExceptions)&&(u.captureUncaughtExceptions(I,this),this.wrapGlobals&&this.options.wrapGlobalEventHandlers&&this.wrapGlobals(I,this),this.unhandledExceptionsInitialized=!0),this.unhandledRejectionsInitialized||(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections)&&(u.captureUnhandledRejections(I,this),this.unhandledRejectionsInitialized=!0)},b.prototype.handleUncaughtException=function(I,R,Y,F,D,B){if(this.options.captureUncaught||this.options.handleUncaughtExceptions){if(this.options.inspectAnonymousErrors&&this.isChrome&&D===null&&R==="")return"anonymous";var z,K=s.makeUnhandledStackInfo(I,R,Y,F,D,"onerror","uncaught exception",y);s.isError(D)?(z=this._createItem([I,D,B]))._unhandledStackInfo=K:s.isError(R)?(z=this._createItem([I,R,B]))._unhandledStackInfo=K:(z=this._createItem([I,B])).stackInfo=K,z.level=this.options.uncaughtErrorLevel,z._isUncaught=!0,this.client.log(z)}},b.prototype.handleAnonymousErrors=function(){if(this.options.inspectAnonymousErrors&&this.isChrome){var I=this;try{Error.prepareStackTrace=function(R,Y){if(I.options.inspectAnonymousErrors&&I.anonymousErrorsPending){if(I.anonymousErrorsPending-=1,!R)return;R._isAnonymous=!0,I.handleUncaughtException(R.message,null,null,null,R)}return R.stack}}catch(R){this.options.inspectAnonymousErrors=!1,this.error("anonymous error handler failed",R)}}},b.prototype.handleUnhandledRejection=function(I,R){if(this.options.captureUnhandledRejections||this.options.handleUnhandledRejections){var Y="unhandled rejection was null or undefined!";if(I)if(I.message)Y=I.message;else{var F=s.stringify(I);F.value&&(Y=F.value)}var D,B=I&&I._rollbarContext||R&&R._rollbarContext;s.isError(I)?D=this._createItem([Y,I,B]):(D=this._createItem([Y,I,B])).stackInfo=s.makeUnhandledStackInfo(Y,"",0,0,null,"unhandledrejection","",y),D.level=this.options.uncaughtErrorLevel,D._isUncaught=!0,D._originalArgs=D._originalArgs||[],D._originalArgs.push(R),this.client.log(D)}},b.prototype.wrap=function(I,R,Y){try{var F;if(F=s.isFunction(R)?R:function(){return R||{}},!s.isFunction(I)||I._isWrap)return I;if(!I._rollbar_wrapped&&(I._rollbar_wrapped=function(){Y&&s.isFunction(Y)&&Y.apply(this,arguments);try{return I.apply(this,arguments)}catch(z){var B=z;throw B&&window._rollbarWrappedError!==B&&(s.isType(B,"string")&&(B=new String(B)),B._rollbarContext=F()||{},B._rollbarContext._wrappedSource=I.toString(),window._rollbarWrappedError=B),B}},I._rollbar_wrapped._isWrap=!0,I.hasOwnProperty))for(var D in I)I.hasOwnProperty(D)&&D!=="_rollbar_wrapped"&&(I._rollbar_wrapped[D]=I[D]);return I._rollbar_wrapped}catch{return I}},b.wrap=function(I,R){if(_)return _.wrap(I,R);S()},b.prototype.captureEvent=function(){var I=s.createTelemetryEvent(arguments);return this.client.captureEvent(I.type,I.metadata,I.level)},b.captureEvent=function(){if(_)return _.captureEvent.apply(_,arguments);S()},b.prototype.captureDomContentLoaded=function(I,R){return R||(R=new Date),this.client.captureDomContentLoaded(R)},b.prototype.captureLoad=function(I,R){return R||(R=new Date),this.client.captureLoad(R)},b.prototype.loadFull=function(){l.info("Unexpected Rollbar.loadFull() called on a Notifier instance. This can happen when Rollbar is loaded multiple times.")},b.prototype._createItem=function(I){return s.createItem(I,l,this)};var T=a(29),A=a(30),$={version:T.version,scrubFields:A.scrubFields,logLevel:T.logLevel,reportLevel:T.reportLevel,uncaughtErrorLevel:T.uncaughtErrorLevel,endpoint:T.endpoint,verbose:!1,enabled:!0,transmit:!0,sendConfig:!1,includeItemsInTelemetry:!0,captureIp:!0,inspectAnonymousErrors:!0,ignoreDuplicateErrors:!0,wrapGlobalEventHandlers:!1};r.exports=b},function(r,i,a){var o=a(11),s=a(13),c=a(14),l=a(0);function u(f,h,m,g,y){this.options=l.merge(f),this.logger=m,u.rateLimiter.configureGlobal(this.options),u.rateLimiter.setPlatformOptions(y,this.options),this.api=h,this.queue=new s(u.rateLimiter,h,m,this.options);var b=this.options.tracer||null;p(b)?(this.tracer=b,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier=new c(this.queue,this.options),this.telemeter=g,d(f),this.lastError=null,this.lastErrorHash="none"}function d(f){f.stackTraceLimit&&(Error.stackTraceLimit=f.stackTraceLimit)}function p(f){if(!f||!f.scope||typeof f.scope!="function")return!1;var h=f.scope();return!(!h||!h.active||typeof h.active!="function")}u.rateLimiter=new o({maxItems:0,itemsPerMinute:60}),u.prototype.global=function(f){return u.rateLimiter.configureGlobal(f),this},u.prototype.configure=function(f,h){var m=this.options,g={};h&&(g={payload:h}),this.options=l.merge(m,f,g);var y=this.options.tracer||null;return p(y)?(this.tracer=y,this.options.tracer="opentracing-tracer-enabled",this.options._configuredOptions.tracer="opentracing-tracer-enabled"):this.tracer=null,this.notifier&&this.notifier.configure(this.options),this.telemeter&&this.telemeter.configure(this.options),d(f),this.global(this.options),p(f.tracer)&&(this.tracer=f.tracer),this},u.prototype.log=function(f){var h=this._defaultLogLevel();return this._log(h,f)},u.prototype.debug=function(f){this._log("debug",f)},u.prototype.info=function(f){this._log("info",f)},u.prototype.warn=function(f){this._log("warning",f)},u.prototype.warning=function(f){this._log("warning",f)},u.prototype.error=function(f){this._log("error",f)},u.prototype.critical=function(f){this._log("critical",f)},u.prototype.wait=function(f){this.queue.wait(f)},u.prototype.captureEvent=function(f,h,m){return this.telemeter&&this.telemeter.captureEvent(f,h,m)},u.prototype.captureDomContentLoaded=function(f){return this.telemeter&&this.telemeter.captureDomContentLoaded(f)},u.prototype.captureLoad=function(f){return this.telemeter&&this.telemeter.captureLoad(f)},u.prototype.buildJsonPayload=function(f){return this.api.buildJsonPayload(f)},u.prototype.sendJsonPayload=function(f){this.api.postJsonPayload(f)},u.prototype._log=function(f,h){var m;if(h.callback&&(m=h.callback,delete h.callback),this.options.ignoreDuplicateErrors&&this._sameAsLastError(h)){if(m){var g=new Error("ignored identical item");g.item=h,m(g)}}else try{this._addTracingInfo(h),h.level=h.level||f,this.telemeter&&this.telemeter._captureRollbarItem(h),h.telemetryEvents=this.telemeter&&this.telemeter.copyEvents()||[],this.notifier.log(h,m)}catch(y){m&&m(y),this.logger.error(y)}},u.prototype._defaultLogLevel=function(){return this.options.logLevel||"debug"},u.prototype._sameAsLastError=function(f){if(!f._isUncaught)return!1;var h=function(m){var g=m.message||"",y=(m.err||{}).stack||String(m.err);return g+"::"+y}(f);return this.lastErrorHash===h||(this.lastError=f.err,this.lastErrorHash=h,!1)},u.prototype._addTracingInfo=function(f){if(this.tracer){var h=this.tracer.scope().active();if(function(y){if(!y||!y.context||typeof y.context!="function")return!1;var b=y.context();return!(!b||!b.toSpanId||!b.toTraceId||typeof b.toSpanId!="function"||typeof b.toTraceId!="function")}(h)){h.setTag("rollbar.error_uuid",f.uuid),h.setTag("rollbar.has_error",!0),h.setTag("error",!0),h.setTag("rollbar.item_url","https://rollbar.com/item/uuid/?uuid="+f.uuid),h.setTag("rollbar.occurrence_url","https://rollbar.com/occurrence/uuid/?uuid="+f.uuid);var m=h.context().toSpanId(),g=h.context().toTraceId();f.custom?(f.custom.opentracing_span_id=m,f.custom.opentracing_trace_id=g):f.custom={opentracing_span_id:m,opentracing_trace_id:g}}}},r.exports=u},function(r,i,a){var o=a(0);function s(u){this.startTime=o.now(),this.counter=0,this.perMinCounter=0,this.platform=null,this.platformOptions={},this.configureGlobal(u)}function c(u,d,p){return!u.ignoreRateLimit&&d>=1&&p>d}function l(u,d,p,f,h,m,g){var y=null;return p&&(p=new Error(p)),p||f||(y=function(b,_,S,k,E){var T,A=_.environment||_.payload&&_.payload.environment;T=E?"item per minute limit reached, ignoring errors until timeout":"maxItems has been hit, ignoring errors until reset.";var $={body:{message:{body:T,extra:{maxItems:S,itemsPerMinute:k}}},language:"javascript",environment:A,notifier:{version:_.notifier&&_.notifier.version||_.version}};return b==="browser"?($.platform="browser",$.framework="browser-js",$.notifier.name="rollbar-browser-js"):b==="server"?($.framework=_.framework||"node-js",$.notifier.name=_.notifier.name):b==="react-native"&&($.framework=_.framework||"react-native",$.notifier.name=_.notifier.name),$}(u,d,h,m,g)),{error:p,shouldSend:f,payload:y}}s.globalSettings={startTime:o.now(),maxItems:void 0,itemsPerMinute:void 0},s.prototype.configureGlobal=function(u){u.startTime!==void 0&&(s.globalSettings.startTime=u.startTime),u.maxItems!==void 0&&(s.globalSettings.maxItems=u.maxItems),u.itemsPerMinute!==void 0&&(s.globalSettings.itemsPerMinute=u.itemsPerMinute)},s.prototype.shouldSend=function(u,d){var p=(d=d||o.now())-this.startTime;(p<0||p>=6e4)&&(this.startTime=d,this.perMinCounter=0);var f=s.globalSettings.maxItems,h=s.globalSettings.itemsPerMinute;if(c(u,f,this.counter))return l(this.platform,this.platformOptions,f+" max items reached",!1);if(c(u,h,this.perMinCounter))return l(this.platform,this.platformOptions,h+" items per minute reached",!1);this.counter++,this.perMinCounter++;var m=!c(u,f,this.counter),g=m;return m=m&&!c(u,h,this.perMinCounter),l(this.platform,this.platformOptions,null,m,f,h,g)},s.prototype.setPlatformOptions=function(u,d){this.platform=u,this.platformOptions=d},r.exports=s},function(r,i,a){var o=Object.prototype.hasOwnProperty,s=Object.prototype.toString,c=function(l){if(!l||s.call(l)!=="[object Object]")return!1;var u,d=o.call(l,"constructor"),p=l.constructor&&l.constructor.prototype&&o.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!d&&!p)return!1;for(u in l);return u===void 0||o.call(l,u)};r.exports=function l(){var u,d,p,f,h,m={},g=null,y=arguments.length;for(u=0;u<y;u++)if((g=arguments[u])!=null)for(h in g)d=m[h],m!==(p=g[h])&&(p&&c(p)?(f=d&&c(d)?d:{},m[h]=l(f,p)):p!==void 0&&(m[h]=p));return m}},function(r,i,a){var o=a(0);function s(l,u,d,p){this.rateLimiter=l,this.api=u,this.logger=d,this.options=p,this.predicates=[],this.pendingItems=[],this.pendingRequests=[],this.retryQueue=[],this.retryHandle=null,this.waitCallback=null,this.waitIntervalID=null}s.prototype.configure=function(l){this.api&&this.api.configure(l);var u=this.options;return this.options=o.merge(u,l),this},s.prototype.addPredicate=function(l){return o.isFunction(l)&&this.predicates.push(l),this},s.prototype.addPendingItem=function(l){this.pendingItems.push(l)},s.prototype.removePendingItem=function(l){var u=this.pendingItems.indexOf(l);u!==-1&&this.pendingItems.splice(u,1)},s.prototype.addItem=function(l,u,d,p){u&&o.isFunction(u)||(u=function(){});var f=this._applyPredicates(l);if(f.stop)return this.removePendingItem(p),void u(f.err);if(this._maybeLog(l,d),this.removePendingItem(p),this.options.transmit){this.pendingRequests.push(l);try{this._makeApiRequest(l,(function(h,m){this._dequeuePendingRequest(l),u(h,m)}).bind(this))}catch(h){this._dequeuePendingRequest(l),u(h)}}else u(new Error("Transmit disabled"))},s.prototype.wait=function(l){o.isFunction(l)&&(this.waitCallback=l,this._maybeCallWait()||(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitIntervalID=setInterval((function(){this._maybeCallWait()}).bind(this),500)))},s.prototype._applyPredicates=function(l){for(var u=null,d=0,p=this.predicates.length;d<p;d++)if(!(u=this.predicates[d](l,this.options))||u.err!==void 0)return{stop:!0,err:u.err};return{stop:!1,err:null}},s.prototype._makeApiRequest=function(l,u){var d=this.rateLimiter.shouldSend(l);d.shouldSend?this.api.postItem(l,(function(p,f){p?this._maybeRetry(p,l,u):u(p,f)}).bind(this)):d.error?u(d.error):this.api.postItem(d.payload,u)};var c=["ECONNRESET","ENOTFOUND","ESOCKETTIMEDOUT","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH","EPIPE","EAI_AGAIN"];s.prototype._maybeRetry=function(l,u,d){var p=!1;if(this.options.retryInterval){for(var f=0,h=c.length;f<h;f++)if(l.code===c[f]){p=!0;break}p&&o.isFiniteNumber(this.options.maxRetries)&&(u.retries=u.retries?u.retries+1:1,u.retries>this.options.maxRetries&&(p=!1))}p?this._retryApiRequest(u,d):d(l)},s.prototype._retryApiRequest=function(l,u){this.retryQueue.push({item:l,callback:u}),this.retryHandle||(this.retryHandle=setInterval((function(){for(;this.retryQueue.length;){var d=this.retryQueue.shift();this._makeApiRequest(d.item,d.callback)}}).bind(this),this.options.retryInterval))},s.prototype._dequeuePendingRequest=function(l){var u=this.pendingRequests.indexOf(l);u!==-1&&(this.pendingRequests.splice(u,1),this._maybeCallWait())},s.prototype._maybeLog=function(l,u){if(this.logger&&this.options.verbose){var d=u;if(d=(d=d||o.get(l,"body.trace.exception.message"))||o.get(l,"body.trace_chain.0.exception.message"))return void this.logger.error(d);(d=o.get(l,"body.message.body"))&&this.logger.log(d)}},s.prototype._maybeCallWait=function(){return!(!o.isFunction(this.waitCallback)||this.pendingItems.length!==0||this.pendingRequests.length!==0)&&(this.waitIntervalID&&(this.waitIntervalID=clearInterval(this.waitIntervalID)),this.waitCallback(),!0)},r.exports=s},function(r,i,a){var o=a(0);function s(c,l){this.queue=c,this.options=l,this.transforms=[],this.diagnostic={}}s.prototype.configure=function(c){this.queue&&this.queue.configure(c);var l=this.options;return this.options=o.merge(l,c),this},s.prototype.addTransform=function(c){return o.isFunction(c)&&this.transforms.push(c),this},s.prototype.log=function(c,l){if(l&&o.isFunction(l)||(l=function(){}),!this.options.enabled)return l(new Error("Rollbar is not enabled"));this.queue.addPendingItem(c);var u=c.err;this._applyTransforms(c,(function(d,p){if(d)return this.queue.removePendingItem(c),l(d,null);this.queue.addItem(p,l,u,c)}).bind(this))},s.prototype._applyTransforms=function(c,l){var u=-1,d=this.transforms.length,p=this.transforms,f=this.options,h=function(m,g){m?l(m,null):++u!==d?p[u](g,f,h):l(null,g)};h(null,c)},r.exports=s},function(r,i,a){var o=a(0),s=a(16),c={hostname:"api.rollbar.com",path:"/api/1/item/",search:null,version:"1",protocol:"https:",port:443};function l(d,p,f,h,m){this.options=d,this.transport=p,this.url=f,this.truncation=h,this.jsonBackup=m,this.accessToken=d.accessToken,this.transportOptions=u(d,f)}function u(d,p){return s.getTransportFromOptions(d,c,p)}l.prototype.postItem=function(d,p){var f=s.transportOptions(this.transportOptions,"POST"),h=s.buildPayload(this.accessToken,d,this.jsonBackup),m=this;setTimeout(function(){m.transport.post(m.accessToken,f,h,p)},0)},l.prototype.buildJsonPayload=function(d,p){var f,h=s.buildPayload(this.accessToken,d,this.jsonBackup);return(f=this.truncation?this.truncation.truncate(h):o.stringify(h)).error?(p&&p(f.error),null):f.value},l.prototype.postJsonPayload=function(d,p){var f=s.transportOptions(this.transportOptions,"POST");this.transport.postJsonPayload(this.accessToken,f,d,p)},l.prototype.configure=function(d){var p=this.oldOptions;return this.options=o.merge(p,d),this.transportOptions=u(this.options,this.url),this.options.accessToken!==void 0&&(this.accessToken=this.options.accessToken),this},r.exports=l},function(r,i,a){var o=a(0);r.exports={buildPayload:function(s,c,l){if(!o.isType(c.context,"string")){var u=o.stringify(c.context,l);u.error?c.context="Error: could not serialize 'context'":c.context=u.value||"",c.context.length>255&&(c.context=c.context.substr(0,255))}return{access_token:s,data:c}},getTransportFromOptions:function(s,c,l){var u=c.hostname,d=c.protocol,p=c.port,f=c.path,h=c.search,m=s.timeout,g=function(_){var S=typeof window<"u"&&window||typeof self<"u"&&self,k=_.defaultTransport||"xhr";return S.fetch===void 0&&(k="xhr"),S.XMLHttpRequest===void 0&&(k="fetch"),k}(s),y=s.proxy;if(s.endpoint){var b=l.parse(s.endpoint);u=b.hostname,d=b.protocol,p=b.port,f=b.pathname,h=b.search}return{timeout:m,hostname:u,protocol:d,port:p,path:f,search:h,proxy:y,transport:g}},transportOptions:function(s,c){var l=s.protocol||"https:",u=s.port||(l==="http:"?80:l==="https:"?443:void 0),d=s.hostname,p=s.path,f=s.timeout,h=s.transport;return s.search&&(p+=s.search),s.proxy&&(p=l+"//"+d+p,d=s.proxy.host||s.proxy.hostname,u=s.proxy.port,l=s.proxy.protocol||l),{timeout:f,protocol:l,hostname:d,path:p,port:u,method:c,transport:h}},appendPathToPath:function(s,c){var l=/\/$/.test(s),u=/^\//.test(c);return l&&u?c=c.substring(1):l||u||(c="/"+c),s+c}}},function(r,i){(function(a){a.console||(a.console={});for(var o,s,c=a.console,l=function(){},u=["memory"],d="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");o=u.pop();)c[o]||(c[o]={});for(;s=d.pop();)c[s]||(c[s]=l)})(typeof window>"u"?this:window)},function(r,i,a){var o={ieVersion:function(){if(typeof document<"u"){for(var s=3,c=document.createElement("div"),l=c.getElementsByTagName("i");c.innerHTML="<!--[if gt IE "+ ++s+"]><i></i><![endif]-->",l[0];);return s>4?s:void 0}}};r.exports=o},function(r,i,a){function o(s,c,l,u){s._rollbarWrappedError&&(u[4]||(u[4]=s._rollbarWrappedError),u[5]||(u[5]=s._rollbarWrappedError._rollbarContext),s._rollbarWrappedError=null);var d=c.handleUncaughtException.apply(c,u);l&&l.apply(s,u),d==="anonymous"&&(c.anonymousErrorsPending+=1)}r.exports={captureUncaughtExceptions:function(s,c,l){if(s){var u;if(typeof c._rollbarOldOnError=="function")u=c._rollbarOldOnError;else if(s.onerror){for(u=s.onerror;u._rollbarOldOnError;)u=u._rollbarOldOnError;c._rollbarOldOnError=u}c.handleAnonymousErrors();var d=function(){var p=Array.prototype.slice.call(arguments,0);o(s,c,u,p)};l&&(d._rollbarOldOnError=u),s.onerror=d}},captureUnhandledRejections:function(s,c,l){if(s){typeof s._rollbarURH=="function"&&s._rollbarURH.belongsToShim&&s.removeEventListener("unhandledrejection",s._rollbarURH);var u=function(d){var p,f,h;try{p=d.reason}catch{p=void 0}try{f=d.promise}catch{f="[unhandledrejection] error getting `promise` from event"}try{h=d.detail,!p&&h&&(p=h.reason,f=h.promise)}catch{}p||(p="[unhandledrejection] error getting `reason` from event"),c&&c.handleUnhandledRejection&&c.handleUnhandledRejection(p,f)};u.belongsToShim=l,s._rollbarURH=u,s.addEventListener("unhandledrejection",u)}}}},function(r,i,a){var o=a(0),s=a(21),c=a(22);function l(u){this.truncation=u}l.prototype.get=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){}),o.addParamsAndAccessTokenToPath(u,d,p);var m=o.formatUrl(d);this._makeZoneRequest(u,m,"GET",null,f,h,d.timeout,d.transport)},l.prototype.post=function(u,d,p,f,h){if(f&&o.isFunction(f)||(f=function(){}),!p)return f(new Error("Cannot send empty request"));var m;if((m=this.truncation?this.truncation.truncate(p):o.stringify(p)).error)return f(m.error);var g=m.value,y=o.formatUrl(d);this._makeZoneRequest(u,y,"POST",g,f,h,d.timeout,d.transport)},l.prototype.postJsonPayload=function(u,d,p,f,h){f&&o.isFunction(f)||(f=function(){});var m=o.formatUrl(d);this._makeZoneRequest(u,m,"POST",p,f,h,d.timeout,d.transport)},l.prototype._makeZoneRequest=function(){var u=typeof window<"u"&&window||h!==void 0&&h,d=u&&u.Zone&&u.Zone.current,p=Array.prototype.slice.call(arguments);if(d&&d._name==="angular"){var f=d._parent,h=this;f.run(function(){h._makeRequest.apply(void 0,p)})}else this._makeRequest.apply(void 0,p)},l.prototype._makeRequest=function(u,d,p,f,h,m,g,y){if(typeof RollbarProxy<"u")return function(b,_){new RollbarProxy().sendJsonPayload(b,function(S){},function(S){_(new Error(S))})}(f,h);y==="fetch"?s(u,d,p,f,h,g):c(u,d,p,f,h,m,g)},r.exports=l},function(r,i,a){var o=a(1),s=a(0);r.exports=function(c,l,u,d,p,f){var h,m;s.isFiniteNumber(f)&&(h=new AbortController,m=setTimeout(function(){h.abort()},f)),fetch(l,{method:u,headers:{"Content-Type":"application/json","X-Rollbar-Access-Token":c,signal:h&&h.signal},body:d}).then(function(g){return m&&clearTimeout(m),g.json()}).then(function(g){p(null,g)}).catch(function(g){o.error(g.message),p(g)})}},function(r,i,a){var o=a(0),s=a(1);function c(l,u){var d=new Error(l);return d.code=u||"ENOTFOUND",d}r.exports=function(l,u,d,p,f,h,m){var g;if(!(g=h?h():function(){var _,S,k=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],E=k.length;for(S=0;S<E;S++)try{_=k[S]();break}catch{}return _}()))return f(new Error("No way to send a request"));try{try{var y=function(){try{if(y&&g.readyState===4){y=void 0;var _=o.jsonParse(g.responseText);if((E=g)&&E.status&&E.status===200)return void f(_.error,_.value);if(function(T){return T&&o.isType(T.status,"number")&&T.status>=400&&T.status<600}(g)){if(g.status===403){var S=_.value&&_.value.message;s.error(S)}f(new Error(String(g.status)))}else f(c("XHR response had no status code (likely connection failure)"))}}catch(T){var k;k=T&&T.stack?T:new Error(T),f(k)}var E};g.open(d,u,!0),g.setRequestHeader&&(g.setRequestHeader("Content-Type","application/json"),g.setRequestHeader("X-Rollbar-Access-Token",l)),o.isFiniteNumber(m)&&(g.timeout=m),g.onreadystatechange=y,g.send(p)}catch{if(typeof XDomainRequest<"u"){if(!window||!window.location)return f(new Error("No window available during request, unknown environment"));window.location.href.substring(0,5)==="http:"&&u.substring(0,5)==="https"&&(u="http"+u.substring(5));var b=new XDomainRequest;b.onprogress=function(){},b.ontimeout=function(){f(c("Request timed out","ETIMEDOUT"))},b.onerror=function(){f(new Error("Error during request"))},b.onload=function(){var S=o.jsonParse(b.responseText);f(S.error,S.value)},b.open(d,u,!0),b.send(p)}else f(new Error("Cannot find a method to transport a request"))}}catch(_){f(_)}}},function(r,i,a){var o=a(0),s=a(3),c=a(1);function l(f,h,m){var g=f.message,y=f.custom;g||(g="Item sent with null or missing arguments.");var b={body:g};y&&(b.extra=o.merge(y)),o.set(f,"data.body",{message:b}),m(null,f)}function u(f){var h=f.stackInfo.stack;return h&&h.length===0&&f._unhandledStackInfo&&f._unhandledStackInfo.stack&&(h=f._unhandledStackInfo.stack),h}function d(f,h,m){var g=f&&f.data.description,y=f&&f.custom,b=u(f),_=s.guessErrorClass(h.message),S={exception:{class:p(h,_[0],m),message:_[1]}};if(g&&(S.exception.description=g),b){var k,E,T,A,$,I,R,Y;for(b.length===0&&(S.exception.stack=h.rawStack,S.exception.raw=String(h.rawException)),S.frames=[],R=0;R<b.length;++R)E={filename:(k=b[R]).url?o.sanitizeUrl(k.url):"(unknown)",lineno:k.line||null,method:k.func&&k.func!=="?"?k.func:"[anonymous]",colno:k.column},m.sendFrameUrl&&(E.url=k.url),E.method&&E.method.endsWith&&E.method.endsWith("_rollbar_wrapped")||(T=A=$=null,(I=k.context?k.context.length:0)&&(Y=Math.floor(I/2),A=k.context.slice(0,Y),T=k.context[Y],$=k.context.slice(Y)),T&&(E.code=T),(A||$)&&(E.context={},A&&A.length&&(E.context.pre=A),$&&$.length&&(E.context.post=$)),k.args&&(E.args=k.args),S.frames.push(E));S.frames.reverse(),y&&(S.extra=o.merge(y))}return S}function p(f,h,m){return f.name?f.name:m.guessErrorClass?h:"(unknown)"}r.exports={handleDomException:function(f,h,m){if(f.err&&s.Stack(f.err).name==="DOMException"){var g=new Error;g.name=f.err.name,g.message=f.err.message,g.stack=f.err.stack,g.nested=f.err,f.err=g}m(null,f)},handleItemWithError:function(f,h,m){if(f.data=f.data||{},f.err)try{f.stackInfo=f.err._savedStackTrace||s.parse(f.err,f.skipFrames),h.addErrorContext&&function(g){var y=[],b=g.err;for(y.push(b);b.nested||b.cause;)b=b.nested||b.cause,y.push(b);o.addErrorContext(g,y)}(f)}catch(g){c.error("Error while parsing the error object.",g);try{f.message=f.err.message||f.err.description||f.message||String(f.err)}catch(y){f.message=String(f.err)||String(y)}delete f.err}m(null,f)},ensureItemHasSomethingToSay:function(f,h,m){f.message||f.stackInfo||f.custom||m(new Error("No message, stack info, or custom data"),null),m(null,f)},addBaseInfo:function(f,h,m){var g=h.payload&&h.payload.environment||h.environment;f.data=o.merge(f.data,{environment:g,level:f.level,endpoint:h.endpoint,platform:"browser",framework:"browser-js",language:"javascript",server:{},uuid:f.uuid,notifier:{name:"rollbar-browser-js",version:h.version},custom:f.custom}),m(null,f)},addRequestInfo:function(f){return function(h,m,g){var y={};f&&f.location&&(y.url=f.location.href,y.query_string=f.location.search);var b="$remote_ip";m.captureIp?m.captureIp!==!0&&(b+="_anonymize"):b=null,b&&(y.user_ip=b),Object.keys(y).length>0&&o.set(h,"data.request",y),g(null,h)}},addClientInfo:function(f){return function(h,m,g){if(!f)return g(null,h);var y=f.navigator||{},b=f.screen||{};o.set(h,"data.client",{runtime_ms:h.timestamp-f._rollbarStartTime,timestamp:Math.round(h.timestamp/1e3),javascript:{browser:y.userAgent,language:y.language,cookie_enabled:y.cookieEnabled,screen:{width:b.width,height:b.height}}}),g(null,h)}},addPluginInfo:function(f){return function(h,m,g){if(!f||!f.navigator)return g(null,h);for(var y,b=[],_=f.navigator.plugins||[],S=0,k=_.length;S<k;++S)y=_[S],b.push({name:y.name,description:y.description});o.set(h,"data.client.javascript.plugins",b),g(null,h)}},addBody:function(f,h,m){f.stackInfo?f.stackInfo.traceChain?function(g,y,b){for(var _=g.stackInfo.traceChain,S=[],k=_.length,E=0;E<k;E++){var T=d(g,_[E],y);S.push(T)}o.set(g,"data.body",{trace_chain:S}),b(null,g)}(f,h,m):function(g,y,b){if(u(g)){var _=d(g,g.stackInfo,y);o.set(g,"data.body",{trace:_}),b(null,g)}else{var S=g.stackInfo,k=s.guessErrorClass(S.message),E=p(S,k[0],y),T=k[1];g.message=E+": "+T,l(g,y,b)}}(f,h,m):l(f,h,m)},addScrubber:function(f){return function(h,m,g){if(f){var y=m.scrubFields||[],b=m.scrubPaths||[];h.data=f(h.data,y,b)}g(null,h)}}}},function(r,i,a){var o,s,c;(function(l,u){s=[a(25)],(c=typeof(o=function(d){var p=/(^|@)\S+:\d+/,f=/^\s*at .*(\S+:\d+|\(native\))/m,h=/^(eval@)?(\[native code])?$/;return{parse:function(m){if(m.stacktrace!==void 0||m["opera#sourceloc"]!==void 0)return this.parseOpera(m);if(m.stack&&m.stack.match(f))return this.parseV8OrIE(m);if(m.stack)return this.parseFFOrSafari(m);throw new Error("Cannot parse given Error object")},extractLocation:function(m){if(m.indexOf(":")===-1)return[m];var g=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(m.replace(/[()]/g,""));return[g[1],g[2]||void 0,g[3]||void 0]},parseV8OrIE:function(m){return m.stack.split(`
223
223
  `).filter(function(g){return!!g.match(f)},this).map(function(g){g.indexOf("(eval ")>-1&&(g=g.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var y=g.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),b=y.match(/ (\(.+\)$)/);y=b?y.replace(b[0],""):y;var _=this.extractLocation(b?b[1]:y),S=b&&y||void 0,k=["eval","<anonymous>"].indexOf(_[0])>-1?void 0:_[0];return new d({functionName:S,fileName:k,lineNumber:_[1],columnNumber:_[2],source:g})},this)},parseFFOrSafari:function(m){return m.stack.split(`
224
224
  `).filter(function(g){return!g.match(h)},this).map(function(g){if(g.indexOf(" > eval")>-1&&(g=g.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),g.indexOf("@")===-1&&g.indexOf(":")===-1)return new d({functionName:g});var y=/((.*".+"[^@]*)?[^@]*)(?:@)/,b=g.match(y),_=b&&b[1]?b[1]:void 0,S=this.extractLocation(g.replace(y,""));return new d({functionName:_,fileName:S[0],lineNumber:S[1],columnNumber:S[2],source:g})},this)},parseOpera:function(m){return!m.stacktrace||m.message.indexOf(`
225
225
  `)>-1&&m.message.split(`
@@ -234,7 +234,7 @@ $t(documentTemplateView.smsContent) $t(documentTemplateView.readMore)
234
234
  `+o+te.join(`,
235
235
  `+o)+`
236
236
  `+j+"}":"{"+te.join(",")+"}",o=j,z}}("",{"":T})}),typeof a.parse!="function"&&(a.parse=(m={"\\":"\\",'"':'"',"/":"/",t:" ",n:`
237
- `,r:"\r",f:"\f",b:"\b"},g={go:function(){u="ok"},firstokey:function(){f=h,u="colon"},okey:function(){f=h,u="colon"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},y={go:function(){u="ok"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},b={"{":{go:function(){d.push({state:"ok"}),p={},u="firstokey"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p={},u="firstokey"},firstavalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"},avalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"}},"}":{firstokey:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},ocomma:function(){var T=d.pop();p[f]=h,h=p,p=T.container,f=T.key,u=T.state}},"[":{go:function(){d.push({state:"ok"}),p=[],u="firstavalue"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p=[],u="firstavalue"},firstavalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"},avalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"}},"]":{firstavalue:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},acomma:function(){var T=d.pop();p.push(h),h=p,p=T.container,f=T.key,u=T.state}},":":{colon:function(){if(Object.hasOwnProperty.call(p,f))throw new SyntaxError("Duplicate key '"+f+'"');u="ovalue"}},",":{ocomma:function(){p[f]=h,u="okey"},acomma:function(){p.push(h),u="avalue"}},true:{go:function(){h=!0,u="ok"},ovalue:function(){h=!0,u="ocomma"},firstavalue:function(){h=!0,u="acomma"},avalue:function(){h=!0,u="acomma"}},false:{go:function(){h=!1,u="ok"},ovalue:function(){h=!1,u="ocomma"},firstavalue:function(){h=!1,u="acomma"},avalue:function(){h=!1,u="acomma"}},null:{go:function(){h=null,u="ok"},ovalue:function(){h=null,u="ocomma"},firstavalue:function(){h=null,u="acomma"},avalue:function(){h=null,u="acomma"}}},function(T,A){var $,I,R=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;u="go",d=[];try{for(;$=R.exec(T);)$[1]?b[$[1]][u]():$[2]?(h=+$[2],y[u]()):(I=$[3],h=I.replace(/\\(?:u(.{4})|([^u]))/g,function(Y,F,D){return F?String.fromCharCode(parseInt(F,16)):m[D]}),g[u]()),T=T.slice($[0].length)}catch(Y){u=Y}if(u!=="ok"||/[^\u0020\t\n\r]/.test(T))throw u instanceof SyntaxError?u:new SyntaxError("JSON");return typeof A=="function"?function Y(F,D){var B,z,K=F[D];if(K&&typeof K=="object")for(B in h)Object.prototype.hasOwnProperty.call(K,B)&&((z=Y(K,B))!==void 0?K[B]=z:delete K[B]);return A.call(F,D,K)}({"":h},""):h}))}},function(r,i,a){function o(s,c,l){if(c.hasOwnProperty&&c.hasOwnProperty("addEventListener")){for(var u=c.addEventListener;u._rollbarOldAdd&&u.belongsToShim;)u=u._rollbarOldAdd;var d=function(h,m,g){u.call(this,h,s.wrap(m),g)};d._rollbarOldAdd=u,d.belongsToShim=l,c.addEventListener=d;for(var p=c.removeEventListener;p._rollbarOldRemove&&p.belongsToShim;)p=p._rollbarOldRemove;var f=function(h,m,g){p.call(this,h,m&&m._rollbar_wrapped||m,g)};f._rollbarOldRemove=p,f.belongsToShim=l,c.removeEventListener=f}}r.exports=function(s,c,l){if(s){var u,d,p="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(u=0;u<p.length;++u)s[d=p[u]]&&s[d].prototype&&o(c,s[d].prototype,l)}}},function(r,i,a){var o=a(0),s=a(5);function c(g,y){return[g,o.stringify(g,y)]}function l(g,y){var b=g.length;return b>2*y?g.slice(0,y).concat(g.slice(b-y)):g}function u(g,y,b){b=b===void 0?30:b;var _,S=g.data.body;if(S.trace_chain)for(var k=S.trace_chain,E=0;E<k.length;E++)_=l(_=k[E].frames,b),k[E].frames=_;else S.trace&&(_=l(_=S.trace.frames,b),S.trace.frames=_);return[g,o.stringify(g,y)]}function d(g,y){return y&&y.length>g?y.slice(0,g-3).concat("..."):y}function p(g,y,b){return[y=s(y,function _(S,k,E){switch(o.typeName(k)){case"string":return d(g,k);case"object":case"array":return s(k,_,E);default:return k}}),o.stringify(y,b)]}function f(g){return g.exception&&(delete g.exception.description,g.exception.message=d(255,g.exception.message)),g.frames=l(g.frames,1),g}function h(g,y){var b=g.data.body;if(b.trace_chain)for(var _=b.trace_chain,S=0;S<_.length;S++)_[S]=f(_[S]);else b.trace&&(b.trace=f(b.trace));return[g,o.stringify(g,y)]}function m(g,y){return o.maxByteSize(g)>y}r.exports={truncate:function(g,y,b){b=b===void 0?524288:b;for(var _,S,k,E=[c,u,p.bind(null,1024),p.bind(null,512),p.bind(null,256),h];_=E.shift();)if(g=(S=_(g,y))[0],(k=S[1]).error||!m(k.value,b))return k;return k},raw:c,truncateFrames:u,truncateStrings:p,maybeTruncateValue:d}}])})})(FM);var cye=FM.exports;const uye=un(cye),NM=Je.rollbar.clientToken,K4=new uye({accessToken:NM,captureUncaught:!0,captureUnhandledRejections:!0,source_map_enabled:!0,environment:Je.rollbar.environment||Je.environment,enabled:!1,ignoredMessages:["The operation is insecure","Script error.","null is not an object (evaluating 'localStorage.getItem')","Unexpected token '<'","expected expression, got '<'","ChunkLoadError","Loading chunk","ResizeObserver loop limit exceeded","Failed to update a ServiceWorker for scope","Object Not Found Matching Id","newestWorker is null"],payload:{client:{javascript:{code_version:"0.13.2",source_map_enabled:!0,guess_uncaught_frames:!0}}},transform:n=>{const{trace:t}=n.body;if(t&&t.frames)for(let r=0;r<t.frames.length;r++){const{filename:i}=t.frames[r];i&&(t.frames[r].filename=t.frames[r].filename.replace(Je.baseUrl,"https://dynamichost"))}}}),dye=!!NM&&!lye().includes("rollbar");window.enableErrorTracker=()=>{dye&&K4.configure({enabled:!0})};const pye=[9001,9002,9003,9004,9005,9006],fye=[401];function hye(n){const{payload:t}=n,r=a=>Fe.te(`errors:${a}`)&&Fe.t(`errors:${a}`);let i=r(n.code);return t.code&&r(t.code)?i=r(t.code):t.fallbackCode&&r(t.fallbackCode)?i=r(t.fallbackCode):t.string&&(i=t.string),i}class mye{constructor(){Dn(this,"errors",new Map);this.handleError.bind(this)}init({logger:t=console,showMessage:r,onNetworkError:i,clearNetworkError:a}={}){if(this._logger=t,typeof r!="function")throw Error("showMessage must be a function");this._showMessage=r,this._onNetworkError=i,this._clearNetworkError=a}normalizeError(t){return this.getErrorType(t)!=="Error"?t:new H4(t)}_showNotification(t,r){this._showMessage({type:r||"error",message:t||` Tyvärr har ett okänt fel inträffat, vi har loggat felet och kommer snarast att åtgärda det.
237
+ `,r:"\r",f:"\f",b:"\b"},g={go:function(){u="ok"},firstokey:function(){f=h,u="colon"},okey:function(){f=h,u="colon"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},y={go:function(){u="ok"},ovalue:function(){u="ocomma"},firstavalue:function(){u="acomma"},avalue:function(){u="acomma"}},b={"{":{go:function(){d.push({state:"ok"}),p={},u="firstokey"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p={},u="firstokey"},firstavalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"},avalue:function(){d.push({container:p,state:"acomma"}),p={},u="firstokey"}},"}":{firstokey:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},ocomma:function(){var T=d.pop();p[f]=h,h=p,p=T.container,f=T.key,u=T.state}},"[":{go:function(){d.push({state:"ok"}),p=[],u="firstavalue"},ovalue:function(){d.push({container:p,state:"ocomma",key:f}),p=[],u="firstavalue"},firstavalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"},avalue:function(){d.push({container:p,state:"acomma"}),p=[],u="firstavalue"}},"]":{firstavalue:function(){var T=d.pop();h=p,p=T.container,f=T.key,u=T.state},acomma:function(){var T=d.pop();p.push(h),h=p,p=T.container,f=T.key,u=T.state}},":":{colon:function(){if(Object.hasOwnProperty.call(p,f))throw new SyntaxError("Duplicate key '"+f+'"');u="ovalue"}},",":{ocomma:function(){p[f]=h,u="okey"},acomma:function(){p.push(h),u="avalue"}},true:{go:function(){h=!0,u="ok"},ovalue:function(){h=!0,u="ocomma"},firstavalue:function(){h=!0,u="acomma"},avalue:function(){h=!0,u="acomma"}},false:{go:function(){h=!1,u="ok"},ovalue:function(){h=!1,u="ocomma"},firstavalue:function(){h=!1,u="acomma"},avalue:function(){h=!1,u="acomma"}},null:{go:function(){h=null,u="ok"},ovalue:function(){h=null,u="ocomma"},firstavalue:function(){h=null,u="acomma"},avalue:function(){h=null,u="acomma"}}},function(T,A){var $,I,R=/^[\u0020\t\n\r]*(?:([,:\[\]{}]|true|false|null)|(-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)|"((?:[^\r\n\t\\\"]|\\(?:["\\\/trnfb]|u[0-9a-fA-F]{4}))*)")/;u="go",d=[];try{for(;$=R.exec(T);)$[1]?b[$[1]][u]():$[2]?(h=+$[2],y[u]()):(I=$[3],h=I.replace(/\\(?:u(.{4})|([^u]))/g,function(Y,F,D){return F?String.fromCharCode(parseInt(F,16)):m[D]}),g[u]()),T=T.slice($[0].length)}catch(Y){u=Y}if(u!=="ok"||/[^\u0020\t\n\r]/.test(T))throw u instanceof SyntaxError?u:new SyntaxError("JSON");return typeof A=="function"?function Y(F,D){var B,z,K=F[D];if(K&&typeof K=="object")for(B in h)Object.prototype.hasOwnProperty.call(K,B)&&((z=Y(K,B))!==void 0?K[B]=z:delete K[B]);return A.call(F,D,K)}({"":h},""):h}))}},function(r,i,a){function o(s,c,l){if(c.hasOwnProperty&&c.hasOwnProperty("addEventListener")){for(var u=c.addEventListener;u._rollbarOldAdd&&u.belongsToShim;)u=u._rollbarOldAdd;var d=function(h,m,g){u.call(this,h,s.wrap(m),g)};d._rollbarOldAdd=u,d.belongsToShim=l,c.addEventListener=d;for(var p=c.removeEventListener;p._rollbarOldRemove&&p.belongsToShim;)p=p._rollbarOldRemove;var f=function(h,m,g){p.call(this,h,m&&m._rollbar_wrapped||m,g)};f._rollbarOldRemove=p,f.belongsToShim=l,c.removeEventListener=f}}r.exports=function(s,c,l){if(s){var u,d,p="EventTarget,Window,Node,ApplicationCache,AudioTrackList,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(",");for(u=0;u<p.length;++u)s[d=p[u]]&&s[d].prototype&&o(c,s[d].prototype,l)}}},function(r,i,a){var o=a(0),s=a(5);function c(g,y){return[g,o.stringify(g,y)]}function l(g,y){var b=g.length;return b>2*y?g.slice(0,y).concat(g.slice(b-y)):g}function u(g,y,b){b=b===void 0?30:b;var _,S=g.data.body;if(S.trace_chain)for(var k=S.trace_chain,E=0;E<k.length;E++)_=l(_=k[E].frames,b),k[E].frames=_;else S.trace&&(_=l(_=S.trace.frames,b),S.trace.frames=_);return[g,o.stringify(g,y)]}function d(g,y){return y&&y.length>g?y.slice(0,g-3).concat("..."):y}function p(g,y,b){return[y=s(y,function _(S,k,E){switch(o.typeName(k)){case"string":return d(g,k);case"object":case"array":return s(k,_,E);default:return k}}),o.stringify(y,b)]}function f(g){return g.exception&&(delete g.exception.description,g.exception.message=d(255,g.exception.message)),g.frames=l(g.frames,1),g}function h(g,y){var b=g.data.body;if(b.trace_chain)for(var _=b.trace_chain,S=0;S<_.length;S++)_[S]=f(_[S]);else b.trace&&(b.trace=f(b.trace));return[g,o.stringify(g,y)]}function m(g,y){return o.maxByteSize(g)>y}r.exports={truncate:function(g,y,b){b=b===void 0?524288:b;for(var _,S,k,E=[c,u,p.bind(null,1024),p.bind(null,512),p.bind(null,256),h];_=E.shift();)if(g=(S=_(g,y))[0],(k=S[1]).error||!m(k.value,b))return k;return k},raw:c,truncateFrames:u,truncateStrings:p,maybeTruncateValue:d}}])})})(FM);var cye=FM.exports;const uye=un(cye),NM=Je.rollbar.clientToken,K4=new uye({accessToken:NM,captureUncaught:!0,captureUnhandledRejections:!0,source_map_enabled:!0,environment:Je.rollbar.environment||Je.environment,enabled:!1,ignoredMessages:["The operation is insecure","Script error.","null is not an object (evaluating 'localStorage.getItem')","Unexpected token '<'","expected expression, got '<'","ChunkLoadError","Loading chunk","ResizeObserver loop limit exceeded","Failed to update a ServiceWorker for scope","Object Not Found Matching Id","newestWorker is null"],payload:{client:{javascript:{code_version:"0.13.3",source_map_enabled:!0,guess_uncaught_frames:!0}}},transform:n=>{const{trace:t}=n.body;if(t&&t.frames)for(let r=0;r<t.frames.length;r++){const{filename:i}=t.frames[r];i&&(t.frames[r].filename=t.frames[r].filename.replace(Je.baseUrl,"https://dynamichost"))}}}),dye=!!NM&&!lye().includes("rollbar");window.enableErrorTracker=()=>{dye&&K4.configure({enabled:!0})};const pye=[9001,9002,9003,9004,9005,9006],fye=[401];function hye(n){const{payload:t}=n,r=a=>Fe.te(`errors:${a}`)&&Fe.t(`errors:${a}`);let i=r(n.code);return t.code&&r(t.code)?i=r(t.code):t.fallbackCode&&r(t.fallbackCode)?i=r(t.fallbackCode):t.string&&(i=t.string),i}class mye{constructor(){Dn(this,"errors",new Map);this.handleError.bind(this)}init({logger:t=console,showMessage:r,onNetworkError:i,clearNetworkError:a}={}){if(this._logger=t,typeof r!="function")throw Error("showMessage must be a function");this._showMessage=r,this._onNetworkError=i,this._clearNetworkError=a}normalizeError(t){return this.getErrorType(t)!=="Error"?t:new H4(t)}_showNotification(t,r){this._showMessage({type:r||"error",message:t||` Tyvärr har ett okänt fel inträffat, vi har loggat felet och kommer snarast att åtgärda det.
238
238
  `})}logError(t){this._logger?(this._logger.error(t),this._logger.debug(`${t.name}: ${t.message}`,t.payload)):(console.error(t),console.debug(`${t.name}: ${t.message}`,t.payload))}getErrorType(t){return Object.keys($M).some(i=>t instanceof $M[i])?t.name:"Error"}addCustomData(t,r){gn(r)!=="object"||this.getErrorType(t)==="Error"||t.add(r)}saveError(t){const r=this.getErrorType(t);this.errors.has(r)||this.errors.set(r,[]);const i=this.errors.get(r);this.errors.set(r,{...i,[t.message]:{count:((i[t.message]||{}).count||0)+1,lastError:new Date}})}isDuplicate(t,r=1){const i=this.getErrorType(t),{lastError:a}=(this.errors.get(i)||{})[t.message]||{};return!!(a&&vse(wse(a,r)))}notifyUser(t){if(this.isDuplicate(t)||t.payload&&!t.payload.showMessage)return;const r=hye(t);r&&this._showNotification(r)}sendRollbarError(t,r=10){if(this.isDuplicate(t,r))return;const{payload:i={},httpStatusCode:a}=t||{},{code:o}=i;o&&pye.includes(o)||!o&&a&&fye.includes(a)||K4.error(t,i)}async resolveNetworkError(t){var r;try{await lve(),(r=this._clearNetworkError)==null||r.call(this)}catch(i){this.getErrorType(i)!=="NetworkError"&&this.handleError(i),setTimeout(()=>{this.resolveNetworkError(t).catch(this.handleError)},5e3)}}}class gye extends mye{handleError(t,r){var a;const i=this.normalizeError(t);this.addCustomData(i,r),this.notifyUser(i),this.logError(i),this.sendRollbarError(i),!this.isDuplicate(i)&&this.getErrorType(i)==="NetworkError"&&((a=this._onNetworkError)==null||a.call(this,i),this.resolveNetworkError(i).catch(this.handleError)),this.saveError(i)}onVueException(t,r,i){r.$nextTick(()=>{this.handleError(t)})}}const Z4=new gye,Lr=Z4.handleError.bind(Z4),Y1=class Y1{init({store:t}){this.store=t}getValidFeatures(){return Object.keys(Y1.schema)}_isValidAccountType(t){if(!t||gn(t)!=="array")throw new Error("Invalid param accountTypes");const{accountType:r}=this.store.getters["application/companyAccount"]||{};return t.includes(r)}_isValidFeatureKey(t){if(!t||gn(t)!=="string")throw new Error("Invalid param featureKey");const{CompanyFeatures:r}=this.store.getters["application/company"]||{};return r?r[t]:!1}_isValidCompanySetting(t){if(!t||gn(t)!=="string")throw new Error("Invalid param settingKey");return t.split("||").some(i=>{var o;const a=(o=this.store)==null?void 0:o.getters["settings/getCompanySetting"](i);return typeof a=="boolean"&&a})}_isValidCompanyUserSettingFn({name:t,fn:r}){if(!t||gn(t)!=="string")throw new Error("Invalid param name");if(!r||gn(r)!=="function")throw new Error("Invalid param fn");const i=this.store.getters["settings/getCompanyUserSetting"](t);return!!r(i)}_isValidRegion(t){if(!t||gn(t)!=="string")throw new Error("Invalid param requiredRegion");const{region:r}=this.store.getters["application/company"]||{};return r?t===r:!1}_isValidBrand(t){if(!t||gn(t)!=="string")throw new Error("Invalid param requiredBrand");if(!(Je!=null&&Je.brand))return!1;const{brand:r}=Je.brand;return t===r}_isCreatedBefore(t){if(!t||gn(t)!=="string")throw new Error("Invalid param feature dateString");const{createdAt:r}=this.store.getters["application/company"]||{};return r?yse(r,t):!1}_evaluateFeature(t,{returnType:r="boolean"}={}){const i=Y1.schema[t];if(!i||gn(i)!=="object")throw Error(`No rules for feature '${t}' has been defined!`);if(!["boolean","array"].includes(r))throw Error("Invalid param returnType");const a=[];return i.accountTypes&&!this._isValidAccountType(i.accountTypes)&&(a.push("accountTypes"),r==="boolean")||i.featureKey&&!this._isValidFeatureKey(i.featureKey)&&(a.push("featureKey"),r==="boolean")||i.companySetting&&!this._isValidCompanySetting(i.companySetting)&&(a.push("companySetting"),r==="boolean")||i.companyUserSettingFn&&!this._isValidCompanyUserSettingFn(i.companyUserSettingFn)&&(a.push("companyUserSettingFn"),r==="boolean")||i.region&&!this._isValidRegion(i.region)&&(a.push("region"),r==="boolean")||i.brand&&!this._isValidBrand(i.brand)&&(a.push("brand"),r==="boolean")||i.createdBefore&&!this._isCreatedBefore(i.createdBefore)&&(a.push("preDynDoc2"),r==="boolean")?!1:r==="array"?a:!0}checkFeature(t){return this._evaluateFeature(t)}checkFeatureUpgrade(t){const r=this._evaluateFeature(t,{returnType:"array"});return r.length===1&&r.includes("accountTypes")}};Dn(Y1,"schema",{personalMessage:{},unlimitedCertificates:{},companyAboutUs:{},winProfile:{},templates:{},task:{featureKey:"task"},reverseVat:{featureKey:"reverseVat"},ataSetting:{featureKey:"ataSetting"},propertyDesignation:{companySetting:"showRot||showGreenRot"},openAccConstruction:{featureKey:"openAccConstruction"},docChapterIsBinding:{companySetting:"showIsBinding"},projectSettingHideAllArticles:{companySetting:"allowHideAllArticles"},docAtaDateDelay:{companySetting:"docAtaShowDateDelay"},docAtaNotIncluded:{companySetting:"docAtaShowNotIncluded"},docAtaPayment:{companySetting:"docAtaShowPayment"},sms:{featureKey:"sms"},smsSenderName:{featureKey:"smsSenderName"},regionSE:{region:"SE"},bankId:{region:"SE",companySetting:"enableBankId"},templateGallery:{companyUserSettingFn:{name:"defaultLanguage",fn:t=>t==="sv"}},clientReview:{brand:"cling"},upgradeSignatureBankId:{companySetting:"upgradeSignatureBankId"},preDynDoc2:{createdBefore:"2020-11-05T00:00:00.000Z"},emailDomain:{featureKey:"emailDomain"},subdomain:{featureKey:"subdomain"},stats:{featureKey:"stats"},api:{featureKey:"api"},fortnox:{featureKey:"fortnox"},inviteCreators:{accountTypes:["base","pro"]},docBlock_header:{featureKey:"docBlock_header"},docBlock_parties:{featureKey:"docBlock_parties"},docBlock_packageGroup:{featureKey:"docBlock_packageGroup"},docBlock_titleAndText2:{featureKey:"docBlock_titleAndText2"},docBlock_coverBlock:{featureKey:"docBlock_coverBlock"},docBlock_videoPlayer:{featureKey:"docBlock_videoPlayer"},docBlock_attachments2:{featureKey:"docBlock_attachments2"},docBlock_pdf:{featureKey:"docBlock_pdf"},docBlock_embed:{featureKey:"docBlock_embed"},docBlock_custom:{featureKey:"docBlock_custom"},docBlock_terms:{featureKey:"docBlock_terms"},docBlock_presentation:{featureKey:"docBlock_presentation"},useDocTemplate:{featureKey:"useDocTemplate"},createDocTemplate:{featureKey:"createDocTemplate"}});let J4=Y1;const vi=new J4,rs=Be.observable({messages:[],actions:{}}),vye=n=>rs.messages.push(gp(n)),Lm=n=>{const t=rs.messages[n];rs.actions[t==null?void 0:t._uniqueId]&&delete rs.actions[t._uniqueId],rs.messages.splice(n,1)},BM=({index:n,type:t})=>{try{const r={cancel:()=>Lm(n)},i=rs.messages[n];if(!i||!i._uniqueId)throw Error("message not found, failed to trigger action");const a=rs.actions[i._uniqueId];if(!a)throw Error("message has no actions, failed to trigger action");const o=a[t];if(!o)throw Error(`message has no action of type ${t}`);let s=o;if(typeof o=="string"&&(s=r[o],!s))throw Error(`No predefined action of type ${o}`);if(typeof s!="function")throw Error("Unable to extract function from message action");return s(i)}catch(r){return Lr(r)}},xp=n=>{const{type:t,displayType:r="notification",time:i=5e3,title:a,message:o,closeButton:s,omit:c=""}=n,l={},u={};if((f=>f.split(",").some(h=>{const[m="foo",g="bar"]=h.split(":");return Be.prototype[m]===g}))(c))return;n.actions&&Object.keys(n.actions).forEach(f=>{const h=n.actions[f];if(typeof h=="object"&&!Array.isArray(h)){if(!h.fn&&!h.callback)throw Error(`No callback function provided for action ${f}`);l[f]=h.fn||h.callback,delete h.fn,delete h.callback,u[f]=h}else if(typeof h=="string")l[f]=h,u[f]={};else if(typeof h=="function")l[f]=h,u[f]={};else throw Error(`Action, ${f} , must be one of: object|string|function`)}),vye({actions:u,title:a,message:o,type:t,displayType:r,time:i,closeButton:s});const p=rs.messages.slice(-1)[0];rs.actions[p._uniqueId]=l},ho=(n,t)=>xp({type:n,message:t}),jM=rs,zo=class zo{init({store:t}){this.store=t}_getObjectById(t,r){const i=(zo.schema[r]||{}).$module,{data:a}=this.store.state[i]||{};if(!a)throw Error(`No module for ${r} has been defined!`);return a[t]}_getIdPath(t){return(zo.schema[t]||{}).$id}_getAllowNullOwner(t){return!!(zo.schema[t]||{}).$allowNullOwner}_getScopeKey(t){return(zo.schema[t]||{}).$scopeKey}_getUserId(){const{user:t={}}=this.store.state.application;return t.userId}getValidScopes(){return Object.keys(zo.schema)}getRequiredCompanyUserPermission(t,r){const i=zo.schema[t];return!i||!i[r]?[]:Array.isArray(i[r])?i[r]:[i[r]]}hasFeature(t){const r=zo.featureSchema[t];return r?vi.checkFeature(r):!0}checkPermission(t,r,i=void 0){const{getters:a}=this.store,{CompanyUserPermission:o}=a["application/user"]||{};if(!o||!this.hasFeature(t))return!1;let c=this.getRequiredCompanyUserPermission(t,r);if(!c||c.length===0)return console.warn(`Permission ${r} in scope ${t} has not been implemented`),!1;let l=c.some(d=>o[d]===!0);if(l)return!0;if(!i)return!1;const u=this._getScopeKey(t);if(c=c.map(d=>d.includes("Own")?d:d.replace(`${u[0].toUpperCase()}${u.slice(1)}`,`Own${u[0].toUpperCase()}${u.slice(1)}`)),l=c.some(d=>o[d]===!0),l){const d=this._getObjectById(i,t);if(!d)return!1;if(t==="documents")return this.checkPermission("projects",r,d.projectId);const p=_1e(d,this._getIdPath(t)),f=this._getAllowNullOwner(t);return p===this._getUserId()||f&&p===null}return!1}getScope(t={}){return this.getValidScopes().find(a=>t[a])}};Dn(zo,"schema",{projects:{read:"manageProjects",modify:"manageProjects",create:["manageProjects","manageOwnProjects"],delete:"manageProjects",readPrice:["manageProjects","showPrices"],$scopeKey:"projects",$module:"projects",$id:"CompanyUserId"},users:{modify:"manageUsers",create:"manageUsers",$scopeKey:"users",$module:"companyUsers",$id:"id"},documents:{create:["manageProjects","manageOwnProjects"],read:"manageProjects",modify:"manageProjects",delete:"manageProjects",readPrice:["manageProjects","showPrices"],$scopeKey:"projects",$module:"documents2",$id:"companyUserId"},atas:{create:["manageAtas","manageOwnAtas"],read:"manageAtas",modify:"manageAtas",delete:"manageAtas",readPrice:["manageAtas","showPrices"],$scopeKey:"atas",$module:"documents",$id:"data.CompanyUserId"},company:{create:"manageCompany",read:"manageCompany",modify:"manageCompany",$scopeKey:"company",$module:"companies",$id:"id"},articles:{create:["manageProjects","manageOwnProjects"],modify:["manageProjects","manageOwnProjects"],delete:["manageProjects","manageOwnProjects"],readPrice:["manageOwnAtas","manageAtas","manageProjects","manageOwnProjects","showPrices"],$scopeKey:"projects",$module:"articles",$id:"id"},prices:{read:"showPrices"},templates:{create:"createTemplates",read:"readTemplates",modify:"modifyTemplates",delete:"deleteTemplates"},endCustomers:{read:["readEndCustomers","readOwnEndCustomers"],modify:"modifyEndCustomers",create:"createEndCustomers",delete:"deleteEndCustomers",$scopeKey:"endCustomers",$module:"endCustomers",$id:"CompanyUserId",$allowNullOwner:!0},fortnox:{export:"manageCompany"}}),Dn(zo,"featureSchema",{});let X4=zo;const Fm=new X4;/**!
239
239
  * @fileOverview Kickass library to create and place poppers near their reference elements.
240
240
  * @version 1.16.1
@@ -1942,7 +1942,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1942
1942
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(G,ee){return c(G)||l(G,ee)||d(G,ee)||p()}o("6762"),o("2fdb");function h(G){if(Array.isArray(G))return u(G)}function m(G){if(typeof Symbol<"u"&&Symbol.iterator in Object(G))return Array.from(G)}function g(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1943
1943
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(G){return h(G)||m(G)||d(G)||g()}var b=o("a352"),_=o.n(b),S=o("c649");function k(G,ee,ae){return ae===void 0||(G=G||{},G[ee]=ae),G}function E(G,ee){return G.map(function(ae){return ae.elm}).indexOf(ee)}function T(G,ee,ae,ve){if(!G)return[];var ye=G.map(function(W){return W.elm}),me=ee.length-ve,de=y(ee).map(function(W,J){return J>=me?ye.length:ye.indexOf(W)});return ae?de.filter(function(W){return W!==-1}):de}function A(G,ee){var ae=this;this.$nextTick(function(){return ae.$emit(G.toLowerCase(),ee)})}function $(G){var ee=this;return function(ae){ee.realList!==null&&ee["onDrag"+G](ae),A.call(ee,G,ae)}}function I(G){return["transition-group","TransitionGroup"].includes(G)}function R(G){if(!G||G.length!==1)return!1;var ee=f(G,1),ae=ee[0].componentOptions;return ae?I(ae.tag):!1}function Y(G,ee,ae){return G[ae]||(ee[ae]?ee[ae]():void 0)}function F(G,ee,ae){var ve=0,ye=0,me=Y(ee,ae,"header");me&&(ve=me.length,G=G?[].concat(y(me),y(G)):y(me));var de=Y(ee,ae,"footer");return de&&(ye=de.length,G=G?[].concat(y(G),y(de)):y(de)),{children:G,headerOffset:ve,footerOffset:ye}}function D(G,ee){var ae=null,ve=function(Q,xe){ae=k(ae,Q,xe)},ye=Object.keys(G).filter(function(J){return J==="id"||J.startsWith("data-")}).reduce(function(J,Q){return J[Q]=G[Q],J},{});if(ve("attrs",ye),!ee)return ae;var me=ee.on,de=ee.props,W=ee.attrs;return ve("on",me),ve("props",de),Object.assign(ae.attrs,W),ae}var B=["Start","Add","Remove","Update","End"],z=["Choose","Unchoose","Sort","Filter","Clone"],K=["Move"].concat(B,z).map(function(G){return"on"+G}),te=null,j={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(ee){return ee}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},M={name:"draggable",inheritAttrs:!1,props:j,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(ee){var ae=this.$slots.default;this.transitionMode=R(ae);var ve=F(ae,this.$slots,this.$scopedSlots),ye=ve.children,me=ve.headerOffset,de=ve.footerOffset;this.headerOffset=me,this.footerOffset=de;var W=D(this.$attrs,this.componentData);return ee(this.getTag(),W,ye)},created:function(){this.list!==null&&this.value!==null&&S.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&S.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&S.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var ee=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var ae={};B.forEach(function(me){ae["on"+me]=$.call(ee,me)}),z.forEach(function(me){ae["on"+me]=A.bind(ee,me)});var ve=Object.keys(this.$attrs).reduce(function(me,de){return me[Object(S.a)(de)]=ee.$attrs[de],me},{}),ye=Object.assign({},this.options,ve,ae,{onMove:function(de,W){return ee.onDragMove(de,W)}});!("draggable"in ye)&&(ye.draggable=">*"),this._sortable=new _.a(this.rootContainer,ye),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(ee){this.updateOptions(ee)},deep:!0},$attrs:{handler:function(ee){this.updateOptions(ee)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var ee=this._vnode.fnOptions;return ee&&ee.functional},getTag:function(){return this.tag||this.element},updateOptions:function(ee){for(var ae in ee){var ve=Object(S.a)(ae);K.indexOf(ve)===-1&&this._sortable.option(ve,ee[ae])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var ee=this.$slots.default;return this.transitionMode?ee[0].child.$slots.default:ee},computeIndexes:function(){var ee=this;this.$nextTick(function(){ee.visibleIndexes=T(ee.getChildrenNodes(),ee.rootContainer.children,ee.transitionMode,ee.footerOffset)})},getUnderlyingVm:function(ee){var ae=E(this.getChildrenNodes()||[],ee);if(ae===-1)return null;var ve=this.realList[ae];return{index:ae,element:ve}},getUnderlyingPotencialDraggableComponent:function(ee){var ae=ee.__vue__;return!ae||!ae.$options||!I(ae.$options._componentTag)?!("realList"in ae)&&ae.$children.length===1&&"realList"in ae.$children[0]?ae.$children[0]:ae:ae.$parent},emitChanges:function(ee){var ae=this;this.$nextTick(function(){ae.$emit("change",ee)})},alterList:function(ee){if(this.list){ee(this.list);return}var ae=y(this.value);ee(ae),this.$emit("input",ae)},spliceList:function(){var ee=arguments,ae=function(ye){return ye.splice.apply(ye,y(ee))};this.alterList(ae)},updatePosition:function(ee,ae){var ve=function(me){return me.splice(ae,0,me.splice(ee,1)[0])};this.alterList(ve)},getRelatedContextFromMoveEvent:function(ee){var ae=ee.to,ve=ee.related,ye=this.getUnderlyingPotencialDraggableComponent(ae);if(!ye)return{component:ye};var me=ye.realList,de={list:me,component:ye};if(ae!==ve&&me&&ye.getUnderlyingVm){var W=ye.getUnderlyingVm(ve);if(W)return Object.assign(W,de)}return de},getVmIndex:function(ee){var ae=this.visibleIndexes,ve=ae.length;return ee>ve-1?ve:ae[ee]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(ee){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var ae=this.getChildrenNodes();ae[ee].data=null;var ve=this.getComponent();ve.children=[],ve.kept=void 0}},onDragStart:function(ee){this.context=this.getUnderlyingVm(ee.item),ee.item._underlying_vm_=this.clone(this.context.element),te=ee.item},onDragAdd:function(ee){var ae=ee.item._underlying_vm_;if(ae!==void 0){Object(S.d)(ee.item);var ve=this.getVmIndex(ee.newIndex);this.spliceList(ve,0,ae),this.computeIndexes();var ye={element:ae,newIndex:ve};this.emitChanges({added:ye})}},onDragRemove:function(ee){if(Object(S.c)(this.rootContainer,ee.item,ee.oldIndex),ee.pullMode==="clone"){Object(S.d)(ee.clone);return}var ae=this.context.index;this.spliceList(ae,1);var ve={element:this.context.element,oldIndex:ae};this.resetTransitionData(ae),this.emitChanges({removed:ve})},onDragUpdate:function(ee){Object(S.d)(ee.item),Object(S.c)(ee.from,ee.item,ee.oldIndex);var ae=this.context.index,ve=this.getVmIndex(ee.newIndex);this.updatePosition(ae,ve);var ye={element:this.context.element,oldIndex:ae,newIndex:ve};this.emitChanges({moved:ye})},updateProperty:function(ee,ae){ee.hasOwnProperty(ae)&&(ee[ae]+=this.headerOffset)},computeFutureIndex:function(ee,ae){if(!ee.element)return 0;var ve=y(ae.to.children).filter(function(W){return W.style.display!=="none"}),ye=ve.indexOf(ae.related),me=ee.component.getVmIndex(ye),de=ve.indexOf(te)!==-1;return de||!ae.willInsertAfter?me:me+1},onDragMove:function(ee,ae){var ve=this.move;if(!ve||!this.realList)return!0;var ye=this.getRelatedContextFromMoveEvent(ee),me=this.context,de=this.computeFutureIndex(ye,ee);Object.assign(me,{futureIndex:de});var W=Object.assign({},ee,{relatedContext:ye,draggedContext:me});return ve(W,ae)},onDragEnd:function(){this.computeIndexes(),te=null}}};typeof window<"u"&&"Vue"in window&&window.Vue.component("draggable",M);var q=M;a.default=q}}).default})})(gW);var dJe=gW.exports;const NW=un(dJe),pJe={i18nOptions:{messages:{en:{headerText:"Connect this document to a deal resource in {{ crm }}.",connectedTo:"Connected to {{ type }}",refreshData:"Refresh {{ type }} data",unlink:"Unlink",linkToDoc:"Connect this document to {{ type }}",productsTitle:"Products",productsText:"We found these products associated with the {{ type }} in {{ crm }}.",noProducts:"The {{ type }} has no associated products.",noCrm:"You have not authenticated a CRM integration yet.",noCrmAction:"Go to Settings to set up a CRM ->",suggestClients:"Suggest clients",referenceTo:"Connected to {{ crm }} {{ type }}",type:{contact:"contact",company:"company"}},sv:{headerText:"Koppla det här dokumentet till en deal-resurs i {{ crm }}.",connectedTo:"Kopplad till {{ type }}",refreshData:"Uppdatera {{ type }}-data",unlink:"Koppla från",linkToDoc:"Koppla dokumentet till en {{ type }}",productsTitle:"Produkter",productsText:"Vi kunde hitta följande produkter kopplade till resursen i {{ crm }}.",noProducts:"Resursen har inga kopplade produkter.",noCrm:"Du har inte aktiverat någon CRM-koppling ännu.",noCrmAction:"Gå till Inställningar för att koppla CRM ->",suggestClients:"Föreslå mottagare",referenceTo:"Kopplad till {{ crm }} {{ type }}",type:{contact:"kontakt",company:"företag"}}}},name:"ExtensionTab",components:{draggable:NW,Spinner:Xm},mixins:[pt(["externalReferences","clients","articles"])],data(){return{activeCrm:null,searchQuery:"",isSearching:!1,isLoading:!1,emptyQuery:null,searchResults:[],dealDetails:null,typeDetails:null}},computed:{...Ht({allAuthenticatedCRMs:"settings/allAuthenticatedCRMs"}),currExternalReferences(){return this.activeCrm?this.externalReferences.filter(n=>n.service===this.activeCrm):[]},currentExternalDeal(){return this.currExternalReferences.filter(n=>n.type==="deal")[0]},dealType(){return["pipedrive"].includes(this.activeCrm),"deal"},showDealProducts(){return this.activeCrm!=="hubspot"&&this.dealDetails}},watch:{currExternalReferences:{immediate:!0,async handler(n){n.length?await Promise.all(n.map(async t=>{await this.fetchReference(t.type)})):(this.dealDetails=null,this.typeDetails=null)}},allAuthenticatedCRMs:{immediate:!0,handler(n){n?this.activeCrm=n[0]||null:this.activeCrm=null}}},methods:{priceFormat:Rr,async _search(n){try{this.isSearching=!0;const t=n.toLowerCase();if(this.emptyQuery&&t&&t.startsWith(this.emptyQuery))return;if(this.emptyQuery=null,!t||t.length<2){this.searchResults=[];return}const{data:r}=await Ql.search(this.activeCrm,{query:n,type:"deal"});r&&Array.isArray(r)&&(this.searchResults=r),r.length||(this.emptyQuery=t)}finally{this.isSearching=!1}},search:gs(async function(t){await this._search(t)},750),useSearchResult(n){this.setReference(n.externalReference),this.searchResults=[],this.searchQuery=""},setReference(n){if(!n)return;if(typeof n!="object")throw new Error("externalReference must be an object");const{service:t,type:r,typeId:i}=n;if(!t||!r||!i)throw new Error("externalReference is not valid");this.externalReferences=[...this.externalReferences,{service:t,type:r,typeId:i}]},async fetchReference(n=this.dealType){try{this.isLoading=!0;const t=this.externalReferences.find(s=>s.service===this.activeCrm&&s.type===n);if(!t)return;const{service:r,type:i,typeId:a}=t,{data:o}=await Ql.getExternalReferenceDetails(r,{type:i,typeId:a});n!==this.dealType?this.typeDetails={...o,type:n}:this.dealDetails=o}catch{n!==this.dealType?this.typeDetails=null:this.dealDetails=null}finally{this.isLoading=!1}},removeReference(n=this.dealType){const t=this.externalReferences.find(o=>o.service===this.activeCrm&&o.type===n);if(!t)return;const{service:r,type:i,typeId:a}=t;!r||!i||!a||(this.externalReferences=this.externalReferences.filter(o=>!(o.service===r&&o.type===i&&o.typeId===a)),n!==this.dealType?this.typeDetails=null:this.dealDetails=null)},async suggestClients(){var a;const{service:n,type:t,typeId:r}=this.currentExternalDeal,{data:i}=await Ql.suggestClients(n,{type:t,typeId:r});if(Array.isArray(i)&&i.length){const o=(a=this._document)==null?void 0:a.defaultAnswerMethod,s=i.map(c=>({...Cg(),...o&&{answerMethod:o},...c}));this.clients=[...this.clients||[],...s]}},cloneArticle(n){return ts({...n,_uniqueId:void 0})},addArticle(n){var i,a;const[t]=((a=(i=this._document)==null?void 0:i.packageGroups)==null?void 0:a.packages)||[];if(!(t!=null&&t.packageId))return;const r=ts({...n,_uniqueId:void 0,packageId:t.packageId});this.$emit("input",{key:"articles",value:[...this.articles,r]})}}};var fJe=function(){var t=this,r=t._self._c;return r("div",{staticStyle:{"font-size":"13px","padding-left":"calc(0.5 * var(--rem))","padding-right":"calc(0.5 * var(--rem))","padding-bottom":"calc(4 * var(--rem))"}},[t.allAuthenticatedCRMs.length>1?r("CDropdown",{staticStyle:{position:"absolute",right:"calc(0.5 * var(--rem))",top:"calc(0.5 * var(--rem))"},attrs:{position:"is-bottom-left"}},[r("CButton",{attrs:{slot:"trigger",size:"small",circle:"",type:"none",pattern:"tertiary",icon:"more-vertical"},slot:"trigger"}),t._l(t.allAuthenticatedCRMs,function(i){return r("CDropdownItem",{key:i,attrs:{type:t.activeCrm===i?"primary":"secondary",size:"small"},on:{click:function(a){t.activeCrm=i}}},[t._v(" "+t._s(i.capitalize())+" ")])})],2):t._e(),t.isLoading&&!t.dealDetails?r("div",{staticClass:"flex w-full items-center justify-center",staticStyle:{"padding-top":"calc(2 * var(--rem))"}},[r("Spinner",{attrs:{size:"24",color:"grey"}})],1):t.activeCrm?[r("div",{staticStyle:{padding:"0 calc(0.5 * var(--rem)) calc(2 * var(--rem))"}},[r("div",{staticStyle:{"font-weight":"500","font-size":"16px"}},[t._v(" "+t._s(t.activeCrm.capitalize())+" ")]),t.typeDetails?r("div",[r("div",{staticClass:"x-hint"},[r("div",{staticClass:"flex w-full"},[r("div",{domProps:{textContent:t._s(t.$t("referenceTo",{crm:t.activeCrm.capitalize(),type:t.$t(`type.${t.typeDetails.type}`)}))}}),r("CButton",{staticStyle:{position:"absolute",right:"2px",top:"2px"},attrs:{icon:"x",size:"small",type:"none",pattern:"tertiary",circle:""},on:{click:function(i){return t.removeReference(t.typeDetails.type)}}})],1),r("div",{staticClass:"x-hint-name",domProps:{textContent:t._s(t.typeDetails.name||"")}})]),r("div",{staticClass:"divider"})]):t._e(),r("div",{staticClass:"text-gray-600"},[t._v(" "+t._s(t.$t("headerText",{crm:t.activeCrm.capitalize()}))+" ")]),r("div",{staticStyle:{height:"2em"}}),t.currentExternalDeal?[r("div",{staticClass:"text-gray-400",staticStyle:{"font-size":"12px"}},[t._v(" "+t._s(t.$t("connectedTo",{type:t.dealType}))+" ")]),t.dealDetails?r("div",{staticStyle:{padding:"0.5em","border-radius":"3px","background-color":"hsl(205, 100%, 95%)",border:"1px solid hsl(205, 100%, 78%)"}},[r("div",[r(t.dealDetails.externalUrl?"a":"span",{tag:"component",staticClass:"text-primary-500",staticStyle:{"font-weight":"600"},attrs:{href:t.dealDetails.externalUrl||"#",target:"_blank"},domProps:{textContent:t._s(t.dealDetails.name)}})],1),t.dealDetails.currency?r("div",{staticStyle:{opacity:"0.75","font-size":"13px"}},[t._v(" "+t._s(t.priceFormat(t.dealDetails.value,{showZero:!1,currency:t.dealDetails.currency}))+" ")]):t._e()]):t._e(),r("div",[r("CButton",{staticStyle:{"font-size":"12px",padding:"7px"},attrs:{loading:t.isLoading,size:"small",type:"none",pattern:"tertiary"},domProps:{textContent:t._s(t.$t("refreshData",{type:t.dealType}))},on:{click:function(i){return t.fetchReference()}}}),r("CButton",{staticStyle:{"font-size":"12px",padding:"7px"},attrs:{size:"small",type:"none",pattern:"tertiary"},domProps:{textContent:t._s(t.$t("unlink"))},on:{click:function(i){return t.removeReference()}}}),r("CButton",{staticStyle:{"font-size":"12px",padding:"7px"},attrs:{size:"small",type:"none",pattern:"tertiary"},domProps:{textContent:t._s(t.$t("suggestClients"))},on:{click:function(i){return t.suggestClients()}}})],1)]:r("div",[r("div",{staticClass:"text-gray-600",staticStyle:{padding:"0 4px 0.25em"},domProps:{textContent:t._s(t.$t("linkToDoc",{type:t.dealType}))}}),r("CAutocomplete",{ref:"input",staticStyle:{width:"auto"},attrs:{data:t.searchResults,loading:t.isSearching,placeholder:`${t.$t("_common:search")} ${t.activeCrm.capitalize()}`,expanded:"",size:"small","keep-first":"",filled:""},on:{typing:function(i){return t.search(i)},select:function(i){return t.useSearchResult(i)}},scopedSlots:t._u([{key:"default",fn:function({option:i}){return r("div",{staticStyle:{"line-height":"1.5"}},[r("div",{staticStyle:{"font-weight":"500"}},[t._v(t._s(i.name))]),r("div",{staticClass:"text-gray-600",staticStyle:{"font-size":"14px"}},[t._v(" "+t._s(i.externalReference.type.capitalize())+" "+t._s(i.externalReference.typeId)+" "),i.value&&i.currency?[t._v(" · "+t._s(t.priceFormat(i.value,{showZero:!1,currency:i.currency}))+" ")]:t._e()],2)])}}]),model:{value:t.searchQuery,callback:function(i){t.searchQuery=i},expression:"searchQuery"}},[r("template",{slot:"empty"},[t._v(" "+t._s(t.$t("_common:noResults"))+" ")])],2)],1)],2),t.showDealProducts?r("div",[r("div",{staticStyle:{padding:"0 calc(0.5 * var(--rem)) calc(1 * var(--rem))"}},[r("div",{staticStyle:{"font-weight":"500"}},[t._v(" "+t._s(t.$t("productsTitle"))+" "),r("CIcon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:"Use a product by drag & dropping a product to a package.",expression:`
1944
1944
  'Use a product by drag & dropping a product to a package.'
1945
- `}],attrs:{type:"info",size:"13"}})],1),r("div",{staticClass:"text-gray-600",domProps:{textContent:t._s(t.$t("productsText",{type:t.dealType,crm:t.activeCrm.capitalize()}))}})]),t.dealDetails.articles&&t.dealDetails.articles.length?r("draggable",{staticStyle:{"min-height":"calc(3 * var(--rem))",padding:"0 calc(0.5 * var(--rem))"},attrs:{list:t.dealDetails.articles,group:{name:"articles",pull:"clone",put:!1},clone:t.cloneArticle}},t._l(t.dealDetails.articles,function(i){return r("div",{key:i._uniqueId,staticStyle:{padding:"calc(0.5 * var(--rem))","line-height":"1","margin-bottom":"calc(0.5 * var(--rem))","box-shadow":"0 1px 3px rgb(0, 0, 0, 0.3)",background:"white","border-radius":"3px",cursor:"grab","user-select":"none"},on:{click:function(a){return t.addArticle(i)}}},[r("div",{staticStyle:{"font-weight":"500","padding-bottom":"4px","font-size":"14px"},domProps:{textContent:t._s(i.name)}}),r("div",{staticClass:"text-gray-600",staticStyle:{"font-size":"12px"}},[t._v(" "+t._s(t.priceFormat(i.price||0,{showZero:!1,currency:i.currency||"USD"}))+" · "+t._s(i.quantity||0)+"x "),i.vat!==null?[t._v(" · "+t._s(t._document.$t("vat").capitalize())+" "+t._s(i.vat)+"% ")]:t._e()],2)])}),0):r("div",{staticClass:"flex w-full text-gray-600",staticStyle:{"background-color":"hsl(var(--gray-color-100) / 1)",padding:"5px","font-size":"12px","border-radius":"5px","line-height":"1.35"}},[r("CIcon",{staticStyle:{margin:"1px 4px 0 0","flex-shrink":"0"},attrs:{type:"info",size:"13"}}),r("div",{domProps:{textContent:t._s(t.$t("noProducts",{type:t.dealType}))}})],1)],1):t._e()]:r("div",{staticClass:"flex w-full flex-col items-center justify-center text-center",staticStyle:{"padding-top":"calc(1 * var(--rem))"}},[r("CIcon",{staticClass:"text-primary-500",staticStyle:{"padding-bottom":"5px"},attrs:{type:"info",size:"16"}}),r("div",{staticClass:"text-gray-600"},[t._v(" "+t._s(t.$t("noCrm"))+" ")]),r("div",{staticClass:"text-center",staticStyle:{"padding-top":"calc(1 * var(--rem))"}},[r("router-link",{staticClass:"text-primary-500",staticStyle:{"font-weight":"500"},attrs:{to:{name:"settings"}}},[t._v(" "+t._s(t.$t("noCrmAction"))+" ")])],1)],1)],2)},hJe=[],mJe=he(pJe,fJe,hJe,!1,null,"1f5d45eb");const gJe=mJe.exports,vJe={props:{defaultOpen:{type:Boolean,default:!0},value:{type:Boolean,default:null},duration:{type:Number,default:250}},data(){return{internalExpanded:!1}},computed:{wrapperStyle(){return{transitionDuration:`${this.duration}ms`}},expanded:{get(){return this.value===null?this.internalExpanded:this.value},set(n){this.value===null?this.internalExpanded=n:this.$emit("input",this.value)}}},created(){this.defaultOpen&&(this.expanded=!0)},mounted(){this.expanded&&this.setWrapperHeightTo("auto")},methods:{onEnter(n){this.setWrapperHeightTo(this.getContentHeight(),n)},onAfterEnter(n){this.setWrapperHeightTo("auto",n)},onBeforeLeave(n){this.setWrapperHeightTo(this.getContentHeight(),n)},onLeave(n){n.scrollHeight,this.setWrapperHeightTo(0,n)},getContentHeight(){const{inner:n}=this.$refs;return n.getBoundingClientRect().height},setWrapperHeightTo(n,t=this.$refs.wrapper){t.style.height=typeof n=="number"?`${n}px`:n}}};var yJe=function(){var t=this,r=t._self._c;return r("div",[r("div",{on:{click:function(i){t.expanded=!t.expanded}}},[t._t("trigger",null,{expanded:t.expanded})],2),r("transition",{on:{enter:t.onEnter,"after-enter":t.onAfterEnter,"before-leave":t.onBeforeLeave,leave:t.onLeave}},[t.expanded?r("div",{ref:"wrapper",staticClass:"c-accordion",style:t.wrapperStyle},[r("div",{ref:"inner",staticClass:"c-accordion__inner"},[t._t("default")],2)]):t._e()])],1)},bJe=[],wJe=he(vJe,yJe,bJe,!1,null,null);const BW=wJe.exports,_Je={name:"CFormField",components:{CField:a8},extends:Uv,computed:{type(){return this.hasErrors?"is-danger":this.isValid?"is-success":null},customClass(){return this.hasErrors?"text-red-500":this.isValid?"text-green-500":null}}};var xJe=function(){var t=this,r=t._self._c;return r("CField",t._b({attrs:{label:t.label,"custom-class":t.customClass,type:t.type,message:t.firstErrorMessage}},"CField",{...t.$attrs,...t.$props},!1),[t._t("default")],2)},CJe=[],kJe=he(_Je,xJe,CJe,!1,null,null);const B8=kJe.exports;var SJe=Pj;function TJe(n){return SJe(n)?void 0:n}var EJe=TJe,$Je=tV;function AJe(n){var t=n==null?0:n.length;return t?$Je(n,1):[]}var OJe=AJe,DJe=OJe,MJe=_V,PJe=CV;function IJe(n){return PJe(MJe(n,void 0,DJe),n+"")}var jW=IJe,RJe=Xk,LJe=T4,FJe=Az,NJe=of,BJe=Tm,jJe=EJe,zJe=jW,VJe=MD,UJe=1,HJe=2,WJe=4,GJe=zJe(function(n,t){var r={};if(n==null)return r;var i=!1;t=RJe(t,function(o){return o=NJe(o,n),i||(i=o.length>1),o}),BJe(n,VJe(n),r),i&&(r=LJe(r,UJe|HJe|WJe,jJe));for(var a=t.length;a--;)FJe(r,t[a]);return r}),qJe=GJe;const j8=un(qJe);var cn={},Tb={},rr={},Eb={},$b={};Object.defineProperty($b,"__esModule",{value:!0}),$b.withParams=void 0;function Ab(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ab=function(r){return typeof r}:Ab=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ab(n)}var zW=typeof window<"u"?window:typeof Zt<"u"?Zt:{},YJe=function(t,r){return Ab(t)==="object"&&r!==void 0?r:t(function(){})},KJe=zW.vuelidate?zW.vuelidate.withParams:YJe;$b.withParams=KJe,Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.default=void 0;var ZJe=$b.withParams,JJe=ZJe;Eb.default=JJe,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"withParams",{enumerable:!0,get:function(){return t.default}}),n.regex=n.ref=n.len=n.req=void 0;var t=r(Eb);function r(l){return l&&l.__esModule?l:{default:l}}function i(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(d){return typeof d}:i=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},i(l)}var a=function(u){if(Array.isArray(u))return!!u.length;if(u==null)return!1;if(u===!1)return!0;if(u instanceof Date)return!isNaN(u.getTime());if(i(u)==="object"){for(var d in u)return!0;return!1}return!!String(u).length};n.req=a;var o=function(u){return Array.isArray(u)?u.length:i(u)==="object"?Object.keys(u).length:String(u).length};n.len=o;var s=function(u,d,p){return typeof u=="function"?u.call(d,p):p[u]};n.ref=s;var c=function(u,d){return(0,t.default)({type:u},function(p){return!a(p)||d.test(p)})};n.regex=c}(rr),Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.default=void 0;var XJe=rr,QJe=(0,XJe.regex)("alpha",/^[a-zA-Z]*$/);Tb.default=QJe;var Ob={};Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.default=void 0;var eXe=rr,tXe=(0,eXe.regex)("alphaNum",/^[a-zA-Z0-9]*$/);Ob.default=tXe;var Db={};Object.defineProperty(Db,"__esModule",{value:!0}),Db.default=void 0;var nXe=rr,rXe=(0,nXe.regex)("numeric",/^[0-9]*$/);Db.default=rXe;var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0}),Mb.default=void 0;var VW=rr,iXe=function(t,r){return(0,VW.withParams)({type:"between",min:t,max:r},function(i){return!(0,VW.req)(i)||(!/\s/.test(i)||i instanceof Date)&&+t<=+i&&+r>=+i})};Mb.default=iXe;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0}),Pb.default=void 0;var aXe=rr,oXe=/(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/,sXe=(0,aXe.regex)("email",oXe);Pb.default=sXe;var Ib={};Object.defineProperty(Ib,"__esModule",{value:!0}),Ib.default=void 0;var UW=rr,lXe=(0,UW.withParams)({type:"ipAddress"},function(n){if(!(0,UW.req)(n))return!0;if(typeof n!="string")return!1;var t=n.split(".");return t.length===4&&t.every(cXe)});Ib.default=lXe;var cXe=function(t){if(t.length>3||t.length===0||t[0]==="0"&&t!=="0"||!t.match(/^\d+$/))return!1;var r=+t|0;return r>=0&&r<=255},Rb={};Object.defineProperty(Rb,"__esModule",{value:!0}),Rb.default=void 0;var HW=rr,uXe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return(0,HW.withParams)({type:"macAddress"},function(r){if(!(0,HW.req)(r))return!0;if(typeof r!="string")return!1;var i=typeof t=="string"&&t!==""?r.split(t):r.length===12||r.length===16?r.match(/.{2}/g):null;return i!==null&&(i.length===6||i.length===8)&&i.every(dXe)})};Rb.default=uXe;var dXe=function(t){return t.toLowerCase().match(/^[0-9a-f]{2}$/)},Lb={};Object.defineProperty(Lb,"__esModule",{value:!0}),Lb.default=void 0;var z8=rr,pXe=function(t){return(0,z8.withParams)({type:"maxLength",max:t},function(r){return!(0,z8.req)(r)||(0,z8.len)(r)<=t})};Lb.default=pXe;var Fb={};Object.defineProperty(Fb,"__esModule",{value:!0}),Fb.default=void 0;var V8=rr,fXe=function(t){return(0,V8.withParams)({type:"minLength",min:t},function(r){return!(0,V8.req)(r)||(0,V8.len)(r)>=t})};Fb.default=fXe;var Nb={};Object.defineProperty(Nb,"__esModule",{value:!0}),Nb.default=void 0;var U8=rr,hXe=(0,U8.withParams)({type:"required"},function(n){return typeof n=="string"?(0,U8.req)(n.trim()):(0,U8.req)(n)});Nb.default=hXe;var Bb={};Object.defineProperty(Bb,"__esModule",{value:!0}),Bb.default=void 0;var H8=rr,mXe=function(t){return(0,H8.withParams)({type:"requiredIf",prop:t},function(r,i){return(0,H8.ref)(t,this,i)?(0,H8.req)(r):!0})};Bb.default=mXe;var jb={};Object.defineProperty(jb,"__esModule",{value:!0}),jb.default=void 0;var W8=rr,gXe=function(t){return(0,W8.withParams)({type:"requiredUnless",prop:t},function(r,i){return(0,W8.ref)(t,this,i)?!0:(0,W8.req)(r)})};jb.default=gXe;var zb={};Object.defineProperty(zb,"__esModule",{value:!0}),zb.default=void 0;var WW=rr,vXe=function(t){return(0,WW.withParams)({type:"sameAs",eq:t},function(r,i){return r===(0,WW.ref)(t,this,i)})};zb.default=vXe;var Vb={};Object.defineProperty(Vb,"__esModule",{value:!0}),Vb.default=void 0;var yXe=rr,bXe=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i,wXe=(0,yXe.regex)("url",bXe);Vb.default=wXe;var Ub={};Object.defineProperty(Ub,"__esModule",{value:!0}),Ub.default=void 0;var _Xe=rr,xXe=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(0,_Xe.withParams)({type:"or"},function(){for(var a=this,o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return r.length>0&&r.reduce(function(l,u){return l||u.apply(a,s)},!1)})};Ub.default=xXe;var Hb={};Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.default=void 0;var CXe=rr,kXe=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(0,CXe.withParams)({type:"and"},function(){for(var a=this,o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return r.length>0&&r.reduce(function(l,u){return l&&u.apply(a,s)},!0)})};Hb.default=kXe;var Wb={};Object.defineProperty(Wb,"__esModule",{value:!0}),Wb.default=void 0;var GW=rr,SXe=function(t){return(0,GW.withParams)({type:"not"},function(r,i){return!(0,GW.req)(r)||!t.call(this,r,i)})};Wb.default=SXe;var Gb={};Object.defineProperty(Gb,"__esModule",{value:!0}),Gb.default=void 0;var qW=rr,TXe=function(t){return(0,qW.withParams)({type:"minValue",min:t},function(r){return!(0,qW.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+t})};Gb.default=TXe;var qb={};Object.defineProperty(qb,"__esModule",{value:!0}),qb.default=void 0;var YW=rr,EXe=function(t){return(0,YW.withParams)({type:"maxValue",max:t},function(r){return!(0,YW.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+t})};qb.default=EXe;var Yb={};Object.defineProperty(Yb,"__esModule",{value:!0}),Yb.default=void 0;var $Xe=rr,AXe=(0,$Xe.regex)("integer",/(^[0-9]*$)|(^-[0-9]+$)/);Yb.default=AXe;var Kb={};Object.defineProperty(Kb,"__esModule",{value:!0}),Kb.default=void 0;var OXe=rr,DXe=(0,OXe.regex)("decimal",/^[-]?\d*(\.\d+)?$/);Kb.default=DXe,function(n){function t(Y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(D){return typeof D}:t=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},t(Y)}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"alpha",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"alphaNum",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"numeric",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"between",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"email",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"ipAddress",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"macAddress",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"maxLength",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"minLength",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"required",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"requiredIf",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"requiredUnless",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"sameAs",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"url",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"or",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(n,"and",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(n,"not",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(n,"minValue",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(n,"maxValue",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(n,"integer",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(n,"decimal",{enumerable:!0,get:function(){return T.default}}),n.helpers=void 0;var r=R(Tb),i=R(Ob),a=R(Db),o=R(Mb),s=R(Pb),c=R(Ib),l=R(Rb),u=R(Lb),d=R(Fb),p=R(Nb),f=R(Bb),h=R(jb),m=R(zb),g=R(Vb),y=R(Ub),b=R(Hb),_=R(Wb),S=R(Gb),k=R(qb),E=R(Yb),T=R(Kb),A=I(rr);n.helpers=A;function $(){if(typeof WeakMap!="function")return null;var Y=new WeakMap;return $=function(){return Y},Y}function I(Y){if(Y&&Y.__esModule)return Y;if(Y===null||t(Y)!=="object"&&typeof Y!="function")return{default:Y};var F=$();if(F&&F.has(Y))return F.get(Y);var D={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Y)if(Object.prototype.hasOwnProperty.call(Y,z)){var K=B?Object.getOwnPropertyDescriptor(Y,z):null;K&&(K.get||K.set)?Object.defineProperty(D,z,K):D[z]=Y[z]}return D.default=Y,F&&F.set(Y,D),D}function R(Y){return Y&&Y.__esModule?Y:{default:Y}}}(cn);const MXe={name:"FieldsModal",i18nOptions:{namespaces:"FieldsModal",messages:{en:{newTitle:"Add dynamic field",description:"Add a label and a value to create a custom field.",editTitle:"Edit dynamic field",label:"Label",labelPlaceholder:"E.g. Contact person",value:"Value",valuePlaceholder:"John Doe",v:{required:"This field is required",isUniqueLabel:"Already exists a field with this label"}},sv:{newTitle:"Skapa dynamiskt fält",description:"Lägg till en etikett och ett värde för att skapa ett eget fält.",editTitle:"Redigera dynamiskt fält",label:"Etikett",labelPlaceholder:"T.ex. Kontaktperson",value:"Värde",valuePlaceholder:"John Doe",v:{required:"Det här fältet är obligatoriskt.",isUniqueLabel:"Namnet används redan av ett fält. Välj ett annat."}}}},components:{CField:B8},props:{document:{type:Object,required:!0},existingFieldId:{type:String,default:null},set:{type:Function,required:!0},fields:{type:Array,required:!0}},data(){return{form:{label:"",value:""}}},validations:{form:{label:{required:cn.required,isUniqueLabel(n){return this.fields.reduce((r,{label:i})=>i===n?!1:r,!0)}},value:{required:cn.required}}},computed:{messages(){return{form:{label:{required:this.$t("v.required"),isUniqueLabel:this.$t("v.isUniqueLabel")},value:{required:this.$t("v.required")}}}}},created(){if(this.existingFieldId){const n=Ce(this.document,`fields.${this.existingFieldId}`);n&&(this.form={...this.form,...n})}},methods:{submit(){if(this.$v.$touch(),this.$v.$invalid)return;const n=this.existingFieldId||Ut();this.set({key:`data.fields.${n}`,value:{key:`data.fields.${n}.value`,...this.form}}),this.$emit("close")},remove(){if(!this.existingFieldId)return;const n=j8(this.document.fields,[this.existingFieldId]);this.set({key:"data.fields",value:n}),this.$emit("close")}}};var PXe=function(){var t=this,r=t._self._c;return r("div",{staticClass:"font-inter flex w-full flex-col items-center bg-white text-center",staticStyle:{padding:"2em","border-radius":"10px"}},[r("div",{staticStyle:{"padding-bottom":"2em"}},[r("div",{staticStyle:{"font-size":"18px","font-weight":"600","margin-bottom":"0.25em"}},[t._v(" "+t._s(t.existingFieldId?t.$t("editTitle"):t.$t("newTitle"))+" ")]),r("div",{staticStyle:{"margin-bottom":"0.25em",opacity:"0.65"}},[t._v(" "+t._s(t.$t("description"))+" ")])]),r("form",{staticStyle:{width:"100%"},on:{submit:function(i){return i.preventDefault(),t.submit.apply(null,arguments)},keyup:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.submit.apply(null,arguments)}}},[r("CField",{staticStyle:{width:"100%","text-align":"left","margin-bottom":"1em"},attrs:{label:t.$t("label"),messages:t.messages.form.label,validator:t.$v.form.label,"label-position":"inside"}},[r("CInput",{attrs:{placeholder:t.$t("labelPlaceholder"),filled:""},model:{value:t.form.label,callback:function(i){t.$set(t.form,"label",i)},expression:"form.label"}})],1),r("CField",{staticStyle:{width:"100%","text-align":"left","margin-bottom":"1em"},attrs:{label:t.$t("value"),messages:t.messages.form.value,validator:t.$v.form.value,"label-position":"inside"}},[r("CInput",{attrs:{placeholder:t.$t("valuePlaceholder"),filled:""},model:{value:t.form.value,callback:function(i){t.$set(t.form,"value",i)},expression:"form.value"}})],1),r("CButton",{staticStyle:{"margin-top":"1.5em"},attrs:{type:"secondary",wide:""},domProps:{textContent:t._s(t.$t("_common:save"))},on:{click:t.submit}}),t.existingFieldId?r("CButton",{staticStyle:{"margin-top":"5px"},attrs:{type:"none",pattern:"tertiary",wide:""},domProps:{textContent:t._s(t.$t("_common:remove"))},on:{click:t.remove}}):t._e()],1)])},IXe=[],RXe=he(MXe,PXe,IXe,!1,null,"455b4cda");const LXe=RXe.exports,FXe={i18nOptions:{namespaces:"DocumentFormFields",messages:{en:{title:"Dynamic Fields",description:"Use dynamic fields to automatically refer to information.",usedFields:"Used fields",unUsedFields:"Unused fields",crmFields:"{{crm,capitalize}} fields",noResults:"Nothing to show."},sv:{title:"Dynamiska fält",description:"Använd dynamiska fält för att automatiskt referera till information.",usedFields:"Använda fält",unUsedFields:"Oanvända fält",crmFields:"{{crm,capitalize}} fält",noResults:"Här var det tomt."}}},name:"DocumentFormFields",components:{SmartList:sb,CAccordion:BW,CField:B8},mixins:[pt()],props:{set:{type:Function,required:!0},crmService:{type:String,default:null}},data(){return{query:null,showEdit:!1}},computed:{options(){const{fields:n,usedFields:t}=this._document;return Object.keys(n).map(r=>{const i=n[r],{service:a,inputDisabled:o,virtual:s=!1}=i.meta||{},c=this.crmService&&a===this.crmService?i.meta.service:null;return{...i,id:r,value:`${i.value}`,onInput:l=>this.updateValue(i.key,l),usedCount:t[i.key]||0,crm:c,inputDisabled:o||c,virtual:s}})},usedFields(){return this.options.filter(({usedCount:n})=>n)},unUsedFields(){return this.options.filter(({usedCount:n})=>!n)},crmFields(){return this.options.filter(({crm:n})=>n)},isEditingTemplate(){var n;return((n=this.$route)==null?void 0:n.name)==="templateForm"}},watch:{crmService:{immediate:!0,async handler(n){var t,r;if(this.isEditingTemplate&&n){const{data:i}=await Ql.getFields(n);this.updateValue("data.fields",{...i,...Object.entries(((r=(t=this._document)==null?void 0:t.data)==null?void 0:r.fields)||{}).reduce((a,[o,s])=>s!=null&&s.meta.service&&s.meta.service!==n?a:{...a,[o]:s},{})})}}}},methods:{updateValue(n,t){this.set({key:`${n}`,value:t})},openFieldModal({existingFieldId:n}){this.$modal.show(LXe,{document:this._document,set:this.set,...n&&{existingFieldId:n},fields:this.options},{name:"fieldsModal",adaptive:!0,height:"auto",width:"90%",maxWidth:350,classes:"",transition:""})},onCopyField(n){navigator&&navigator.clipboard&&n&&navigator.clipboard.writeText(n).then(()=>ho("info",this.$t("_common:copyMessage"))).catch(t=>Lr(t))},filterMethod(n,t){return t.filter(r=>r.label.toLowerCase().includes(n.toLowerCase()))},onDragStart(n,t){const r=`<span class="mention" data-mention-id="${t.key}" data-tooltip="${t.value}" contenteditable="false">${t.label}</span>`;n.dataTransfer.setData("text/html",r),n.dataTransfer.setData("text",`{{${t.key}}}`)}}};var NXe=function(){var t=this,r=t._self._c;return r("div",{staticStyle:{padding:"1em"}},[r("div",{staticStyle:{margin:"15px 0"}},[r("div",{staticStyle:{"font-size":"16px","font-weight":"600"},domProps:{textContent:t._s(t.$t("title"))}}),r("div",{staticStyle:{color:"hsl(0, 0%, 35%)"},domProps:{textContent:t._s(t.$t("description"))}})]),r("CInput",{attrs:{placeholder:t.$t("_common:search"),filled:"",size:"small"},model:{value:t.query,callback:function(i){t.query=i},expression:"query"}}),t.query?r("div",{staticStyle:{"margin-top":"15px","padding-top":"15px","border-top":"1px solid hsl(0, 0%, 88%)"}},[r("SmartList",{attrs:{items:t.options,"filter-method":t.filterMethod,query:t.query},scopedSlots:t._u([{key:"default",fn:function({items:i}){return r("div",{},[i.length?t._l(i,function(a,o){return r("div",{key:o,staticClass:"field-parent flex w-full items-center"},[r("div",{staticClass:"field-container",staticStyle:{position:"relative",flex:"1 1 auto"}},[r("CField",{staticStyle:{width:"100%"},attrs:{label:" ","label-position":"inside"}},[r("span",{staticClass:"drag-label",attrs:{draggable:""},domProps:{textContent:t._s(a.label)},on:{dragstart:s=>t.onDragStart(s,a)}}),r("CInput",{staticStyle:{width:"100%"},attrs:{value:a.value,disabled:a.inputDisabled,filled:"",size:"small"},on:{blur:function(s){var c;return a.onInput(((c=s==null?void 0:s.target)==null?void 0:c.value)||"")}}})],1),r("div",{staticClass:"field-actions"},[!a.inputDisabled&&!a.virtual?r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"edit",size:"small",type:"none",pattern:"tertiary"},on:{click:function(s){return t.openFieldModal({existingFieldId:a.id})}}}):t._e(),r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"copy",size:"small",type:"none",pattern:"secondary"},on:{click:function(s){return t.onCopyField(`{{${a.key}}}`)}}})],1)],1)])}):r("div",{staticStyle:{"text-align":"center"}},[t._v(" "+t._s(t.$t("_common:noResults"))+" ")])],2)}}],null,!1,1639279928)})],1):r("div",{staticStyle:{"padding-top":"20px"}},[r("div",{staticClass:"flex w-full justify-end",staticStyle:{"margin-top":"0.5em","margin-bottom":"0.5em"}},[r("CButton",{staticStyle:{"font-size":"13px","margin-left":"2px"},attrs:{type:"none",pattern:"secondary",size:"small"},domProps:{textContent:t._s(t.$t("_common:add",{thing:t.$t("_common:field")}))},on:{click:t.openFieldModal}})],1),t._l([{label:t.$t("usedFields"),defaultOpen:!0,items:t.usedFields},...t.crmService&&t.crmFields.length?[{label:t.$t("crmFields",{crm:t.crmService}),defaultOpen:!1,items:t.crmFields}]:[],{label:t.$t("unUsedFields"),defaultOpen:!t.usedFields.length,items:t.unUsedFields}],function(i,a){return r("CAccordion",{key:a,staticStyle:{"border-top":"1px solid hsl(0, 0%, 88%)"},attrs:{"default-open":i.defaultOpen},scopedSlots:t._u([{key:"trigger",fn:function({expanded:o}){return r("div",{staticClass:"list-button"},[r("span",[r("span",{domProps:{textContent:t._s(i.label)}}),r("span",{staticStyle:{opacity:"0.45","padding-left":"0.5em"},domProps:{textContent:t._s(i.items.length)}})]),r("CIcon",{staticStyle:{transition:"200ms"},style:{transform:`rotate(${o?"180deg":"0deg"})`},attrs:{type:"chevron-down",size:"15"}})],1)}}],null,!0)},[r("div",{staticStyle:{"padding-bottom":"2em"}},[i.items.length?t._l(i.items,function(o,s){return r("div",{key:s,staticClass:"field-parent flex w-full items-center"},[r("div",{staticClass:"field-container",staticStyle:{position:"relative",flex:"1 1 auto"}},[r("CField",{staticStyle:{width:"100%"},attrs:{label:" ","label-position":"inside"}},[r("span",{staticClass:"drag-label",attrs:{draggable:""},domProps:{textContent:t._s(o.label)},on:{dragstart:c=>t.onDragStart(c,o)}}),r("CInput",{staticStyle:{width:"100%"},attrs:{value:o.value,disabled:o.inputDisabled,filled:"",size:"small"},on:{blur:function(c){var l;return o.onInput(((l=c==null?void 0:c.target)==null?void 0:l.value)||"")}}})],1),r("div",{staticClass:"field-actions"},[!o.inputDisabled&&!o.virtual?r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"edit",size:"small",type:"none",pattern:"tertiary"},on:{click:function(c){return t.openFieldModal({existingFieldId:o.id})}}}):t._e(),r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"copy",size:"small",type:"none",pattern:"secondary"},on:{click:function(c){return t.onCopyField(`{{${o.key}}}`)}}})],1)],1)])}):r("div",{staticStyle:{"font-size":"13px","text-align":"center","user-select":"none",padding:"0.5em","border-radius":"0.25em",opacity:"0.5"},domProps:{textContent:t._s(t.$t("noResults"))}})],2)])})],2)],1)},BXe=[],jXe=he(FXe,NXe,BXe,!1,null,"0d2bdff3");const zXe=jXe.exports,VXe=n=>{const t=Array(2).fill().map(()=>Ut());return[{itemId:"attachments2",itemType:"section",value:{title:`data.title-${n}`},parentId:"0",nodeId:t[0]},{itemId:"attachments",itemType:"attachments",value:{attachments:`data.files-${n}`},parentId:t[0],nodeId:t[1]}]},UXe=(n,t="en")=>[{key:`title-${n}`,anyOf:[{type:"string"},{type:"null"}],defaultValue:Fe.t("attachment_plural",{lng:t}).capitalize()},{key:`files-${n}`,type:"array",items:{$ref:`${Je.api.baseUrl}/schemas/file/1.json`}}],HXe=({document:n=null})=>{const t=Ut(),{language:r}=n||{};return{readView:VXe(t),validation:UXe(t,r)}},WXe=n=>[{itemId:"coverBlock",itemType:"coverBlock",value:{coverBlock:`data.coverBlock-${n}`},parentId:"0",nodeId:Ut()}],GXe=(n,t="en")=>[{key:`coverBlock-${n}`,defaultValue:{type:"video",text:`<p data-typography="title">${Fe.t("components:document.coverBlock.defaultText",{lng:t})}</p>`,cover:{video:{id:"1409899",url:"https://player.vimeo.com/external/289258217.hd.mp4?s=5cf87d7670d96bbd2c110f4dc97fd5116f4468ad&profile_id=175&oauth2_token_id=57447761",thumbnail:"https://images.pexels.com/videos/1409899/free-video-1409899.jpg?auto=compress&cs=tinysrgb&fit=crop&h=630&w=1200",provider:"pexels"}}},$ref:`${Je.api.baseUrl}/schemas/coverBlock/1.json`}],qXe=n=>({[`data.coverBlock-${n}`]:{text:"<h1>We know communication</h1>",cover:{type:"image",resourceUrl:"https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1800&fit=max&ixid=eyJhcHBfaWQiOjI1MDg3fQ",position:50,blur:0}}}),YXe=({includeMockData:n=!1,document:t=null,contentData:r=null}={})=>{const i=Ut(),{language:a}=t||{};let o=null;return typeof r=="function"?o=r(i):n&&(o=qXe(i)),{readView:WXe(i),validation:GXe(i,a),...o&&{data:o}}},KXe=({language:n="en"}={})=>{const t=r=>Fe.t(`components:account.documentForm.contentItems.coverBlock.${r}`,{lng:n});return[{previewUrl:`
1945
+ `}],attrs:{type:"info",size:"13"}})],1),r("div",{staticClass:"text-gray-600",domProps:{textContent:t._s(t.$t("productsText",{type:t.dealType,crm:t.activeCrm.capitalize()}))}})]),t.dealDetails.articles&&t.dealDetails.articles.length?r("draggable",{staticStyle:{"min-height":"calc(3 * var(--rem))",padding:"0 calc(0.5 * var(--rem))"},attrs:{list:t.dealDetails.articles,group:{name:"articles",pull:"clone",put:!1},clone:t.cloneArticle}},t._l(t.dealDetails.articles,function(i){return r("div",{key:i._uniqueId,staticStyle:{padding:"calc(0.5 * var(--rem))","line-height":"1","margin-bottom":"calc(0.5 * var(--rem))","box-shadow":"0 1px 3px rgb(0, 0, 0, 0.3)",background:"white","border-radius":"3px",cursor:"grab","user-select":"none"},on:{click:function(a){return t.addArticle(i)}}},[r("div",{staticStyle:{"font-weight":"500","padding-bottom":"4px","font-size":"14px"},domProps:{textContent:t._s(i.name)}}),r("div",{staticClass:"text-gray-600",staticStyle:{"font-size":"12px"}},[t._v(" "+t._s(t.priceFormat(i.price||0,{showZero:!1,currency:i.currency||"USD"}))+" · "+t._s(i.quantity||0)+"x "),i.vat!==null?[t._v(" · "+t._s(t._document.$t("vat").capitalize())+" "+t._s(i.vat)+"% ")]:t._e()],2)])}),0):r("div",{staticClass:"flex w-full text-gray-600",staticStyle:{"background-color":"hsl(var(--gray-color-100) / 1)",padding:"5px","font-size":"12px","border-radius":"5px","line-height":"1.35"}},[r("CIcon",{staticStyle:{margin:"1px 4px 0 0","flex-shrink":"0"},attrs:{type:"info",size:"13"}}),r("div",{domProps:{textContent:t._s(t.$t("noProducts",{type:t.dealType}))}})],1)],1):t._e()]:r("div",{staticClass:"flex w-full flex-col items-center justify-center text-center",staticStyle:{"padding-top":"calc(1 * var(--rem))"}},[r("CIcon",{staticClass:"text-primary-500",staticStyle:{"padding-bottom":"5px"},attrs:{type:"info",size:"16"}}),r("div",{staticClass:"text-gray-600"},[t._v(" "+t._s(t.$t("noCrm"))+" ")]),r("div",{staticClass:"text-center",staticStyle:{"padding-top":"calc(1 * var(--rem))"}},[r("router-link",{staticClass:"text-primary-500",staticStyle:{"font-weight":"500"},attrs:{to:{name:"settings"}}},[t._v(" "+t._s(t.$t("noCrmAction"))+" ")])],1)],1)],2)},hJe=[],mJe=he(pJe,fJe,hJe,!1,null,"1f5d45eb");const gJe=mJe.exports,vJe={props:{defaultOpen:{type:Boolean,default:!0},value:{type:Boolean,default:null},duration:{type:Number,default:250}},data(){return{internalExpanded:!1}},computed:{wrapperStyle(){return{transitionDuration:`${this.duration}ms`}},expanded:{get(){return this.value===null?this.internalExpanded:this.value},set(n){this.value===null?this.internalExpanded=n:this.$emit("input",this.value)}}},created(){this.defaultOpen&&(this.expanded=!0)},mounted(){this.expanded&&this.setWrapperHeightTo("auto")},methods:{onEnter(n){this.setWrapperHeightTo(this.getContentHeight(),n)},onAfterEnter(n){this.setWrapperHeightTo("auto",n)},onBeforeLeave(n){this.setWrapperHeightTo(this.getContentHeight(),n)},onLeave(n){n.scrollHeight,this.setWrapperHeightTo(0,n)},getContentHeight(){const{inner:n}=this.$refs;return n.getBoundingClientRect().height},setWrapperHeightTo(n,t=this.$refs.wrapper){t.style.height=typeof n=="number"?`${n}px`:n}}};var yJe=function(){var t=this,r=t._self._c;return r("div",[r("div",{on:{click:function(i){t.expanded=!t.expanded}}},[t._t("trigger",null,{expanded:t.expanded})],2),r("transition",{on:{enter:t.onEnter,"after-enter":t.onAfterEnter,"before-leave":t.onBeforeLeave,leave:t.onLeave}},[t.expanded?r("div",{ref:"wrapper",staticClass:"c-accordion",style:t.wrapperStyle},[r("div",{ref:"inner",staticClass:"c-accordion__inner"},[t._t("default")],2)]):t._e()])],1)},bJe=[],wJe=he(vJe,yJe,bJe,!1,null,null);const BW=wJe.exports,_Je={name:"CFormField",components:{CField:a8},extends:Uv,computed:{type(){return this.hasErrors?"is-danger":this.isValid?"is-success":null},customClass(){return this.hasErrors?"text-red-500":this.isValid?"text-green-500":null}}};var xJe=function(){var t=this,r=t._self._c;return r("CField",t._b({attrs:{label:t.label,"custom-class":t.customClass,type:t.type,message:t.firstErrorMessage}},"CField",{...t.$attrs,...t.$props},!1),[t._t("default")],2)},CJe=[],kJe=he(_Je,xJe,CJe,!1,null,null);const B8=kJe.exports;var SJe=Pj;function TJe(n){return SJe(n)?void 0:n}var EJe=TJe,$Je=tV;function AJe(n){var t=n==null?0:n.length;return t?$Je(n,1):[]}var OJe=AJe,DJe=OJe,MJe=_V,PJe=CV;function IJe(n){return PJe(MJe(n,void 0,DJe),n+"")}var jW=IJe,RJe=Xk,LJe=T4,FJe=Az,NJe=of,BJe=Tm,jJe=EJe,zJe=jW,VJe=MD,UJe=1,HJe=2,WJe=4,GJe=zJe(function(n,t){var r={};if(n==null)return r;var i=!1;t=RJe(t,function(o){return o=NJe(o,n),i||(i=o.length>1),o}),BJe(n,VJe(n),r),i&&(r=LJe(r,UJe|HJe|WJe,jJe));for(var a=t.length;a--;)FJe(r,t[a]);return r}),qJe=GJe;const j8=un(qJe);var cn={},Tb={},rr={},Eb={},$b={};Object.defineProperty($b,"__esModule",{value:!0}),$b.withParams=void 0;function Ab(n){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ab=function(r){return typeof r}:Ab=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ab(n)}var zW=typeof window<"u"?window:typeof Zt<"u"?Zt:{},YJe=function(t,r){return Ab(t)==="object"&&r!==void 0?r:t(function(){})},KJe=zW.vuelidate?zW.vuelidate.withParams:YJe;$b.withParams=KJe,Object.defineProperty(Eb,"__esModule",{value:!0}),Eb.default=void 0;var ZJe=$b.withParams,JJe=ZJe;Eb.default=JJe,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"withParams",{enumerable:!0,get:function(){return t.default}}),n.regex=n.ref=n.len=n.req=void 0;var t=r(Eb);function r(l){return l&&l.__esModule?l:{default:l}}function i(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?i=function(d){return typeof d}:i=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},i(l)}var a=function(u){if(Array.isArray(u))return!!u.length;if(u==null)return!1;if(u===!1)return!0;if(u instanceof Date)return!isNaN(u.getTime());if(i(u)==="object"){for(var d in u)return!0;return!1}return!!String(u).length};n.req=a;var o=function(u){return Array.isArray(u)?u.length:i(u)==="object"?Object.keys(u).length:String(u).length};n.len=o;var s=function(u,d,p){return typeof u=="function"?u.call(d,p):p[u]};n.ref=s;var c=function(u,d){return(0,t.default)({type:u},function(p){return!a(p)||d.test(p)})};n.regex=c}(rr),Object.defineProperty(Tb,"__esModule",{value:!0}),Tb.default=void 0;var XJe=rr,QJe=(0,XJe.regex)("alpha",/^[a-zA-Z]*$/);Tb.default=QJe;var Ob={};Object.defineProperty(Ob,"__esModule",{value:!0}),Ob.default=void 0;var eXe=rr,tXe=(0,eXe.regex)("alphaNum",/^[a-zA-Z0-9]*$/);Ob.default=tXe;var Db={};Object.defineProperty(Db,"__esModule",{value:!0}),Db.default=void 0;var nXe=rr,rXe=(0,nXe.regex)("numeric",/^[0-9]*$/);Db.default=rXe;var Mb={};Object.defineProperty(Mb,"__esModule",{value:!0}),Mb.default=void 0;var VW=rr,iXe=function(t,r){return(0,VW.withParams)({type:"between",min:t,max:r},function(i){return!(0,VW.req)(i)||(!/\s/.test(i)||i instanceof Date)&&+t<=+i&&+r>=+i})};Mb.default=iXe;var Pb={};Object.defineProperty(Pb,"__esModule",{value:!0}),Pb.default=void 0;var aXe=rr,oXe=/(^$|^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$)/,sXe=(0,aXe.regex)("email",oXe);Pb.default=sXe;var Ib={};Object.defineProperty(Ib,"__esModule",{value:!0}),Ib.default=void 0;var UW=rr,lXe=(0,UW.withParams)({type:"ipAddress"},function(n){if(!(0,UW.req)(n))return!0;if(typeof n!="string")return!1;var t=n.split(".");return t.length===4&&t.every(cXe)});Ib.default=lXe;var cXe=function(t){if(t.length>3||t.length===0||t[0]==="0"&&t!=="0"||!t.match(/^\d+$/))return!1;var r=+t|0;return r>=0&&r<=255},Rb={};Object.defineProperty(Rb,"__esModule",{value:!0}),Rb.default=void 0;var HW=rr,uXe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:":";return(0,HW.withParams)({type:"macAddress"},function(r){if(!(0,HW.req)(r))return!0;if(typeof r!="string")return!1;var i=typeof t=="string"&&t!==""?r.split(t):r.length===12||r.length===16?r.match(/.{2}/g):null;return i!==null&&(i.length===6||i.length===8)&&i.every(dXe)})};Rb.default=uXe;var dXe=function(t){return t.toLowerCase().match(/^[0-9a-f]{2}$/)},Lb={};Object.defineProperty(Lb,"__esModule",{value:!0}),Lb.default=void 0;var z8=rr,pXe=function(t){return(0,z8.withParams)({type:"maxLength",max:t},function(r){return!(0,z8.req)(r)||(0,z8.len)(r)<=t})};Lb.default=pXe;var Fb={};Object.defineProperty(Fb,"__esModule",{value:!0}),Fb.default=void 0;var V8=rr,fXe=function(t){return(0,V8.withParams)({type:"minLength",min:t},function(r){return!(0,V8.req)(r)||(0,V8.len)(r)>=t})};Fb.default=fXe;var Nb={};Object.defineProperty(Nb,"__esModule",{value:!0}),Nb.default=void 0;var U8=rr,hXe=(0,U8.withParams)({type:"required"},function(n){return typeof n=="string"?(0,U8.req)(n.trim()):(0,U8.req)(n)});Nb.default=hXe;var Bb={};Object.defineProperty(Bb,"__esModule",{value:!0}),Bb.default=void 0;var H8=rr,mXe=function(t){return(0,H8.withParams)({type:"requiredIf",prop:t},function(r,i){return(0,H8.ref)(t,this,i)?(0,H8.req)(r):!0})};Bb.default=mXe;var jb={};Object.defineProperty(jb,"__esModule",{value:!0}),jb.default=void 0;var W8=rr,gXe=function(t){return(0,W8.withParams)({type:"requiredUnless",prop:t},function(r,i){return(0,W8.ref)(t,this,i)?!0:(0,W8.req)(r)})};jb.default=gXe;var zb={};Object.defineProperty(zb,"__esModule",{value:!0}),zb.default=void 0;var WW=rr,vXe=function(t){return(0,WW.withParams)({type:"sameAs",eq:t},function(r,i){return r===(0,WW.ref)(t,this,i)})};zb.default=vXe;var Vb={};Object.defineProperty(Vb,"__esModule",{value:!0}),Vb.default=void 0;var yXe=rr,bXe=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i,wXe=(0,yXe.regex)("url",bXe);Vb.default=wXe;var Ub={};Object.defineProperty(Ub,"__esModule",{value:!0}),Ub.default=void 0;var _Xe=rr,xXe=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(0,_Xe.withParams)({type:"or"},function(){for(var a=this,o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return r.length>0&&r.reduce(function(l,u){return l||u.apply(a,s)},!1)})};Ub.default=xXe;var Hb={};Object.defineProperty(Hb,"__esModule",{value:!0}),Hb.default=void 0;var CXe=rr,kXe=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return(0,CXe.withParams)({type:"and"},function(){for(var a=this,o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return r.length>0&&r.reduce(function(l,u){return l&&u.apply(a,s)},!0)})};Hb.default=kXe;var Wb={};Object.defineProperty(Wb,"__esModule",{value:!0}),Wb.default=void 0;var GW=rr,SXe=function(t){return(0,GW.withParams)({type:"not"},function(r,i){return!(0,GW.req)(r)||!t.call(this,r,i)})};Wb.default=SXe;var Gb={};Object.defineProperty(Gb,"__esModule",{value:!0}),Gb.default=void 0;var qW=rr,TXe=function(t){return(0,qW.withParams)({type:"minValue",min:t},function(r){return!(0,qW.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r>=+t})};Gb.default=TXe;var qb={};Object.defineProperty(qb,"__esModule",{value:!0}),qb.default=void 0;var YW=rr,EXe=function(t){return(0,YW.withParams)({type:"maxValue",max:t},function(r){return!(0,YW.req)(r)||(!/\s/.test(r)||r instanceof Date)&&+r<=+t})};qb.default=EXe;var Yb={};Object.defineProperty(Yb,"__esModule",{value:!0}),Yb.default=void 0;var $Xe=rr,AXe=(0,$Xe.regex)("integer",/(^[0-9]*$)|(^-[0-9]+$)/);Yb.default=AXe;var Kb={};Object.defineProperty(Kb,"__esModule",{value:!0}),Kb.default=void 0;var OXe=rr,DXe=(0,OXe.regex)("decimal",/^[-]?\d*(\.\d+)?$/);Kb.default=DXe,function(n){function t(Y){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(D){return typeof D}:t=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},t(Y)}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"alpha",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"alphaNum",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(n,"numeric",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"between",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(n,"email",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(n,"ipAddress",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(n,"macAddress",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(n,"maxLength",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(n,"minLength",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(n,"required",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(n,"requiredIf",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(n,"requiredUnless",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(n,"sameAs",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(n,"url",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(n,"or",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(n,"and",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(n,"not",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(n,"minValue",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(n,"maxValue",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(n,"integer",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(n,"decimal",{enumerable:!0,get:function(){return T.default}}),n.helpers=void 0;var r=R(Tb),i=R(Ob),a=R(Db),o=R(Mb),s=R(Pb),c=R(Ib),l=R(Rb),u=R(Lb),d=R(Fb),p=R(Nb),f=R(Bb),h=R(jb),m=R(zb),g=R(Vb),y=R(Ub),b=R(Hb),_=R(Wb),S=R(Gb),k=R(qb),E=R(Yb),T=R(Kb),A=I(rr);n.helpers=A;function $(){if(typeof WeakMap!="function")return null;var Y=new WeakMap;return $=function(){return Y},Y}function I(Y){if(Y&&Y.__esModule)return Y;if(Y===null||t(Y)!=="object"&&typeof Y!="function")return{default:Y};var F=$();if(F&&F.has(Y))return F.get(Y);var D={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in Y)if(Object.prototype.hasOwnProperty.call(Y,z)){var K=B?Object.getOwnPropertyDescriptor(Y,z):null;K&&(K.get||K.set)?Object.defineProperty(D,z,K):D[z]=Y[z]}return D.default=Y,F&&F.set(Y,D),D}function R(Y){return Y&&Y.__esModule?Y:{default:Y}}}(cn);const MXe={name:"FieldsModal",i18nOptions:{namespaces:"FieldsModal",messages:{en:{newTitle:"Add dynamic field",description:"Add a label and a value to create a custom field.",editTitle:"Edit dynamic field",label:"Label",labelPlaceholder:"E.g. Contact person",value:"Value",valuePlaceholder:"John Doe",v:{required:"This field is required",isUniqueLabel:"Already exists a field with this label"}},sv:{newTitle:"Skapa dynamiskt fält",description:"Lägg till en etikett och ett värde för att skapa ett eget fält.",editTitle:"Redigera dynamiskt fält",label:"Etikett",labelPlaceholder:"T.ex. Kontaktperson",value:"Värde",valuePlaceholder:"John Doe",v:{required:"Det här fältet är obligatoriskt.",isUniqueLabel:"Namnet används redan av ett fält. Välj ett annat."}}}},components:{CField:B8},props:{document:{type:Object,required:!0},existingFieldId:{type:String,default:null},set:{type:Function,required:!0},fields:{type:Array,required:!0}},data(){return{form:{label:"",value:""}}},validations:{form:{label:{required:cn.required,isUniqueLabel(n){return this.fields.reduce((r,{label:i})=>i===n?!1:r,!0)}},value:{required:cn.required}}},computed:{messages(){return{form:{label:{required:this.$t("v.required"),isUniqueLabel:this.$t("v.isUniqueLabel")},value:{required:this.$t("v.required")}}}}},created(){if(this.existingFieldId){const n=Ce(this.document,`fields.${this.existingFieldId}`);n&&(this.form={...this.form,...n})}},methods:{submit(){if(this.$v.$touch(),this.$v.$invalid)return;const n=this.existingFieldId||Ut();this.set({key:`data.fields.${n}`,value:{key:`data.fields.${n}.value`,...this.form}}),this.$emit("close")},remove(){if(!this.existingFieldId)return;const n=j8(this.document.fields,[this.existingFieldId]);this.set({key:"data.fields",value:n}),this.$emit("close")}}};var PXe=function(){var t=this,r=t._self._c;return r("div",{staticClass:"font-inter flex w-full flex-col items-center bg-white text-center",staticStyle:{padding:"2em","border-radius":"10px"}},[r("div",{staticStyle:{"padding-bottom":"2em"}},[r("div",{staticStyle:{"font-size":"18px","font-weight":"600","margin-bottom":"0.25em"}},[t._v(" "+t._s(t.existingFieldId?t.$t("editTitle"):t.$t("newTitle"))+" ")]),r("div",{staticStyle:{"margin-bottom":"0.25em",opacity:"0.65"}},[t._v(" "+t._s(t.$t("description"))+" ")])]),r("form",{staticStyle:{width:"100%"},on:{submit:function(i){return i.preventDefault(),t.submit.apply(null,arguments)},keyup:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.submit.apply(null,arguments)}}},[r("CField",{staticStyle:{width:"100%","text-align":"left","margin-bottom":"1em"},attrs:{label:t.$t("label"),messages:t.messages.form.label,validator:t.$v.form.label,"label-position":"inside"}},[r("CInput",{attrs:{placeholder:t.$t("labelPlaceholder"),filled:""},model:{value:t.form.label,callback:function(i){t.$set(t.form,"label",i)},expression:"form.label"}})],1),r("CField",{staticStyle:{width:"100%","text-align":"left","margin-bottom":"1em"},attrs:{label:t.$t("value"),messages:t.messages.form.value,validator:t.$v.form.value,"label-position":"inside"}},[r("CInput",{attrs:{placeholder:t.$t("valuePlaceholder"),filled:""},model:{value:t.form.value,callback:function(i){t.$set(t.form,"value",i)},expression:"form.value"}})],1),r("CButton",{staticStyle:{"margin-top":"1.5em"},attrs:{type:"secondary",wide:""},domProps:{textContent:t._s(t.$t("_common:save"))},on:{click:t.submit}}),t.existingFieldId?r("CButton",{staticStyle:{"margin-top":"5px"},attrs:{type:"none",pattern:"tertiary",wide:""},domProps:{textContent:t._s(t.$t("_common:remove"))},on:{click:t.remove}}):t._e()],1)])},IXe=[],RXe=he(MXe,PXe,IXe,!1,null,"455b4cda");const LXe=RXe.exports,FXe={i18nOptions:{namespaces:"DocumentFormFields",messages:{en:{title:"Dynamic Fields",description:"Use dynamic fields to automatically refer to information.",usedFields:"Used fields",unUsedFields:"Unused fields",crmFields:"{{crm,capitalize}} fields",noResults:"Nothing to show."},sv:{title:"Dynamiska fält",description:"Använd dynamiska fält för att automatiskt referera till information.",usedFields:"Använda fält",unUsedFields:"Oanvända fält",crmFields:"{{crm,capitalize}} fält",noResults:"Här var det tomt."}}},name:"DocumentFormFields",components:{SmartList:sb,CAccordion:BW,CField:B8},mixins:[pt()],props:{set:{type:Function,required:!0},crmService:{type:String,default:null}},data(){return{query:null,showEdit:!1}},computed:{options(){const{fields:n,usedFields:t}=this._document;return Object.keys(n).map(r=>{const i=n[r],{service:a,inputDisabled:o,virtual:s=!1}=i.meta||{},c=this.crmService&&a===this.crmService?i.meta.service:null;return{...i,id:r,value:`${i.value}`,onInput:l=>this.updateValue(i.key,l),usedCount:t[i.key]||0,crm:c,inputDisabled:o||c,virtual:s}})},usedFields(){return this.options.filter(({usedCount:n})=>n)},unUsedFields(){return this.options.filter(({usedCount:n})=>!n)},crmFields(){return this.options.filter(({crm:n})=>n)},isEditingTemplate(){var n;return((n=this.$route)==null?void 0:n.name)==="templateForm"}},watch:{crmService:{immediate:!0,async handler(n){var t,r;if(this.isEditingTemplate&&n){const{data:i}=await Ql.getFields(n);this.updateValue("data.fields",{...i,...Object.entries(((r=(t=this._document)==null?void 0:t.data)==null?void 0:r.fields)||{}).reduce((a,[o,s])=>s!=null&&s.meta.service&&s.meta.service!==n?a:{...a,[o]:s},{})})}}}},methods:{updateValue(n,t){this.set({key:`${n}`,value:t})},openFieldModal({existingFieldId:n}){this.$modal.show(LXe,{document:this._document,set:this.set,...n&&{existingFieldId:n},fields:this.options},{name:"fieldsModal",adaptive:!0,height:"auto",width:"90%",maxWidth:350,classes:"",transition:""})},onCopyField(n){navigator&&navigator.clipboard&&n&&navigator.clipboard.writeText(n).then(()=>ho("info",this.$t("_common:copyMessage"))).catch(t=>Lr(t))},filterMethod(n,t){return t.filter(r=>r.label.toLowerCase().includes(n.toLowerCase()))},onDragStart(n,t){const r=`<span class="mention" data-mention-id="${t.key}" data-tooltip="${t.value}" contenteditable="false">${t.label}</span>`;n.dataTransfer.setData("text/html",r),n.dataTransfer.setData("text",`{{${t.key}}}`)}}};var NXe=function(){var t=this,r=t._self._c;return r("div",{staticStyle:{padding:"1em"}},[r("div",{staticStyle:{margin:"15px 0"}},[r("div",{staticStyle:{"font-size":"16px","font-weight":"600"},domProps:{textContent:t._s(t.$t("title"))}}),r("div",{staticStyle:{color:"hsl(0, 0%, 35%)"},domProps:{textContent:t._s(t.$t("description"))}})]),r("CInput",{attrs:{placeholder:t.$t("_common:search"),filled:"",size:"small"},model:{value:t.query,callback:function(i){t.query=i},expression:"query"}}),t.query?r("div",{staticStyle:{"margin-top":"15px","padding-top":"15px","border-top":"1px solid hsl(0, 0%, 88%)"}},[r("SmartList",{attrs:{items:t.options,"filter-method":t.filterMethod,query:t.query},scopedSlots:t._u([{key:"default",fn:function({items:i}){return r("div",{},[i.length?t._l(i,function(a,o){return r("div",{key:o,staticClass:"field-parent flex w-full items-center"},[r("div",{staticClass:"field-container",staticStyle:{position:"relative",flex:"1 1 auto"}},[r("CField",{staticStyle:{width:"100%"},attrs:{label:" ","label-position":"inside"}},[r("span",{staticClass:"drag-label",attrs:{draggable:""},domProps:{textContent:t._s(a.label)},on:{dragstart:s=>t.onDragStart(s,a)}}),r("CInput",{staticStyle:{width:"100%"},attrs:{value:a.value,disabled:a.inputDisabled,filled:"",size:"small"},on:{blur:function(s){var c;return a.onInput(((c=s==null?void 0:s.target)==null?void 0:c.value)||"")}}})],1),r("div",{staticClass:"field-actions"},[!a.inputDisabled&&!a.virtual?r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"edit",size:"small",type:"none",pattern:"tertiary"},on:{click:function(s){return t.openFieldModal({existingFieldId:a.id})}}}):t._e(),r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"copy",size:"small",type:"none",pattern:"secondary"},on:{click:function(s){return t.onCopyField(`{{${a.key}}}`)}}})],1)],1)])}):r("div",{staticStyle:{"text-align":"center"}},[t._v(" "+t._s(t.$t("_common:noResults"))+" ")])],2)}}],null,!1,1639279928)})],1):r("div",{staticStyle:{"padding-top":"20px"}},[r("div",{staticClass:"flex w-full justify-end",staticStyle:{"margin-top":"0.5em","margin-bottom":"0.5em"}},[r("CButton",{staticStyle:{"font-size":"13px","margin-left":"2px"},attrs:{type:"none",pattern:"secondary",size:"small"},domProps:{textContent:t._s(t.$t("_common:add",{thing:t.$t("_common:field")}))},on:{click:t.openFieldModal}})],1),t._l([{label:t.$t("usedFields"),defaultOpen:!0,items:t.usedFields},...t.crmService&&t.crmFields.length?[{label:t.$t("crmFields",{crm:t.crmService}),defaultOpen:!1,items:t.crmFields}]:[],{label:t.$t("unUsedFields"),defaultOpen:!t.usedFields.length,items:t.unUsedFields}],function(i,a){return r("CAccordion",{key:a,staticStyle:{"border-top":"1px solid hsl(0, 0%, 88%)"},attrs:{"default-open":i.defaultOpen},scopedSlots:t._u([{key:"trigger",fn:function({expanded:o}){return r("div",{staticClass:"list-button"},[r("span",[r("span",{domProps:{textContent:t._s(i.label)}}),r("span",{staticStyle:{opacity:"0.45","padding-left":"0.5em"},domProps:{textContent:t._s(i.items.length)}})]),r("CIcon",{staticStyle:{transition:"200ms"},style:{transform:`rotate(${o?"180deg":"0deg"})`},attrs:{type:"chevron-down",size:"15"}})],1)}}],null,!0)},[r("div",{staticStyle:{"padding-bottom":"2em"}},[i.items.length?t._l(i.items,function(o,s){return r("div",{key:s,staticClass:"field-parent flex w-full items-center"},[r("div",{staticClass:"field-container",staticStyle:{position:"relative",flex:"1 1 auto"}},[r("CField",{staticStyle:{width:"100%"},attrs:{label:" ","label-position":"inside"}},[r("span",{staticClass:"drag-label",attrs:{draggable:""},domProps:{textContent:t._s(o.label)},on:{dragstart:c=>t.onDragStart(c,o)}}),r("CInput",{staticStyle:{width:"100%"},attrs:{value:o.value,disabled:o.inputDisabled,filled:"",size:"small"},on:{blur:function(c){var l;return o.onInput(((l=c==null?void 0:c.target)==null?void 0:l.value)||"")}}})],1),r("div",{staticClass:"field-actions"},[!o.inputDisabled&&!o.virtual?r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"edit",size:"small",type:"none",pattern:"tertiary"},on:{click:function(c){return t.openFieldModal({existingFieldId:o.id})}}}):t._e(),r("CButton",{staticStyle:{width:"30px",height:"30px","border-radius":"3px"},attrs:{icon:"copy",size:"small",type:"none",pattern:"secondary"},on:{click:function(c){return t.onCopyField(`{{${o.key}}}`)}}})],1)],1)])}):r("div",{staticStyle:{"font-size":"13px","text-align":"center","user-select":"none",padding:"0.5em","border-radius":"0.25em",opacity:"0.5"},domProps:{textContent:t._s(t.$t("noResults"))}})],2)])})],2)],1)},BXe=[],jXe=he(FXe,NXe,BXe,!1,null,"0d2bdff3");const zXe=jXe.exports,VXe=n=>{const t=Array(2).fill().map(()=>Ut());return[{itemId:"attachments2",itemType:"section",value:{title:`data.title-${n}`},parentId:"0",nodeId:t[0]},{itemId:"attachments",itemType:"attachments",value:{attachments:`data.files-${n}`},parentId:t[0],nodeId:t[1]}]},UXe=(n,t="en")=>[{key:`title-${n}`,anyOf:[{type:"string"},{type:"null"}],defaultValue:Fe.t("attachment_plural",{lng:t}).capitalize()},{key:`files-${n}`,type:"array",items:{$ref:`${Je.api.baseUrl}/schemas/file/1.json`}}],HXe=({document:n=null})=>{const t=Ut(),{language:r}=n||{};return{readView:VXe(t),validation:UXe(t,r)}},WXe=n=>[{itemId:"coverBlock",itemType:"coverBlock",value:{coverBlock:`data.coverBlock-${n}`},parentId:"0",nodeId:Ut()}],GXe=(n,t="en")=>[{key:`coverBlock-${n}`,defaultValue:{type:"video",text:`<p data-typography="title">${Fe.t("components:document.coverBlock.defaultText",{lng:t})}</p>`,cover:{video:{id:"1409899",url:"https://videos.pexels.com/video-files/1409899/1409899-hd_1920_1080_25fps.mp4",thumbnail:"https://images.pexels.com/videos/1409899/free-video-1409899.jpg?auto=compress&cs=tinysrgb&fit=crop&h=630&w=1200",provider:"pexels"}}},$ref:`${Je.api.baseUrl}/schemas/coverBlock/1.json`}],qXe=n=>({[`data.coverBlock-${n}`]:{text:"<h1>We know communication</h1>",cover:{type:"image",resourceUrl:"https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1800&fit=max&ixid=eyJhcHBfaWQiOjI1MDg3fQ",position:50,blur:0}}}),YXe=({includeMockData:n=!1,document:t=null,contentData:r=null}={})=>{const i=Ut(),{language:a}=t||{};let o=null;return typeof r=="function"?o=r(i):n&&(o=qXe(i)),{readView:WXe(i),validation:GXe(i,a),...o&&{data:o}}},KXe=({language:n="en"}={})=>{const t=r=>Fe.t(`components:account.documentForm.contentItems.coverBlock.${r}`,{lng:n});return[{previewUrl:`
1946
1946
  <svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
1947
1947
  <rect width="400" height="250" fill="#48214D"/>
1948
1948
  <rect x="71" y="74" width="1.5" height="99" fill="#FAC1FD"/>
@@ -1985,7 +1985,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1985
1985
  <image id="city-image0" width="1000" height="563" xlink:href="https://images.pexels.com/videos/2818546/free-video-2818546.jpg?auto=compress&cs=tinysrgb&dpr=2&w=500"></image>
1986
1986
  </defs>
1987
1987
  </svg>
1988
- `,contentData:r=>({[`data.coverBlock-${r}`]:{text:t("flyoverSkyscraper.text"),type:"video",cover:{video:{id:"2818546",url:"https://player.vimeo.com/external/354645621.hd.mp4?s=afa953a69cc6f7cdefc721120fa062a016dd4653&profile_id=175&oauth2_token_id=57447761",thumbnail:"https://images.pexels.com/videos/2818546/free-video-2818546.jpg?auto=compress&cs=tinysrgb&fit=crop&h=630&w=1200",provider:"pexels"},position:50,blur:0}}})},{previewUrl:`
1988
+ `,contentData:r=>({[`data.coverBlock-${r}`]:{text:t("flyoverSkyscraper.text"),type:"video",cover:{video:{id:"2818546",url:"https://videos.pexels.com/video-files/2818546/2818546-hd_1920_1080_24fps.mp4",thumbnail:"https://images.pexels.com/videos/2818546/free-video-2818546.jpg?auto=compress&cs=tinysrgb&fit=crop&h=630&w=1200",provider:"pexels"},position:50,blur:0}}})},{previewUrl:`
1989
1989
  <svg viewBox="0 0 400 250" fill="none" xmlns="http://www.w3.org/2000/svg">
1990
1990
  <rect width="400" height="250" fill="url(#paint0_linear)"/>
1991
1991
  <text fill="white" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="34" font-weight="800" letter-spacing="0em">${t("qualityGradient.previewTitle")}</text>
@@ -2834,7 +2834,7 @@ it.version="2.29.4",Cit(Wn),it.fn=Ze,it.min=uot,it.max=dot,it.now=pot,it.utc=xs,
2834
2834
  </div>`,html:!0}}},computed:{isPublicForm(){return!!(this.viewSettings&&this.viewSettings.isPublicForm)},hasAnswerBlock(){return(Ce(this._document,"template.views.read.nodes")||[]).some(t=>t.itemType==="answer")}},watch:{isOpen:{handler(n){var t;this.isPublicForm||!this.$supportChat||(t=window.App)!=null&&t.$fab&&(window.App.$fab.show=!n)}}},beforeDestroy(){var n;!this.isPublicForm&&((n=window.App)!=null&&n.$fab)&&(window.App.$fab.show=!0)},methods:{...Cn({createTemplate:Ue.DO_CREATE_TEMPLATE}),open(){this.isOpen=!0},async doSaveTemplate(){if(!this._document)return;const n={...this._document.copyTemplateDocDefault(),name:Ce(this._document,"name")||this.$t("_common:untitled"),_id:void 0,id:void 0,isVisible:!0};await this.createTemplate({body:n,showMessage:!1})},async onSaveDoc({doSend:n}){this.saveTemplate&&await this.doSaveTemplate(),await this.onSaveDocument({doSend:n})},onClickSaveAsTemplate({event:n,can:t,open:r}){t||this.isPublicForm||(n.preventDefault(),r({callback:()=>{this.saveTemplate=!0}}))}}};var jct=function(){var t=this,r=t._self._c;return t.mq!=="sm"||t.isOpen?r(t.mq==="sm"?"div":"Drawer",{tag:"component",attrs:{placement:"right"},model:{value:t.isOpen,callback:function(i){t.isOpen=i},expression:"isOpen"}},[r("div",{staticClass:"send-modal font-inter",class:{"is-fullscreen":t.mq==="sm"}},[r("CButton",{staticStyle:{position:"absolute",right:"1em",top:"1em","z-index":"99"},attrs:{circle:"",icon:"x",pattern:"secondary"},on:{click:function(i){t.isOpen=!1}}}),r("SendForm",{attrs:{_document:t._document,_value:t._value,"set-form-value":t.setFormValue,"remove-form-value":t.removeFormValue,"on-save-document":t.onSaveDoc,"use-scroll":""}},[t.hasAnswerBlock?t._e():r("div",{key:"1",staticClass:"mb-8 flex rounded-lg border border-red-200 bg-red-50 p-3"},[r("div",[r("CIcon",{staticClass:"-mt-1 text-red-600",attrs:{type:"error",size:"18"}})],1),r("div",[r("div",{staticClass:"pl-2"},[r("div",{staticClass:"text-sm font-semibold text-red-600",domProps:{textContent:t._s(t.$t("signMissingTitle"))}}),r("div",{staticClass:"mb-4 text-sm text-red-600 text-opacity-80"},[t._v(" "+t._s(t.$t("signMissingText"))+" ")])]),r("AddBlock",{attrs:{set:t.setFormValue},scopedSlots:t._u([{key:"default",fn:function({addBlock:i}){return[r("CButton",{staticClass:"is-left",attrs:{type:"secondary",size:"small"},on:{click:function(a){return i({sectionKey:"answer"})}}},[t._v(" "+t._s(t.$t("signMissingAdd"))+" ")])]}}],null,!1,2898075047)})],1)]),t.isPublicForm?r("CButton",{staticStyle:{height:"48px"},attrs:{slot:"send",type:"secondary",wide:""},on:{click:t.onSaveDocument},slot:"send"},[t._v(" "+t._s(t.$t("signupToSend"))+" ")]):t._e(),r("label",{staticClass:"text-gray-600",staticStyle:{display:"inline-flex","align-items":"center",cursor:"pointer","user-select":"none","font-size":"12px","font-weight":"500","padding-top":"calc(1 * var(--rem))"},attrs:{slot:"footer",for:"checkbox-save-as-temp"},slot:"footer"},[r("IsPremium",{scopedSlots:t._u([{key:"default",fn:function({canCreateTemplate:i}){return[r("IsPremiumPreStep",{attrs:{feature:"saveDocTemplate"},scopedSlots:t._u([{key:"default",fn:function({onClick:a}){return[r("div",{staticClass:"flex items-center",on:{click:o=>t.onClickSaveAsTemplate({event:o,can:i,open:a})}},[r("CCheckbox",{attrs:{id:"checkbox-save-as-temp",size:"small",type:"secondary"},model:{value:t.saveTemplate,callback:function(o){t.saveTemplate=o},expression:"saveTemplate"}}),r("div",{staticStyle:{"padding-left":"0.5em"}},[t._v(" "+t._s(t.$t("saveDocAsTemplate"))+" "),r("CIcon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.saveTemplateTooltip,expression:"saveTemplateTooltip"}],attrs:{type:"info",size:"15"}})],1)],1)]}}],null,!0)})]}}],null,!1,3857209736)})],1)],1)],1)]):t._e()},zct=[],Vct=he(Bct,jct,zct,!1,null,"1ee93a7e");const Uct=Vct.exports,mY=n=>{var r;const t=[];return(r=n.$options)!=null&&r.validations&&t.push(n),n.$children&&n.$children.forEach(i=>t.push(...mY(i))),t},gY={provide(){return{formValidation:{isFormValid:this.isFormValid,scrollToInvalidInput:this.scrollToInvalidInput}}},data(){return{_formItems:[]}},created(){this._formItems=mY(this)},methods:{_getInvalidInputs(){return this._formItems.filter(n=>{var t;return(t=n.$v)==null?void 0:t.$invalid})},isFormValid(){return this._formItems.every(n=>{var t,r;return(t=n.$v)==null||t.$touch(),!((r=n.$v)!=null&&r.$invalid)})},scrollToInvalidInput({offset:n=0}={}){try{const[t]=this._getInvalidInputs();t!=null&&t.$el&&Am(t.$el,{offset:n})}catch(t){Lr(t)}}}},Hct={i18nOptions:{namespaces:"DocumentTemplateFormModal",messages:{sv:{namePlaceholder:"Mallens namn",calloutDescription:"Om du ofta använder dig av en och samma innehåll i dina offerter kan du göra om den till en återanvändbar mall.",updateExisting:"Uppdatera nuvarande mall",keepClients:"Behåll kunder på mallen",validations:{name:{required:"Ge mallen ett namn"}}},en:{namePlaceholder:"Template name",calloutDescription:"If you often use the same content in your proposals, you can make into a reusable template.",updateExisting:"Update current template",keepClients:"Keep clients on template",validations:{name:{required:"Name the template"}}}}},name:"DocumentTemplateFormModal",props:{document:{type:Object,default:null},template:{type:Object,default:null},onSaveTemplate:{type:Function,default:null}},data(){return{name:null,updateExistingDocTemplate:!1,canUpdateExistingDocTemplate:!1,keepClients:!1}},validations:{name:{required:cn.requiredIf(n=>!n.updateExistingDocTemplate)}},computed:{...Ht({isPosting:"templates/isPosting",templateById:"templates/byId",docById:"documents2/byId",company:"application/company"}),actionButtonText(){return this.template||this.updateExistingDocTemplate?this.$t("_common:update",{thing:this.$t("_common:name")}):this.$t("_common:create",{thing:this.$t("_common:new",{thing:this.$t("_common:template")}).toLowerCase()})},messages(){return{name:{required:this.$t("validations.name.required")}}}},created(){this.name=this.document?this.document.name:this.template.name,this.checkCanUpdateExistingDocumentTemplate()},mounted(){this.$refs.input&&this.$refs.input.focus()},methods:{...Cn({loadTemplate:Ue.DO_LOAD_TEMPLATE,saveTemplate:Ue.SAVE_TEMPLATE_FORM,updateSettings:Ue.UPDATE_SETTINGS}),async onSave(){if(!this.document&&!this.template&&(this.$log.error('Missing prop "document" or "template"'),this.$emit("close")),this.$v.$invalid)return;let n;this.document?(n=this.getNewTemplate(),this.updateExistingDocTemplate&&this.canUpdateExistingDocTemplate&&this.document.template.id&&(n.id=this.document.template.id,delete n.name)):this.template&&(n=this.getExistingTemplateBody()),await this.saveTemplate({body:n,callback:this.onSaveTemplate}),this.$emit("close")},getNewTemplate(){return{...this.document.copyTemplateDocDefault({keepClients:this.keepClients}),name:this.name,_id:void 0,id:void 0,isVisible:!0}},getExistingTemplateBody(){return{...this.template.data,name:this.name}},async checkCanUpdateExistingDocumentTemplate(){var r,i;const n=(i=(r=this.document)==null?void 0:r.template)==null?void 0:i.id;if(!n){this.canUpdateExistingDocTemplate=!1;return}let t=this.templateById(n);if(!t)try{await this.loadTemplate({id:n,params:{isVisible:!0}}),t=this.templateById(n)}catch{this.canUpdateExistingDocTemplate=!1;return}if(!t){this.canUpdateExistingDocTemplate=!1;return}if(t.companyId===this.company.id){this.canUpdateExistingDocTemplate=!0;return}this.canUpdateExistingDocTemplate=!1}}};var Wct=function(){var t=this,r=t._self._c;return r("div",{staticClass:"t-root font-inter"},[r("div",{staticStyle:{"font-size":"18px","font-weight":"700","text-align":"center","margin-bottom":"1em"}},[t._v(" "+t._s(t.template?t.$t("_common:edit",{thing:t.$t("_common:name")}):t.$t("_common:save",{thing:t.$t("_common:template")}))+" ")]),r("div",[t.template?t._e():r("CCallout",[t._v(" "+t._s(t.$t("calloutDescription"))+" ")]),r("CField",{attrs:{vuelidate:t.$v.name,"vuelidate-messages":t.messages.name,label:t.$t("_common:name").capitalize(),"label-position":"inside"}},[r("CInput",{ref:"input",staticClass:"rounder",staticStyle:{"margin-bottom":"calc(1 * var(--rem))"},attrs:{value:t.updateExistingDocTemplate?t.document.template.name:t.name,placeholder:t.$t("namePlaceholder"),disabled:t.updateExistingDocTemplate,autofocus:"",size:"medium"},on:{input:function(i){t.name=i}}})],1),t.document&&t.document.template.id&&t.canUpdateExistingDocTemplate?r("div",[r("CField",{staticStyle:{"padding-left":"calc(0.5 * var(--rem))","margin-bottom":"calc(0.5 * var(--rem))"}},[r("CCheckbox",{attrs:{type:"secondary",size:"normal"},model:{value:t.updateExistingDocTemplate,callback:function(i){t.updateExistingDocTemplate=i},expression:"updateExistingDocTemplate"}},[r("div",{staticClass:"text-gray-600"},[t._v(" "+t._s(t.$t("updateExisting"))+" ")])])],1)],1):t._e(),t.document&&t.document.clients.length?r("div",[r("CField",{staticStyle:{"padding-left":"calc(0.5 * var(--rem))","margin-bottom":"calc(0.5 * var(--rem))"}},[r("CCheckbox",{attrs:{type:"secondary",size:"normal"},model:{value:t.keepClients,callback:function(i){t.keepClients=i},expression:"keepClients"}},[r("div",{staticClass:"text-gray-600"},[t._v(" "+t._s(t.$t("keepClients"))+" ")])])],1)],1):t._e()],1),r("CButton",{staticStyle:{"margin-top":"1.5em"},attrs:{loading:t.isPosting,type:"secondary",wide:"",taller:""},on:{click:t.onSave}},[t._v(" "+t._s(t.actionButtonText)+" ")])],1)},Gct=[],qct=he(Hct,Wct,Gct,!1,null,"6e16da9a");const vY=qct.exports;function Yct(n,t,r){return n===n&&(r!==void 0&&(n=n<=r?n:r),t!==void 0&&(n=n>=t?n:t)),n}var Kct=Yct,Zct=Kct,W7=eW;function Jct(n,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=W7(r),r=r===r?r:0),t!==void 0&&(t=W7(t),t=t===t?t:0),Zct(W7(n),t,r)}var Xct=Jct;const Qct={name:"RemainingTrialButton",components:{IsPremium:dl},i18nOptions:{namespace:"RemainingTrialButton",messages:{sv:{button:"kvar",title:{1:"Prova på",2:"Pro",3:"i {{ trialDaysLeft }} dagar till",4:"Därefter kommer ditt konto nedgraderas till ",5:"Free"},actionButton:"Uppgradera nu"},en:{button:"left",title:{1:"Try",2:"Pro",3:"for {{ trialDaysLeft }} more days",4:"Afterwards your account will get downgraded to",5:"Free"},actionButton:"Upgrade now"}}},mixins:[_r],methods:{clamp:un(Xct)}};var eut=function(){var t=this,r=t._self._c;return r("IsPremium",{scopedSlots:t._u([{key:"default",fn:function({accountType:i,trialDaysLeft:a,openUpgradeModal:o,initialFreePremiumDays:s}){return[i==="trial"&&t.mq!=="sm"?r("v-popover",{attrs:{"popover-inner-class":"bg-white rounded-md shadow-xl"}},[r("div",{staticClass:"relative mr-2 flex h-9 cursor-pointer select-none flex-col justify-center rounded-md bg-gray-200/50 px-2 text-xs font-semibold backdrop-blur-lg backdrop-saturate-150"},[r("div",{staticClass:"text-gray-600"},[t._v(" "+t._s(t.$tc("_common:day",{count:a}))+" "+t._s(t.$t("button"))+" ")]),r("div",{staticClass:"absolute bottom-1 left-2 right-2 h-[3px] rounded-full bg-gray-300 ring-1 ring-white/10"},[r("div",{staticClass:"to-primary-600 absolute h-full rounded-full bg-gradient-to-r from-green-500 via-emerald-500",style:{width:t.clamp(a/s*100,0,100)+"%"}})])]),r("div",{staticClass:"w-56 p-4 text-sm",attrs:{slot:"popover"},slot:"popover"},[r("div",{staticClass:"font-semibold"},[t._v(" "+t._s(t.$t("title.1"))+" "),r("span",{staticClass:"bg-primary-100 border-primary-200 text-primary-800 inline-flex rounded-md border px-1.5 py-[3px] text-xs leading-none"},[t._v(t._s(t.$t("title.2")))]),t._v(" "+t._s(t.$t("title.3",{trialDaysLeft:a}))+". ")]),r("div",{staticClass:"text-sm text-gray-600"},[t._v(" "+t._s(t.$t("title.4"))+" "),r("span",{staticClass:"inline-flex rounded-md border border-gray-300 bg-gray-200 px-1.5 py-[3px] text-xs font-semibold leading-none text-gray-600"},[t._v(t._s(t.$t("title.5")))]),t._v(". ")]),r("div",{staticClass:"mt-5"},[r("CButton",{directives:[{name:"close-popover",rawName:"v-close-popover"}],attrs:{type:"secondary",size:"small","icon-right":"arrow-right"},on:{click:o}},[t._v(" "+t._s(t.$t("actionButton"))+" ")])],1)])]):t._e()]}}])})},tut=[],nut=he(Qct,eut,tut,!1,null,"748c3983");const rut=nut.exports,Aw=Be.observable({canEdit:!1,isForm:!0,setFormValue:null,removeFormValue:null}),iut={name:"DocumentForm",components:{DocumentFormContainer:xit,IsPremium:dl,IsPremiumPreStep:kc,DocumentSend:Uct,RemainingTrialButton:rut},mixins:[gY],provide:()=>({viewSettings:Aw}),props:{document:{type:Object,required:!0},isLoading:{type:Boolean,default:!1},setDocValue:{type:Function,required:!0},removeDocValue:{type:Function,required:!0},removeDocKeyValue:{type:Function,required:!0},onSaveDocument:{type:Function,required:!0},onSaveTemplate:{type:Function,default:null},close:{type:Function,default:null},goBack:{type:Function,default:null},canShowBanner:{type:Boolean,default:!0}},data(){return{view:"edit",showUnsavedChangesPrompt:!1}},computed:{canDoActions(){return!!Ce(this.document,"template.views.read.nodes",[]).length},canEdit(){const{document:n}=this;return this.view==="edit"&&n&&(n.id?n.can("modify"):n.can("create"))&&n.status!=="accepted"},doConsumeQuota(){const n=Ce(this.document,"template.doConsumeDocumentQuota");return typeof n=="boolean"?n:!0}},watch:{canEdit:{immediate:!0,handler(n){Aw.canEdit=!!n}}},created(){this.setDocValue&&(Aw.setFormValue=this.setDocValue),this.removeDocValue&&(Aw.removeFormValue=this.removeDocValue)},methods:{isValid(){const{isFormValid:n,scrollToInvalidInput:t}=this;return n()?!0:t({offset:120})},async openSendModal(){this.isValid()&&this.$refs.documentSend.open()},submitSave(){return this.isValid()?this.onSaveDocument({doSend:!1}):!1},async saveAsTemplate(){this.document&&this.$modal.show(vY,{document:this.document,onSaveTemplate:this.onSaveTemplate},{adaptive:!0,height:"auto",width:"90%",maxWidth:370,classes:"overflow-visible primary",transition:""})}}};var aut=function(){var t=this,r=t._self._c;return t.document?r("div",{staticClass:"flex w-screen flex-col bg-white"},[r("DocumentFormContainer",{attrs:{_document:t.document,view:t.view,"set-form-value":t.setDocValue,"remove-form-value":t.removeDocValue,"remove-form-key-value":t.removeDocKeyValue,close:t.close,"go-back":t.goBack,"can-show-banner":t.canShowBanner},on:{"update:view":function(i){t.view=i}}},[r("template",{slot:"nav-right"},[r("IsPremium",{scopedSlots:t._u([{key:"default",fn:function({canCreateDocument:i,canCreateTemplate:a}){return[r("IsPremiumPreStep",{attrs:{feature:"documents"},scopedSlots:t._u([{key:"default",fn:function({onClick:o}){return[r("div",{key:t.canDoActions,staticStyle:{flex:"1",display:"inline-flex","justify-content":"flex-end"}},[t._t("nav-right-action",function(){return[r("RemainingTrialButton"),r("div",{staticClass:"buttons has-addons",staticStyle:{"white-space":"nowrap"}},[r("CButton",{ref:"sendButton",staticClass:"d-nav-button position right",staticStyle:{"border-radius":"7px 0 0 7px",height:"36px","padding-left":"11px","padding-right":"10px","font-size":"13px","font-weight":"500"},attrs:{disabled:!t.canDoActions,loading:t.isLoading,"data-onboarding":"send-button",size:"small",type:"secondary",thinner:""},on:{click:function(s){i||!t.doConsumeQuota||t.document.id?t.openSendModal():o({callback:t.openSendModal})}}},[t._v(" "+t._s(t.$t("_common:reviewSend"))+" ")]),r("IsPremiumPreStep",{attrs:{feature:"saveDocTemplate"},scopedSlots:t._u([{key:"default",fn:function({onClick:s}){return[r("CDropdown",{attrs:{disabled:!t.canDoActions}},[r("CButton",{staticClass:"d-nav-button position right",staticStyle:{"border-radius":"0px 7px 7px 0px",height:"36px","border-left":"1px solid hsla(0, 0%, 100%, 0.35)","font-size":"13px","padding-left":"14px","padding-right":"14px"},attrs:{slot:"trigger","icon-props":{size:13,strokeWidth:2.5},size:"small",type:"secondary",thinner:"",icon:"chevron-down"},slot:"trigger"}),r("CDropdownItem",{attrs:{"icon-props":{stroke:"hsl(205, 100%, 50%)"},"icon-left":"save"},on:{click:function(c){i||t.document.id?t.submitSave():o({callback:t.submitSave})}}},[t._v(" "+t._s(t.$t("_common:save",{thing:t.$t("_common:document").toLowerCase()}))+" ")]),r("CDropdownItem",{attrs:{disabled:t.isLoading,"icon-left":"template-color"},on:{click:function(c){a?t.saveAsTemplate():s({callback:t.saveAsTemplate})}}},[t._v(" "+t._s(t.$t("_common:saveAs",{thing:t.$t("_common:template")}))+" ")])],1)]}}],null,!0)})],1)]})],2)]}}],null,!0)})]}}],null,!1,3160700437)})],1)],2),r("DocumentSend",{ref:"documentSend",attrs:{_document:t.document,_value:{expiresAt:"data.expiresAt",personalMessage:"data.personalMessage",defaultAnswerMethod:"data.defaultAnswerMethod",clients:"clients",reminders:"data.reminders",name:"data.name"},"set-form-value":t.setDocValue,"remove-form-value":t.removeDocValue,"on-save-document":t.onSaveDocument}})],1):t._e()},out=[],sut=he(iut,aut,out,!1,null,null);const lut=sut.exports,cut={name:"DocumentFormRecent",i18nOptions:{namespaces:"DocumentFormRecent",messages:{en:{emptyPlaceholder:"Your created documents will be displayed here.",noResults:"No results."},sv:{emptyPlaceholder:"Här kommer dina skapade dokument synas.",noResults:"Hittade inga resultat."}}},components:{IsPremium:dl,IsPremiumPreStep:kc},data(){return{hasItems:!1,list:[],query:"",isLoading:!0,hoverIndex:null}},computed:{...Ht({docById:"documents2/byId"})},created(){this.onLoadDocuments()},methods:{...Cn({loadDocument:Ue.LOAD_DOCUMENT2}),async onInput(){this.isLoading=!0,this.onLoadDocuments()},async fetchDocuments(n){const t=this.query?180:90,r={createdAt:{$gte:this.$formatDate(_se(new Date,t),"yyyy-MM-dd")},...this.query&&{$or:[{"data.name":{$regex:this.query,$options:"i"}},{clients:{$elemMatch:{$or:["name","email","socialNo","orgNo"].map(o=>({[o]:{$regex:this.query,$options:"i"}}))}}}]}},{data:i}=await Yi.getAll({lean:!0,filter:encodeURIComponent(JSON.stringify(r)),fields:"clients,data.name,createdAt",skip:n||0,sort:"-createdAt",limit:10}),{items:a=[]}=i||{};return a},onLoadDocuments:gs(async function(){this.isLoading=!0,this.hasItems=!0;const t=await this.fetchDocuments();(!t||!t.length)&&(this.canFetchMore=!1),this.list=[...t||[]],this.isLoading=!1},500),async onSaveDocumentTemplate(n){await this.loadDocument({id:n});const t=this.docById(n);this.$emit("save-template",{document:t})},onUseDocTemplate(n){return this.$emit("use-doc-template",{documentId:n})}}};var uut=function(){var t=this,r=t._self._c;return r("div",[r("div",{staticClass:"flex w-full",staticStyle:{"padding-bottom":"1em"}},[t._t("default"),t.hasItems?r("CInput",{staticClass:"hidden md:flex",attrs:{loading:t.isLoading,placeholder:t.$t("_common:search"),type:"search",size:"normal",filled:""},on:{input:t.onInput},model:{value:t.query,callback:function(i){t.query=i},expression:"query"}}):t._e()],2),r("div",{staticClass:"recent-list"},[t.isLoading&&!t.list.length?t._l(3,function(i){return r("div",{key:i,staticClass:"recent-item placeholder"},[r("CSkeleton",{staticClass:"recent-item-name",attrs:{width:"60%"}}),r("CSkeleton",{attrs:{width:"35%"}})],1)}):!t.isLoading&&!t.query&&!t.list.length?r("div",{staticClass:"rounded-md border border-gray-200 bg-gray-100 p-4 text-center text-gray-400",staticStyle:{"font-size":"15px"}},[t._v(" "+t._s(t.$t("emptyPlaceholder"))+" ")]):t.query&&!t.isLoading&&!t.list.length?r("div",{staticClass:"text-center text-gray-400",staticStyle:{padding:"1em"}},[t._v(" "+t._s(t.$t("noResults"))+" ")]):[r("IsPremium",{scopedSlots:t._u([{key:"default",fn:function({canCreateTemplate:i,canUseTemplate:a}){return[r("IsPremiumPreStep",{attrs:{feature:"useDocTemplate"},scopedSlots:t._u([{key:"default",fn:function({onClick:o}){return[r("div",t._l(t.list,function(s,c){return r("div",{key:s._id,staticClass:"recent-item",on:{click:function(l){a?t.onUseDocTemplate(s._id):o({callback:()=>t.onUseDocTemplate(s._id)})},"&mouseover":function(l){t.hoverIndex=c},"&mouseleave":function(l){t.hoverIndex=null}}},[r("div",{staticClass:"recent-item-name",class:{"text-gray-400":!s.data.name}},[t._v(" "+t._s(s.data.name||t.$t("_common:untitled"))+" ")]),r("div",[t._v(t._s(t.$formatDistanceToNow(s.createdAt)))]),t.hoverIndex===c?r("div",{staticStyle:{display:"inline-flex","align-items":"center",position:"absolute",right:"1em",top:"50%",transform:"translateY(-50%)"}},[r("IsPremiumPreStep",{attrs:{feature:"saveDocTemplate"},scopedSlots:t._u([{key:"default",fn:function({onClick:l}){return[r("CButton",{staticStyle:{"margin-left":"1em"},attrs:{size:"small"},nativeOn:{click:function(u){u.stopPropagation(),i?t.onSaveDocumentTemplate(s._id):l({callback:()=>t.onSaveDocumentTemplate(s._id)})}}},[t._v(" "+t._s(t.$t("_common:saveAs",{thing:t.$t("_common:template")}))+" ")])]}}],null,!0)}),r("CButton",{staticStyle:{"margin-left":"1em"},attrs:{size:"small",type:"secondary"}},[t._v(" "+t._s(t.$t("_common:use",{thing:t.$t("_common:template")}))+" ")])],1):t._e()])}),0)]}}],null,!0)})]}}])})]],2)])},dut=[],put=he(cut,uut,dut,!1,null,"9c78dbb6");const fut=put.exports,hut=({type:n="linear",degree:t=0,colors:r=[]})=>{let i="";return!r||r.length<2||(i=n==="linear"?`linear-gradient(${t}deg,`:"radial-gradient(",r.forEach(({color:a,percent:o},s)=>{i+=`${a} ${o}%`,s!==r.length-1&&(i+=",")}),i+=")"),i},yY=n=>{if(!n)return"";const t=Math.round(n.h*100)/100,r=Math.round(n.s*100*100)/100,i=Math.round(n.l*100*100)/100,a=Math.round(n.a*100*100)/100/100;return`hsla(${t},${r}%,${i}%,${a})`},mut={name:"BlockMedia",inject:{isPdf:{default:!1}},props:{media:{type:Object,default:()=>({})},preview:{type:Boolean,default:!1}},computed:{forceStatic(){return this.isPdf||this.preview},type(){return Ce(this,"media.type","color")},video(){return Ce(this,"media.video",{})},overlayColor(){const{overlay:n,overlayColor:t}=this.media||{};return n&&!["color","gradient"].includes(this.type)?t:""},blurStyle(){const{blur:n}=this.media||{};return n&&!["color","gradient"].includes(this.type)?{backdropFilter:`blur(${n}px)`}:null},baseStyle(){const{resourceUrl:n,backgroundColor:t,position:r=50,filter:i="",gradient:a={}}=this.media||{},o=hut(a);return{backgroundPosition:`center ${r}%`,...!["color","gradient"].includes(this.type)&&{filter:`${i||""}`},...t&&this.type==="color"&&{backgroundColor:t},...n&&this.type==="image"&&{backgroundImage:`url(${n})`},...o&&this.type==="gradient"&&{backgroundImage:o}}}}};var gut=function(){var t=this,r=t._self._c;return r("div",{staticClass:"media-root"},[t.overlayColor?r("div",{staticClass:"media-overlay",style:{backgroundColor:t.overlayColor}}):t._e(),t.type==="video"&&t.video&&t.video.url?r("div",{staticClass:"video-bg__media"},[t.forceStatic?r("video",{attrs:{poster:t.video.thumbnail}}):t.video.provider==="pexels"?r("video",{attrs:{src:t.video.url,autoplay:"",loop:"",muted:"",playsInline:""},domProps:{muted:!0}}):r("iframe",{attrs:{src:t.video.url,frameborder:"0"}})]):r("div",{staticClass:"media-base",style:t.baseStyle}),t.blurStyle?r("div",{staticClass:"media-blur-area",style:t.blurStyle}):t._e()])},vut=[],yut=he(mut,gut,vut,!1,null,"ea4334fb");const y1=yut.exports,but={name:"DocumentIcon",truncate:aM,inject:{components:{default:{BlockMedia:y1}}}};var wut=function(t,r){return t("div",r._b({key:r.data.key,staticClass:"item",class:[r.data.staticClass,r.data.class,{"is-placeholder":r.props.isPlaceholder,"is-add":r.props.isAdd,"is-compact":r.props.compact}],style:r.data.staticStyle,on:{click:function(i){r.listeners.click&&r.listeners.click()}}},"div",r.data.attrs,!1),[t("div",{staticClass:"item-paper"},[r.props.thumbnail?t("div",{staticStyle:{width:"100%",height:"100%","background-size":"100% auto","background-repeat":"no-repeat","background-position":"0% 0%"},style:{backgroundImage:`url(${r.props.thumbnail})`}}):r.props.isPlaceholder||r.props.isAdd?r._e():t(r.injections.components.BlockMedia,{tag:"component",staticClass:"item-media",attrs:{media:r.props.media,preview:""}}),r.scopedSlots.badge?t("div",{staticClass:"absolute bottom-2 right-2"},[r._t("badge")],2):r._e(),r.props.isAdd?t("div",{staticClass:"add-button"},[t("CIcon",{attrs:{size:18,"stroke-width":3,type:"plus"}})],1):r._e()],1),t("div",{staticClass:"item-footer"},[r.props.isAdd?t("div",{staticClass:"item-text",staticStyle:{color:"hsl(0, 0%, 55%)"},domProps:{textContent:r._s(r.parent.$t("_common:empty",{thing:r.parent.$t("_common:template")}))}}):r.props.name?[t("div",{staticClass:"item-text",domProps:{textContent:r._s(r.$options.truncate(r.props.name,60))}}),r._t("default")]:r._e()],2)])},_ut=[],xut=he(but,wut,_ut,!0,null,"c3016d8f");const Cut=xut.exports,kut={name:"HorizontalScroll",components:{Simplebar:bc},data(){return{scrollTimer:null,hasNext:!0,hasPrev:!1}},beforeDestroy(){var t,r;const n=(r=(t=this.$refs)==null?void 0:t.list)==null?void 0:r.scrollElement;n&&n.removeEventListener("scroll",this.scrollHandler,{passive:!0})},mounted(){var t,r;const n=(r=(t=this.$refs)==null?void 0:t.list)==null?void 0:r.scrollElement;n&&(n.addEventListener("scroll",this.scrollHandler,{passive:!0}),setTimeout(()=>{this.scrollHandler()},1e3))},methods:{go(n){var a,o;if(!this.$refs.container)return;const t=(n>0?1:-1)*(this.$refs.container.offsetWidth/2),r=(o=(a=this.$refs)==null?void 0:a.list)==null?void 0:o.scrollElement;if(!r)return;const{scrollLeft:i}=r;r.scrollTo({top:0,left:i+t,behavior:"smooth"})},scrollHandler(){clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout(()=>{var a,o;const n=(o=(a=this.$refs)==null?void 0:a.list)==null?void 0:o.scrollElement;if(!n)return;const{scrollWidth:t,scrollLeft:r,offsetWidth:i}=n;this.hasNext=t>r+i,this.hasPrev=r>10},50)}}};var Sut=function(){var t=this,r=t._self._c;return r("div",{ref:"container",staticClass:"horizontal-scroll"},[r("div",{staticClass:"hl-navigation"},[t.hasPrev?r("div",{staticClass:"hl-btn-left max-sm:hidden",on:{click:function(i){return t.go(-1)}}},[t._t("nav-prev",function(){return[r("CButton",{attrs:{"icon-props":{size:22},icon:"chevron-left",raised:"",circle:"",size:"medium"}})]})],2):t._e(),t.hasNext?r("div",{staticClass:"hl-btn-right max-sm:hidden",on:{click:function(i){return t.go(1)}}},[t._t("nav-prev",function(){return[r("CButton",{attrs:{"icon-props":{size:22},icon:"chevron-right",raised:"",circle:"",size:"medium"},on:{click:function(i){return t.$emit("expand")}}})]})],2):t._e()]),r("div",{staticClass:"hl-container"},[r("Simplebar",{ref:"list",staticClass:"hl-list",on:{scroll:t.scrollHandler}},[r("div",{staticClass:"flex w-full"},[t._t("default")],2)])],1)])},Tut=[],Eut=he(kut,Sut,Tut,!1,null,"31e10485");const $ut=Eut.exports,Aut={name:"DocumentLayout",components:{DynamicChapter:c8,DocumentStyleContainer:d7,WithDimensions:Bf},props:{document:{type:Object,required:!0}},computed:{layout(){var n;return((n=this.document)==null?void 0:n.readLayout)||[]}},methods:{calcStyle({width:n,height:t}){this.$nextTick(()=>({"--vh":`${t/100}px`,"--vw":`${n/100}px`}))}}};var Out=function(){var t=this,r=t._self._c;return r("div",{staticClass:"font-family-default h-full w-full"},[r("WithDimensions",{attrs:{"provide-device":!0},scopedSlots:t._u([{key:"default",fn:function({width:i,height:a}){var o,s;return r("DocumentStyleContainer",{staticClass:"h-full w-full",staticStyle:{flex:"1 0 auto"},style:{...t.calcStyle({width:i,height:a})},attrs:{"input-style":(s=(o=t.document)==null?void 0:o.data)==null?void 0:s.css}},t._l(t.layout,function(c,l){return r("DynamicChapter",{key:l,attrs:{"component-name":c.componentName,"component-props":{...c.props,_document:t.document,_value:c.value},children:c.children,"parent-size":{width:i},"_first-block":l===0,"_last-block":l===t.layout.length-1}})}),1)}}])})],1)},Dut=[],Mut=he(Aut,Out,Dut,!1,null,null);const G7=Mut.exports,Put=Object.freeze(Object.defineProperty({__proto__:null,default:G7},Symbol.toStringTag,{value:"Module"}));function Iut(n,{availableProducts:t}){if(!n)throw new Error("Missing parameter templateId");const r=t,i=Object.keys(r).find(a=>{var s;const o=Ce(r[a],"metadata.companyPurchase");return(o==null?void 0:o.type)==="template"&&((s=o==null?void 0:o.data)==null?void 0:s.id)===n});return i?r[i]:null}async function Rut(n){if(!n)throw new Error("Missing argument stripeProduct");const t=n==null?void 0:n.prices[0],{data:r}=await Cv.createCheckoutSession({items:[{stripePriceStripeId:t.stripeId,quantity:1}],successUrl:`${Je.baseUrl}/purchase/success`}),{redirectUrl:i}=r;window.open(i,"_blank")}function bY(n,{availableProducts:t}){var a,o,s;let r=null;const i=Iut(n.templateId,{availableProducts:t});return i&&(r={price:Rr((a=i==null?void 0:i.prices)==null?void 0:a[0].amount,{currency:(o=i==null?void 0:i.prices)==null?void 0:o[0].currency}),isPurchased:((s=n.purchaseInfo)==null?void 0:s.isPurchased)||!1,onBuy:async()=>Rut(i)}),r}const Lut={name:"GalleryTemplateModal",components:{simplebar:bc,DocumentLayout:G7,IsPremium:dl,IsPremiumPreStep:kc},props:{template:{type:Object,required:!0},fetchGallery:{type:Function,required:!0},meta:{type:Object,default:()=>({})},sender:{type:Object,default:null},showSave:{type:Boolean,default:!0},isPublicForm:{type:Boolean,default:!1},onSaveTemplate:{type:Function,required:!1,default:null},product:{type:Object,default:null},galleryItemId:{type:String,required:!0}},data(){return{didSave:!1,privateProduct:null,dummyPreviewClient:{name:"Pernilla P.",email:"pernilla@mail.se",cellphone:"073 123 56 78",documentRole:"signee",type:"individual"},templateStat:null,socketUnsubscribeFn:null}},computed:{...Ht({isLoading:"templates/isPosting",stripeProducts:"stripe/products",isSuperUser:"application/isSuperUser"}),previewDocument(){const{data:n,defaultData:t}=this.template,r=new fc({data:{...t,template:n,clients:[this.dummyPreviewClient]},documentOptions:{computedPricing:!0},getters:this.$store.getters});return this.sender&&(r.sender=this.sender),r},allowCopyTemplateLink(){return!this.isPublicForm}},created(){this.privateProduct=this.product,this.loadTemplateStat(),this.product&&(this.socketUnsubscribeFn=Cf.on("event",async({type:n,action:t,data:r})=>{var i;if(n==="companyPurchase"&&t==="applied"&&(r==null?void 0:r.type)==="template"){const a=(i=r==null?void 0:r.data)==null?void 0:i.id;if(a!==this.template.id)return;const o={templateId:a,isVisibleApp:!0,includePurchaseInfo:!0},s=await this.fetchGallery(o);this.privateProduct=bY(s[0],{availableProducts:this.stripeProducts})}}))},beforeDestroy(){this.socketUnsubscribeFn&&this.socketUnsubscribeFn()},methods:{async loadTemplateStat(){const n=this.template.id;n||(this.templateStat=null);try{const{data:t}=await rye.get(n);this.templateStat=t}catch{this.templateStat=null}},async useSelectedTemplate(){this.$parent.$emit("use-template",this.template),this.$emit("close")},async buyTemplate(){await this.privateProduct.onBuy()},async saveAsTemplate(){this.template&&typeof this.onSaveTemplate=="function"&&(this.didSave=await this.onSaveTemplate(this.template))},async copyToClipboard(n){const t=`${Je.baseUrl}/template/${n}`;await L4(t)&&ho("info",this.$t("copyMessage"))}}};var Fut=function(){var i;var t=this,r=t._self._c;return r("div",{staticClass:"template-modal font-inter bg-gray-200"},[r("div",{staticStyle:{"background-color":"white","border-radius":"1em",overflow:"auto",border:"10px solid white",flex:"1 1 auto","min-height":"0"}},[r("simplebar",{staticClass:"h-full w-full",attrs:{"data-simplebar-auto-hide":"false"}},[t.previewDocument?r("DocumentLayout",{attrs:{document:t.previewDocument}}):t._e(),t.product&&!t.privateProduct.isPurchased?r("style",{tag:"component"},[t._v(" .ProseMirror > * + * { filter: blur(8px); user-select: none; pointer-events: none; } ")]):t._e()],1)],1),r("div",{staticStyle:{flex:"0 1 300px",padding:"2em 1em 3em 2em","font-size":"18px"}},[r("div",{staticStyle:{"padding-bottom":"2em"}},[r("div",{staticStyle:{"font-size":"21px","font-weight":"800",color:"hsl(0, 0%, 0%)"}},[t._v(" "+t._s(t.meta.name)+" ")]),r("div",{staticStyle:{"font-weight":"400","font-size":"14px","min-height":"30px",color:"hsl(0, 0%, 27%)"}},[(i=t.templateStat)!=null&&i.usedTimes?[t._v(" "+t._s(t.$t("_common:used").capitalize())+" "+t._s(t.templateStat.usedTimes)+" "+t._s(t.$t("_common:times",{count:t.templateStat.usedTimes}))+" ")]:t._e()],2),r("div",{staticStyle:{hyphens:"auto"}},[t._v(" "+t._s(t.meta.text)+" ")]),t.meta.author?r("div",{staticClass:"flex items-center",staticStyle:{"padding-top":"1.5em"}},[r("div",{staticStyle:{"background-color":"#03f","border-radius":"50%",width:"2.5em",height:"2.5em","background-size":"cover","background-position":"center","background-repeat":"no-repeat"},style:{backgroundImage:`url(${t.meta.author.avatar})`}}),r("div",{staticStyle:{"margin-left":"0.5em"}},[r("div",{staticStyle:{"font-weight":"500"}},[t._v(t._s(t.meta.author.name))]),r("div",{staticStyle:{"font-weight":"400","font-size":"14px"}},[t.meta.author.templatesCount?[t._v(" "+t._s(t.meta.author.templatesCount)+" "+t._s(t.$t("_common:template",{count:t.meta.author.templatesCount}))+" ")]:[t._v(t._s(t.$t("_common:template").capitalize()))]],2)])]):t._e()]),r("div",{staticStyle:{"padding-bottom":"2em"}},[t.product?[t.privateProduct.isPurchased?r("div",{staticClass:"mb-5 flex items-center gap-2 rounded-full border border-gray-300 bg-gray-300/60 p-1 text-sm"},[r("div",{staticClass:"bg-primary-500 flex h-5 w-5 items-center justify-center rounded-full"},[r("CIcon",{staticClass:"text-white",attrs:{type:"check",size:"12"}})],1),r("div",{staticClass:"text-xs font-medium text-gray-700",domProps:{textContent:t._s(t.$t("_common:purchased",{thing:t.$t("_common:template")}))}})]):r("CButton",{staticClass:"!justify-start !px-4 text-left",staticStyle:{"margin-bottom":"0.5em"},attrs:{type:"secondary",wide:""},on:{click:t.buyTemplate}},[r("div",[t._v(" "+t._s(t.$t("_common:buy",{thing:t.$t("_common:template")}))+" ")]),r("div",{staticClass:"bg-primary-400/80 border-primary-600/60 absolute right-2 top-1/2 -translate-y-1/2 rounded-md border px-2 py-1.5 text-sm leading-none text-white",domProps:{textContent:t._s(t.privateProduct.price)}})])]:t._e(),r("IsPremium",{scopedSlots:t._u([{key:"default",fn:function({canUseTemplate:a}){return[r("IsPremiumPreStep",{attrs:{feature:"useDocTemplate"},scopedSlots:t._u([{key:"default",fn:function({onClick:o}){return[!t.product||t.privateProduct.isPurchased?r("CButton",{staticStyle:{"margin-bottom":"0.5em"},attrs:{disabled:t.product?!t.privateProduct.isPurchased:!1,type:"secondary",wide:""},on:{click:function(s){t.isPublicForm||a?t.useSelectedTemplate():o({callback:t.useSelectedTemplate})}}},[t._v(" "+t._s(t.$t("_common:use",{thing:t.$t("_common:template")}))+" ")]):t._e()]}}],null,!0)})]}}])}),r("IsPremium",{scopedSlots:t._u([{key:"default",fn:function({canCreateTemplate:a}){return[r("IsPremiumPreStep",{attrs:{feature:"saveDocTemplate"},scopedSlots:t._u([{key:"default",fn:function({onClick:o}){var s;return[(t.product?(s=t.product)!=null&&s.isPurchased:t.showSave)?r("CButton",{staticStyle:{"margin-bottom":"0.5em"},attrs:{loading:t.isLoading,type:t.didSave?"success":"none","icon-left":t.didSave?"check":void 0,wide:""},on:{click:function(c){t.didSave||(t.isPublicForm||a?t.saveAsTemplate():o({callback:t.saveAsTemplate}))}}},[t._v(" "+t._s(t.didSave?t.$t("_common:savedThing",{thing:t.$t("_common:template")}):t.$t("_common:saveAs",{thing:t.$t("_common:template")}))+" ")]):t._e()]}}],null,!0)})]}}])}),t.allowCopyTemplateLink?r("CButton",{attrs:{type:"none","icon-left":"link",wide:""},on:{click:function(a){return t.copyToClipboard(t.template.id)}}},[t._v(" "+t._s(t.$t("_common:share",{thing:t.$t("_common:link")}))+" ")]):t._e()],2)])])},Nut=[],But=he(Lut,Fut,Nut,!1,null,"a4cb4a3f");const jut=But.exports,zut={name:"GalleryLogic",i18nOptions:{namespaces:"GalleryLogic",messages:{en:{categories:{default:"Popular",sales:"Sales",marketing:"Marketing",tech:"Webb & IT",design:"Design",creative:"Creative",law:"Law",construction:"Construction",garden:"Gardening",conference:"Conference",event:"Event",staffing:"Staffing",cleaning:"Cleaning",moving:"Moving"}},sv:{categories:{default:"Populärt",sales:"Sälj",marketing:"Marknadsföring",tech:"Webb & IT",design:"Design",creative:"Kreativ",law:"Juridik",construction:"Bygg",garden:"Trädgård",conference:"Konferens",event:"Event",staffing:"Bemanning",cleaning:"Städning",moving:"Flytt"}}}},props:{fetchGallery:{type:Function,required:!0},useTemplate:{type:Function,required:!0},modalProps:{type:Object,default:()=>({})},filterLanguage:{type:String,default:()=>["cling","fortnoxSe"].includes(Je.brand)?"sv":"en"},showTemplateAuthor:{type:Boolean,default:!0},canPurchase:{type:Boolean,default:!0},galleryCategory:{type:String,default:""}},data(){return{isLoading:!1,activeCategory:null,templateGalleryItems:[],availableCategoryKeys:[],allCategories:[{key:"default",label:this.$t("categories.default")},{key:"sales",label:this.$t("categories.sales")},{key:"marketing",label:this.$t("categories.marketing")},{key:"tech",label:this.$t("categories.tech")},{key:"design",label:this.$t("categories.design")},{key:"creative",label:this.$t("categories.creative")},{key:"law",label:this.$t("categories.law")},{key:"construction",label:this.$t("categories.construction")},{key:"garden",label:this.$t("categories.garden")},{key:"conference",label:this.$t("categories.conference")},{key:"event",label:this.$t("categories.event")},{key:"staffing",label:this.$t("categories.staffing")},{key:"cleaning",label:this.$t("categories.cleaning")},{key:"moving",label:this.$t("categories.moving")}]}},computed:{...Ht({stripeProducts:"stripe/products"}),galleryItems(){return this.isLoading?Array(6).fill({placeholder:!0}):this.templateGalleryItems.filter(({categories:n})=>n.includes(this.activeCategory&&this.activeCategory.key))},categories(){return this.allCategories.filter(({key:n})=>this.availableCategoryKeys.includes(n))},language(){var t,r;const n=(r=(t=this.$route)==null?void 0:t.query)==null?void 0:r.language;return["en","sv"].includes(n)?n:this.filterLanguage}},watch:{categories(n){!n||!n.length||(!this.activeCategory||!n.includes(this.activeCategory))&&this.selectCategory(n[0])}},beforeCreate(){this.$store.hasModule("stripe")||this.$store.registerModuleState("stripe",G8)},async created(){var r,i,a,o;this.canPurchase&&await this.loadPrices();let n=this.galleryCategory;!n&&((i=(r=this.$route)==null?void 0:r.query)!=null&&i.list)&&([n]=this.$route.query.list.split(",")),n&&(this.activeCategory=this.allCategories.find(({key:s})=>s===n)),await this.loadTemplateGallery();const t=(o=(a=this.$route)==null?void 0:a.query)==null?void 0:o.id;if(t)try{const s=this.templateGalleryItems.find(({id:c})=>c===t);this.selectGalleryItem(s)}catch(s){Lr(s)}},methods:{...Cn({loadPrices:Ue.LOAD_PRICES}),async loadTemplateGallery(){this.isLoading=!0;const n={isVisibleApp:!0,includePurchaseInfo:!0};this.language&&(n.language=this.language);try{const t=await this.fetchGallery(n);this.templateGalleryItems=(t||[]).map(r=>{if(this.canPurchase&&r.isPurchasable){const i=bY(r,{availableProducts:this.stripeProducts});i&&(r.product=i)}return r}),this.availableCategoryKeys=t.reduce((r,i)=>[...new Set([...r,...i.categories])],[])}catch(t){Lr(t)}finally{this.isLoading=!1}},async getGalleryTemplate(n){var o;const t={_id:n,populate:"templateId",isVisibleApp:!0,includePurchaseInfo:!0},r=await this.fetchGallery(t),i=(o=r==null?void 0:r[0])==null?void 0:o.templateId;return i?(vv(i),new _o(i)):null},onUseTemplate(n){if(!n)throw new Error("Could not find template");const{data:t,defaultData:r={}}=n,i={...r,template:{...t,defaultData:r}};this.useTemplate({formData:i})},openGalleryTemplateModal({template:n,galleryItem:t}){if(window.innerWidth<800){this.onUseTemplate(n);return}const r={cling:"/img/app/icon-blue-text-250x250.png",docspo:"/img/docspo/icons/apple-touch-icon-180x180.png",fortnoxSe:"/img/fortnox/apple-touch-icon-180x180.png",fortnoxCom:"/img/fortnox/apple-touch-icon-180x180.png"};this.$modal.show(jut,{template:n,fetchGallery:this.fetchGallery,product:t.product,galleryItemId:t.id,meta:{name:t.name,text:t.description,...this.showTemplateAuthor?{author:{name:this.$t("_common:brand.name"),avatar:r[Je.brand],templatesCount:this.templateGalleryItems.length}}:{}},...this.modalProps},{adaptive:!0,height:"90%",maxHeight:900,maxWidth:1200,width:"90%",transition:"pop-in"},{"use-template":()=>this.onUseTemplate(n)})},async selectGalleryItem(n){if(!n)throw new Error("Could not find gallery item");const t=await this.getGalleryTemplate(n.id);if(!t)throw new Error("Could not find template");this.openGalleryTemplateModal({template:t,galleryItem:n})},selectCategory(n){this.activeCategory=n}},render(){return this.$scopedSlots.default({galleryItems:this.galleryItems,categories:this.categories,activeCategory:this.activeCategory,selectCategory:this.selectCategory,selectGalleryItem:this.selectGalleryItem})}};var Vut=he(zut,null,null,!1,null,null);const Uut=Vut.exports,Hut={i18nOptions:{namespaces:"TemplateSelector",messages:{sv:{myTemplates:"Mina mallar",myTemplatesSubTitle:"Skapa ett nytt dokument utifrån en av dina sparade mallar.",gallery:"Mallgalleri",gallerySubTitle:"Bläddra bland vårt mallgalleri för att få inspiration. <br>Klicka på vilken mall som helst och gör den till din egen.",recent:"Senaste",recentSubTitle:"Dina senast skapade dokument.",override:{title:"Använd ny mall",message:"Ändringar i ditt nuvarande dokument kommer att försvinna, vill du byta mall?",submit:"Fortsätt",cancel:"Avbryt"},icon:{tooltip:"Fler val",freeTooltip:"Det här en gratismall som du kan använda obegränsat."}},en:{myTemplates:"My templates",myTemplatesSubTitle:"Create a new doc from one of your saved templates.",gallery:"Template gallery",gallerySubTitle:"Browse our template gallery to get inspired.<br>Click on any template to duplicate it and make it your own.",recent:"Recent",recentSubTitle:"Your most recently created documents.",override:{title:"Use new template",message:"Changes in your current document will be lost, change template?",submit:"Continue",cancel:"Cancel"},icon:{tooltip:"More options",freeTooltip:"This is a template that you can use for free, without limitations."}}}},name:"TemplateSelector",components:{HorizontalScroll:$ut,DocumentIcon:Cut,DocumentRecent:fut,GalleryLogic:Uut,IsPremiumPreStep:kc},mixins:[_r],props:{projectId:{type:Number,default:null},clientId:{type:Number,default:null},onEditTemplate:{type:Function,default:null},onUseTemplate:{type:Function,required:!0},onSaveTemplate:{type:Function,default:null},showGallery:{type:Boolean,default:!1},galleryCategory:{type:String,default:""},showGalleryTemplateAuthor:{type:Boolean,default:!0},listExpanded:{type:Boolean,default:!1},includePartnerTemplates:{type:Boolean,default:!1}},data(){return{isExpanded:this.listExpanded,hoverId:null}},computed:{...Ht({canFeature:"application/feature",templateById:"templates/byId",isFetchingTemplates:"templates/isFetching",availableTemplates:"templates/availableTemplates",getCompanySetting:"settings/getCompanySetting",getCompanyUserSetting:"settings/getCompanyUserSetting",companySettings:"settings/allCompanySettings",user:"application/user",company:"application/company",isAuthenticatedCRM:"settings/isAuthenticatedCRM",isSuperUser:"application/isSuperUser"}),fallbackMedia(){return{type:"image",resourceUrl:this.getCompanySetting("offerBrandingBackgroundUrl")}},defaultSummaryBackground(){return this.getCompanySetting("documentThemePriceBackground")},defaultLanguage(){return this.getCompanyUserSetting("defaultLanguage")},myTemplates(){const n=[...this.availableTemplates];return!n.length&&this.isFetchingTemplates?Array(5).fill({placeholder:!0}):[{id:"empty",doConsumeDocumentQuota:!0},...n]},galleryModalProps(){const{fSkatt:n,insurance:t}=this.companySettings;return{sender:{company:{...this.company,fSkatt:n,insurance:t},user:this.user},onSaveTemplate:this.saveTemplate}}},created(){this.loadTemplates()},methods:{...Cn({loadTemplatesAction:Ue.LOAD_TEMPLATES,loadTemplate:Ue.LOAD_TEMPLATE,createTemplate:Ue.DO_CREATE_TEMPLATE,removeTemplate:Ue.REMOVE_TEMPLATE}),loadTemplates(){const n={};this.defaultLanguage&&(n.sharedLanguage=this.defaultLanguage),this.includePartnerTemplates&&(n.includePartnerTemplates=!0),this.loadTemplatesAction(n),this.isAuthenticatedCRM("hubspot")&&this.loadTemplate({id:"hubspot"})},select({templateId:n,documentId:t,formData:r}){return this.onUseTemplate({templateId:n,formData:r,documentId:t,projectId:this.projectId,clientId:this.clientId})},async saveTemplate(n){try{const{data:t}=n,r=Om(t,["_id","id","companyId","isVisible"]);return await this.createTemplate({body:r}),!0}catch(t){Lr(t)}return!1},async openTemplateFormModal({document:n=null,template:t=null}){this.$modal.show(vY,{document:n,template:t,onSaveTemplate:this.onSaveTemplate},{adaptive:!0,height:"auto",width:"90%",maxWidth:370,classes:"overflow-visible primary",transition:""})},async fetchGallery(n={}){const{data:t}=await q4.get(n);return t},canUseTemplate(n){return n.doConsumeDocumentQuota?this.canFeature("useDocTemplate"):!0},async copyToClipboard(n){const t=`${Je.baseUrl}/template/${n}`;await L4(t)&&ho("info",this.$t("copyMessage"))}}};var Wut=function(){var t=this,r=t._self._c;return r("div",{staticClass:"h-full w-full overflow-y-auto rounded-2xl bg-white px-4 pb-10 pt-10 md:px-10 md:pt-16"},[r("div",{staticClass:"font-inter form-start main mx-auto max-w-5xl",class:{small:t.mq==="sm"}},[t._t("header"),r("div",{staticStyle:{width:"100%","padding-bottom":"5em"}},[r("div",{staticClass:"section-title"},[r("div",[t._v(t._s(t.$t("myTemplates")))]),r("div",{staticClass:"section-subtitle"},[t._v(" "+t._s(t.$t("myTemplatesSubTitle"))+" ")])]),r("IsPremiumPreStep",{attrs:{feature:"useDocTemplate"},scopedSlots:t._u([{key:"default",fn:function({onClick:i}){return[r(t.isExpanded?"div":"HorizontalScroll",{tag:"component",staticClass:"template-list",class:{"is-expanded":t.isExpanded},on:{expand:function(a){t.isExpanded=!0}}},t._l(t.myTemplates,function(a){return r("DocumentIcon",{key:a.id,staticClass:"template-item",attrs:{"is-add":a.id==="empty","is-placeholder":a.placeholder,media:a.defaultMedia||t.fallbackMedia,thumbnail:a.thumbnailUrl,name:a.name},on:{click:function(o){a.placeholder||(t.canUseTemplate(a)?t.select({templateId:a.id}):i())}}},[t.canUseTemplate(a)?!a.doConsumeDocumentQuota&&!a.placeholder?r("div",{staticClass:"bg-primary-500 border-primary-600 inline-flex h-5 items-center rounded border px-1.5 text-[11px] font-semibold capitalize leading-none text-white shadow-sm",attrs:{slot:"badge"},slot:"badge"},[t._v(" "+t._s(t.$t("_common:free"))+" ")]):t._e():r("div",{staticClass:"inline-flex h-5 items-center gap-1 rounded border border-gray-300 bg-gray-200 px-1 leading-none text-gray-500/90 shadow-sm",attrs:{slot:"badge"},slot:"badge"},[r("CIcon",{attrs:{type:"lock",size:"12","stroke-width":"2.5"}}),r("div",{staticClass:"text-[11px] font-semibold"},[t._v("Pro")])],1),a.onModify==="create"&&!a.doConsumeDocumentQuota?r("CButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.$t("icon.freeTooltip"),placement:"bottom"},expression:`{
2835
2835
  content: $t('icon.freeTooltip'),
2836
2836
  placement: 'bottom'
2837
- }`}],staticStyle:{top:"-8px",right:"-4px"},attrs:{icon:"info",type:"none",pattern:"tertiary",size:"small"},nativeOn:{click:function(o){o.stopPropagation()}}}):r("CDropdown",{staticStyle:{top:"-8px",right:"-4px"},attrs:{"append-to-body":""},nativeOn:{click:function(o){o.stopPropagation()}}},[r("CButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("icon.tooltip"),expression:"$t('icon.tooltip')"}],attrs:{slot:"trigger",icon:"more-vertical",type:"none",pattern:"tertiary",size:"small"},slot:"trigger"}),t.onEditTemplate?r("CDropdownItem",{attrs:{"icon-left":"template-color"},on:{click:function(o){return t.onEditTemplate(a.id)}}},[t._v(" "+t._s(t.$t("_common:edit",{thing:t.$t("_common:template")}))+" ")]):t._e(),r("CDropdownItem",{attrs:{"icon-props":{size:16},"icon-left":"edit"},on:{click:function(o){return t.openTemplateFormModal({template:a})}}},[t._v(" "+t._s(t.$t("_common:change",{thing:t.$t("_common:name")}))+" ")]),r("CDropdownItem",{attrs:{separator:""}}),r("CDropdownItem",{attrs:{"icon-props":{size:16},"icon-left":"link"},on:{click:function(o){return t.copyToClipboard(a.id)}}},[t._v(" "+t._s(t.$t("_common:share",{thing:t.$t("_common:link")}))+" ")]),r("CDropdownItem",{attrs:{separator:""}}),r("CDropdownItem",{attrs:{"icon-props":{size:16,stroke:"hsl(360, 100%, 60%)"},"icon-left":"trash"},on:{click:function(o){return t.removeTemplate({template:a})}}},[t._v(" "+t._s(t.$t("_common:remove"))+" ")])],1)],1)}),1)]}}])})],1),t.showGallery?[r("GalleryLogic",{attrs:{"fetch-gallery":t.fetchGallery,"use-template":t.select,"show-template-author":t.showGalleryTemplateAuthor,"modal-props":t.galleryModalProps,"gallery-category":t.galleryCategory},scopedSlots:t._u([{key:"default",fn:function({galleryItems:i,categories:a,activeCategory:o,selectCategory:s,selectGalleryItem:c}){return[r("div",{staticStyle:{width:"100%","padding-bottom":"5em"}},[r("div",{staticClass:"section-title w-full"},[r("div",{staticClass:"flex items-center justify-between"},[r("div",[t._v(t._s(t.$t("gallery")))]),r("CDropdown",{staticStyle:{"margin-left":"calc(0.5 * var(--rem))"},nativeOn:{click:function(l){l.stopPropagation()}}},[r("CButton",{attrs:{slot:"trigger",size:"small",type:"none",pattern:"secondary","icon-right":"chevron-down"},slot:"trigger"},[t._v(" "+t._s(o?o.label:"")+" ")]),t._l(a,function(l){return r("CDropdownItem",{key:l.key,attrs:{"icon-right":o&&o.key===l.key?"check":""},on:{click:function(u){return s(l)}}},[t._v(" "+t._s(l.label)+" ")])})],2)],1),r("div",{staticClass:"section-subtitle",domProps:{innerHTML:t._s(t.$t("gallerySubTitle"))}})]),r("HorizontalScroll",{staticClass:"template-list"},t._l(i,function(l){return r("DocumentIcon",{key:l.id,staticClass:"template-item",attrs:{"is-placeholder":l.placeholder,media:{type:"image",resourceUrl:l.backgroundUrl},name:l.name},on:{click:function(u){l.placeholder||c(l)}}},[l.product?r("div",{staticClass:"bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg",attrs:{slot:"badge"},slot:"badge"},[l.product.isPurchased?r("CIcon",{attrs:{type:"check",size:"14","stroke-width":"3"}}):r("div",{domProps:{textContent:t._s(l.product.price)}})],1):t._e()])}),1)],1)]}}],null,!1,3171552362)})]:t._e(),r("DocumentRecent",{staticStyle:{width:"100%","padding-bottom":"5em"},on:{"use-doc-template":t.select,"save-template":t.openTemplateFormModal}},[r("div",{staticClass:"section-title",staticStyle:{flex:"1 1 auto","padding-bottom":"0.5em"}},[r("div",[t._v(t._s(t.$t("recent")))]),r("div",{staticClass:"section-subtitle"},[t._v(" "+t._s(t.$t("recentSubTitle"))+" ")])])])],2)])},Gut=[],qut=he(Hut,Wut,Gut,!1,null,"5c1a776a");const Yut=qut.exports,Kut={name:"CAutocomplete",components:{CInput:Ws},mixins:[U4],inheritAttrs:!1,props:{value:{type:[Number,String],default:null},data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function,default:()=>{}},checkInfiniteScroll:Boolean,keepOpen:Boolean,clearable:Boolean,maxHeight:{type:[String,Number],default:null},dropdownPosition:{type:String,default:"auto"},iconRight:{type:String,default:null},iconRightClickable:Boolean,appendToBody:Boolean},data(){return{selected:null,hovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{whiteList(){const n=[];if(n.push(this.$refs.input.$el.querySelector("input")),n.push(this.$refs.dropdown),this.$refs.dropdown!==void 0){const t=this.$refs.dropdown.querySelectorAll("*");for(const r of t)n.push(r)}if(this.$parent.$data._isTaginput){n.push(this.$parent.$el);const t=this.$parent.$el.querySelectorAll("*");for(const r of t)n.push(r)}return n},hasDefaultSlot(){return!!this.$scopedSlots.default},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return this.dropdownPosition==="top"||this.dropdownPosition==="auto"&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return this.clearable?!0:this.iconRightClickable},contentStyle(){return{maxHeight:this.maxHeight===void 0?null:isNaN(this.maxHeight)?this.maxHeight:`${this.maxHeight}px`}},isDropdownOpen(){return this.isActive&&(this.data.length>0||this.hasEmptySlot||this.hasHeaderSlot)}},watch:{isActive(n){this.dropdownPosition==="auto"&&(n?this.calcDropdownInViewportVertical():setTimeout(()=>{this.calcDropdownInViewportVertical()},100)),n&&this.$nextTick(()=>this.setHovered(null))},newValue(n){this.$emit("input",n);const t=this.getValue(this.selected);t&&t!==n&&this.setSelected(null,!1),this.hasFocus&&(!this.openOnFocus||n)&&(this.isActive=!!n)},value(n){this.newValue=n},data(n){this.keepFirst&&this.selectFirstOption(n)}},created(){typeof window<"u"&&(document.addEventListener("click",this.clickedOutside),this.dropdownPosition==="auto"&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){const n=this.$refs.dropdown.querySelector(".dropdown-content");n.addEventListener("scroll",()=>this.checkIfReachedTheEndOfScroll(n))}this.appendToBody&&(this.$data._bodyEl=JH(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy(){typeof window<"u"&&(document.removeEventListener("click",this.clickedOutside),this.dropdownPosition==="auto"&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")&&this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll),this.appendToBody&&ZH(this.$data._bodyEl)},methods:{setHovered(n){n!==void 0&&(this.hovered=n)},setSelected(n,t=!0){n!==void 0&&(this.selected=n,this.$emit("select",this.selected),this.selected!==null&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected),this.setHovered(this.clearOnSelect?null:this.hovered)),t&&this.$nextTick(()=>{this.isActive=!1}),this.checkValidity())},selectFirstOption(n){this.$nextTick(()=>{n.length?(this.openOnFocus||this.newValue!==""&&this.hovered!==n[0])&&this.setHovered(n[0]):this.setHovered(null)})},enterPressed(n){this.isDropdownOpen&&(n.preventDefault(),this.hovered!==null&&this.setSelected(this.hovered,!this.keepOpen))},tabPressed(){if(this.hovered===null){this.isActive=!1;return}this.setSelected(this.hovered,!this.keepOpen)},clickedOutside(n){var r;const t=((r=n.path)==null?void 0:r[0])||n.target;this.whiteList.indexOf(t)<0&&(this.isActive=!1)},getValue(n){if(n!==null)return typeof this.customFormatter<"u"?this.customFormatter(n):typeof n=="object"?QYe(n,this.field):n},checkIfReachedTheEndOfScroll(n){n.clientHeight!==n.scrollHeight&&n.scrollTop+n.clientHeight>=n.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick(()=>{if(this.$refs.dropdown===void 0)return;const n=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=n.top>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight),this.appendToBody&&this.updateAppendToBody()})},keyArrows(n){const t=n==="down"?1:-1;if(this.isActive){let r=this.data.indexOf(this.hovered)+t;r=r>this.data.length-1?this.data.length:r,r=r<0?0:r,this.setHovered(this.data[r]);const i=this.$refs.dropdown.querySelector(".dropdown-content"),a=i.querySelectorAll("a.dropdown-item:not(.is-disabled)")[r];if(!a)return;const o=i.scrollTop,s=i.scrollTop+i.clientHeight-a.clientHeight;a.offsetTop<o?i.scrollTop=a.offsetTop:a.offsetTop>=s&&(i.scrollTop=a.offsetTop-i.clientHeight+a.clientHeight)}else this.isActive=!0},focused(n){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.data)),this.hasFocus=!0,this.$emit("focus",n)},onBlur(n){this.hasFocus=!1,this.$emit("blur",n)},onInput(){const n=this.getValue(this.selected);n&&n===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(n){this.clearable?this.newValue="":this.$emit("icon-right-click",n)},checkValidity(){this.useHtml5Validation&&this.$nextTick(()=>{this.checkHtml5Validity()})},updateAppendToBody(){const n=this.$refs.dropdown,t=this.$refs.input.$el;if(n&&t){const r=this.$data._bodyEl;r.classList.forEach(s=>r.classList.remove(s)),r.classList.add("autocomplete"),r.classList.add("control"),this.expandend&&r.classList.add("is-expandend");const i=t.getBoundingClientRect();let a=i.top+window.scrollY;const o=i.left+window.scrollX;this.isOpenedTop?a-=n.clientHeight:a+=t.clientHeight,this.style={position:"absolute",top:`${a}px`,left:`${o}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}}};var Zut=function(){var t=this,r=t._self._c;return r("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[r("CInput",t._b({ref:"input",attrs:{size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1,type:"text"},on:{input:t.onInput,focus:t.focused,blur:t.onBlur,"icon-right-click":t.rightIconClick,"icon-click":i=>t.$emit("icon-click",i)},nativeOn:{keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;i.preventDefault(),t.isActive=!1},keydown:[function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"tab",9,i.key,"Tab")?null:t.tabPressed.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.enterPressed.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),t.keyArrows("up"))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),t.keyArrows("down"))}]},model:{value:t.newValue,callback:function(i){t.newValue=i},expression:"newValue"}},"CInput",t.$attrs,!1)),r("transition",{attrs:{name:"fade"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isDropdownOpen,expression:"isDropdownOpen"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":t.isOpenedTop&&!t.appendToBody},style:t.style},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:t.contentStyle},[t.hasHeaderSlot?r("div",{staticClass:"dropdown-item"},[t._t("header")],2):t._e(),t._l(t.data,function(i,a){return r("a",{key:a,staticClass:"dropdown-item",class:{"is-hovered":i===t.hovered},on:{click:function(o){return t.setSelected(i,void 0,o)}}},[t.hasDefaultSlot?t._t("default",null,{option:i,index:a}):r("span",[t._v(" "+t._s(t.getValue(i,!0))+" ")])],2)}),t.data.length===0&&t.hasEmptySlot?r("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t.hasFooterSlot?r("div",{staticClass:"dropdown-item"},[t._t("footer")],2):t._e()],2)])])],1)},Jut=[],Xut=he(Kut,Zut,Jut,!1,null,null);const Qut=Xut.exports,edt={name:"CCallout",components:{CButton:bp},props:{title:{type:String,default:null},size:{type:String,default:null},type:{type:String,default:null},padding:{type:String,default:null},closable:{type:Boolean,default:!1},legacy:{type:Boolean,default:!0},icon:{type:String,default:null}}};var tdt=function(){var t=this,r=t._self._c;return r("transition",{attrs:{name:"fade"}},[t.legacy?r("article",{staticClass:"message",class:[`is-${t.type}`,`is-${t.size}`]},[r("section",{staticClass:"message-body",style:{padding:t.padding}},[t.title?r("header",{staticClass:"message-header"},[t._v(" "+t._s(t.title)+" ")]):t._e(),r("div",{staticClass:"media"},[r("div",{staticClass:"media-content"},[t._t("default")],2)])]),t.closable?r("CButton",{staticStyle:{right:"calc(0.5 * var(--rem))",position:"absolute",top:"calc(0.5 * var(--rem))"},attrs:{type:t.type,size:"small",pattern:"secondary",circle:"",icon:"x"},on:{click:function(i){return t.$emit("close")}}}):t._e()],1):r("div",{staticClass:"flex rounded-md border border-gray-200 bg-gray-50 p-4"},[t.icon?r("div",{staticClass:"-mt-px mr-3"},[r("CIcon",{attrs:{type:t.icon,size:"16"}})],1):t._e(),r("div",[r("div",[t._t("title",function(){return[r("div",{staticClass:"font-medium"},[t._v(t._s(t.title))])]})],2),r("div",{staticClass:"text-gray-800"},[t._t("default",function(){return[r("div",{staticClass:"mb-2 text-gray-500"},[t._v(t._s(t.text))])]})],2)])])])},ndt=[],rdt=he(edt,tdt,ndt,!1,null,"2e9e865c");const q7=rdt.exports,idt={name:"CMessage",props:{type:{type:String,default:"secondary"},badge:{type:String,default:""},text:{type:String,default:""}}};var adt=function(t,r){return t("div",{class:[r.data.class,r.data.staticClass],staticStyle:{padding:"0.75em 1em",display:"flex","align-items":"flex-start","border-radius":"0.6em","background-color":"hsl(var(--gray-color-100) / 1)"},style:{...r.data.staticStyle}},[t("div",{class:[`has-background-${r.props.type}`],staticStyle:{display:"inline-block",padding:"0.5em","border-radius":"0.45em","font-weight":"700",color:"white","line-height":"1","font-size":"12px","margin-right":"1.25em"}},[r._v(" "+r._s(r.props.badge||r.parent.$t("components:cling.message.tip"))+" ")]),t("div",{staticStyle:{color:"hsl(0, 0%, 25%)"}},[r.props.text?[r._v(" "+r._s(r.props.text)+" ")]:r._e(),r._t("default")],2)])},odt=[],sdt=he(idt,adt,odt,!0,null,"9be3b227");const wY=sdt.exports,ldt={name:"FlagIcon",props:{region:{type:String,default:null},title:{type:String,default:null},isSquared:{type:Boolean,default:!1}},mounted(){var o,s;const n="FLAG_ICONS",t=(s=(o=this.$el).getRootNode)==null?void 0:s.call(o),i=(t==null?void 0:t.toString())==="[object ShadowRoot]"?t:document.head;if(i.querySelector(`#${n}`))return;const a=document.createElement("link");a.id=n,a.rel="stylesheet",a.type="text/css",a.href="https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css",a.media="all",i.appendChild(a)}};var cdt=function(){var t=this,r=t._self._c;return t.region?r("span",{staticClass:"fi",class:[`fi-${t.region.toLowerCase()}`,{fis:t.isSquared}],attrs:{title:t.title||t.region}}):t._e()},udt=[],ddt=he(ldt,cdt,udt,!1,null,null);const _Y=ddt.exports,pdt={name:"CPhoneInput",components:{Flag:_Y,CInput:Ws,CDropdown:$f,CDropdownItem:Af,CButton:bp,CField:a8,SmartList:sb},props:{value:{type:[String,Number],default:""},region:{type:String,default:""},defaultRegion:{type:String,required:!0},label:{type:String,default:""},labelPosition:{type:String,default:""}},data(){return{internalPrefix:null,searchQuery:""}},computed:{defaultPrefix(){return Vr[this.internalRegion].callingCode},currentRegion(){return this.getRegionByCallingCode(this.prefix)},internalRegion:{get(){if(this.region)return this.region;if(this.value){const n=(Object.keys(Vr)||[]).find(t=>Vr[t].callingCode&&this.value&&this.value.startsWith(Vr[t].callingCode));if(n)return n}return this.internalPrefix?this.getRegionByCallingCode(this.internalPrefix):this.defaultRegion},set(n){this.$emit("update:region",n),this.updateValue({prefix:Vr[n].callingCode})}},prefix(){if(!this.value)return this.internalPrefix||this.defaultPrefix;const n=(Object.keys(Vr)||[]).find(t=>Vr[t].callingCode&&this.value&&this.value.startsWith(Vr[t].callingCode));return n?Vr[n].callingCode:this.defaultPrefix},phone:{get(){return this.prefix&&this.value&&this.value.startsWith(this.prefix)?this.value.substring(this.prefix.length):this.value},set(n){this.updateValue({phone:n})}},sortedRegions(){return(Object.keys(Vr)||[]).map(n=>({key:n,title:`${Vr[n].name} (${n})`,callingCode:Vr[n].callingCode})).sort((n,t)=>n.title.localeCompare(t.title))}},methods:{getRegionByCallingCode(n){return n?(Object.keys(Vr)||[]).find(r=>n===Vr[r].callingCode):null},updateValue({prefix:n,phone:t}){const r=n!==void 0?n:this.prefix||"",i=t!==void 0?t:this.phone||"",a=`${r}${i}`;a!==r?(this.$emit("input",a),this.region||this.$emit("update:region",this.internalRegion),this.internalPrefix=null):(this.internalPrefix=r,this.$emit("input",""))}}};var fdt=function(){var t=this,r=t._self._c;return r("CField",{staticClass:"has-addons",attrs:{expanded:""}},[r("div",{staticClass:"control"},[r("SmartList",{attrs:{query:t.searchQuery,items:t.sortedRegions},scopedSlots:t._u([{key:"default",fn:function({items:i}){return[r("CDropdown",{staticClass:"control",staticStyle:{height:"100%"},attrs:{size:t.$attrs.size,disabled:t.$attrs.disabled,"menu-styling":{maxWidth:"300px"},scrollable:!0,position:"is-bottom-right","max-height":"240px"},model:{value:t.internalRegion,callback:function(a){t.internalRegion=a},expression:"internalRegion"}},[r("CButton",{staticStyle:{height:"100%"},attrs:{slot:"trigger",size:t.$attrs.size,type:"none",pattern:"secondary"},slot:"trigger"},[r("Flag",{staticStyle:{"margin-right":"0.35em"},attrs:{region:t.internalRegion}}),t._v(" "+t._s(t.prefix)+" ")],1),r("CInput",{staticStyle:{"margin-bottom":"0.25em"},attrs:{slot:"header",placeholder:t.$t("_common:search"),filled:""},slot:"header",model:{value:t.searchQuery,callback:function(a){t.searchQuery=a},expression:"searchQuery"}}),t._l(i,function({key:a,title:o,callingCode:s}){return r("CDropdownItem",{key:a,staticClass:"truncate-text",attrs:{value:a}},[r("Flag",{staticStyle:{"margin-right":"0.75em",flex:"0 0 auto"},attrs:{region:a,title:o}}),r("span",{staticClass:"truncate-text"},[t._v(" "+t._s(o)+" ("+t._s(s)+") ")])],1)})],2)]}}])})],1),r("CField",{staticClass:"control",attrs:{label:t.label,"label-position":t.labelPosition,expanded:""}},[r("CInput",t._b({attrs:{size:t.$attrs.size,placeholder:t.$attrs.placeholder,type:"tel"},model:{value:t.phone,callback:function(i){t.phone=i},expression:"phone"}},"CInput",{...t.$attrs,...t.$props},!1))],1)],1)},hdt=[],mdt=he(pdt,fdt,hdt,!1,null,null);const xY=mdt.exports,gdt={name:"CRadio",mixins:[V4]};var vdt=function(){var t=this,r=t._self._c;return r("label",{ref:"label",staticClass:"b-radio radio",class:[`is-${t.size}`,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.label.click())}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,required:t.required,name:t.name,type:"radio"},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(i){i.stopPropagation()},change:function(i){t.computedValue=t.nativeValue}}}),r("span",{staticClass:"check",class:`is-${t.type}`}),r("span",{staticClass:"control-label"},[t._t("default")],2)])},ydt=[],bdt=he(gdt,vdt,ydt,!1,null,null);const CY=bdt.exports,wdt={name:"CRadioButton",components:{CButton:bp},mixins:[V4],props:{type:{type:String,default:"primary"},expanded:Boolean},data(){return{isFocused:!1}}};var _dt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[r("CButton",{ref:"label",staticClass:"c-radio radio button",class:[{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{tag:"label",type:t.newValue===t.nativeValue?t.type:null,size:t.size,disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.$el.label.click())}}},[t._t("default"),r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,required:t.required,name:t.name,type:"radio"},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(i){i.stopPropagation()},focus:function(i){t.isFocused=!0},blur:function(i){t.isFocused=!1},change:function(i){t.computedValue=t.nativeValue}}})],2)],1)},xdt=[],Cdt=he(wdt,_dt,xdt,!1,null,null);const kY=Cdt.exports,kdt={name:"CSelect",mixins:[U4],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},placeholder:{type:String,default:""},multiple:Boolean,selectClass:{type:[String,Object,Array],default:""},nativeSize:{type:[String,Number],default:null}},data(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get(){return this.selected},set(n){this.selected=n,this.$emit("input",n),!this.isValid&&this.checkHtml5Validity()}},spanClasses(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":this.selected===null}]}},watch:{value(n){this.selected=n,!this.isValid&&this.checkHtml5Validity()}}};var Sdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[r("span",{staticClass:"select",class:t.spanClasses},[r("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",class:t.selectClass,attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(i){t.$emit("blur",i)&&t.checkHtml5Validity()},focus:function(i){return t.$emit("focus",i)},change:function(i){var a=Array.prototype.filter.call(i.target.options,function(o){return o.selected}).map(function(o){var s="_value"in o?o._value:o.value;return s});t.computedValue=i.target.multiple?a:a[0]}}},"select",t.$attrs,!1),[t.placeholder&&t.computedValue==null?r("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v(" "+t._s(t.placeholder)+" ")]):t._e(),t._t("default")],2)])])},Tdt=[],Edt=he(kdt,Sdt,Tdt,!1,null,"23e48013");const SY=Edt.exports;var $dt=he({name:"CSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!1},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},hidden:{type:[Boolean,String],default:!1},color:{type:String,default:null}},render(n,t){if(!t.props.active)return;const r=[],i=t.props.width,a=t.props.height;for(let o=0;o<t.props.count;o++)r.push(n("div",{staticClass:"c-skeleton-item",class:{"is-rounded":t.props.rounded},key:o,style:{height:a===void 0?null:isNaN(a)?a:a+"px",width:i===void 0?null:isNaN(i)?i:i+"px",borderRadius:t.props.circle?"50%":null,background:t.props.color?t.props.color:null}}));return n("div",{staticStyle:t.data.staticStyle,staticClass:"c-skeleton",class:[t.data.staticClass,{"is-animated":t.props.animated,"is-invisible":t.props.hidden}]},r)}},null,null,!1,null,null);const TY=$dt.exports,Adt={name:"CSliderThumb",inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},customFormatter:{type:Function,default:null}},data(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled(){return this.$parent.disabled},max(){return this.$parent.max},min(){return this.$parent.min},step(){return this.$parent.step},precision(){return this.$parent.precision},currentPosition(){return`${(this.value-this.min)/(this.max-this.min)*100}%`},wrapperStyle(){return{left:this.currentPosition}},tooltipLabel(){return typeof this.customFormatter=="function"?this.customFormatter(this.value):this.value.toString()}},methods:{onFocus(){this.isFocused=!0},onBlur(){this.isFocused=!1},onButtonDown(n){this.disabled||(n.preventDefault(),this.onDragStart(n),typeof window<"u"&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart(n){this.dragging=!0,this.$emit("dragstart"),n.type==="touchstart"&&(n.clientX=n.touches[0].clientX),this.startX=n.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging(n){if(this.dragging){n.type==="touchmove"&&(n.clientX=n.touches[0].clientX);const t=(n.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),typeof window<"u"&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition(n){if(n===null||isNaN(n))return;n<0?n=0:n>100&&(n=100);const t=100/((this.max-this.min)/this.step);let i=Math.round(n/t)*t/100*(this.max-this.min)+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),!this.dragging&&i!==this.oldValue&&(this.oldValue=i)}}};var Odt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-slider-thumb-wrapper",class:{"is-dragging":t.dragging},style:t.wrapperStyle},[r("div",t._b({staticClass:"c-slider-thumb",attrs:{tabindex:t.disabled?!1:0},on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.onFocus,blur:t.onBlur,keydown:[function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:(i.preventDefault(),t.onLeftKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:(i.preventDefault(),t.onRightKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),t.onLeftKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),t.onRightKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"home",void 0,i.key,void 0)?null:(i.preventDefault(),t.onHomeKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"end",void 0,i.key,void 0)?null:(i.preventDefault(),t.onEndKeyDown.apply(null,arguments))}]}},"div",t.$attrs,!1))])},Ddt=[],Mdt=he(Adt,Odt,Ddt,!1,null,null);const Pdt=Mdt.exports,Idt={name:"CSliderTick",props:{value:{type:Number,default:0}},computed:{position(){const n=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return n>=0&&n<=100?n:0},hidden(){return this.value===this.$parent.min||this.value===this.$parent.max}},created(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")},methods:{getTickStyle(n){return{left:`${n}%`}}}};var Rdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-slider-tick",class:{"is-tick-hidden":t.hidden},style:t.getTickStyle(t.position)},[t.$slots.default?r("span",{staticClass:"c-slider-tick-label"},[t._t("default")],2):t._e()])},Ldt=[],Fdt=he(Idt,Rdt,Ldt,!1,null,null);const Ndt=Fdt.exports,Bdt={name:"CSlider",components:{CSliderThumb:Pdt,CSliderTick:Ndt},props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"primary"},size:{type:String,default:""},ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:{type:String,default:""},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:{type:Function,default:null},ariaLabel:{type:[String,Array],default:""},biggerSliderFocus:{type:Boolean,default:!1}},data(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType(){return this.tooltipType?this.tooltipType:this.type},tickValues(){if(!this.ticks||this.min>this.max||this.step===0)return[];const n=[];for(let t=this.min+this.step;t<this.max;t+=this.step)n.push(t);return n},minValue(){return Math.min(this.value1,this.value2)},maxValue(){return Math.max(this.value1,this.value2)},barSize(){return this.isRange?`${100*(this.maxValue-this.minValue)/(this.max-this.min)}%`:`${100*(this.value1-this.min)/(this.max-this.min)}%`},barStart(){return this.isRange?`${100*(this.minValue-this.min)/(this.max-this.min)}%`:"0%"},precision(){const n=[this.min,this.max,this.step].map(t=>{const r=`${t}`.split(".")[1];return r?r.length:0});return Math.max(...n)},barStyle(){return{width:this.barSize,left:this.barStart}},rootClasses(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{value(n){this.setValues(n)},value1(){this.onInternalValueUpdate()},value2(){this.onInternalValueUpdate()},min(){this.setValues(this.value)},max(){this.setValues(this.value)}},created(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.value)},methods:{setValues(n){if(!(this.min>this.max))if(Array.isArray(n)){this.isRange=!0;const t=typeof n[0]!="number"||isNaN(n[0])?this.min:d8(n[0],this.min,this.max),r=typeof n[1]!="number"||isNaN(n[1])?this.max:d8(n[1],this.min,this.max);this.value1=this.isThumbReversed?r:t,this.value2=this.isThumbReversed?t:r}else this.isRange=!1,this.value1=isNaN(n)?this.min:d8(n,this.min,this.max),this.value2=null},onInternalValueUpdate(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),(!this.lazy||!this.dragging)&&this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick(n){if(this.disabled||this.isTrackClickDisabled)return;const t=this.$refs.slider.getBoundingClientRect().left,r=(n.clientX-t)/this.sliderSize()*100,i=this.min+r*(this.max-this.min)/100,a=Math.abs(i-this.value1);if(this.isRange){const o=Math.abs(i-this.value2);if(a<=o){if(a<this.step/2)return;this.$refs.button1.setPosition(r)}else{if(o<this.step/2)return;this.$refs.button2.setPosition(r)}}else{if(a<this.step/2)return;this.$refs.button1.setPosition(r)}this.emitValue("change")},onDragStart(){this.dragging=!0,this.$emit("dragstart")},onDragEnd(){this.isTrackClickDisabled=!0,setTimeout(()=>{this.isTrackClickDisabled=!1},0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("input")},emitValue(n){this.$emit(n,this.isRange?[this.minValue,this.maxValue]:this.value1)}}};var jdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-slider",class:[`is-${t.size}`,`is-${t.type}`,t.rootClasses],on:{click:t.onSliderClick}},[r("div",{ref:"slider",staticClass:"c-slider-track"},[r("div",{staticClass:"c-slider-fill",style:t.barStyle}),t.ticks?t._l(t.tickValues,function(i,a){return r("CSliderTick",{key:a,attrs:{value:i}})}):t._e(),t._t("default"),r("CSliderThumb",{ref:"button1",attrs:{type:`is-${t.newTooltipType}`,tooltip:t.tooltip,"custom-formatter":t.customFormatter,"aria-valuenow":t.value1,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[0]:t.ariaLabel,"aria-disabled":t.disabled,role:"slider","aria-orientation":"horizontal"},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value1,callback:function(i){t.value1=i},expression:"value1"}}),t.isRange?r("CSliderThumb",{ref:"button2",attrs:{type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,"aria-valuenow":t.value2,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[1]:"","aria-disabled":t.disabled,role:"slider","aria-orientation":"horizontal"},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value2,callback:function(i){t.value2=i},expression:"value2"}}):t._e()],2)])},zdt=[],Vdt=he(Bdt,jdt,zdt,!1,null,null);const EY=Vdt.exports,Udt={name:"CSwitch",props:{value:{type:[String,Number,Boolean,Function,Object,Array,Date],default:null},nativeValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:null},disabled:Boolean,type:{type:String,default:""},name:{type:String,default:""},required:Boolean,size:{type:String,default:""},trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:!0}},data(){return{newValue:this.value}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n)}},newClass(){return[`is-${this.size}`,{"is-disabled":this.disabled,"is-rounded":this.rounded}]}},watch:{value(n){this.newValue=n}},methods:{focus(){this.$refs.input.focus()}}};var Hdt=function(){var t=this,r=t._self._c;return r("label",{ref:"label",staticClass:"switch",class:t.newClass,attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.label.click())}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,name:t.name,required:t.required,"true-value":t.trueValue,"false-value":t.falseValue,type:"checkbox"},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(i){i.stopPropagation()},change:function(i){var a=t.computedValue,o=i.target,s=o.checked?t.trueValue:t.falseValue;if(Array.isArray(a)){var c=t.nativeValue,l=t._i(a,c);o.checked?l<0&&(t.computedValue=a.concat([c])):l>-1&&(t.computedValue=a.slice(0,l).concat(a.slice(l+1)))}else t.computedValue=s}}}),r("span",{staticClass:"check",class:[`is-${t.type}`]}),r("span",{staticClass:"control-label"},[t._t("default")],2)])},Wdt=[],Gdt=he(Udt,Hdt,Wdt,!1,null,"4cdd239d");const $Y=Gdt.exports;var qdt=he({name:"CTabItem",props:{label:String,icon:String,iconPack:String,disabled:Boolean,visible:{type:Boolean,default:!0},value:[String,Number]},data(){return{isActive:!1,transitionName:null,_isTabItem:!0}},created(){if(!this.$parent.$data._isTabs)throw this.$destroy(),new Error("You should wrap bTabItem on a bTabs");this.$parent.refreshSlots()},beforeDestroy(){this.$parent.refreshSlots()},methods:{activate(n,t){this.transitionName=t<n?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!0},deactivate(n,t){this.transitionName=t<n?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!1}},render(n){if(this.$parent.destroyOnHide&&(!this.isActive||!this.visible))return;const t=n("div",{directives:[{name:"show",value:this.isActive&&this.visible}],class:"tab-item"},this.$slots.default);return this.$parent.animated?n("transition",{props:{name:this.transitionName,mode:"out-in"},on:{"before-enter":()=>{this.$parent.isTransitioning=!0},"after-enter":()=>{this.$parent.isTransitioning=!1}}},[t]):t}},null,null,!1,null,null);const AY=qdt.exports,Ydt={name:"CTabs",components:{CSlotComponent:{name:"CSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh(){this.$forceUpdate()},isVueComponent(){return this.component&&this.component._isVue}},created(){this.isVueComponent()&&this.component.$on(this.event,this.refresh)},beforeDestroy(){this.isVueComponent()&&this.component.$off(this.event,this.refresh)},render(n){if(this.isVueComponent())return n(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}}},props:{value:{type:[Number,String],default:null},expanded:Boolean,type:{type:String,default:null},size:{type:String,default:null},position:{type:String,validator(n){return["left","right","center"].indexOf(n)>-1},default:null},animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1},vertical:Boolean,multiline:Boolean},data(){return{activeTab:0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isTabs:!0}},computed:{mainClasses(){return{"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline,[`is-${this.position}`]:this.position&&this.vertical}},navClasses(){return[this.type,{[`is-${this.size}`]:!!this.size,[`is-${this.position}`]:this.position&&!this.vertical,"is-fullwidth":this.expanded,"is-toggle-rounded is-toggle":this.type==="is-toggle-rounded"}]},tabItems(){return this.defaultSlots.filter(n=>n.componentInstance&&n.componentInstance.$data&&n.componentInstance.$data._isTabItem).map(n=>n.componentInstance)}},watch:{value(n){const t=this.getIndexByValue(n,n);this.changeTab(t)},tabItems(){if(this.activeTab<this.tabItems.length){let n=this.activeTab;this.tabItems.map((t,r)=>{t.isActive&&(n=r,n<this.tabItems.length&&(this.tabItems[n].isActive=!1))}),this.tabItems[this.activeTab].isActive=!0}else this.activeTab>0&&this.changeTab(this.activeTab-1)}},mounted(){this.activeTab=this.getIndexByValue(this.value||0),this.activeTab<this.tabItems.length&&(this.tabItems[this.activeTab].isActive=!0),this.refreshSlots()},methods:{changeTab(n){this.activeTab===n||this.tabItems[n]===void 0||(this.activeTab<this.tabItems.length&&this.tabItems[this.activeTab].deactivate(this.activeTab,n),this.tabItems[n].activate(this.activeTab,n),this.activeTab=n,this.$emit("change",this.getValueByIndex(n)))},tabClick(n){this.activeTab!==n&&(this.$emit("input",this.getValueByIndex(n)),this.changeTab(n))},refreshSlots(){this.defaultSlots=this.$slots.default||[]},getIndexByValue(n){const t=this.tabItems.map(r=>r.$options.propsData?r.$options.propsData.value:void 0).indexOf(n);return t>=0?t:n},getValueByIndex(n){const{propsData:t}=this.tabItems[n].$options;return t&&t.value?t.value:n}}};var Kdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-tabs",class:t.mainClasses},[r("nav",{staticClass:"tabs",class:t.navClasses},[r("ul",t._l(t.tabItems,function(i,a){return r("li",{directives:[{name:"show",rawName:"v-show",value:i.visible,expression:"tabItem.visible"}],key:a,class:{"is-active":t.activeTab===a,"is-disabled":i.disabled}},[i.$slots.header?r("CSlotComponent",{attrs:{component:i,name:"header",tag:"a"},nativeOn:{click:function(o){return t.tabClick(a)}}}):r("a",{on:{click:function(o){return t.tabClick(a)}}},[i.icon?r("CIcon",{attrs:{size:t.size,type:i.icon}}):t._e(),r("span",[t._v(t._s(i.label))])],1)],1)}),0)]),r("section",{staticClass:"tab-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2)])},Zdt=[],Jdt=he(Ydt,Kdt,Zdt,!1,null,"e02a6440");const OY=Jdt.exports;function DY(n){n.component(TY.name,TY),n.component("CAutocomplete",Qut),n.component(Tu.name,Tu),n.component(CY.name,CY),n.component(kY.name,kY),n.component($f.name,$f),n.component(Af.name,Af),n.component(SY.name,SY),n.component(q7.name,q7),n.component($Y.name,$Y),n.component(OY.name,OY),n.component(AY.name,AY),n.component("CField",B8),n.component(wY.name,wY),n.component(xY.name,xY),n.component(EY.name,EY)}var Xdt=t2,Qdt=Cj,ept=of;function tpt(n,t,r){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=Xdt(n,s);r(c,s)&&Qdt(o,ept(s,n),c)}return o}var npt=tpt,rpt=npt,ipt=yV;function apt(n,t){return rpt(n,t,function(r,i){return ipt(n,i)})}var opt=apt,spt=opt,lpt=jW,cpt=lpt(function(n,t){return n==null?{}:spt(n,t)}),upt=cpt;const dpt=un(upt);Be.use(DY);const ppt={name:"DocForm",i18nOptions:{namespaces:"widgetDocForm",messages:{en:{selectNavTitle:"Select a template"},sv:{selectNavTitle:"Välj en mall"}}},components:{TemplateSelector:Yut,DocumentForm:lut,PostSend:nYe},provide(){return{onUpgradeRequired:this.onUpgradeRequired,allowSenderSign:this.allowSenderSign}},props:{setFormValue:{type:Function,default:null},isEditingTemplate:{type:Boolean,default:!1},onSaveTemplate:{type:Function,default:null},removeFormValue:{type:Function,default:null},closeFunc:{type:Function,default:null},beforeSave:{type:Function,default:null},beforeSend:{type:Function,default:null},galleryCategory:{type:String,default:null},showBackButton:{type:Boolean,default:!0},allowSenderSign:{type:Boolean,default:!0},onUpgradeRequired:{type:Function,default:null}},data(){return{view:"editor",document:null,isSavingTemplate:!1}},computed:{...Gy({company:"application/company",feature:"application/feature",can:"application/can",rawDoc:"forms/document",isPosting:"documents2/isPosting",docById:"documents2/byId"}),canDoActions(){var n,t,r,i,a,o;return!!((o=(a=(i=(r=(t=(n=this.document)==null?void 0:n._template)==null?void 0:t._data)==null?void 0:r.views)==null?void 0:i.read)==null?void 0:a.nodes)!=null&&o.length)}},watch:{rawDoc:{immediate:!0,handler(){this.initDoc()}},document:{immediate:!0,handler(n){const{companyUserId:t,sender:r={}}=n||{},{user:i={}}=r||{};t&&!Object.keys(i).length&&this.loadCompanyUser({id:t})}}},created(){var n;(!this.rawDoc||(n=this.rawDoc)!=null&&n.__isNew)&&(this.view="templateSelect")},methods:{...qy({removeFormKeyValue:Ue.REMOVE_FORM_KEY_VALUE,loadDocumentForm:Ue.LOAD_DOCUMENT2_FORM,duplicateDocumentForm:Ue.LOAD_DUPLICATE_DOCUMENT2_FORM,saveDocument:Ue.SAVE_DYNDOC_FORM,loadCompanyUser:Ue.LOAD_COMPANY_USER,saveTemplate:Ue.SAVE_TEMPLATE_FORM}),async initDoc(){if(!this.rawDoc)throw new Error("Missing initiated form document");this.document=new fc({data:this.rawDoc,can:this.can,getters:this.$store.getters,updateSender:!0})},async onTemplateSelect({templateId:n,documentId:t,formData:r}){var a;const i=dpt({...this.rawDoc},["__tempId","externalReferences","subscriberCompanyUserIds","clients","data"]);t?await this.duplicateDocumentForm({id:t,_formData:i}):await this.loadDocumentForm({templateId:n,formData:r?cm(r,i):null,_formData:i}),(a=i==null?void 0:i.data)!=null&&a.name&&this.setDocValue({key:"data.name",value:i.data.name}),await this.initDoc(),this.view="editor"},setDocValue({key:n,value:t}){return this.setFormValue({key:n,value:t})},removeDocValue(n){return this.removeFormValue(n)},removeDocKeyValue(n){return this.removeFormKeyValue(`document2.${n}`)},async onSaveTemplateClick(){this.isSavingTemplate=!0,await this.saveTemplate({body:this.document.copyTemplateDocDefault(),callback:this.onSaveTemplate}),typeof this.closeFunc=="function"&&await this.closeFunc(),this.isSavingTemplate=!1},async onSaveDocument({doSend:n=!1}={}){var o;let t;if(typeof this.beforeSave=="function"&&(t=await this.beforeSave(this.document)),n&&typeof this.beforeSend=="function"&&(t=await this.beforeSend(this.document)),t)return;const r=await this.saveDocument({doSend:n});if(!r)return;const i=this.docById(r);let a;n&&(a=!!(i!=null&&i.senderClient)||this.isManualDelivery(i)),a?(this.document=i,this.view="postSend"):(o=this.closeFunc)==null||o.call(this)},goBack(){this.view="templateSelect",this.setDocValue({key:"__isNew",value:!0})},isManualDelivery(n){const t=D2(n);return!t.sms&&!t.email}}};var fpt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"flex h-full w-full flex-col"},[t.view==="templateSelect"?r("div",{staticClass:"flex h-full w-full flex-col"},[r("div",{staticClass:"relative flex h-16 items-center justify-center border-b border-gray-200"},[t.closeFunc?r("CButton",{staticClass:"absolute left-4 top-1/2 -translate-y-1/2",attrs:{icon:"x",circle:""},on:{click:t.closeFunc}}):t._e(),r("div",[t._v(t._s(t.$t("selectNavTitle")))])],1),r("TemplateSelector",{staticClass:"body-scroll min-h-0",attrs:{"on-use-template":t.onTemplateSelect,"show-gallery":t.feature("templateGallery"),"show-gallery-template-author":!1,"gallery-category":t.galleryCategory,"on-save-template":t.onSaveTemplate,"include-partner-templates":""}})],1):t.view==="editor"?r("DocumentForm",{attrs:{document:t.document,"set-doc-value":t.setDocValue,"set-form-value":t.setFormValue,"remove-doc-value":t.removeDocValue,"remove-doc-key-value":t.removeDocKeyValue,"on-save-template":t.onSaveTemplate,"on-save-document":t.onSaveDocument,"is-loading":t.isPosting,close:t.closeFunc,"go-back":!t.document.id&&t.showBackButton?t.goBack:null,"can-show-banner":!1}},[t.isEditingTemplate?r("CButton",{staticClass:"d-nav-button position right save-template-button",staticStyle:{"min-width":"6em","font-size":"16px"},attrs:{slot:"nav-right-action",loading:t.isSavingTemplate,disabled:!t.canDoActions,"icon-left":"template",type:"secondary",thinner:"",rounded:""},on:{click:t.onSaveTemplateClick},slot:"nav-right-action"},[t._v(" "+t._s(t.$t("_common:save",{thing:t.$t("_common:template")}))+" ")]):t._e()],1):t.view==="postSend"?r("PostSend",{attrs:{document:t.document,"on-send-func":t.closeFunc,"on-close-func":t.closeFunc}}):t._e()],1)},hpt=[],mpt=he(ppt,fpt,hpt,!1,null,"2c3d4461");const gpt=mpt.exports,vpt=Object.freeze(Object.defineProperty({__proto__:null,default:gpt},Symbol.toStringTag,{value:"Module"}));Be.use(DY);const Y7=Be.observable({canEdit:!1,isForm:!0,setFormValue:null,removeFormValue:null}),ypt={name:"DocFormSend",components:{SendForm:hY},provide:()=>({viewSettings:Y7,allowSenderSign:!1}),props:{showName:{type:Boolean,default:!0},showSave:{type:Boolean,default:!0},showSchedule:{type:Boolean,default:!0},allowManualDelivery:{type:Boolean,default:!1},allowEditClients:{type:Boolean,default:!0},contentSlot:{type:String,default:null},footerSlot:{type:String,default:null},setFormValue:{type:Function,default:null},removeFormValue:{type:Function,default:null},closeFunc:{type:Function,default:null},beforeSave:{type:Function,default:null},beforeSend:{type:Function,default:null}},data(){return{document:null}},computed:{...Gy({company:"application/company",can:"application/can",rawDoc:"forms/document",isPosting:"documents2/isPosting"})},watch:{rawDoc:{immediate:!0,handler(){this.initDoc()}}},async created(){this.setDocValue&&(Y7.setFormValue=this.setDocValue),this.removeDocValue&&(Y7.removeFormValue=this.removeDocValue)},methods:{...qy({saveDocument:Ue.SAVE_DYNDOC_FORM}),async initDoc(){if(!this.rawDoc)throw new Error("Missing initiated form document");this.document=new fc({data:this.rawDoc,can:this.can,getters:this.$store.getters,updateSender:!0})},setDocValue({key:n,value:t}){return this.setFormValue({key:n,value:t})},removeDocValue(n){return this.removeFormValue(n)},async onSaveDocument({doSend:n=!1}={}){let t=!1;typeof this.beforeSave=="function"&&(t=await this.beforeSave(this.document)),n&&typeof this.beforeSend=="function"&&(t=await this.beforeSend(this.document)),!(t||!await this.saveDocument({doSend:n}))&&this.close()},close(){this.closeFunc()}}};var bpt=function(){var t=this,r=t._self._c;return t.document?r("SendForm",{staticClass:"h-full w-full",attrs:{_document:t.document,_value:{expiresAt:"data.expiresAt",personalMessage:"data.personalMessage",defaultAnswerMethod:"data.defaultAnswerMethod",clients:"clients",reminders:"data.reminders",name:"data.name"},"show-name":t.showName,"show-save":t.showSave,"show-schedule":t.showSchedule,"allow-edit-clients":t.allowEditClients,"allow-manual-delivery":t.allowManualDelivery,"set-form-value":t.setDocValue,"remove-form-value":t.removeDocValue,"on-save-document":t.onSaveDocument,"use-scroll":""}},[t.contentSlot?r("div",{attrs:{slot:"content"},domProps:{textContent:t._s(t.contentSlot)},slot:"content"}):t._e(),t.footerSlot?r("div",{attrs:{slot:"footer"},domProps:{textContent:t._s(t.footerSlot)},slot:"footer"}):t._e()]):r("div",{staticClass:"grid h-full w-full place-items-center"},[r("CIcon",{staticClass:"animate-spin text-gray-400",attrs:{type:"loader",size:28}})],1)},wpt=[],_pt=he(ypt,bpt,wpt,!1,null,null);const xpt=_pt.exports,Cpt=Object.freeze(Object.defineProperty({__proto__:null,default:xpt},Symbol.toStringTag,{value:"Module"})),kpt={i18nOptions:{namespaces:"documentPrint",messages:{en:{title:"Print options",appendAttachments:"Append attachments",appendAttachmentsSub:"Append attachments",hideDocumentAttachmentBlocks:"Hide document attachment blocks",hideDocumentAttachmentBlocksTooltip:"Hide blocks with the type of attachments.",showVerification:"Include verification",showVerificationSub:"Signature verification.",showLast4ssn:"Include the last 4 digits of the personal identification number from the BankID signature.",showEvents:"Show events",buttonText:"Download PDF",preparingPdf:"Preparing PDF...",preparingPdfDone:"PDF is complete",preparingPdfError:"Could not create PDF. Try again."},sv:{title:"Utskriftsinställningar",appendAttachments:"Bifoga bilagor",appendAttachmentsSub:"Inkludera bilagor i slutet av PDF:en.",hideDocumentAttachmentBlocks:"Göm dokumentblock som är bilagor",hideDocumentAttachmentBlocksTooltip:"Dölj blocken av typen bilagor.",showVerification:"Inkludera verifikat",showVerificationSub:"Signaturverifikat.",showLast4ssn:"Inkludera de sista 4-siffrorna i personnummret från BankID-signaturen",showEvents:"Visa händelser",buttonText:"Ladda ner PDF",preparingPdf:"Förbereder PDF...",preparingPdfDone:"PDF är redo",preparingPdfError:"Kunde inte skapa PDF. Pröva igen."}}},name:"DocumentPrint",components:{CCheckbox:Tu},props:{document:{type:Object,required:!0},isSuperUser:{type:Boolean,required:!1}},data(){return{options:{appendAttachments:!0,hideDocumentAttachmentBlocks:!1,showVerification:!0,showEvents:!0,showLast4ssn:!0,forceDoCreatePdf:!1,debugPage:!1,extraTimeout:0},showMoreOptions:!1,omitAttachmentBlockTooltip:{content:'<svg style="margin-top: 2px;" width="193" height="122" viewBox="0 0 193 122" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="193" height="122" rx="5" fill="white"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" font-weight="bold" letter-spacing="0em"><tspan x="13" y="25.5">'+this.$t("_common:attachment_plural").capitalize()+`</tspan></text><path d="M14 33H25.2941L30 38.225V52H14V33Z" fill="#FFC4C4"/><path opacity="0.34" d="M14 60H25.5L30 64.5V79H14V60Z" fill="#42A4FF"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="46.5">${this.$t("_common:file").capitalize()} #1</tspan></text><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="73.5">${this.$t("_common:file").capitalize()} #2</tspan></text><rect x="13" y="87" width="61" height="12" fill="#E2E2E2"/><rect x="13" y="103" width="168" height="6" fill="#E2E2E2"/><rect x="13" y="112" width="151" height="6" fill="#E2E2E2"/><rect x="13" y="3" width="97" height="6" fill="#E2E2E2"/><rect x="14" y="47" width="16" height="5" fill="#FF1515"/><rect x="14" y="74" width="16" height="5" fill="#42A4FF"/></svg><div style="max-width: 193px; padding: 2px 0 8px 0;">
2837
+ }`}],staticStyle:{top:"-8px",right:"-4px"},attrs:{icon:"info",type:"none",pattern:"tertiary",size:"small"},nativeOn:{click:function(o){o.stopPropagation()}}}):r("CDropdown",{staticStyle:{top:"-8px",right:"-4px"},attrs:{"append-to-body":""},nativeOn:{click:function(o){o.stopPropagation()}}},[r("CButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("icon.tooltip"),expression:"$t('icon.tooltip')"}],attrs:{slot:"trigger",icon:"more-vertical",type:"none",pattern:"tertiary",size:"small"},slot:"trigger"}),t.onEditTemplate?r("CDropdownItem",{attrs:{"icon-left":"template-color"},on:{click:function(o){return t.onEditTemplate(a.id)}}},[t._v(" "+t._s(t.$t("_common:edit",{thing:t.$t("_common:template")}))+" ")]):t._e(),r("CDropdownItem",{attrs:{"icon-props":{size:16},"icon-left":"edit"},on:{click:function(o){return t.openTemplateFormModal({template:a})}}},[t._v(" "+t._s(t.$t("_common:change",{thing:t.$t("_common:name")}))+" ")]),r("CDropdownItem",{attrs:{separator:""}}),r("CDropdownItem",{attrs:{"icon-props":{size:16},"icon-left":"link"},on:{click:function(o){return t.copyToClipboard(a.id)}}},[t._v(" "+t._s(t.$t("_common:share",{thing:t.$t("_common:link")}))+" ")]),r("CDropdownItem",{attrs:{separator:""}}),r("CDropdownItem",{attrs:{"icon-props":{size:16,stroke:"hsl(360, 100%, 60%)"},"icon-left":"trash"},on:{click:function(o){return t.removeTemplate({template:a})}}},[t._v(" "+t._s(t.$t("_common:remove"))+" ")])],1)],1)}),1)]}}])})],1),t.showGallery?[r("GalleryLogic",{attrs:{"fetch-gallery":t.fetchGallery,"use-template":t.select,"show-template-author":t.showGalleryTemplateAuthor,"modal-props":t.galleryModalProps,"gallery-category":t.galleryCategory},scopedSlots:t._u([{key:"default",fn:function({galleryItems:i,categories:a,activeCategory:o,selectCategory:s,selectGalleryItem:c}){return[r("div",{staticStyle:{width:"100%","padding-bottom":"5em"}},[r("div",{staticClass:"section-title w-full"},[r("div",{staticClass:"flex items-center justify-between"},[r("div",[t._v(t._s(t.$t("gallery")))]),r("CDropdown",{staticStyle:{"margin-left":"calc(0.5 * var(--rem))"},nativeOn:{click:function(l){l.stopPropagation()}}},[r("CButton",{attrs:{slot:"trigger",size:"small",type:"none",pattern:"secondary","icon-right":"chevron-down"},slot:"trigger"},[t._v(" "+t._s(o?o.label:"")+" ")]),t._l(a,function(l){return r("CDropdownItem",{key:l.key,attrs:{"icon-right":o&&o.key===l.key?"check":""},on:{click:function(u){return s(l)}}},[t._v(" "+t._s(l.label)+" ")])})],2)],1),r("div",{staticClass:"section-subtitle",domProps:{innerHTML:t._s(t.$t("gallerySubTitle"))}})]),r("HorizontalScroll",{staticClass:"template-list"},t._l(i,function(l){return r("DocumentIcon",{key:l.id,staticClass:"template-item",attrs:{"is-placeholder":l.placeholder,media:{type:"image",resourceUrl:l.backgroundUrl},name:l.name},on:{click:function(u){l.placeholder||c(l)}}},[l.product?r("div",{staticClass:"bg-primary-500 border-primary-700/40 rounded border p-1 text-xs font-semibold leading-none text-white shadow-lg",attrs:{slot:"badge"},slot:"badge"},[l.product.isPurchased?r("CIcon",{attrs:{type:"check",size:"14","stroke-width":"3"}}):r("div",{domProps:{textContent:t._s(l.product.price)}})],1):t._e()])}),1)],1)]}}],null,!1,3171552362)})]:t._e(),r("DocumentRecent",{staticStyle:{width:"100%","padding-bottom":"5em"},on:{"use-doc-template":t.select,"save-template":t.openTemplateFormModal}},[r("div",{staticClass:"section-title",staticStyle:{flex:"1 1 auto","padding-bottom":"0.5em"}},[r("div",[t._v(t._s(t.$t("recent")))]),r("div",{staticClass:"section-subtitle"},[t._v(" "+t._s(t.$t("recentSubTitle"))+" ")])])])],2)])},Gut=[],qut=he(Hut,Wut,Gut,!1,null,"5c1a776a");const Yut=qut.exports,Kut={name:"CAutocomplete",components:{CInput:Ws},mixins:[U4],inheritAttrs:!1,props:{value:{type:[Number,String],default:null},data:{type:Array,default:()=>[]},field:{type:String,default:"value"},keepFirst:Boolean,clearOnSelect:Boolean,openOnFocus:Boolean,customFormatter:{type:Function,default:()=>{}},checkInfiniteScroll:Boolean,keepOpen:Boolean,clearable:Boolean,maxHeight:{type:[String,Number],default:null},dropdownPosition:{type:String,default:"auto"},iconRight:{type:String,default:null},iconRightClickable:Boolean,appendToBody:Boolean},data(){return{selected:null,hovered:null,isActive:!1,newValue:this.value,newAutocomplete:this.autocomplete||"off",isListInViewportVertically:!0,hasFocus:!1,style:{},_isAutocomplete:!0,_elementRef:"input",_bodyEl:void 0}},computed:{whiteList(){const n=[];if(n.push(this.$refs.input.$el.querySelector("input")),n.push(this.$refs.dropdown),this.$refs.dropdown!==void 0){const t=this.$refs.dropdown.querySelectorAll("*");for(const r of t)n.push(r)}if(this.$parent.$data._isTaginput){n.push(this.$parent.$el);const t=this.$parent.$el.querySelectorAll("*");for(const r of t)n.push(r)}return n},hasDefaultSlot(){return!!this.$scopedSlots.default},hasEmptySlot(){return!!this.$slots.empty},hasHeaderSlot(){return!!this.$slots.header},hasFooterSlot(){return!!this.$slots.footer},isOpenedTop(){return this.dropdownPosition==="top"||this.dropdownPosition==="auto"&&!this.isListInViewportVertically},newIconRight(){return this.clearable&&this.newValue?"close-circle":this.iconRight},newIconRightClickable(){return this.clearable?!0:this.iconRightClickable},contentStyle(){return{maxHeight:this.maxHeight===void 0?null:isNaN(this.maxHeight)?this.maxHeight:`${this.maxHeight}px`}},isDropdownOpen(){return this.isActive&&(this.data.length>0||this.hasEmptySlot||this.hasHeaderSlot)}},watch:{isActive(n){this.dropdownPosition==="auto"&&(n?this.calcDropdownInViewportVertical():setTimeout(()=>{this.calcDropdownInViewportVertical()},100)),n&&this.$nextTick(()=>this.setHovered(null))},newValue(n){this.$emit("input",n);const t=this.getValue(this.selected);t&&t!==n&&this.setSelected(null,!1),this.hasFocus&&(!this.openOnFocus||n)&&(this.isActive=!!n)},value(n){this.newValue=n},data(n){this.keepFirst&&this.selectFirstOption(n)}},created(){typeof window<"u"&&(document.addEventListener("click",this.clickedOutside),this.dropdownPosition==="auto"&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted(){if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){const n=this.$refs.dropdown.querySelector(".dropdown-content");n.addEventListener("scroll",()=>this.checkIfReachedTheEndOfScroll(n))}this.appendToBody&&(this.$data._bodyEl=JH(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy(){typeof window<"u"&&(document.removeEventListener("click",this.clickedOutside),this.dropdownPosition==="auto"&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")&&this.$refs.dropdown.querySelector(".dropdown-content").removeEventListener("scroll",this.checkIfReachedTheEndOfScroll),this.appendToBody&&ZH(this.$data._bodyEl)},methods:{setHovered(n){n!==void 0&&(this.hovered=n)},setSelected(n,t=!0){n!==void 0&&(this.selected=n,this.$emit("select",this.selected),this.selected!==null&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected),this.setHovered(this.clearOnSelect?null:this.hovered)),t&&this.$nextTick(()=>{this.isActive=!1}),this.checkValidity())},selectFirstOption(n){this.$nextTick(()=>{n.length?(this.openOnFocus||this.newValue!==""&&this.hovered!==n[0])&&this.setHovered(n[0]):this.setHovered(null)})},enterPressed(n){this.isDropdownOpen&&(n.preventDefault(),this.hovered!==null&&this.setSelected(this.hovered,!this.keepOpen))},tabPressed(){if(this.hovered===null){this.isActive=!1;return}this.setSelected(this.hovered,!this.keepOpen)},clickedOutside(n){var r;const t=((r=n.path)==null?void 0:r[0])||n.target;this.whiteList.indexOf(t)<0&&(this.isActive=!1)},getValue(n){if(n!==null)return typeof this.customFormatter<"u"?this.customFormatter(n):typeof n=="object"?QYe(n,this.field):n},checkIfReachedTheEndOfScroll(n){n.clientHeight!==n.scrollHeight&&n.scrollTop+n.clientHeight>=n.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical(){this.$nextTick(()=>{if(this.$refs.dropdown===void 0)return;const n=this.$refs.dropdown.getBoundingClientRect();this.isListInViewportVertically=n.top>=0&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight),this.appendToBody&&this.updateAppendToBody()})},keyArrows(n){const t=n==="down"?1:-1;if(this.isActive){let r=this.data.indexOf(this.hovered)+t;r=r>this.data.length-1?this.data.length:r,r=r<0?0:r,this.setHovered(this.data[r]);const i=this.$refs.dropdown.querySelector(".dropdown-content"),a=i.querySelectorAll("a.dropdown-item:not(.is-disabled)")[r];if(!a)return;const o=i.scrollTop,s=i.scrollTop+i.clientHeight-a.clientHeight;a.offsetTop<o?i.scrollTop=a.offsetTop:a.offsetTop>=s&&(i.scrollTop=a.offsetTop-i.clientHeight+a.clientHeight)}else this.isActive=!0},focused(n){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.data)),this.hasFocus=!0,this.$emit("focus",n)},onBlur(n){this.hasFocus=!1,this.$emit("blur",n)},onInput(){const n=this.getValue(this.selected);n&&n===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick(n){this.clearable?this.newValue="":this.$emit("icon-right-click",n)},checkValidity(){this.useHtml5Validation&&this.$nextTick(()=>{this.checkHtml5Validity()})},updateAppendToBody(){const n=this.$refs.dropdown,t=this.$refs.input.$el;if(n&&t){const r=this.$data._bodyEl;r.classList.forEach(s=>r.classList.remove(s)),r.classList.add("autocomplete"),r.classList.add("control"),this.expandend&&r.classList.add("is-expandend");const i=t.getBoundingClientRect();let a=i.top+window.scrollY;const o=i.left+window.scrollX;this.isOpenedTop?a-=n.clientHeight:a+=t.clientHeight,this.style={position:"absolute",top:`${a}px`,left:`${o}px`,width:`${t.clientWidth}px`,maxWidth:`${t.clientWidth}px`,zIndex:"99"}}}}};var Zut=function(){var t=this,r=t._self._c;return r("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[r("CInput",t._b({ref:"input",attrs:{size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1,type:"text"},on:{input:t.onInput,focus:t.focused,blur:t.onBlur,"icon-right-click":t.rightIconClick,"icon-click":i=>t.$emit("icon-click",i)},nativeOn:{keyup:function(i){if(!i.type.indexOf("key")&&t._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;i.preventDefault(),t.isActive=!1},keydown:[function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"tab",9,i.key,"Tab")?null:t.tabPressed.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.enterPressed.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),t.keyArrows("up"))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),t.keyArrows("down"))}]},model:{value:t.newValue,callback:function(i){t.newValue=i},expression:"newValue"}},"CInput",t.$attrs,!1)),r("transition",{attrs:{name:"fade"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isDropdownOpen,expression:"isDropdownOpen"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":t.isOpenedTop&&!t.appendToBody},style:t.style},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:t.contentStyle},[t.hasHeaderSlot?r("div",{staticClass:"dropdown-item"},[t._t("header")],2):t._e(),t._l(t.data,function(i,a){return r("a",{key:a,staticClass:"dropdown-item",class:{"is-hovered":i===t.hovered},on:{click:function(o){return t.setSelected(i,void 0,o)}}},[t.hasDefaultSlot?t._t("default",null,{option:i,index:a}):r("span",[t._v(" "+t._s(t.getValue(i,!0))+" ")])],2)}),t.data.length===0&&t.hasEmptySlot?r("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t.hasFooterSlot?r("div",{staticClass:"dropdown-item"},[t._t("footer")],2):t._e()],2)])])],1)},Jut=[],Xut=he(Kut,Zut,Jut,!1,null,null);const Qut=Xut.exports,edt={name:"CCallout",components:{CButton:bp},props:{title:{type:String,default:null},size:{type:String,default:null},type:{type:String,default:null},padding:{type:String,default:null},closable:{type:Boolean,default:!1},legacy:{type:Boolean,default:!0},icon:{type:String,default:null}}};var tdt=function(){var t=this,r=t._self._c;return r("transition",{attrs:{name:"fade"}},[t.legacy?r("article",{staticClass:"message",class:[`is-${t.type}`,`is-${t.size}`]},[r("section",{staticClass:"message-body",style:{padding:t.padding}},[t.title?r("header",{staticClass:"message-header"},[t._v(" "+t._s(t.title)+" ")]):t._e(),r("div",{staticClass:"media"},[r("div",{staticClass:"media-content"},[t._t("default")],2)])]),t.closable?r("CButton",{staticStyle:{right:"calc(0.5 * var(--rem))",position:"absolute",top:"calc(0.5 * var(--rem))"},attrs:{type:t.type,size:"small",pattern:"secondary",circle:"",icon:"x"},on:{click:function(i){return t.$emit("close")}}}):t._e()],1):r("div",{staticClass:"flex rounded-md border border-gray-200 bg-gray-50 p-4"},[t.icon?r("div",{staticClass:"-mt-px mr-3"},[r("CIcon",{attrs:{type:t.icon,size:"16"}})],1):t._e(),r("div",[r("div",[t._t("title",function(){return[r("div",{staticClass:"font-medium"},[t._v(t._s(t.title))])]})],2),r("div",{staticClass:"text-gray-800"},[t._t("default",function(){return[r("div",{staticClass:"mb-2 text-gray-500"},[t._v(t._s(t.text))])]})],2)])])])},ndt=[],rdt=he(edt,tdt,ndt,!1,null,"2e9e865c");const q7=rdt.exports,idt={name:"CMessage",props:{type:{type:String,default:"secondary"},badge:{type:String,default:""},text:{type:String,default:""}}};var adt=function(t,r){return t("div",{class:[r.data.class,r.data.staticClass],staticStyle:{padding:"0.75em 1em",display:"flex","align-items":"flex-start","border-radius":"0.6em","background-color":"hsl(var(--gray-color-100) / 1)"},style:{...r.data.staticStyle}},[t("div",{class:[`has-background-${r.props.type}`],staticStyle:{display:"inline-block",padding:"0.5em","border-radius":"0.45em","font-weight":"700",color:"white","line-height":"1","font-size":"12px","margin-right":"1.25em"}},[r._v(" "+r._s(r.props.badge||r.parent.$t("components:cling.message.tip"))+" ")]),t("div",{staticStyle:{color:"hsl(0, 0%, 25%)"}},[r.props.text?[r._v(" "+r._s(r.props.text)+" ")]:r._e(),r._t("default")],2)])},odt=[],sdt=he(idt,adt,odt,!0,null,"9be3b227");const wY=sdt.exports,ldt={name:"FlagIcon",props:{region:{type:String,default:null},title:{type:String,default:null},isSquared:{type:Boolean,default:!1}},mounted(){var o,s;const n="FLAG_ICONS",t=(s=(o=this.$el).getRootNode)==null?void 0:s.call(o),i=(t==null?void 0:t.toString())==="[object ShadowRoot]"?t:document.head;if(i.querySelector(`#${n}`))return;const a=document.createElement("link");a.id=n,a.rel="stylesheet",a.type="text/css",a.href="https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css",a.media="all",i.appendChild(a)}};var cdt=function(){var t=this,r=t._self._c;return t.region?r("span",{staticClass:"fi",class:[`fi-${t.region.toLowerCase()}`,{fis:t.isSquared}],attrs:{title:t.title||t.region}}):t._e()},udt=[],ddt=he(ldt,cdt,udt,!1,null,null);const _Y=ddt.exports,pdt={name:"CPhoneInput",components:{Flag:_Y,CInput:Ws,CDropdown:$f,CDropdownItem:Af,CButton:bp,CField:a8,SmartList:sb},props:{value:{type:[String,Number],default:""},region:{type:String,default:""},defaultRegion:{type:String,required:!0},label:{type:String,default:""},labelPosition:{type:String,default:""}},data(){return{internalPrefix:null,searchQuery:""}},computed:{defaultPrefix(){return Vr[this.internalRegion].callingCode},currentRegion(){return this.getRegionByCallingCode(this.prefix)},internalRegion:{get(){if(this.region)return this.region;if(this.value){const n=(Object.keys(Vr)||[]).find(t=>Vr[t].callingCode&&this.value&&this.value.startsWith(Vr[t].callingCode));if(n)return n}return this.internalPrefix?this.getRegionByCallingCode(this.internalPrefix):this.defaultRegion},set(n){this.$emit("update:region",n),this.updateValue({prefix:Vr[n].callingCode})}},prefix(){if(!this.value)return this.internalPrefix||this.defaultPrefix;const n=(Object.keys(Vr)||[]).find(t=>Vr[t].callingCode&&this.value&&this.value.startsWith(Vr[t].callingCode));return n?Vr[n].callingCode:this.defaultPrefix},phone:{get(){return this.prefix&&this.value&&this.value.startsWith(this.prefix)?this.value.substring(this.prefix.length):this.value},set(n){this.updateValue({phone:n})}},sortedRegions(){return(Object.keys(Vr)||[]).map(n=>({key:n,title:`${Vr[n].name} (${n})`,callingCode:Vr[n].callingCode})).sort((n,t)=>n.title.localeCompare(t.title))}},methods:{getRegionByCallingCode(n){return n?(Object.keys(Vr)||[]).find(r=>n===Vr[r].callingCode):null},updateValue({prefix:n,phone:t}){const r=n!==void 0?n:this.prefix||"",i=t!==void 0?t:this.phone||"",a=`${r}${i}`;a!==r?(this.$emit("input",a),this.region||this.$emit("update:region",this.internalRegion),this.internalPrefix=null):(this.internalPrefix=r,this.$emit("input",""))}}};var fdt=function(){var t=this,r=t._self._c;return r("CField",{staticClass:"has-addons",attrs:{expanded:""}},[r("div",{staticClass:"control"},[r("SmartList",{attrs:{query:t.searchQuery,items:t.sortedRegions},scopedSlots:t._u([{key:"default",fn:function({items:i}){return[r("CDropdown",{staticClass:"control",staticStyle:{height:"100%"},attrs:{size:t.$attrs.size,disabled:t.$attrs.disabled,"menu-styling":{maxWidth:"300px"},scrollable:!0,position:"is-bottom-right","max-height":"240px"},model:{value:t.internalRegion,callback:function(a){t.internalRegion=a},expression:"internalRegion"}},[r("CButton",{staticStyle:{height:"100%"},attrs:{slot:"trigger",size:t.$attrs.size,type:"none",pattern:"secondary"},slot:"trigger"},[r("Flag",{staticStyle:{"margin-right":"0.35em"},attrs:{region:t.internalRegion}}),t._v(" "+t._s(t.prefix)+" ")],1),r("CInput",{staticStyle:{"margin-bottom":"0.25em"},attrs:{slot:"header",placeholder:t.$t("_common:search"),filled:""},slot:"header",model:{value:t.searchQuery,callback:function(a){t.searchQuery=a},expression:"searchQuery"}}),t._l(i,function({key:a,title:o,callingCode:s}){return r("CDropdownItem",{key:a,staticClass:"truncate-text",attrs:{value:a}},[r("Flag",{staticStyle:{"margin-right":"0.75em",flex:"0 0 auto"},attrs:{region:a,title:o}}),r("span",{staticClass:"truncate-text"},[t._v(" "+t._s(o)+" ("+t._s(s)+") ")])],1)})],2)]}}])})],1),r("CField",{staticClass:"control",attrs:{label:t.label,"label-position":t.labelPosition,expanded:""}},[r("CInput",t._b({attrs:{size:t.$attrs.size,placeholder:t.$attrs.placeholder,type:"tel"},model:{value:t.phone,callback:function(i){t.phone=i},expression:"phone"}},"CInput",{...t.$attrs,...t.$props},!1))],1)],1)},hdt=[],mdt=he(pdt,fdt,hdt,!1,null,null);const xY=mdt.exports,gdt={name:"CRadio",mixins:[V4]};var vdt=function(){var t=this,r=t._self._c;return r("label",{ref:"label",staticClass:"b-radio radio",class:[`is-${t.size}`,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.label.click())}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,required:t.required,name:t.name,type:"radio"},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(i){i.stopPropagation()},change:function(i){t.computedValue=t.nativeValue}}}),r("span",{staticClass:"check",class:`is-${t.type}`}),r("span",{staticClass:"control-label"},[t._t("default")],2)])},ydt=[],bdt=he(gdt,vdt,ydt,!1,null,null);const CY=bdt.exports,wdt={name:"CRadioButton",components:{CButton:bp},mixins:[V4],props:{type:{type:String,default:"primary"},expanded:Boolean},data(){return{isFocused:!1}}};var _dt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[r("CButton",{ref:"label",staticClass:"c-radio radio button",class:[{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{tag:"label",type:t.newValue===t.nativeValue?t.type:null,size:t.size,disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.$el.label.click())}}},[t._t("default"),r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,required:t.required,name:t.name,type:"radio"},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(i){i.stopPropagation()},focus:function(i){t.isFocused=!0},blur:function(i){t.isFocused=!1},change:function(i){t.computedValue=t.nativeValue}}})],2)],1)},xdt=[],Cdt=he(wdt,_dt,xdt,!1,null,null);const kY=Cdt.exports,kdt={name:"CSelect",mixins:[U4],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},placeholder:{type:String,default:""},multiple:Boolean,selectClass:{type:[String,Object,Array],default:""},nativeSize:{type:[String,Number],default:null}},data(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get(){return this.selected},set(n){this.selected=n,this.$emit("input",n),!this.isValid&&this.checkHtml5Validity()}},spanClasses(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":this.selected===null}]}},watch:{value(n){this.selected=n,!this.isValid&&this.checkHtml5Validity()}}};var Sdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[r("span",{staticClass:"select",class:t.spanClasses},[r("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",class:t.selectClass,attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(i){t.$emit("blur",i)&&t.checkHtml5Validity()},focus:function(i){return t.$emit("focus",i)},change:function(i){var a=Array.prototype.filter.call(i.target.options,function(o){return o.selected}).map(function(o){var s="_value"in o?o._value:o.value;return s});t.computedValue=i.target.multiple?a:a[0]}}},"select",t.$attrs,!1),[t.placeholder&&t.computedValue==null?r("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v(" "+t._s(t.placeholder)+" ")]):t._e(),t._t("default")],2)])])},Tdt=[],Edt=he(kdt,Sdt,Tdt,!1,null,"23e48013");const SY=Edt.exports;var $dt=he({name:"CSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!1},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},hidden:{type:[Boolean,String],default:!1},color:{type:String,default:null}},render(n,t){if(!t.props.active)return;const r=[],i=t.props.width,a=t.props.height;for(let o=0;o<t.props.count;o++)r.push(n("div",{staticClass:"c-skeleton-item",class:{"is-rounded":t.props.rounded},key:o,style:{height:a===void 0?null:isNaN(a)?a:a+"px",width:i===void 0?null:isNaN(i)?i:i+"px",borderRadius:t.props.circle?"50%":null,background:t.props.color?t.props.color:null}}));return n("div",{staticStyle:t.data.staticStyle,staticClass:"c-skeleton",class:[t.data.staticClass,{"is-animated":t.props.animated,"is-invisible":t.props.hidden}]},r)}},null,null,!1,null,null);const TY=$dt.exports,Adt={name:"CSliderThumb",inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},customFormatter:{type:Function,default:null}},data(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled(){return this.$parent.disabled},max(){return this.$parent.max},min(){return this.$parent.min},step(){return this.$parent.step},precision(){return this.$parent.precision},currentPosition(){return`${(this.value-this.min)/(this.max-this.min)*100}%`},wrapperStyle(){return{left:this.currentPosition}},tooltipLabel(){return typeof this.customFormatter=="function"?this.customFormatter(this.value):this.value.toString()}},methods:{onFocus(){this.isFocused=!0},onBlur(){this.isFocused=!1},onButtonDown(n){this.disabled||(n.preventDefault(),this.onDragStart(n),typeof window<"u"&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart(n){this.dragging=!0,this.$emit("dragstart"),n.type==="touchstart"&&(n.clientX=n.touches[0].clientX),this.startX=n.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging(n){if(this.dragging){n.type==="touchmove"&&(n.clientX=n.touches[0].clientX);const t=(n.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+t,this.setPosition(this.newPosition)}},onDragEnd(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),typeof window<"u"&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition(n){if(n===null||isNaN(n))return;n<0?n=0:n>100&&(n=100);const t=100/((this.max-this.min)/this.step);let i=Math.round(n/t)*t/100*(this.max-this.min)+this.min;i=parseFloat(i.toFixed(this.precision)),this.$emit("input",i),!this.dragging&&i!==this.oldValue&&(this.oldValue=i)}}};var Odt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-slider-thumb-wrapper",class:{"is-dragging":t.dragging},style:t.wrapperStyle},[r("div",t._b({staticClass:"c-slider-thumb",attrs:{tabindex:t.disabled?!1:0},on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.onFocus,blur:t.onBlur,keydown:[function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:(i.preventDefault(),t.onLeftKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:(i.preventDefault(),t.onRightKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),t.onLeftKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),t.onRightKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"home",void 0,i.key,void 0)?null:(i.preventDefault(),t.onHomeKeyDown.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"end",void 0,i.key,void 0)?null:(i.preventDefault(),t.onEndKeyDown.apply(null,arguments))}]}},"div",t.$attrs,!1))])},Ddt=[],Mdt=he(Adt,Odt,Ddt,!1,null,null);const Pdt=Mdt.exports,Idt={name:"CSliderTick",props:{value:{type:Number,default:0}},computed:{position(){const n=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return n>=0&&n<=100?n:0},hidden(){return this.value===this.$parent.min||this.value===this.$parent.max}},created(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")},methods:{getTickStyle(n){return{left:`${n}%`}}}};var Rdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-slider-tick",class:{"is-tick-hidden":t.hidden},style:t.getTickStyle(t.position)},[t.$slots.default?r("span",{staticClass:"c-slider-tick-label"},[t._t("default")],2):t._e()])},Ldt=[],Fdt=he(Idt,Rdt,Ldt,!1,null,null);const Ndt=Fdt.exports,Bdt={name:"CSlider",components:{CSliderThumb:Pdt,CSliderTick:Ndt},props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"primary"},size:{type:String,default:""},ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:{type:String,default:""},rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:{type:Function,default:null},ariaLabel:{type:[String,Array],default:""},biggerSliderFocus:{type:Boolean,default:!1}},data(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType(){return this.tooltipType?this.tooltipType:this.type},tickValues(){if(!this.ticks||this.min>this.max||this.step===0)return[];const n=[];for(let t=this.min+this.step;t<this.max;t+=this.step)n.push(t);return n},minValue(){return Math.min(this.value1,this.value2)},maxValue(){return Math.max(this.value1,this.value2)},barSize(){return this.isRange?`${100*(this.maxValue-this.minValue)/(this.max-this.min)}%`:`${100*(this.value1-this.min)/(this.max-this.min)}%`},barStart(){return this.isRange?`${100*(this.minValue-this.min)/(this.max-this.min)}%`:"0%"},precision(){const n=[this.min,this.max,this.step].map(t=>{const r=`${t}`.split(".")[1];return r?r.length:0});return Math.max(...n)},barStyle(){return{width:this.barSize,left:this.barStart}},rootClasses(){return{"is-rounded":this.rounded,"is-dragging":this.dragging,"is-disabled":this.disabled,"slider-focus":this.biggerSliderFocus}}},watch:{value(n){this.setValues(n)},value1(){this.onInternalValueUpdate()},value2(){this.onInternalValueUpdate()},min(){this.setValues(this.value)},max(){this.setValues(this.value)}},created(){this.isThumbReversed=!1,this.isTrackClickDisabled=!1,this.setValues(this.value)},methods:{setValues(n){if(!(this.min>this.max))if(Array.isArray(n)){this.isRange=!0;const t=typeof n[0]!="number"||isNaN(n[0])?this.min:d8(n[0],this.min,this.max),r=typeof n[1]!="number"||isNaN(n[1])?this.max:d8(n[1],this.min,this.max);this.value1=this.isThumbReversed?r:t,this.value2=this.isThumbReversed?t:r}else this.isRange=!1,this.value1=isNaN(n)?this.min:d8(n,this.min,this.max),this.value2=null},onInternalValueUpdate(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),(!this.lazy||!this.dragging)&&this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick(n){if(this.disabled||this.isTrackClickDisabled)return;const t=this.$refs.slider.getBoundingClientRect().left,r=(n.clientX-t)/this.sliderSize()*100,i=this.min+r*(this.max-this.min)/100,a=Math.abs(i-this.value1);if(this.isRange){const o=Math.abs(i-this.value2);if(a<=o){if(a<this.step/2)return;this.$refs.button1.setPosition(r)}else{if(o<this.step/2)return;this.$refs.button2.setPosition(r)}}else{if(a<this.step/2)return;this.$refs.button1.setPosition(r)}this.emitValue("change")},onDragStart(){this.dragging=!0,this.$emit("dragstart")},onDragEnd(){this.isTrackClickDisabled=!0,setTimeout(()=>{this.isTrackClickDisabled=!1},0),this.dragging=!1,this.$emit("dragend"),this.lazy&&this.emitValue("input")},emitValue(n){this.$emit(n,this.isRange?[this.minValue,this.maxValue]:this.value1)}}};var jdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-slider",class:[`is-${t.size}`,`is-${t.type}`,t.rootClasses],on:{click:t.onSliderClick}},[r("div",{ref:"slider",staticClass:"c-slider-track"},[r("div",{staticClass:"c-slider-fill",style:t.barStyle}),t.ticks?t._l(t.tickValues,function(i,a){return r("CSliderTick",{key:a,attrs:{value:i}})}):t._e(),t._t("default"),r("CSliderThumb",{ref:"button1",attrs:{type:`is-${t.newTooltipType}`,tooltip:t.tooltip,"custom-formatter":t.customFormatter,"aria-valuenow":t.value1,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[0]:t.ariaLabel,"aria-disabled":t.disabled,role:"slider","aria-orientation":"horizontal"},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value1,callback:function(i){t.value1=i},expression:"value1"}}),t.isRange?r("CSliderThumb",{ref:"button2",attrs:{type:t.newTooltipType,tooltip:t.tooltip,"custom-formatter":t.customFormatter,"aria-valuenow":t.value2,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-label":Array.isArray(t.ariaLabel)?t.ariaLabel[1]:"","aria-disabled":t.disabled,role:"slider","aria-orientation":"horizontal"},on:{dragstart:t.onDragStart,dragend:t.onDragEnd},model:{value:t.value2,callback:function(i){t.value2=i},expression:"value2"}}):t._e()],2)])},zdt=[],Vdt=he(Bdt,jdt,zdt,!1,null,null);const EY=Vdt.exports,Udt={name:"CSwitch",props:{value:{type:[String,Number,Boolean,Function,Object,Array,Date],default:null},nativeValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:null},disabled:Boolean,type:{type:String,default:""},name:{type:String,default:""},required:Boolean,size:{type:String,default:""},trueValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array,Date],default:!1},rounded:{type:Boolean,default:!0}},data(){return{newValue:this.value}},computed:{computedValue:{get(){return this.newValue},set(n){this.newValue=n,this.$emit("input",n)}},newClass(){return[`is-${this.size}`,{"is-disabled":this.disabled,"is-rounded":this.rounded}]}},watch:{value(n){this.newValue=n}},methods:{focus(){this.$refs.input.focus()}}};var Hdt=function(){var t=this,r=t._self._c;return r("label",{ref:"label",staticClass:"switch",class:t.newClass,attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:(i.preventDefault(),t.$refs.label.click())}}},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{disabled:t.disabled,name:t.name,required:t.required,"true-value":t.trueValue,"false-value":t.falseValue,type:"checkbox"},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(i){i.stopPropagation()},change:function(i){var a=t.computedValue,o=i.target,s=o.checked?t.trueValue:t.falseValue;if(Array.isArray(a)){var c=t.nativeValue,l=t._i(a,c);o.checked?l<0&&(t.computedValue=a.concat([c])):l>-1&&(t.computedValue=a.slice(0,l).concat(a.slice(l+1)))}else t.computedValue=s}}}),r("span",{staticClass:"check",class:[`is-${t.type}`]}),r("span",{staticClass:"control-label"},[t._t("default")],2)])},Wdt=[],Gdt=he(Udt,Hdt,Wdt,!1,null,"4cdd239d");const $Y=Gdt.exports;var qdt=he({name:"CTabItem",props:{label:String,icon:String,iconPack:String,disabled:Boolean,visible:{type:Boolean,default:!0},value:[String,Number]},data(){return{isActive:!1,transitionName:null,_isTabItem:!0}},created(){if(!this.$parent.$data._isTabs)throw this.$destroy(),new Error("You should wrap bTabItem on a bTabs");this.$parent.refreshSlots()},beforeDestroy(){this.$parent.refreshSlots()},methods:{activate(n,t){this.transitionName=t<n?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!0},deactivate(n,t){this.transitionName=t<n?this.$parent.vertical?"slide-down":"slide-next":this.$parent.vertical?"slide-up":"slide-prev",this.isActive=!1}},render(n){if(this.$parent.destroyOnHide&&(!this.isActive||!this.visible))return;const t=n("div",{directives:[{name:"show",value:this.isActive&&this.visible}],class:"tab-item"},this.$slots.default);return this.$parent.animated?n("transition",{props:{name:this.transitionName,mode:"out-in"},on:{"before-enter":()=>{this.$parent.isTransitioning=!0},"after-enter":()=>{this.$parent.isTransitioning=!1}}},[t]):t}},null,null,!1,null,null);const AY=qdt.exports,Ydt={name:"CTabs",components:{CSlotComponent:{name:"CSlotComponent",props:{component:{type:Object,required:!0},name:{type:String,default:"default"},scoped:{type:Boolean},props:{type:Object},tag:{type:String,default:"div"},event:{type:String,default:"hook:updated"}},methods:{refresh(){this.$forceUpdate()},isVueComponent(){return this.component&&this.component._isVue}},created(){this.isVueComponent()&&this.component.$on(this.event,this.refresh)},beforeDestroy(){this.isVueComponent()&&this.component.$off(this.event,this.refresh)},render(n){if(this.isVueComponent())return n(this.tag,{},this.scoped?this.component.$scopedSlots[this.name](this.props):this.component.$slots[this.name])}}},props:{value:{type:[Number,String],default:null},expanded:Boolean,type:{type:String,default:null},size:{type:String,default:null},position:{type:String,validator(n){return["left","right","center"].indexOf(n)>-1},default:null},animated:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1},vertical:Boolean,multiline:Boolean},data(){return{activeTab:0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isTabs:!0}},computed:{mainClasses(){return{"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline,[`is-${this.position}`]:this.position&&this.vertical}},navClasses(){return[this.type,{[`is-${this.size}`]:!!this.size,[`is-${this.position}`]:this.position&&!this.vertical,"is-fullwidth":this.expanded,"is-toggle-rounded is-toggle":this.type==="is-toggle-rounded"}]},tabItems(){return this.defaultSlots.filter(n=>n.componentInstance&&n.componentInstance.$data&&n.componentInstance.$data._isTabItem).map(n=>n.componentInstance)}},watch:{value(n){const t=this.getIndexByValue(n,n);this.changeTab(t)},tabItems(){if(this.activeTab<this.tabItems.length){let n=this.activeTab;this.tabItems.map((t,r)=>{t.isActive&&(n=r,n<this.tabItems.length&&(this.tabItems[n].isActive=!1))}),this.tabItems[this.activeTab].isActive=!0}else this.activeTab>0&&this.changeTab(this.activeTab-1)}},mounted(){this.activeTab=this.getIndexByValue(this.value||0),this.activeTab<this.tabItems.length&&(this.tabItems[this.activeTab].isActive=!0),this.refreshSlots()},methods:{changeTab(n){this.activeTab===n||this.tabItems[n]===void 0||(this.activeTab<this.tabItems.length&&this.tabItems[this.activeTab].deactivate(this.activeTab,n),this.tabItems[n].activate(this.activeTab,n),this.activeTab=n,this.$emit("change",this.getValueByIndex(n)))},tabClick(n){this.activeTab!==n&&(this.$emit("input",this.getValueByIndex(n)),this.changeTab(n))},refreshSlots(){this.defaultSlots=this.$slots.default||[]},getIndexByValue(n){const t=this.tabItems.map(r=>r.$options.propsData?r.$options.propsData.value:void 0).indexOf(n);return t>=0?t:n},getValueByIndex(n){const{propsData:t}=this.tabItems[n].$options;return t&&t.value?t.value:n}}};var Kdt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"c-tabs",class:t.mainClasses},[r("nav",{staticClass:"tabs",class:t.navClasses},[r("ul",t._l(t.tabItems,function(i,a){return r("li",{directives:[{name:"show",rawName:"v-show",value:i.visible,expression:"tabItem.visible"}],key:a,class:{"is-active":t.activeTab===a,"is-disabled":i.disabled}},[i.$slots.header?r("CSlotComponent",{attrs:{component:i,name:"header",tag:"a"},nativeOn:{click:function(o){return t.tabClick(a)}}}):r("a",{on:{click:function(o){return t.tabClick(a)}}},[i.icon?r("CIcon",{attrs:{size:t.size,type:i.icon}}):t._e(),r("span",[t._v(t._s(i.label))])],1)],1)}),0)]),r("section",{staticClass:"tab-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2)])},Zdt=[],Jdt=he(Ydt,Kdt,Zdt,!1,null,"e02a6440");const OY=Jdt.exports;function DY(n){n.component(TY.name,TY),n.component("CAutocomplete",Qut),n.component(Tu.name,Tu),n.component(CY.name,CY),n.component(kY.name,kY),n.component($f.name,$f),n.component(Af.name,Af),n.component(SY.name,SY),n.component(q7.name,q7),n.component($Y.name,$Y),n.component(OY.name,OY),n.component(AY.name,AY),n.component("CField",B8),n.component(wY.name,wY),n.component(xY.name,xY),n.component(EY.name,EY)}var Xdt=t2,Qdt=Cj,ept=of;function tpt(n,t,r){for(var i=-1,a=t.length,o={};++i<a;){var s=t[i],c=Xdt(n,s);r(c,s)&&Qdt(o,ept(s,n),c)}return o}var npt=tpt,rpt=npt,ipt=yV;function apt(n,t){return rpt(n,t,function(r,i){return ipt(n,i)})}var opt=apt,spt=opt,lpt=jW,cpt=lpt(function(n,t){return n==null?{}:spt(n,t)}),upt=cpt;const dpt=un(upt);Be.use(DY);const ppt={name:"DocForm",i18nOptions:{namespaces:"widgetDocForm",messages:{en:{selectNavTitle:"Select a template"},sv:{selectNavTitle:"Välj en mall"}}},components:{TemplateSelector:Yut,DocumentForm:lut,PostSend:nYe},provide(){return{onUpgradeRequired:this.onUpgradeRequired,allowSenderSign:this.allowSenderSign}},props:{setFormValue:{type:Function,default:null},isEditingTemplate:{type:Boolean,default:!1},onSaveTemplate:{type:Function,default:null},removeFormValue:{type:Function,default:null},closeFunc:{type:Function,default:null},beforeSave:{type:Function,default:null},beforeSend:{type:Function,default:null},galleryCategory:{type:String,default:null},showBackButton:{type:Boolean,default:!0},allowSenderSign:{type:Boolean,default:!0},onUpgradeRequired:{type:Function,default:null}},data(){return{view:"editor",document:null,isSavingTemplate:!1}},computed:{...Gy({company:"application/company",feature:"application/feature",can:"application/can",rawDoc:"forms/document",isPosting:"documents2/isPosting",docById:"documents2/byId"}),canDoActions(){var n,t,r,i,a,o;return!!((o=(a=(i=(r=(t=(n=this.document)==null?void 0:n._template)==null?void 0:t._data)==null?void 0:r.views)==null?void 0:i.read)==null?void 0:a.nodes)!=null&&o.length)}},watch:{rawDoc:{immediate:!0,handler(){this.initDoc()}},document:{immediate:!0,handler(n){const{companyUserId:t,sender:r={}}=n||{},{user:i={}}=r||{};t&&!Object.keys(i).length&&this.loadCompanyUser({id:t})}}},created(){var n;(!this.rawDoc||(n=this.rawDoc)!=null&&n.__isNew)&&(this.view="templateSelect")},methods:{...qy({removeFormKeyValue:Ue.REMOVE_FORM_KEY_VALUE,loadDocumentForm:Ue.LOAD_DOCUMENT2_FORM,duplicateDocumentForm:Ue.LOAD_DUPLICATE_DOCUMENT2_FORM,saveDocument:Ue.SAVE_DYNDOC_FORM,loadCompanyUser:Ue.LOAD_COMPANY_USER,saveTemplate:Ue.SAVE_TEMPLATE_FORM}),async initDoc(){if(!this.rawDoc)throw new Error("Missing initiated form document");this.document=new fc({data:this.rawDoc,can:this.can,getters:this.$store.getters,updateSender:!0})},async onTemplateSelect({templateId:n,documentId:t,formData:r}){var a;const i=dpt({...this.rawDoc},["__tempId","externalReferences","subscriberCompanyUserIds","clients","data"]);t?await this.duplicateDocumentForm({id:t,_formData:i}):await this.loadDocumentForm({templateId:n,formData:r?cm(r,i):null,_formData:i}),(a=i==null?void 0:i.data)!=null&&a.name&&this.setDocValue({key:"data.name",value:i.data.name}),await this.initDoc(),this.view="editor"},setDocValue({key:n,value:t}){return this.setFormValue({key:n,value:t})},removeDocValue(n){return this.removeFormValue(n)},removeDocKeyValue(n){return this.removeFormKeyValue(`document2.${n}`)},async onSaveTemplateClick(){this.isSavingTemplate=!0,await this.saveTemplate({body:this.document.copyTemplateDocDefault(),callback:this.onSaveTemplate}),typeof this.closeFunc=="function"&&await this.closeFunc(),this.isSavingTemplate=!1},async onSaveDocument({doSend:n=!1}={}){var o;let t;if(typeof this.beforeSave=="function"&&(t=await this.beforeSave(this.document)),n&&typeof this.beforeSend=="function"&&(t=await this.beforeSend(this.document)),t)return;const r=await this.saveDocument({doSend:n});if(!r)return;const i=this.docById(r);let a;n&&(a=!!(i!=null&&i.senderClient)||this.isManualDelivery(i)),a?(this.document=i,this.view="postSend"):(o=this.closeFunc)==null||o.call(this)},goBack(){this.view="templateSelect",this.setDocValue({key:"__isNew",value:!0})},isManualDelivery(n){const t=D2(n);return!t.sms&&!t.email}}};var fpt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"flex h-full w-full flex-col"},[t.view==="templateSelect"?r("div",{staticClass:"flex h-full w-full flex-col"},[r("div",{staticClass:"relative flex h-16 items-center justify-center border-b border-gray-200"},[t.closeFunc?r("CButton",{staticClass:"absolute left-4 top-1/2 -translate-y-1/2",attrs:{icon:"x",circle:""},on:{click:t.closeFunc}}):t._e(),r("div",[t._v(t._s(t.$t("selectNavTitle")))])],1),r("TemplateSelector",{staticClass:"body-scroll min-h-0",attrs:{"on-use-template":t.onTemplateSelect,"show-gallery":t.feature("templateGallery"),"show-gallery-template-author":!1,"gallery-category":t.galleryCategory,"on-save-template":t.onSaveTemplate,"include-partner-templates":""}})],1):t.view==="editor"?r("DocumentForm",{attrs:{document:t.document,"set-doc-value":t.setDocValue,"set-form-value":t.setFormValue,"remove-doc-value":t.removeDocValue,"remove-doc-key-value":t.removeDocKeyValue,"on-save-template":t.onSaveTemplate,"on-save-document":t.onSaveDocument,"is-loading":t.isPosting,close:t.closeFunc,"go-back":!t.document.id&&t.showBackButton?t.goBack:null,"can-show-banner":!1}},[t.isEditingTemplate?r("CButton",{staticClass:"d-nav-button position right save-template-button",staticStyle:{"min-width":"6em","font-size":"16px"},attrs:{slot:"nav-right-action",loading:t.isSavingTemplate,disabled:!t.canDoActions,"icon-left":"template",type:"secondary",thinner:"",rounded:""},on:{click:t.onSaveTemplateClick},slot:"nav-right-action"},[t._v(" "+t._s(t.$t("_common:save",{thing:t.$t("_common:template")}))+" ")]):t._e()],1):t.view==="postSend"?r("PostSend",{attrs:{document:t.document,"on-send-func":t.closeFunc,"on-close-func":t.closeFunc}}):t._e()],1)},hpt=[],mpt=he(ppt,fpt,hpt,!1,null,"2c3d4461");const gpt=mpt.exports,vpt=Object.freeze(Object.defineProperty({__proto__:null,default:gpt},Symbol.toStringTag,{value:"Module"}));Be.use(DY);const Y7=Be.observable({canEdit:!1,isForm:!0,setFormValue:null,removeFormValue:null}),ypt={name:"DocFormSend",components:{SendForm:hY},provide:()=>({viewSettings:Y7,allowSenderSign:!1}),props:{showName:{type:Boolean,default:!0},showSave:{type:Boolean,default:!0},showSchedule:{type:Boolean,default:!0},allowManualDelivery:{type:Boolean,default:!1},allowEditClients:{type:Boolean,default:!0},contentSlot:{type:String,default:null},footerSlot:{type:String,default:null},setFormValue:{type:Function,default:null},removeFormValue:{type:Function,default:null},closeFunc:{type:Function,default:null},beforeSave:{type:Function,default:null},beforeSend:{type:Function,default:null}},data(){return{document:null}},computed:{...Gy({company:"application/company",can:"application/can",rawDoc:"forms/document",isPosting:"documents2/isPosting"})},watch:{rawDoc:{immediate:!0,handler(){this.initDoc()}}},async created(){this.setDocValue&&(Y7.setFormValue=this.setDocValue),this.removeDocValue&&(Y7.removeFormValue=this.removeDocValue)},methods:{...qy({saveDocument:Ue.SAVE_DYNDOC_FORM}),async initDoc(){if(!this.rawDoc)throw new Error("Missing initiated form document");this.document=new fc({data:this.rawDoc,can:this.can,getters:this.$store.getters,updateSender:!0})},setDocValue({key:n,value:t}){return this.setFormValue({key:n,value:t})},removeDocValue(n){return this.removeFormValue(n)},async onSaveDocument({doSend:n=!1}={}){let t=!1;typeof this.beforeSave=="function"&&(t=await this.beforeSave(this.document)),n&&typeof this.beforeSend=="function"&&(t=await this.beforeSend(this.document)),!(t||!await this.saveDocument({doSend:n}))&&this.close()},close(){this.closeFunc()}}};var bpt=function(){var t=this,r=t._self._c;return t.document?r("SendForm",{staticClass:"h-full w-full",attrs:{_document:t.document,_value:{expiresAt:"data.expiresAt",personalMessage:"data.personalMessage",defaultAnswerMethod:"data.defaultAnswerMethod",clients:"clients",reminders:"data.reminders",name:"data.name"},"show-name":t.showName,"show-save":t.showSave,"show-schedule":t.showSchedule,"allow-edit-clients":t.allowEditClients,"allow-manual-delivery":t.allowManualDelivery,"set-form-value":t.setDocValue,"remove-form-value":t.removeDocValue,"on-save-document":t.onSaveDocument,"use-scroll":""}},[t.contentSlot?r("div",{attrs:{slot:"content"},domProps:{innerHTML:t._s(t.contentSlot)},slot:"content"}):t._e(),t.footerSlot?r("div",{attrs:{slot:"footer"},domProps:{innerHTML:t._s(t.footerSlot)},slot:"footer"}):t._e()]):r("div",{staticClass:"grid h-full w-full place-items-center"},[r("CIcon",{staticClass:"animate-spin text-gray-400",attrs:{type:"loader",size:28}})],1)},wpt=[],_pt=he(ypt,bpt,wpt,!1,null,null);const xpt=_pt.exports,Cpt=Object.freeze(Object.defineProperty({__proto__:null,default:xpt},Symbol.toStringTag,{value:"Module"})),kpt={i18nOptions:{namespaces:"documentPrint",messages:{en:{title:"Print options",appendAttachments:"Append attachments",appendAttachmentsSub:"Append attachments",hideDocumentAttachmentBlocks:"Hide document attachment blocks",hideDocumentAttachmentBlocksTooltip:"Hide blocks with the type of attachments.",showVerification:"Include verification",showVerificationSub:"Signature verification.",showLast4ssn:"Include the last 4 digits of the personal identification number from the BankID signature.",showEvents:"Show events",buttonText:"Download PDF",preparingPdf:"Preparing PDF...",preparingPdfDone:"PDF is complete",preparingPdfError:"Could not create PDF. Try again."},sv:{title:"Utskriftsinställningar",appendAttachments:"Bifoga bilagor",appendAttachmentsSub:"Inkludera bilagor i slutet av PDF:en.",hideDocumentAttachmentBlocks:"Göm dokumentblock som är bilagor",hideDocumentAttachmentBlocksTooltip:"Dölj blocken av typen bilagor.",showVerification:"Inkludera verifikat",showVerificationSub:"Signaturverifikat.",showLast4ssn:"Inkludera de sista 4-siffrorna i personnummret från BankID-signaturen",showEvents:"Visa händelser",buttonText:"Ladda ner PDF",preparingPdf:"Förbereder PDF...",preparingPdfDone:"PDF är redo",preparingPdfError:"Kunde inte skapa PDF. Pröva igen."}}},name:"DocumentPrint",components:{CCheckbox:Tu},props:{document:{type:Object,required:!0},isSuperUser:{type:Boolean,required:!1}},data(){return{options:{appendAttachments:!0,hideDocumentAttachmentBlocks:!1,showVerification:!0,showEvents:!0,showLast4ssn:!0,forceDoCreatePdf:!1,debugPage:!1,extraTimeout:0},showMoreOptions:!1,omitAttachmentBlockTooltip:{content:'<svg style="margin-top: 2px;" width="193" height="122" viewBox="0 0 193 122" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="193" height="122" rx="5" fill="white"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" font-weight="bold" letter-spacing="0em"><tspan x="13" y="25.5">'+this.$t("_common:attachment_plural").capitalize()+`</tspan></text><path d="M14 33H25.2941L30 38.225V52H14V33Z" fill="#FFC4C4"/><path opacity="0.34" d="M14 60H25.5L30 64.5V79H14V60Z" fill="#42A4FF"/><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="46.5">${this.$t("_common:file").capitalize()} #1</tspan></text><text fill="black" xml:space="preserve" style="white-space: pre" font-family="Inter" font-size="11" letter-spacing="0em"><tspan x="41" y="73.5">${this.$t("_common:file").capitalize()} #2</tspan></text><rect x="13" y="87" width="61" height="12" fill="#E2E2E2"/><rect x="13" y="103" width="168" height="6" fill="#E2E2E2"/><rect x="13" y="112" width="151" height="6" fill="#E2E2E2"/><rect x="13" y="3" width="97" height="6" fill="#E2E2E2"/><rect x="14" y="47" width="16" height="5" fill="#FF1515"/><rect x="14" y="74" width="16" height="5" fill="#42A4FF"/></svg><div style="max-width: 193px; padding: 2px 0 8px 0;">
2838
2838
  ${this.$t("hideDocumentAttachmentBlocksTooltip")}
2839
2839
  </div>`,placement:"left",boundariesElement(){return this.$parent.$el},html:!0}}},computed:{extraTimeout:{get(){return this.options.extraTimeout||null},set(n){n?this.options.extraTimeout=parseInt(n,10):this.options.extraTimeout=0}},allowVerification(){return this.document&&this.document.allowVerification},showAdminOptions(){return Je.showAdminSettings||this.isSuperUser},hasBankIdSignatures(){var r;const{clients:n,senderClient:t}=this.document;return t!=null&&t.socialNo&&((r=t.answerMethod)==null?void 0:r.accept)==="bankId"?!0:n.some(i=>{var a;return i.socialNo&&((a=i.answerMethod)==null?void 0:a.accept)==="bankId"})}},created(){Object.assign(this.options,JSON.parse(mt.getItem("print-settings"))),this.allowVerification||(this.options.showVerification=!1),this.$watch("options",{deep:!0,handler(n){mt.setItem("print-settings",JSON.stringify(n)),!n.showVerification&&!n.showEvents&&(this.options.showEvents=!0),!n.showVerification&&!n.showLast4ssn&&(this.options.showLast4ssn=!0)}})},methods:{async generatePdf(){if(!this.document||!this.document.publicId)return;const{data:n}=await RM.addDocument(this.document.publicId,{...this.options,brand:Je.brand});let t,r;const i=async()=>{const{data:o}=await RM.get(n)||{};({status:t,url:r}=o)},a=async()=>{try{if(await i(),t==="canceled")throw new Error(`Canceled preparing document pdf for publicId: ${this.document.publicId}`);if(t==="completed"&&r){const o=()=>{const s=window.open(r,"_blank");return s?(s.focus(),!0):!1};return o()||xp({type:"success",message:this.$t("preparingPdfDone"),time:null,closeButton:!0,actions:{submit:{text:this.$t("_common:download"),callback:o}}}),"close"}return await O4(3e3),a()}catch(o){return xp({type:"error",message:this.$t("preparingPdfError")}),this.$error(o,{showMessage:!1}),"close"}};await xp({type:"spinner",message:this.$t("preparingPdf"),time:a,closeButton:!0}),this.$emit("close")}}};var Spt=function(){var t=this,r=t._self._c;return r("div",[r("div",{staticClass:"options-wrapper"},[r("div",{staticClass:"pb-4 text-lg font-semibold"},[t._v(t._s(t.$t("title")))]),r("div",{staticClass:"print-options"},[r("div",{staticClass:"select-none pb-1 text-sm font-medium text-gray-800"},[t._v(" "+t._s(t.$t("_common:document"))+" ")]),r("div",{staticClass:"option-item"},[r("div",{staticClass:"option-item__inner bg-gray-100 hover:bg-gray-200",class:{disabled:!t.document.attachedFiles.length},on:{click:function(i){t.options.appendAttachments=!t.options.appendAttachments}}},[r("CCheckbox",{staticStyle:{flex:"0 0 30px"},attrs:{value:t.document.attachedFiles.length?t.options.appendAttachments:!1,type:"secondary",size:"small"}}),r("div",[r("div",[t._v(t._s(t.$t("appendAttachments")))]),r("div",{staticClass:"has-text-grey-dark",staticStyle:{"font-size":"13px"}},[t._v(" "+t._s(t.$tc("_common:attachment",{count:t.document.attachedFiles.length}))+" ")])])],1),r("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.omitAttachmentBlockTooltip,expression:"omitAttachmentBlockTooltip"}]},[r("div",{staticClass:"option-item__inner bg-gray-100 hover:bg-gray-200",class:{disabled:!t.document.getAllNodesWithType("attachments").length},staticStyle:{"border-top":"2px solid hsl(0, 0%, 100%)"},on:{click:function(i){t.options.hideDocumentAttachmentBlocks=!t.options.hideDocumentAttachmentBlocks}}},[r("CCheckbox",{staticStyle:{flex:"0 0 30px"},attrs:{value:t.document.getAllNodesWithType("attachments").length?t.options.hideDocumentAttachmentBlocks:!1,type:"secondary",size:"small"}}),r("div",[r("div",[t._v(t._s(t.$t("hideDocumentAttachmentBlocks")))]),r("div",{staticClass:"has-text-grey-dark",staticStyle:{"font-size":"13px"}},[t._v(" "+t._s(t.$tc("_common:block",{count:t.document.getAllNodesWithType("attachments").length}))+" ")])])],1)])]),r("div",{staticStyle:{height:"1.25rem"}}),r("div",{staticClass:"select-none pb-1 text-sm font-medium text-gray-800"},[t._v(" "+t._s(t.$t("_common:verification").capitalize())+" ")]),r("div",{staticClass:"option-item",class:{disabled:!t.allowVerification}},[r("div",{staticClass:"option-item__inner bg-gray-100 hover:bg-gray-200",on:{click:function(i){t.options.showVerification=!t.options.showVerification}}},[r("CCheckbox",{staticStyle:{flex:"0 0 30px"},attrs:{value:t.options.showVerification,type:"secondary",size:"small"}}),r("div",[r("div",[t._v(t._s(t.$t("showVerification")))]),r("div",{staticClass:"has-text-grey-dark",staticStyle:{"font-size":"13px"}},[t._v(" "+t._s(t.$t("showVerificationSub"))+" ")])])],1),t.options.showVerification?r("div",{staticClass:"option-item__inner bg-gray-100 hover:bg-gray-200",staticStyle:{"padding-left":"2rem","border-top":"2px solid hsl(0, 0%, 100%)"},on:{click:function(i){t.options.showEvents=!t.options.showEvents}}},[r("CCheckbox",{staticStyle:{flex:"0 0 30px"},attrs:{value:t.options.showEvents,type:"secondary",size:"small"}}),r("div",[r("div",[t._v(t._s(t.$t("showEvents")))])])],1):t._e(),t.options.showVerification&&t.hasBankIdSignatures?r("div",[r("div",{staticClass:"mb-1 mt-3 inline-flex cursor-pointer select-none items-center rounded p-2 text-xs font-medium leading-none text-gray-500 hover:bg-gray-100",on:{click:function(i){t.showMoreOptions=!t.showMoreOptions}}},[t._v(" "+t._s(t.$t("_common:more").capitalize())+" "),r("CIcon",{staticClass:"ml-0.5 transition-transform",class:{"rotate-90":t.showMoreOptions},attrs:{type:"chevron-right","stroke-width":"2.25",size:"12"}})],1),r("Animation",[t.showMoreOptions?r("div",{staticClass:"option-item__inner bg-gray-100 hover:bg-gray-200",on:{click:function(i){t.options.showLast4ssn=!t.options.showLast4ssn}}},[r("CCheckbox",{staticStyle:{flex:"0 0 30px"},attrs:{value:t.options.showLast4ssn,type:"secondary",size:"small"}}),r("div",[r("div",[t._v(t._s(t.$t("showLast4ssn")))])])],1):t._e()])],1):t._e()]),t.showAdminOptions?r("div",[r("div",{staticStyle:{height:"1.25rem"}}),r("div",{staticClass:"select-none pb-1 text-sm font-medium text-gray-800"},[t._v(" Superuser + VPN ")]),r("div",{staticClass:"option-item__inner bg-gray-100 hover:bg-gray-200",staticStyle:{"border-top":"2px solid hsl(0, 0%, 100%)",opacity:"0.8","font-size":"10px"},on:{click:function(i){t.options.forceDoCreatePdf=!t.options.forceDoCreatePdf}}},[r("CCheckbox",{staticStyle:{flex:"0 0 30px"},attrs:{value:t.options.forceDoCreatePdf,type:"secondary",size:"small"}}),t._m(0)],1),r("div",{staticClass:"option-item__inner bg-gray-100 hover:bg-gray-200",staticStyle:{"border-top":"2px solid hsl(0, 0%, 100%)",opacity:"0.8","font-size":"10px"},on:{click:function(i){t.options.debugPage=!t.options.debugPage}}},[r("CCheckbox",{staticStyle:{flex:"0 0 30px"},attrs:{value:t.options.debugPage,type:"secondary",size:"small"}}),t._m(1)],1),r("div",{staticClass:"bg-gray-100 hover:bg-gray-200",staticStyle:{"border-top":"2px solid hsl(0, 0%, 100%)",opacity:"0.8","font-size":"10px"}},[r("CInput",{attrs:{type:"number",filled:"",size:"small",placeholder:"Optional extra timeout (ms)"},model:{value:t.extraTimeout,callback:function(i){t.extraTimeout=t._n(i)},expression:"extraTimeout"}})],1)]):t._e()])]),r("CButton",{attrs:{type:"secondary",size:"medium",wide:""},on:{click:t.generatePdf}},[t._v(" "+t._s(t.$t("buttonText"))+" ")])],1)},Tpt=[function(){var n=this,t=n._self._c;return t("div",[t("div",[n._v("Force re-create PDF")])])},function(){var n=this,t=n._self._c;return t("div",[t("div",[n._v("Debug page output")])])}],Ept=he(kpt,Spt,Tpt,!1,null,"cb05cb91");const $pt={name:"DocPrint",components:{DocumentPrint:Ept.exports},props:{document:{type:Object,required:!0}}};var Apt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"h-full w-full overflow-auto px-8 py-12"},[r("DocumentPrint",{attrs:{document:t.document},on:{close:function(i){return t.$router.push("/")}}})],1)},Opt=[],Dpt=he($pt,Apt,Opt,!1,null,null);const Mpt=Dpt.exports,Ppt=Object.freeze(Object.defineProperty({__proto__:null,default:Mpt},Symbol.toStringTag,{value:"Module"})),Ipt={name:"DocumentSendReminderModal",i18nOptions:{namespaces:"documentSendReminderModal",messages:{en:{alreadySigned:"already signed",cannotSign:"can't sign"},sv:{alreadySigned:"har signerat",cannotSign:"kan ej signera"}}},props:{document:{type:Object,required:!0}},data(){return{clientsToSend:[]}},computed:{...Ht({feature:"application/feature"})},created(){const{events:n=[],clients:t=[]}=this.document||{},r=n.reduce((i,{code:a,data:o})=>a==="sent"&&o&&o.clients&&o.clients.length?[...i,...o.clients.map(({id:s})=>s)]:i,[]);this.clientsToSend=t.filter(({id:i})=>r.includes(i)),this.feature("sms")||this.clientsToSend.forEach((i,a)=>{this.isTypeActive("sms",i)&&this.setDeliveryMethod("sms",a)}),this.clientsToSend.forEach((i,a)=>{(i.answer||i.documentRole==="recipient")&&["sms","email"].forEach(o=>{this.isTypeActive(o,i)&&this.setDeliveryMethod(o,a)})})},methods:{...Cn({sendDocumentReminder:Ue.SEND_REMINDER_DOCUMENT2}),async submit(){await this.sendDocumentReminder({id:this.document.id,body:{clients:this.clientsToSend}}),this.$emit("close")},canSendType(n,t){return!!t[n==="sms"?"cellphone":"email"]},isTypeActive(n,t){return t.deliveryTypes.includes(n)&&this.canSendType(n,t)},setDeliveryMethod(n,t){const r=this.clientsToSend[t].deliveryTypes.findIndex(i=>i===n);r>-1?this.clientsToSend[t].deliveryTypes.splice(r,1):this.clientsToSend[t].deliveryTypes.push(n)}}};var Rpt=function(){var t=this,r=t._self._c;return r("div",{staticClass:"rounded-xl bg-white p-8"},[r("div",{staticClass:"mb-6 text-lg font-semibold",domProps:{textContent:t._s(t.$t("_common:send",{thing:t.$t("_common:reminder")}))}}),t._l(t.clientsToSend,function(i,a){return r("div",{key:a,staticClass:"mb-3 rounded-lg border border-gray-200 p-2"},[r("div",{staticClass:"mb-2 pl-1"},[r("div",{staticClass:"text-sm font-medium"},[t._v(" "+t._s(i.name||i.companyName)+" ")]),i.answer?r("div",{staticClass:"text-xs text-gray-500",domProps:{textContent:t._s(t.$t("alreadySigned").capitalize())}}):i.documentRole==="recipient"?r("div",{staticClass:"text-xs text-gray-500",domProps:{textContent:t._s(t.$t("cannotSign").capitalize())}}):t._e()]),r("div",{staticClass:"flex"},[r("div",{staticClass:"mr-2 flex items-center rounded-md border border-gray-200 bg-gray-100 py-1.5 pl-1.5"},[r("CCheckbox",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{...!t.canSendType("sms",i)&&{content:t.$t("_common:missing",{thing:t.$t("_common:phoneNumber")})}},expression:`{
2840
2840
  ...(!canSendType('sms', client) && {