useblocks 1.1.26 → 1.1.29

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 (109) hide show
  1. package/iframe/js/amp.A5wCvj7V.js +1 -0
  2. package/iframe/js/iframe-eblock.js +1 -1
  3. package/iframe/js/iframe.js +1 -1
  4. package/iframe/js/rules.B4dVzZIU.js +1 -1
  5. package/package.json +1 -1
  6. package/runtime/@ant-design/cssinjs/index.js +1 -1
  7. package/runtime/@ant-design/icons/index.js +1 -1
  8. package/runtime/THIRD_PARTY_LICENSES.txt +536 -665
  9. package/runtime/antd/index.js +1 -1
  10. package/runtime/dayjs/index.js +1 -1
  11. package/runtime/react-router-dom/index.js +1 -1
  12. package/singlepage_headless_plugin.html +1 -1
  13. package/static/core/{8708a613.js → 1424c612.js} +3 -3
  14. package/static/core/17aff8bb.js +1 -0
  15. package/static/core/1cbec0bb.js +1 -0
  16. package/static/core/24ee85aa.js +1 -0
  17. package/static/core/367190c0.js +1 -0
  18. package/static/core/{779a8eb5.js → 4142b650.js} +2 -2
  19. package/static/core/{d37f7419.js → 43190ba4.js} +1 -1
  20. package/static/core/512e3b5f2.js +1 -0
  21. package/static/core/5386c2ec.js +1 -0
  22. package/static/core/586a39dc.js +1 -0
  23. package/static/core/60d78d6b.js +1 -0
  24. package/static/core/648ff204.js +1 -0
  25. package/static/core/{902b3490.js → 649a2d69.js} +1 -1
  26. package/static/core/65add2fe.js +33 -0
  27. package/static/core/68603c0b.js +20 -0
  28. package/static/core/69518486.js +3 -0
  29. package/static/core/6cfc43e6.js +1 -0
  30. package/static/core/{e6c16532.js → 70acf01b.js} +2 -2
  31. package/static/core/735bfb0b.js +506 -0
  32. package/static/core/78f0ec55.js +1 -0
  33. package/static/core/802a32d8.js +1 -0
  34. package/static/core/80494391.js +1 -0
  35. package/static/core/824a1eac.js +1 -0
  36. package/static/core/{4dc76046.js → 84430610.js} +4 -4
  37. package/static/core/88da7a16.js +1 -0
  38. package/static/core/95f8d3c8.js +1 -0
  39. package/static/core/a89f1a4f2.js +1 -0
  40. package/static/core/a906a1a3.js +1 -0
  41. package/static/core/ac168281.js +1 -0
  42. package/static/core/acb25c27.js +1 -0
  43. package/static/core/{5f1992c62.js → c628207d.js} +1 -1
  44. package/static/core/c734a3d8.js +1 -0
  45. package/static/core/e0d58fdc.js +1 -0
  46. package/static/core/e5e840f6.js +78 -0
  47. package/static/core/e930f267.js +1 -0
  48. package/static/core/ec425df9.js +1 -0
  49. package/static/core/f2141b55.js +1 -0
  50. package/static/core/f9ea3b0b.js +895 -0
  51. package/static/core/ffd774bd.js +4 -0
  52. package/static/esm/{ea7efce0.js → 7b7508f6.js} +1 -1
  53. package/static/esm/{3159c14c.js → cdc4c5a4.js} +1 -1
  54. package/static/runtime/DownloadOutlined-C-5Yi5xA.js +76 -0
  55. package/static/runtime/dayjs.min-7qDGpCH7.js +1 -0
  56. package/static/runtime/defineProperty-DxTQfsxO.js +1 -0
  57. package/static/runtime/dist-C0p5hVla.js +2 -0
  58. package/static/runtime/es-DhckSY88.js +315 -0
  59. package/static/runtime/es-jkBfKdP4.js +2 -0
  60. package/static/runtime/es-rvjSIqny.js +1 -0
  61. package/two_step_headless_plugin.html +1 -1
  62. package/ui-kit/index.js +2041 -1934
  63. package/{useblocks-core.46e32bed.js → useblocks-core.d9b7bd78.js} +1 -1
  64. package/useblocks-esm.js +4 -4
  65. package/useblocks.d.ts +9 -3
  66. package/useblocks.js +12 -12
  67. package/iframe/js/amp.DAh9j5NQ.js +0 -1
  68. package/static/core/1b4eacdb.js +0 -1
  69. package/static/core/245b2799.js +0 -1
  70. package/static/core/27639caf.js +0 -1
  71. package/static/core/35387f7a.js +0 -20
  72. package/static/core/38cc8504.js +0 -1
  73. package/static/core/395cdb1b.js +0 -596
  74. package/static/core/3d832cfc.js +0 -1
  75. package/static/core/3e01e3a7.js +0 -1
  76. package/static/core/4aafbb37.js +0 -1
  77. package/static/core/52646cb0.js +0 -3
  78. package/static/core/52c7da98.js +0 -1
  79. package/static/core/53978dd3.js +0 -1
  80. package/static/core/5a853fbb.js +0 -1
  81. package/static/core/5c3bc4e4.js +0 -1
  82. package/static/core/613230e7.js +0 -1
  83. package/static/core/64501810.js +0 -1
  84. package/static/core/65b90005.js +0 -833
  85. package/static/core/6d624cfc2.js +0 -1
  86. package/static/core/8400037a.js +0 -1
  87. package/static/core/8a1c4338.js +0 -1
  88. package/static/core/95f33488.js +0 -1
  89. package/static/core/a13fc482.js +0 -33
  90. package/static/core/a7643b25.js +0 -1
  91. package/static/core/aaaead9c.js +0 -1
  92. package/static/core/ae258789.js +0 -1
  93. package/static/core/b2e32919.js +0 -1
  94. package/static/core/b4510ae5.js +0 -1
  95. package/static/core/ca052be9.js +0 -1
  96. package/static/core/cba792ea.js +0 -1
  97. package/static/core/eff08366.js +0 -471
  98. package/static/core/f03c7816.js +0 -1
  99. package/static/core/f38723d0.js +0 -1
  100. package/static/core/f4ec16b4.js +0 -78
  101. package/static/core/fb3e5ba7.js +0 -1
  102. package/static/runtime/DownloadOutlined-Czug__JA.js +0 -1
  103. package/static/runtime/dayjs.min-BktkwxcQ.js +0 -1
  104. package/static/runtime/dist-B1ZrbBVP.js +0 -2
  105. package/static/runtime/es-Dt0MDtMm.js +0 -5
  106. package/static/runtime/es-LbCQ86AJ.js +0 -444
  107. package/static/runtime/es-n8SS20ln.js +0 -55
  108. /package/iframe/{iframe-eblock.46e32bed.html → iframe-eblock.d9b7bd78.html} +0 -0
  109. /package/iframe/{iframe.46e32bed.html → iframe.d9b7bd78.html} +0 -0
@@ -1 +0,0 @@
1
- __useblocks__.define(`static/core/ae258789.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/613230e7.js`,`static/core/a5652804.js`],function(e,t,n){e("./4dc58c63.js");let r=e("./613230e7.js"),i=e("./a5652804.js");var a={items_per_page:`件 / ページ`,jump_to:`移動`,jump_to_confirm:`確認する`,page:`ページ`,prev_page:`前のページ`,next_page:`次のページ`,prev_5:`前 5ページ`,next_5:`次 5ページ`,prev_3:`前 3ページ`,next_3:`次 3ページ`,page_size:`ページサイズ`},o=r.t(r.t({},i.t),{},{locale:`ja_JP`,today:`今日`,now:`現在時刻`,backToToday:`今日に戻る`,ok:`確定`,timeSelect:`時間を選択`,dateSelect:`日時を選択`,weekSelect:`週を選択`,clear:`クリア`,week:`週`,month:`月`,year:`年`,previousMonth:`前月 (ページアップキー)`,nextMonth:`翌月 (ページダウンキー)`,monthSelect:`月を選択`,yearSelect:`年を選択`,decadeSelect:`年代を選択`,yearFormat:`YYYY年`,dateFormat:`YYYY年M月D日`,dateTimeFormat:`YYYY年M月D日 HH時mm分ss秒`,previousYear:`前年 (Controlを押しながら左キー)`,nextYear:`翌年 (Controlを押しながら右キー)`,previousDecade:`前の年代`,nextDecade:`次の年代`,previousCentury:`前の世紀`,nextCentury:`次の世紀`,monthBeforeYear:!1}),s={placeholder:`時間を選択`,rangePlaceholder:[`開始時間`,`終了時間`]},c={lang:Object.assign({placeholder:`日付を選択`,yearPlaceholder:`年を選択`,quarterPlaceholder:`四半期を選択`,monthPlaceholder:`月を選択`,weekPlaceholder:`週を選択`,rangePlaceholder:[`開始日付`,`終了日付`],rangeYearPlaceholder:[`開始年`,`終了年`],rangeMonthPlaceholder:[`開始月`,`終了月`],rangeQuarterPlaceholder:[`開始四半期`,`終了四半期`],rangeWeekPlaceholder:[`開始週`,`終了週`],shortWeekDays:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],shortMonths:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`]},o),timePickerLocale:Object.assign({},s)},l=c,u="${label}は有効な${type}ではありません";t.default={locale:`ja`,Pagination:a,DatePicker:c,TimePicker:s,Calendar:l,global:{placeholder:`選んでください`,close:`閉じる`},Table:{filterTitle:`フィルター`,filterConfirm:`OK`,filterReset:`リセット`,filterEmptyText:`フィルターなし`,filterCheckAll:`すべてを選択`,filterSearchPlaceholder:`フィルターで検索`,emptyText:`データなし`,selectAll:`ページ単位で選択`,selectInvert:`ページ単位で反転`,selectNone:`クリア`,selectionAll:`すべてを選択`,sortTitle:`ソート`,expand:`展開する`,collapse:`折り畳む`,triggerDesc:`クリックで降順にソート`,triggerAsc:`クリックで昇順にソート`,cancelSort:`ソートをキャンセル`},Tour:{Next:`次`,Previous:`前の`,Finish:`仕上げる`},Modal:{okText:`OK`,cancelText:`キャンセル`,justOkText:`OK`},Popconfirm:{okText:`OK`,cancelText:`キャンセル`},Transfer:{titles:[``,``],searchPlaceholder:`ここを検索`,itemUnit:`アイテム`,itemsUnit:`アイテム`,remove:`削除`,selectCurrent:`現在のページを選択`,removeCurrent:`現在のページを削除`,selectAll:`ページ単位で選択`,deselectAll:`すべてのデータの選択を解除する`,removeAll:`ページ単位で削除`,selectInvert:`ページ単位で反転`},Upload:{uploading:`アップロード中...`,removeFile:`ファイルを削除`,uploadError:`アップロードエラー`,previewFile:`ファイルをプレビュー`,downloadFile:`ダウンロードファイル`},Empty:{description:`データがありません`},Icon:{icon:`アイコン`},Text:{edit:`編集`,copy:`コピー`,copied:`コピーされました`,expand:`拡大する`,collapse:`崩壊`},Form:{optional:`(オプション)`,defaultValidateMessages:{default:"${label}のフィールド検証エラー",required:"${label}を入力してください",enum:"${label}は[${enum}]のいずれかである必要があります",whitespace:"${label}は空白文字にすることはできません",date:{format:"${label}の日付形式は不正です",parse:"${label}は日付に変換できません",invalid:"${label}は不正な日付です"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label}は${len}文字である必要があります",min:"${label}は${min}文字以上である必要があります",max:"${label}は${max}文字以下である必要があります",range:"${label}は${min}-${max}文字の範囲である必要があります"},number:{len:"${label}は${len}と等しい必要があります",min:"${label}の最小値は${min}です",max:"${label}の最大値は${max}です",range:"${label}は${min}-${max}の範囲である必要があります"},array:{len:"${label}は${len}である必要があります",min:"${label}の最小は${min}です",max:"${label}の最大は${max}です",range:"${label}の合計は${min}-${max}の範囲である必要があります"},pattern:{mismatch:"${label}はパターン${pattern}と一致しません"}}},Image:{preview:`プレビュー`},QRCode:{expired:`QRコードの有効期限が切れました`,refresh:`リフレッシュ`,scanned:`スキャン済み`},ColorPicker:{presetEmpty:`空の`,transparent:`透明`,singleColor:`単色`,gradientColor:`グラデーション`}}});
@@ -1 +0,0 @@
1
- __useblocks__.define(`static/core/b2e32919.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/613230e7.js`,`static/core/a5652804.js`],function(e,t,n){e("./4dc58c63.js");let r=e("./613230e7.js"),i=e("./a5652804.js");var a={items_per_page:`條/頁`,jump_to:`跳至`,jump_to_confirm:`確定`,page:`頁`,prev_page:`上一頁`,next_page:`下一頁`,prev_5:`向前 5 頁`,next_5:`向後 5 頁`,prev_3:`向前 3 頁`,next_3:`向後 3 頁`,page_size:`頁碼`},o=r.t(r.t({},i.t),{},{locale:`zh_TW`,today:`今天`,now:`此刻`,backToToday:`返回今天`,ok:`確定`,timeSelect:`選擇時間`,dateSelect:`選擇日期`,weekSelect:`選擇周`,clear:`清除`,week:`週`,month:`月`,year:`年`,previousMonth:`上個月 (翻頁上鍵)`,nextMonth:`下個月 (翻頁下鍵)`,monthSelect:`選擇月份`,yearSelect:`選擇年份`,decadeSelect:`選擇年代`,yearFormat:`YYYY年`,dateFormat:`YYYY年M月D日`,dateTimeFormat:`YYYY年M月D日 HH時mm分ss秒`,previousYear:`上一年 (Control鍵加左方向鍵)`,nextYear:`下一年 (Control鍵加右方向鍵)`,previousDecade:`上一年代`,nextDecade:`下一年代`,previousCentury:`上一世紀`,nextCentury:`下一世紀`,cellDateFormat:`D`,monthBeforeYear:!1}),s={placeholder:`請選擇時間`,rangePlaceholder:[`開始時間`,`結束時間`]},c={lang:Object.assign({placeholder:`請選擇日期`,yearPlaceholder:`請選擇年份`,quarterPlaceholder:`請選擇季度`,monthPlaceholder:`請選擇月份`,weekPlaceholder:`請選擇周`,rangePlaceholder:[`開始日期`,`結束日期`],rangeYearPlaceholder:[`開始年份`,`結束年份`],rangeMonthPlaceholder:[`開始月份`,`結束月份`],rangeQuarterPlaceholder:[`開始季度`,`結束季度`],rangeWeekPlaceholder:[`開始周`,`結束周`]},o),timePickerLocale:Object.assign({},s)};c.lang.ok=`確 定`;var l=c,u="${label}不是一個有效的${type}";t.default={locale:`zh-tw`,Pagination:a,DatePicker:c,TimePicker:s,Calendar:l,global:{placeholder:`請選擇`,close:`關閉`},Table:{filterTitle:`篩選器`,filterConfirm:`確定`,filterReset:`重置`,filterEmptyText:`無篩選項`,filterCheckAll:`全選`,filterSearchPlaceholder:`在篩選項中搜尋`,emptyText:`暫無數據`,selectAll:`全部選取`,selectInvert:`反向選取`,selectNone:`清空所有`,selectionAll:`全選所有`,sortTitle:`排序`,expand:`展開行`,collapse:`關閉行`,triggerDesc:`點擊降序`,triggerAsc:`點擊升序`,cancelSort:`取消排序`},Modal:{okText:`確定`,cancelText:`取消`,justOkText:`知道了`},Tour:{Next:`下一步`,Previous:`上一步`,Finish:`結束導覽`},Popconfirm:{okText:`確定`,cancelText:`取消`},Transfer:{titles:[``,``],searchPlaceholder:`搜尋資料`,itemUnit:`項目`,itemsUnit:`項目`,remove:`删除`,selectCurrent:`全選當頁`,removeCurrent:`删除當頁`,selectAll:`全選所有`,removeAll:`删除全部`,selectInvert:`反選當頁`},Upload:{uploading:`正在上傳...`,removeFile:`刪除檔案`,uploadError:`上傳失敗`,previewFile:`檔案預覽`,downloadFile:`下载文件`},Empty:{description:`無此資料`},Icon:{icon:`圖標`},Text:{edit:`編輯`,copy:`複製`,copied:`複製成功`,expand:`展開`,collapse:`收起`},Form:{optional:`(可選)`,defaultValidateMessages:{default:"字段驗證錯誤${label}",required:"請輸入${label}",enum:"${label}必須是其中一個[${enum}]",whitespace:"${label}不能為空字符",date:{format:"${label}日期格式無效",parse:"${label}不能轉換為日期",invalid:"${label}是一個無效日期"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label}須為${len}個字符",min:"${label}最少${min}個字符",max:"${label}最多${max}個字符",range:"${label}須在${min}-${max}字符之間"},number:{len:"${label}必須等於${len}",min:"${label}最小值為${min}",max:"${label}最大值為${max}",range:"${label}須在${min}-${max}之間"},array:{len:"須為${len}個${label}",min:"最少${min}個${label}",max:"最多${max}個${label}",range:"${label}數量須在${min}-${max}之間"},pattern:{mismatch:"${label}與模式不匹配${pattern}"}}},Image:{preview:`預覽`},QRCode:{expired:`二維碼過期`,refresh:`點擊刷新`,scanned:`已掃描`},ColorPicker:{presetEmpty:`暫無`,transparent:`透明`,singleColor:`單色`,gradientColor:`漸變色`}}});
@@ -1 +0,0 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-useblocks`,`true`),e.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Geologica:wght@300;600&display=swap";.blocks-app .ant-modal.premium-features-modal .ant-modal-content{border-radius:calc(var(--borderRadiusXL) * 2px);padding:20px 19px}.blocks-app .premium-features-modal .modal-title{text-align:center;margin-bottom:0;font-size:32px}.blocks-app .premium-features-modal .ant-carousel .slick-dots li button{opacity:.5;background:#fff}.blocks-app .premium-features-modal .ant-carousel .slick-dots li.slick-active button{opacity:1}.blocks-app .premium-features-modal .modal-subtitle{text-align:center;margin-bottom:20px;font-size:18px}.blocks-app .premium-features-modal .carousel-slider{margin-bottom:20px}.blocks-app .premium-features-modal .slick-list{border-radius:calc(var(--borderRadiusXL) * 1.5px)}.blocks-app .premium-features-modal .slick-slide{padding:0 5px}.blocks-app .premium-features-modal .carousel-slide{border-radius:calc(var(--borderRadiusXL) * 1.5px);justify-content:flex-end;align-items:center;height:480px;display:flex}.blocks-app .premium-features-modal .slide-item-image{width:50%;padding:24px 0 24px 32px}.blocks-app .premium-features-modal .slide-item-image img{border-radius:calc(var(--borderRadiusXL) * 1.3px);width:100%}.blocks-app .premium-features-modal .slide-item-content{width:50%;padding:48px}.blocks-app .premium-features-modal .slide-title{margin-bottom:48px;font-size:50px;font-weight:700;line-height:1}.blocks-app .premium-features-modal .slide-description{font-size:22px}.blocks-app .premium-features-modal .modal-buttons{justify-content:center;gap:10px;display:flex}.blocks-app .premium-features-modal .modal-buttons button{padding:0 30px}.blocks-app .limit-upgrade-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .limit-upgrade-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .limit-upgrade-modal .ant-modal-header{display:none}.blocks-app .limit-upgrade-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .limit-upgrade-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .limit-upgrade-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .limit-upgrade-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .limit-upgrade-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .limit-upgrade-modal__close .anticon{font-size:16px}.blocks-app .limit-upgrade-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .limit-upgrade-modal__title{text-align:center;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:400;line-height:130%}.blocks-app .limit-upgrade-modal__subtitle{text-align:center;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .limit-upgrade-modal__limits-row{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;width:100%;max-width:320px;display:flex}.blocks-app .limit-upgrade-modal__icon-circle{box-sizing:border-box;border:1px solid var(--colorText);width:34px;height:34px;color:var(--colorText);border-radius:32px;flex:none;justify-content:center;align-items:center;padding:8px;display:flex}.blocks-app .limit-upgrade-modal__icon-circle .anticon{font-size:18px}.blocks-app .limit-upgrade-modal__icon-circle svg{flex-shrink:0;width:18px;height:18px;display:block}.blocks-app .limit-upgrade-modal__limit-old{color:#f85243;flex-shrink:0;font-size:40px;font-weight:100;line-height:100%}.blocks-app .limit-upgrade-modal__arrow-btn{color:#fff;background:#8946fb;border-radius:38px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.blocks-app .limit-upgrade-modal__arrow-icon{font-size:16px;transform:rotate(45deg)}.blocks-app .limit-upgrade-modal__limit-new{color:#7ed846;flex-shrink:0;font-size:40px;font-weight:400;line-height:100%}.blocks-app .limit-upgrade-modal__limit-new--infinity{font-size:36px;line-height:40px}.blocks-app .limit-upgrade-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .limit-upgrade-modal__footer{box-sizing:border-box;flex-direction:column;justify-content:center;align-items:center;width:100%;padding:16px 0;display:flex}.blocks-app .limit-upgrade-modal__footer--dual{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;padding:16px}.blocks-app .limit-upgrade-modal__cta.ant-btn-primary{min-width:147px;height:32px;box-shadow:none;background:#2884ff;border-color:#2884ff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px}.blocks-app .limit-upgrade-modal__cta.ant-btn-primary:hover{background:#1a75f0;border-color:#1a75f0}.blocks-app .limit-upgrade-modal__cta-secondary.ant-btn-default{border-color:var(--colorBorder);min-width:147px;height:32px;color:var(--colorText);box-shadow:none;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px}.blocks-app .limit-upgrade-modal__cta-secondary.ant-btn-default:hover{color:#2884ff;border-color:#2884ff}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__useblocks__.define(`static/core/b4510ae5.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/395cdb1b.js`,`static/core/a13fc482.js`,`static/core/52646cb0.js`,`static/core/e6c16532.js`,`react`,`react-dom`,`react-router-dom`,`react/jsx-runtime`,`antd`,`react-dom/client`,`@ant-design/icons`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./a13fc482.js"),a=e("./e6c16532.js");e("./395cdb1b.js");let o=e("./52646cb0.js"),s=e("react");s=r.l(s),e("react-dom");let c=e("react-router-dom"),l=e("react/jsx-runtime"),u=e("antd");e("react-dom/client");let d=e("@ant-design/icons");var f=({open:e,sideOnOk:t,onCancel:n,initialSlide:r=0})=>{let{__:a}=o.h(),u=(0,c.useNavigate)(),[d,f]=(0,s.useState)(r),p=(0,s.useRef)(null),m=i.wt(),h=()=>{t&&t(),u(`/billing`),n(!1)};(0,s.useEffect)(()=>{e&&p.current&&(p.current.goTo(r,!0),f(r))},[e,r]);let g=(0,s.useMemo)(()=>[{image:a(`https://cdn.useblocks.io/1351/241017_18_1sGjUaZ.png`),backgroundColor:`var(--blue-2)`,title:a(`More editing features`),description:a(`Use our visual editor to customize every element to your needs: change borders and their radius, box shadows, paddings, background, and much more.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_J7QtvZ3.png`),backgroundColor:`var(--purple-2)`,title:a(`Work with the HTML code`),description:a(`Edit the HTML version of your email template in the Code mode and see the changes in real time. Builder has no code restrictions — you can create templates of any complexity!`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_2fjDRfL.png`),backgroundColor:`var(--cyan-2)`,title:a(`AI image generation`),description:a(`Generate stunning visuals for your emails with ease. We have trained our AI model to ensure the highest quality images.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_D5C25Zp.png`),backgroundColor:`var(--green-2)`,title:a(`Stock photos and GIFs`),description:a(`Search the vast gallery of stock photos and GIFs to find visuals for any occasion. You can filter the results by image orientation, color scheme, and more.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_NDYloAO.png`),backgroundColor:`var(--magenta-2)`,title:a(`Version history`),description:a(`Check who and when made changes to the email template and, if necessary, restore one of the previous versions.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_g5mVlmh.png`),backgroundColor:`var(--red-2)`,title:a(`Image editor`),description:a(`Want to resize an image, add some text, or apply a filter? No need to leave builder! You can make all the basic changes in our image editor.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_ur8Lh3W.png`),backgroundColor:`var(--orange-2)`,title:a(`Email optimization`),description:a(`Check your email against broken links, missing alt texts, large images, and other issues that might prevent your emails from hitting inboxes.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_S5Pld9p.png`),backgroundColor:`var(--volcano-2)`,title:a(`Team collaboration`),description:a(`Share the project with your team and collaborate in real time. Add comments to individual email blocks and discuss necessary edits right in the builder.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_tGbb2j9.png`),backgroundColor:`var(--geekblue-2)`,title:a(`Email testing`),description:a(`Check how your email appears across various devices and email clients.`)},{image:a(`https://cdn.useblocks.io/1351/241017_18_gDXi4uM.png`),backgroundColor:`var(--geekblue-2)`,title:a(`AI assistant`),description:a(`Let our AI assistant enhance your email template! From creating subject lines and preheaders based on the email copy to generating the whole email with your website in mind!`)}],[a]);return(0,s.useEffect)(()=>{if(e&&p.current){p.current.goTo(r,!0),f(r);let e=g[r];m({event:`open_modal`,action:`open_premium-features_modal`,modal_id:`premium-features`,offer_id:e.title})}},[e,g,r,m]),(0,l.jsxs)(o.J,{open:e,footer:null,onCancel:n,closable:!1,className:`premium-features-modal`,classNames:{mask:`premium-features-modal-mask`},styles:{mask:{background:`rgba(0, 0, 0, 0.65)`}},width:1100,style:{maxWidth:`80%`},children:[(0,l.jsx)(o.V,{dots:!0,slidesToShow:1,slidesToScroll:1,autoplay:!0,className:`carousel-slider`,draggable:!0,autoplaySpeed:5e3,initialSlide:d,ref:p,children:g.map((e,t)=>(0,l.jsx)(`div`,{children:(0,l.jsxs)(`div`,{className:`carousel-slide`,style:{background:`${e.backgroundColor}`},children:[(0,l.jsx)(`div`,{className:`slide-item-image`,children:(0,l.jsx)(`img`,{src:e.image,alt:`slide-${t}`})}),(0,l.jsxs)(`div`,{className:`slide-item-content`,children:[(0,l.jsx)(`h3`,{className:`slide-title`,children:e.title}),(0,l.jsx)(`p`,{className:`slide-description`,children:e.description})]})]})},t))}),(0,l.jsx)(`div`,{className:`modal-subtitle`,children:a(`This and other features are available for you on any paid plan.`)}),(0,l.jsxs)(`div`,{className:`modal-buttons`,children:[(0,l.jsx)(o.It,{size:`large`,onClick:()=>n(!1),children:a(`Cancel`)}),(0,l.jsx)(o.It,{type:`primary`,size:`large`,onClick:h,style:{padding:`0 30px`},children:a(`Select plan`)})]})]})};function p(e){return e=e.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,``),e=e.replace(/<\/?(?:script|embed|object|frameset|frame|iframe|applet|meta)[^>]*>/gi,``),e=e.replace(/ on\w+="[^"]*"/g,``),e=e.replace(/ on\w+='[^']*'/g,``),e}var m=({icon:e,...t})=>{let n=i.on();return(0,l.jsx)(o.Ft,{icon:e,configIcons:(0,s.useMemo)(()=>{if(!n?.icons)return;let e={};for(let[t,r]of Object.entries(n.icons))typeof r==`string`&&(e[t]=p(r));return Object.keys(e).length>0?e:void 0},[n?.icons]),...t})},h={ai:`AIRequests`,email_generate:`EmailEnvelope`,image_generate:`Image`,optimization:`Optimization`,preview:`SendOutlined`,link_check:`Web`,image_check:`Image`,spam_check:`Block`,projects:`FolderOpen`,emails:`EmailEnvelope`,blocks:`Block`,users:`SliderGroup`};function g(e,t){if(e==null)return null;if(typeof e==`number`||typeof e==`string`){let n=e===`∞`||e===`∞`||e===`infinity`||typeof e==`string`&&e.toLowerCase()===`infinity`;return(0,l.jsx)(`span`,{className:t===`old`?`limit-upgrade-modal__limit-old`:`limit-upgrade-modal__limit-new${n?` limit-upgrade-modal__limit-new--infinity`:``}`,children:n?`∞`:e})}return e}var _=({open:e,onClose:t,title:n,subtitle:r,usageResource:i,icon:a,previousDisplay:s,nextDisplay:c,onChangePlan:f,secondaryAction:p,changePlanLabel:_})=>{let{__:v}=o.h(),y=_??v(`Change plan`),b=!!p,x=i==null?a??null:(0,l.jsx)(m,{icon:h[i]});return(0,l.jsx)(u.Modal,{open:e,onCancel:t,footer:null,closable:!1,width:400,centered:!0,className:`limit-upgrade-modal`,destroyOnClose:!0,maskClosable:!0,children:(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__wrap`,children:[(0,l.jsx)(`div`,{className:`limit-upgrade-modal__header`,children:(0,l.jsx)(`button`,{type:`button`,className:`limit-upgrade-modal__close`,onClick:t,"aria-label":v(`Close`),children:(0,l.jsx)(d.CloseOutlined,{})})}),(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__body`,children:[(0,l.jsx)(`h1`,{className:`limit-upgrade-modal__title`,children:n}),(0,l.jsx)(`p`,{className:`limit-upgrade-modal__subtitle`,children:r}),(0,l.jsxs)(`div`,{className:`limit-upgrade-modal__limits-row`,children:[(0,l.jsx)(`div`,{className:`limit-upgrade-modal__icon-circle`,"aria-hidden":!0,children:x}),g(s,`old`),(0,l.jsx)(`div`,{className:`limit-upgrade-modal__arrow-btn`,"aria-hidden":!0,children:(0,l.jsx)(d.ArrowUpOutlined,{className:`limit-upgrade-modal__arrow-icon`})}),g(c,`new`)]})]}),(0,l.jsx)(`hr`,{className:`limit-upgrade-modal__divider`}),(0,l.jsx)(`div`,{className:b?`limit-upgrade-modal__footer limit-upgrade-modal__footer--dual`:`limit-upgrade-modal__footer`,children:p?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u.Button,{className:`limit-upgrade-modal__cta-secondary`,onClick:p.onClick,children:p.label}),(0,l.jsx)(u.Button,{type:`primary`,className:`limit-upgrade-modal__cta`,onClick:f,children:y})]}):(0,l.jsx)(u.Button,{type:`primary`,className:`limit-upgrade-modal__cta`,onClick:f,children:y})})]})})},v={email_10_30:{id:`email_10_30`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:10,next:30,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 10→30`},email_30_300:{id:`email_30_300`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:30,next:300,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 30→300`},email_300_inf:{id:`email_300_inf`,titleKey:`You have used up the number of emails you can create on your current plan`,subtitleKey:`You can increase the number of emails right now.`,usageResource:`email_generate`,previous:300,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: emails 300→∞`},ai_10_50:{id:`ai_10_50`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:10,next:50,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 10→50`},ai_30_150:{id:`ai_30_150`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:30,next:150,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 30→150`},ai_150_inf:{id:`ai_150_inf`,titleKey:`You have used up your AI generations`,subtitleKey:`You can add more generations right now; they are billed separately from the generations included in your plan.`,usageResource:`ai`,previous:150,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: AI 150→∞`},optimization_exceeded:{id:`optimization_exceeded`,titleKey:`You have used up your optimisation limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`optimization`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: optimization exhausted`},image_generate_exceeded:{id:`image_generate_exceeded`,titleKey:`You have used up your image generation limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`image_generate`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: image_generate exhausted`},preview_exceeded:{id:`preview_exceeded`,titleKey:`You have used up your preview (test send) limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`preview`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: preview exhausted`},link_check_exceeded:{id:`link_check_exceeded`,titleKey:`You have used up your link check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`link_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: link_check exhausted`},image_check_exceeded:{id:`image_check_exceeded`,titleKey:`You have used up your image check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`image_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: image_check exhausted`},spam_check_exceeded:{id:`spam_check_exceeded`,titleKey:`You have used up your spam check limit`,subtitleKey:`You can increase the limit by changing your plan or buying an extra package.`,usageResource:`spam_check`,previous:0,next:`infinity`,showSecondaryBuy:!1,debugLabelKey:`Limit modal: spam_check exhausted`}};function y(e){return v[e]}function b(e){return e===`infinity`?`∞`:e}var x={ai:`ai_150_inf`,email_generate:`email_300_inf`,image_generate:`image_generate_exceeded`,preview:`preview_exceeded`,link_check:`link_check_exceeded`,image_check:`image_check_exceeded`,spam_check:`spam_check_exceeded`};function S(e){return!e||e.is_unlimited||e.total_limit<=0?!1:e.remaining<=0||e.used>=e.total_limit}function C(e,t){return S(t)?{presetId:x[e],previousLimit:t?.total_limit??0,nextLimit:`infinity`}:null}function w(e,t){return C(e,t)}function T(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(typeof n==`string`&&n)return n}}function E(e){for(let t=0;t<e.length;t++){let n=e[t];if(n instanceof Blob)return n}}function D(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];if(typeof r==`string`&&r&&r!==t)return r}}var O=(0,s.createContext)(null),k=e=>e.includes(`UPLOAD_IMAGE_`)||e.includes(`UPLOAD_BACKGROUND_`),A=({children:e})=>{let t=i.wi(),n=i.Ci(a.s),[r,o]=(0,s.useState)(null),c=(0,s.useRef)(null),u=(0,s.useCallback)(e=>{c.current?.(e),c.current=null},[]),d=(0,s.useCallback)(e=>(u(null),o(e),t(a.r(e.entryModal)),new Promise(e=>{c.current=e})),[t,u]);(0,s.useEffect)(()=>{k(n)||(o(null),c.current&&u(null))},[n,u]);let f=(0,s.useMemo)(()=>({request:r,openImagePicker:d,resolveImagePicker:u}),[r,d,u]);return(0,l.jsx)(O.Provider,{value:f,children:e})},j=()=>{let e=(0,s.useContext)(O);if(!e)throw Error(`useImagePicker must be used within ImagePickerProvider`);return e};function M(e){if(!e)return!1;try{return i.vi.getInstance(e,i.do)!==void 0}catch{return!1}}function N(){let e=i.Ti();return(0,s.useMemo)(()=>M(e),[e])}Object.defineProperty(t,"a",{enumerable:!0,get:function(){return D}}),Object.defineProperty(t,"c",{enumerable:!0,get:function(){return C}}),Object.defineProperty(t,"d",{enumerable:!0,get:function(){return b}}),Object.defineProperty(t,"f",{enumerable:!0,get:function(){return _}}),Object.defineProperty(t,"g",{enumerable:!0,get:function(){return f}}),Object.defineProperty(t,"h",{enumerable:!0,get:function(){return p}}),Object.defineProperty(t,"i",{enumerable:!0,get:function(){return E}}),Object.defineProperty(t,"l",{enumerable:!0,get:function(){return w}}),Object.defineProperty(t,"m",{enumerable:!0,get:function(){return m}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return A}}),Object.defineProperty(t,"o",{enumerable:!0,get:function(){return T}}),Object.defineProperty(t,"p",{enumerable:!0,get:function(){return h}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return j}}),Object.defineProperty(t,"s",{enumerable:!0,get:function(){return S}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return N}}),Object.defineProperty(t,"u",{enumerable:!0,get:function(){return y}})});
@@ -1 +0,0 @@
1
- __useblocks__.define(`static/core/ca052be9.js`,[`require`,`exports`,`module`,`@ant-design/cssinjs`],function(e,t,n){e("@ant-design/cssinjs");var r=(e,t=!1)=>({boxSizing:`border-box`,margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:`none`,fontFamily:t?`inherit`:e.fontFamily}),i=()=>({display:`inline-flex`,alignItems:`center`,color:`inherit`,fontStyle:`normal`,lineHeight:0,textAlign:`center`,textTransform:`none`,verticalAlign:`-0.125em`,textRendering:`optimizeLegibility`,"-webkit-font-smoothing":`antialiased`,"-moz-osx-font-smoothing":`grayscale`,"> *":{lineHeight:1},svg:{display:`inline-block`}}),a=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:`transparent`,outline:`none`,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":`objects`,"&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:`not-allowed`}}}),o=(e,t,n,r)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:i,o={boxSizing:`border-box`,"&::before, &::after":{boxSizing:`border-box`}},s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),o),{[i]:o})}},s=e=>({[`.${e}`]:Object.assign(Object.assign({},i()),{[`.${e} .${e}-icon`]:{display:`block`}})});Object.defineProperty(t,"i",{enumerable:!0,get:function(){return r}}),Object.defineProperty(t,"n",{enumerable:!0,get:function(){return s}}),Object.defineProperty(t,"r",{enumerable:!0,get:function(){return a}}),Object.defineProperty(t,"t",{enumerable:!0,get:function(){return o}})});
@@ -1 +0,0 @@
1
- __useblocks__.define(`static/core/cba792ea.js`,[`require`,`exports`,`module`,`static/core/4dc58c63.js`,`static/core/395cdb1b.js`,`react`,`react-dom`,`react/jsx-runtime`,`antd`,`react-dom/client`,`@ant-design/icons`],function(e,t,n){let r=e("./4dc58c63.js"),i=e("./395cdb1b.js"),a=e("react");a=r.l(a),e("react-dom");let o=e("react/jsx-runtime"),s=e("antd");e("react-dom/client"),e("@ant-design/icons");var c=({size:e=24,color:t=`currentColor`,...n})=>a.createElement(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,stroke:t,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n},a.createElement(`path`,{d:`m14 10 7-7m0 0h-6m6 0v6m-11 5-7 7m0 0h6m-6 0v-6`}));c.displayName=`Expand01`;var l={root:`root`,controls:`controls`,segmentedControl:`segmentedControl`,sizeRow:`sizeRow`,sizeRowLabel:`sizeRowLabel`,sizeInputNumber:`sizeInputNumber`,sizeSuffix:`sizeSuffix`,colorGrid:`colorGrid`,colorCell:`colorCell`,colorCellLabel:`colorCellLabel`,colorPickerFull:`colorPickerFull`,bgExtras:`bgExtras`,bgWarning:`bgWarning`,previewSection:`previewSection`,previewTitle:`previewTitle`,previewWrap:`previewWrap`,scanLine:`scanLine`,scanLineBarcode:`scanLineBarcode`,previewWrapBarcode:`previewWrapBarcode`,previewCanvas:`previewCanvas`,previewCanvasBarcode:`previewCanvasBarcode`,actions:`actions`};t.default=({customRequest:t,state:n,setState:r})=>{let{t:u}=i.C(),{options:d}=i.p(),f=d?.config?.iconStrokeWidth??1.75,p=(0,a.useRef)(null),{mode:m,rawText:h,foregroundHex:g,backgroundHex:_,transparentBackground:v,qrSidePx:y,barcodeBarHeightPx:b}=n,x=(0,a.useCallback)(e=>r(t=>Object.assign(Object.assign({},t),{mode:e})),[r]),S=(0,a.useCallback)(e=>r(t=>Object.assign(Object.assign({},t),{rawText:e})),[r]),C=(0,a.useCallback)(e=>r(t=>Object.assign(Object.assign({},t),{foregroundHex:e})),[r]),w=(0,a.useCallback)(e=>r(t=>Object.assign(Object.assign({},t),{backgroundHex:e})),[r]),T=(0,a.useCallback)(e=>r(t=>Object.assign(Object.assign({},t),{transparentBackground:e})),[r]),E=(0,a.useCallback)(e=>r(t=>Object.assign(Object.assign({},t),{qrSidePx:e})),[r]),D=(0,a.useCallback)(e=>r(t=>Object.assign(Object.assign({},t),{barcodeBarHeightPx:e})),[r]),[O,k]=(0,a.useState)(h),[A,j]=(0,a.useState)(null),[M,N]=(0,a.useState)(!1),P=(0,a.useMemo)(()=>i.m.debounce(e=>k(e),300),[]);(0,a.useEffect)(()=>(P(h),()=>{P.cancel()}),[h,P]);let F=v?`#00000000`:_,I=(0,a.useCallback)(async(t,n)=>{let r=(await Promise.resolve().then(()=>e("./779a8eb5.js")).then(function(e){return e.b})).default,i=n.trim(),a=Math.min(280,Math.max(80,y));if(!i){t.width=a,t.height=a;let e=t.getContext(`2d`);e&&e.clearRect(0,0,t.width,t.height);return}t.width=a,t.height=a,await r.toCanvas(t,i,{width:a,margin:2,color:{dark:g,light:F}})},[g,F,y]),L=(0,a.useCallback)(async(t,n)=>{let r=(await Promise.resolve().then(()=>e("./902b3490.js")).then(function(e){return e.J})).default,i=n.trim(),a=v?`rgba(0,0,0,0)`:_,o=Math.min(72,Math.max(24,b)),s=Math.max(1,Math.round(o/42)),c=Math.max(4,Math.round(.07*o)),l=Math.max(10,Math.round(.15*o));if(!i){t.width=Math.round(4*o),t.height=Math.round(1.65*o);let e=t.getContext(`2d`);e&&e.clearRect(0,0,t.width,t.height);return}t.width=Math.round(4.2*o),t.height=Math.round(1.65*o),r(t,i,{format:`CODE128`,displayValue:!0,background:a,lineColor:g,margin:c,width:s,height:o,fontSize:l})},[g,_,v,b]);(0,a.useEffect)(()=>{let e=p.current;if(!e)return;let t=!1;return(async()=>{try{m===`qr`?await I(e,O):await L(e,O),t||j(null)}catch(n){let r=n instanceof Error?n.message:String(n);if(!t){j(m===`barcode`?u(`Barcode generation failed`):r);let t=e.getContext(`2d`);t&&t.clearRect(0,0,e.width,e.height)}}})(),()=>{t=!0}},[m,O,L,I,u]);let R=(0,a.useCallback)(async()=>{P.flush();let t=h.trim();if(!t)throw Error(u(`Enter text or URL to preview`));let n=typeof window>`u`?2:Math.min(3,Math.max(2,window.devicePixelRatio||2));if(m===`qr`){let r=Math.round(Math.min(600,Math.max(80,y))*n),i=document.createElement(`canvas`);i.width=r,i.height=r,await(await Promise.resolve().then(()=>e("./779a8eb5.js")).then(function(e){return e.b})).default.toCanvas(i,t,{width:r,margin:2,color:{dark:g,light:F}});let a=await new Promise(e=>i.toBlob(e,`image/png`));if(!a)throw Error(`PNG export failed`);return a}let r=(await Promise.resolve().then(()=>e("./902b3490.js")).then(function(e){return e.J})).default,i=document.createElement(`canvas`),a=v?`rgba(0,0,0,0)`:_,o=Math.min(130,Math.max(24,b)),s=Math.max(6,Math.round(.1*o)),c=Math.max(2,Math.round(o/36)),l=Math.max(12,Math.round(.16*o));r(i,t,{format:`CODE128`,displayValue:!0,background:a,lineColor:g,margin:Math.round(s*n),width:Math.round(c*n),height:Math.round(o*n),fontSize:Math.round(l*n)});let d=await new Promise(e=>i.toBlob(e,`image/png`));if(!d)throw Error(`PNG export failed`);return d},[m,h,g,F,_,v,y,b,P,u]),z=(0,a.useCallback)(async()=>{if(!M&&h.trim()){N(!0);try{let e;try{e=await R()}catch(e){j(e instanceof Error?e.message:String(e));return}let n=new File([e],`${m===`qr`?`qr-code`:`barcode`}-${Date.now()}.png`,{type:`image/png`,lastModified:Date.now()});await Promise.resolve(t({file:n}))}finally{N(!1)}}},[t,R,m,h,M]),B=!!h.trim()&&!A;return(0,o.jsx)(`div`,{className:l.root,children:(0,o.jsxs)(`div`,{className:l.controls,children:[(0,o.jsx)(s.Segmented,{block:!0,className:l.segmentedControl,value:m,onChange:e=>{x(e),j(null)},options:[{label:u(`QR code`),value:`qr`},{label:u(`Barcode`),value:`barcode`}]}),A&&(0,o.jsx)(s.Alert,{type:`error`,message:u(`Validation error`),description:A,showIcon:!0,closable:!0,onClose:()=>j(null)}),(0,o.jsx)(s.Input.TextArea,{value:h,onChange:e=>{S(e.target.value),j(null)},placeholder:u(`Text or URL`),rows:3,spellCheck:!1,autoComplete:`off`}),(0,o.jsxs)(`div`,{className:l.sizeRow,children:[(0,o.jsx)(s.Typography.Text,{type:`secondary`,className:l.sizeRowLabel,children:u(m===`qr`?`QR image size px`:`Barcode bar height px`)}),(0,o.jsx)(s.InputNumber,m===`qr`?{className:l.sizeInputNumber,min:80,max:600,step:8,value:y,onChange:e=>E(typeof e!=`number`||Number.isNaN(e)?200:e),prefix:(0,o.jsx)(c,{size:18,strokeWidth:f}),suffix:(0,o.jsx)(`span`,{className:l.sizeSuffix,children:`px`}),"aria-label":u(`QR image size px`)}:{className:l.sizeInputNumber,min:24,max:130,step:4,value:b,onChange:e=>D(typeof e!=`number`||Number.isNaN(e)?60:e),prefix:(0,o.jsx)(c,{size:18,strokeWidth:f}),suffix:(0,o.jsx)(`span`,{className:l.sizeSuffix,children:`px`}),"aria-label":u(`Barcode bar height px`)})]}),(0,o.jsxs)(`div`,{className:l.colorGrid,children:[(0,o.jsxs)(`div`,{className:l.colorCell,children:[(0,o.jsx)(s.Typography.Text,{type:`secondary`,className:l.colorCellLabel,children:u(`Code color`,`Code color`)}),(0,o.jsx)(s.ColorPicker,{className:l.colorPickerFull,value:g,format:`hex`,disabledAlpha:!0,showText:!0,onChange:(e,t)=>{C(typeof e==`string`?e:e?.toHexString?e.toHexString():t)}})]}),(0,o.jsxs)(`div`,{className:l.colorCell,children:[(0,o.jsx)(s.Typography.Text,{type:`secondary`,className:l.colorCellLabel,children:u(`Background color`,`Background color`)}),(0,o.jsx)(s.ColorPicker,{className:l.colorPickerFull,value:_,format:`hex`,disabledAlpha:!0,showText:!0,disabled:v,onChange:(e,t)=>{w(typeof e==`string`?e:e?.toHexString?e.toHexString():t)}})]}),(0,o.jsxs)(`div`,{className:l.bgExtras,children:[(0,o.jsx)(s.Checkbox,{checked:v,onChange:e=>T(e.target.checked),children:u(`Transparent background`,`Transparent background`)}),v&&(0,o.jsx)(s.Alert,{type:`warning`,showIcon:!0,message:u(`QR transparent background hint`),className:l.bgWarning})]})]}),(0,o.jsxs)(`div`,{className:l.previewSection,children:[(0,o.jsx)(s.Typography.Text,{className:l.previewTitle,children:u(`Preview`,`Preview`)}),(0,o.jsxs)(`div`,{className:[l.previewWrap,m===`barcode`&&l.previewWrapBarcode].filter(Boolean).join(` `),children:[(0,o.jsx)(`div`,{className:[l.scanLine,m===`barcode`&&l.scanLineBarcode].filter(Boolean).join(` `)}),(0,o.jsx)(`canvas`,{ref:p,className:[l.previewCanvas,m===`barcode`&&l.previewCanvasBarcode].filter(Boolean).join(` `),"aria-label":u(`Preview`)})]})]}),(0,o.jsx)(`div`,{className:l.actions,children:(0,o.jsx)(s.Button,{type:`primary`,onClick:()=>{z()},loading:M,disabled:!B,children:u(`Add to My files`)})})]})})}});