@magmonium/one 0.2.80 → 0.2.82

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 (22) hide show
  1. package/assets/index.json +1 -1
  2. package/assets/theme/dark.json +7 -7
  3. package/assets/theme/default.json +7 -7
  4. package/assets/theme/light.json +7 -7
  5. package/fesm2022/{magmonium-one-image-editor-DleCJcan.mjs → magmonium-one-image-editor-C_KeJ24r.mjs} +2 -2
  6. package/fesm2022/{magmonium-one-image-editor-DleCJcan.mjs.map → magmonium-one-image-editor-C_KeJ24r.mjs.map} +1 -1
  7. package/fesm2022/{magmonium-one-magmonium-one-DpJYXHAK.mjs → magmonium-one-magmonium-one-zMBbH4e6.mjs} +412 -64
  8. package/fesm2022/magmonium-one-magmonium-one-zMBbH4e6.mjs.map +1 -0
  9. package/fesm2022/{magmonium-one-otp-6WQxmRKG.mjs → magmonium-one-otp-D5YLAd5j.mjs} +2 -2
  10. package/fesm2022/{magmonium-one-otp-6WQxmRKG.mjs.map → magmonium-one-otp-D5YLAd5j.mjs.map} +1 -1
  11. package/fesm2022/{magmonium-one-password-49sBxeSV.mjs → magmonium-one-password-DHZnry39.mjs} +4 -4
  12. package/fesm2022/{magmonium-one-password-49sBxeSV.mjs.map → magmonium-one-password-DHZnry39.mjs.map} +1 -1
  13. package/fesm2022/{magmonium-one-toggle-Ds_jl5Lz.mjs → magmonium-one-toggle-BIetnmvQ.mjs} +4 -4
  14. package/fesm2022/{magmonium-one-toggle-Ds_jl5Lz.mjs.map → magmonium-one-toggle-BIetnmvQ.mjs.map} +1 -1
  15. package/fesm2022/magmonium-one.mjs +1 -1
  16. package/package.json +1 -1
  17. package/sass/_overlay-hosts.sass +16 -7
  18. package/sass/mixins/_checkbox.sass +59 -45
  19. package/sass/mixins/_input.sass +9 -9
  20. package/sass/mixins/_radio.sass +39 -44
  21. package/types/magmonium-one.d.ts +152 -4
  22. package/fesm2022/magmonium-one-magmonium-one-DpJYXHAK.mjs.map +0 -1
package/assets/index.json CHANGED
@@ -1 +1 @@
1
- {"accordion_groups":{"small_gap":null},"accordions":{"fixed_allocation":{"label":"fixed-allocation","subtitle":"portfolio_targets","open":false,"variant":"flat"},"general_settings":{"label":"settings","subtitle":"strategy_configuration","open":true,"variant":"flat"}},"badges":{"danger_absolute":{"variant":"danger","position":"absolute"},"danger_static":{"variant":"danger","position":"static"},"filter_badge":{"variant":"chip"}},"button_groups":{"comment_edit_actions":{"names":["comment_cancel","comment_save"],"primary":"comment_save","one":true,"buttons":[]},"date_header":{"names":["date_header_back","date_header_title","date_header_next"],"buttons":[]},"form-actions":{"layout":"horizontal","spacing":"medium","alignment":"right","buttons":[]},"nav_footer_button_group":{"vertical":true,"center":true,"size":"sm","color":"textSecondary","buttons":[{"name":"settings_icon_only","icon":"gear","color":"mm","nav":"root_settings","variant":"ghost"},{"name":"theme_icon_only","icon":"star","color":"mm","nav":"root_settings_user_theme","variant":"ghost"},{"name":"current_lang","nav":"root_settings_user_language","label":"en","variant":"ghost"}]},"nav_main_button_group":{"vertical":true,"center":true,"color":"mm","buttons":[{"name":"search","icon":"search","color":"mm","nav":"root_search","variant":"ghost","iconOnly":true},{"name":"notification","title":"Notifications","icon":"notification","iconOnly":true,"variant":"ghost"}]},"nav_user_actions":{"names":["nav_user_settings","nav_user_logout"],"size":"sm","one":true,"buttons":[]},"notification_actions":{"names":["decline","accept"],"primary":"accept","one":true,"buttons":[{"name":"decline_notification","label":"decline","variant":"ghost"}]},"notification_filter":{"names":["all","unread"],"size":"sm","primary":"all","buttons":[{"name":"all","label":"all","variant":"ghost"},{"name":"unread","label":"unread","variant":"ghost"}]},"profile_modal_actions":{"names":["cancel_profile","save_profile"],"primary":"save_profile","center":true,"one":true,"buttons":[]},"reply_actions":{"names":["comment_cancel","post"],"primary":"post","one":true,"buttons":[]},"showcase_nav":{"names":["showcase_back","showcase_back_to_home"],"buttons":[]}},"buttons":{"accordion_chevron":{"icon":"chevron-down","variant":"ghost"},"all":{"label":"all","variant":"ghost"},"app_open_arrow":{"icon":"chevron-right","color":"textSecondary","variant":"ghost","label":"open","iconOnly":true},"apps":{"icon":"apps","iconOnly":true,"variant":"ghost","nav":"root_app"},"back_icon":{"icon":"arrow-left","color":"mm","variant":"ghost"},"cancel_profile":{"label":"cancel","icon":"x","variant":"ghost"},"close-icon-only":{"icon":"x","color":"error","variant":"ghost","isOne":true},"comment_cancel":{"label":"comment_cancel","color":"danger"},"comment_hide_replies":{"label":"hide-replies","variant":"ghost","color":"mm"},"comment_reply":{"icon":"comment_reply","variant":"ghost","color":"mm"},"comment_save":{"label":"save-changes","color":"mm","variant":"primary"},"comment_view_replies":{"label":"view-replies","variant":"ghost","color":"mm"},"confirm_cancel":{"label":"cancel","variant":"ghost","fullWidth":true},"current_lang":{"nav":"root_settings_user_language","label":"en","variant":"ghost"},"date_header_back":{"icon":"arrow-left","variant":"ghost"},"date_header_next":{"icon":"arrow-right","variant":"ghost"},"date_header_title":{"variant":"ghost"},"decline_notification":{"label":"decline","variant":"ghost"},"edit_profile":{"label":"edit","icon":"pencil","variant":"primary"},"eye":{"icon":"eye","color":"mm","variant":"ghost"},"eye_close":{"icon":"eye_close","color":"mm","variant":"ghost"},"filter_toggle":{"icon":"adjust","one":true,"variant":"ghost","iconOnly":true},"language":{"icon":"language","variant":"ghost","nav":"root_settings_user_language","label":"language"},"login_icon_only":{"icon":"lock","color":"mm","action":"authenticate","variant":"ghost"},"logout":{"icon":"lock","label":"logout","variant":"ghost"},"mark_all_read":{"label":"mark-all-read","variant":"ghost"},"menu":{"icon":"menu","variant":"ghost","color":"mm"},"nav_back":{"icon":"chevron_left","color":"mm","variant":"ghost"},"nav_trail_next":{"icon":"chevron-right","color":"mm","variant":"ghost","iconOnly":true},"nav_user_logout":{"icon":"lock","label":"logout","variant":"ghost"},"nav_user_settings":{"icon":"gear","label":"settings","variant":"ghost"},"next":{"icon":"arrow-right","label":"next","color":"mm","isRightIcon":true,"variant":"secondary"},"no":{"label":"false","icon":"x","color":"danger","variant":"ghost"},"notification":{"title":"Notifications","icon":"notification","iconOnly":true,"variant":"ghost"},"ok":{"label":"OK","icon":"check","color":"success"},"okay":{"label":"okay","variant":"primary","fullWidth":true},"pagination_first":{"icon":"chevrons-left","variant":"ghost"},"pagination_last":{"icon":"chevrons-right","variant":"ghost"},"pagination_next":{"icon":"arrow-right","variant":"ghost"},"pagination_prev":{"icon":"arrow-left","variant":"ghost"},"post":{"icon":"arrow-right","label":"post","color":"mm","variant":"primary"},"remove_allocation":{"icon":"trash-2","iconOnly":true,"variant":"ghost"},"resend":{"label":"resend","color":"mm"},"reset":{"label":"reset","color":"mm"},"save_allocation":{"label":"save-allocation","icon":"save","variant":"primary"},"save_general":{"label":"save-settings","icon":"check-circle","variant":"primary"},"save_profile":{"label":"save","icon":"check-circle","variant":"primary"},"search":{"icon":"search","color":"mm","nav":"root_search","variant":"ghost","iconOnly":true},"search_clear":{"icon":"x","one":true,"variant":"ghost"},"search_toggle":{"icon":"search","one":true,"variant":"ghost","iconOnly":true},"select_user":{"label":"select-user","icon":"user","variant":"primary"},"send_comment":{"icon":"send","color":"mm"},"settings":{"icon":"gear","color":"mm","nav":"root_settings","variant":"ghost","iconOnly":true},"settings_icon_only":{"icon":"gear","color":"mm","nav":"root_settings","variant":"ghost"},"showcase_back":{"iconOnly":true,"icon":"chevron-left","variant":"ghost","label":"back"},"showcase_back_to_home":{"label":"one-ui","icon":"logo","variant":"ghost","nav":"root"},"sign_in":{"icon":"user","label":"sign_in","variant":"primary"},"sort_asc":{"icon":"chevron-up"},"sort_desc":{"icon":"chevron-down"},"stepper_next":{"icon":"chevron-right","label":"next","isRightIcon":true,"variant":"ghost"},"stepper_prev":{"icon":"chevron-left","label":"prev","variant":"ghost"},"submit":{"icon":{"name":"check"},"text":"Submit","type":"primary","disabled":false},"terms":{"name":"terms","label":"terms","nav":"root_info_terms"},"theme":{"icon":"theme","variant":"ghost","nav":"root_settings_user_theme","label":"theme"},"theme_icon_only":{"icon":"star","color":"mm","nav":"root_settings_user_theme","variant":"ghost"},"unread":{"label":"unread","variant":"ghost"},"upload_image":{"icon":"upload","variant":"ghost"},"user":{"icon":"user","iconOnly":true,"variant":"ghost","nav":"root_user"},"x":{"icon":"x","one":true,"variant":"ghost"},"yes":{"label":"true","icon":"check","color":"success"}},"cards":{"beautiful":{"variant":"beautiful","interactive":true},"featured":{"variant":"beautiful","interactive":true,"separator":true},"no_border":{"variant":"no-border","fullHeight":true}},"carousel":{"sample":{"slides":[{"image":"https://images.unsplash.com/photo-1612036782180-6f0b6cd846fe?q=80&w=2070&auto=format&fit=crop","title":"Marvel Universe","description":"Explore the vast Multiverse of Marvel Comics."},{"image":"https://images.unsplash.com/photo-1620336655055-088d06e36bf0?q=80&w=1974&auto=format&fit=crop","title":"DC Universe","description":"Witness the dawn of justice with DC Legends."},{"image":"https://images.unsplash.com/photo-1588497859490-85d1c17db96d?q=80&w=2070&auto=format&fit=crop","title":"Manga Classics","description":"Dive into the world of Japanese storytelling."}],"autoPlay":true,"interval":5000,"showDots":true,"dotsPosition":"bottom","componentPosition":"right"}},"charts":{"default":{"showGlow":false,"showLegend":false,"showPnlZone":false,"showCurrentValue":false,"vPad":12},"dual_area":{"showGlow":true,"showLegend":true,"showPnlZone":true,"showCurrentValue":false,"vPad":0}},"fields":{"allocation_pct":{"type":"number","label":"","placeholder":"0","min":0,"max":100,"step":1},"backgroundColor":{"type":"color","label":"background-color","name":"backgroundColor"},"bevel":{"type":"radio","label":"bevel"},"butt":{"type":"radio","label":"butt"},"canInteract":{"type":"toggle","label":"can-interact","name":"canInteract"},"comment_edit_textarea":{"type":"textarea","name":"comment_edit_textarea","placeholder":"comment_placeholder","variant":"comment-edit"},"confirm_password":{"type":"password","label":"confirm-password"},"dob":{"type":"date","label":"date-of-birth"},"edgeSensitivity":{"type":"range","label":"edge-sensitivity","name":"edgeSensitivity","min":0,"max":5},"email":{"type":1,"model":"email","placeholder":"Enter your email","validators":[{"type":"required","message":"Email is required"},{"type":"email","message":"Please enter a valid email"}]},"female":{"type":"radio","label":"female"},"first_name":{"type":"text","label":"first-name","placeholder":"type-text"},"identity":{"type":"selectable_card","label":"","vertical":true,"multiSelect":false,"isCheckboxVisible":false},"invertSvg":{"type":"toggle","label":"invert-svg","name":"invertSvg"},"last_name":{"type":"text","label":"last-name","placeholder":"type-text"},"last_name_search":{"type":"text","label":"last-name","button":"search","buttonAction":"search","placeholder":"type-text"},"lineColor":{"type":"color","label":"line-color","name":"lineColor"},"lineSmoothing":{"type":"range","label":"line-smoothing","name":"lineSmoothing","min":0,"max":10},"linecap":{"type":"radio_group","label":"line-cap","name":"linecap","vertical":true,"options":["butt","round","square"]},"linejoin":{"type":"radio_group","label":"line-join","name":"linejoin","vertical":true,"options":["miter","round","bevel"]},"male":{"type":"radio","label":"male"},"miter":{"type":"radio","label":"miter"},"nearestPoint":{"type":"range","label":"nearest-point","name":"nearestPoint","min":0,"max":5},"new_password":{"type":"password","label":"new-password"},"noiseReduction":{"type":"range","label":"noise-reduction","name":"noiseReduction","min":0,"max":20},"other":{"type":"radio","label":"other"},"otp":{"type":"otp","label":"one-time-password","length":6},"password":{"type":"password","label":"password"},"playground_format":{"type":"toggle_radio","name":"playground_format","label":"","configs":[{"type":"radio","id":"json","label":"json"},{"type":"radio","id":"yaml","label":"yaml"}]},"re_password":{"type":"password","label":"retype-password"},"round":{"type":"radio","label":"round"},"search_input":{"name":"search","type":"search","label":"","icon":"search","one":true,"placeholder":"Search..."},"service_agreement":{"type":"checkbox","label":"i-agree-to-above-agreement"},"sex":{"type":"radio_group","label":"sex","options":["male","female","other"]},"square":{"type":"radio","label":"square"},"strokeWidth":{"type":"range","label":"stroke-width","name":"strokeWidth","min":1,"max":25},"table_page_size":{"type":"dropdown","label":"rows-per-page","maxWidth":100,"placeholder":"please_select"},"table_search":{"type":"search","label":"","icon":"search","one":true,"maxWidth":240},"threshold":{"type":"range","label":"threshold","name":"threshold","min":0,"max":255},"tree_search":{"type":"search","label":"","icon":"search","one":true},"username_email_mobile":{"type":"text","label":"username-email-mobile","placeholder":"type-text"}},"forms":{"allocation_row":{"inputs":[["allocation_pct"]],"spans":[[12]]},"check_username":{"inputs":[["username_email_mobile"]]},"companies_search":{"inputs":[["search"]],"spans":[[12]]},"contact":{"fields":["email"],"validators":[],"values":{},"isValid":[],"isTouched":[]},"create_user":{"inputs":[["first_name","last_name"],["dob"],["sex","country"],["password"],["re_password"]]},"reset_password":{"inputs":[["otp"],["new_password"],["confirm_password"]]},"select_identity":{"inputs":[["identity"]]},"service_agreement":{"inputs":[["service_agreement"]]},"settings_general":{"inputs":[["amount"],["max"]],"spans":[[12],[12]]},"svg_edit":{"inputs":[["strokeWidth"],["linecap"],["linejoin"],["invertSvg"],["canInteract"],["backgroundColor"],["lineColor"]]},"svg_tuning":{"inputs":[["threshold"],["edgeSensitivity"],["lineSmoothing"],["noiseReduction"],["nearestPoint"]]},"user_search":{"inputs":[["first_name","last_name_search"]]},"verify_otp":{"inputs":[["otp"]]},"verify_password":{"inputs":[["password"]]}},"graphs":{"animated-graphs":{"dimensions":{"desktop":"60vh","tablet":"50vh","mobile":"40vh"},"curviness":"150px"}},"menu":{"comment_actions":{"icon":{"name":"ellipsis-vertical"},"width":"140px","options":[[{"id":"edit","label":"comment_edit","icon":"pencil"},{"id":"delete","label":"comment_delete","icon":"trash"}]]},"comments_feed_actions":{"icon":{"name":"ellipsis-vertical"},"width":"160px","align":"right","options":[[{"id":"refresh","label":"refresh","icon":"reset"}]]},"user_header":{"options":[[{"id":"edit_profile","label":"edit-profile","icon":"user"},{"id":"settings","label":"settings","icon":"gear"}],[{"id":"logout","label":"logout","icon":"lock"}]],"icon":{"name":"ellipsis-vertical"},"width":"220px"}},"modal":{"authenticate":{"align":"center","resizable":false,"backdropClose":false,"closeProhibited":true,"fullscreen":false,"noBackdrop":false},"bottom":{"one":true,"align":"bottom","backdropClose":true},"center":{"one":true,"align":"center","backdropClose":true},"fullscreen":{"one":true,"fullscreen":true}},"options":{"countries":[[{"id":"ad","value":"AD","label":"andorra"},{"id":"ae","value":"AE","label":"united-arab-emirates"},{"id":"af","value":"AF","label":"afghanistan"},{"id":"ag","value":"AG","label":"antigua-and-barbuda"},{"id":"ai","value":"AI","label":"anguilla"},{"id":"al","value":"AL","label":"albania"},{"id":"am","value":"AM","label":"armenia"},{"id":"ao","value":"AO","label":"angola"},{"id":"aq","value":"AQ","label":"antarctica"},{"id":"ar","value":"AR","label":"argentina"},{"id":"as","value":"AS","label":"american-samoa"},{"id":"at","value":"AT","label":"austria"},{"id":"au","value":"AU","label":"australia"},{"id":"aw","value":"AW","label":"aruba"},{"id":"ax","value":"AX","label":"land-islands"},{"id":"az","value":"AZ","label":"azerbaijan"},{"id":"ba","value":"BA","label":"bosnia-and-herzegovina"},{"id":"bb","value":"BB","label":"barbados"},{"id":"bd","value":"BD","label":"bangladesh"},{"id":"be","value":"BE","label":"belgium"},{"id":"bf","value":"BF","label":"burkina-faso"},{"id":"bg","value":"BG","label":"bulgaria"},{"id":"bh","value":"BH","label":"bahrain"},{"id":"bi","value":"BI","label":"burundi"},{"id":"bj","value":"BJ","label":"benin"},{"id":"bl","value":"BL","label":"saint-barth-lemy"},{"id":"bm","value":"BM","label":"bermuda"},{"id":"bn","value":"BN","label":"brunei"},{"id":"bo","value":"BO","label":"bolivia"},{"id":"bq","value":"BQ","label":"caribbean-netherlands"},{"id":"br","value":"BR","label":"brazil"},{"id":"bs","value":"BS","label":"bahamas"},{"id":"bt","value":"BT","label":"bhutan"},{"id":"bv","value":"BV","label":"bouvet-island"},{"id":"bw","value":"BW","label":"botswana"},{"id":"by","value":"BY","label":"belarus"},{"id":"bz","value":"BZ","label":"belize"},{"id":"ca","value":"CA","label":"canada"},{"id":"cc","value":"CC","label":"cocos-keeling-islands"},{"id":"cd","value":"CD","label":"democratic-republic-of-the-congo"},{"id":"cf","value":"CF","label":"central-african-republic"},{"id":"cg","value":"CG","label":"congo"},{"id":"ch","value":"CH","label":"switzerland"},{"id":"ci","value":"CI","label":"c-te-d-ivoire"},{"id":"ck","value":"CK","label":"cook-islands"},{"id":"cl","value":"CL","label":"chile"},{"id":"cm","value":"CM","label":"cameroon"},{"id":"cn","value":"CN","label":"china"},{"id":"co","value":"CO","label":"colombia"},{"id":"cr","value":"CR","label":"costa-rica"},{"id":"cu","value":"CU","label":"cuba"},{"id":"cv","value":"CV","label":"cabo-verde"},{"id":"cw","value":"CW","label":"cura-ao"},{"id":"cx","value":"CX","label":"christmas-island"},{"id":"cy","value":"CY","label":"cyprus"},{"id":"cz","value":"CZ","label":"czechia"},{"id":"de","value":"DE","label":"germany"},{"id":"dj","value":"DJ","label":"djibouti"},{"id":"dk","value":"DK","label":"denmark"},{"id":"dm","value":"DM","label":"dominica"},{"id":"do","value":"DO","label":"dominican-republic"},{"id":"dz","value":"DZ","label":"algeria"},{"id":"ec","value":"EC","label":"ecuador"},{"id":"ee","value":"EE","label":"estonia"},{"id":"eg","value":"EG","label":"egypt"},{"id":"eh","value":"EH","label":"western-sahara"},{"id":"er","value":"ER","label":"eritrea"},{"id":"es","value":"ES","label":"spain"},{"id":"et","value":"ET","label":"ethiopia"},{"id":"fi","value":"FI","label":"finland"},{"id":"fj","value":"FJ","label":"fiji"},{"id":"fk","value":"FK","label":"falkland-islands"},{"id":"fm","value":"FM","label":"micronesia"},{"id":"fo","value":"FO","label":"faroe-islands"},{"id":"fr","value":"FR","label":"france"},{"id":"ga","value":"GA","label":"gabon"},{"id":"gb","value":"GB","label":"united-kingdom"},{"id":"gd","value":"GD","label":"grenada"},{"id":"ge","value":"GE","label":"georgia"},{"id":"gf","value":"GF","label":"french-guiana"},{"id":"gg","value":"GG","label":"guernsey"},{"id":"gh","value":"GH","label":"ghana"},{"id":"gi","value":"GI","label":"gibraltar"},{"id":"gl","value":"GL","label":"greenland"},{"id":"gm","value":"GM","label":"gambia"},{"id":"gn","value":"GN","label":"guinea"},{"id":"gp","value":"GP","label":"guadeloupe"},{"id":"gq","value":"GQ","label":"equatorial-guinea"},{"id":"gr","value":"GR","label":"greece"},{"id":"gs","value":"GS","label":"country_gs"},{"id":"gt","value":"GT","label":"guatemala"},{"id":"gu","value":"GU","label":"guam"},{"id":"gw","value":"GW","label":"guinea-bissau"},{"id":"gy","value":"GY","label":"guyana"},{"id":"hk","value":"HK","label":"hong-kong"},{"id":"hm","value":"HM","label":"heard-island-and-mcdonald-islands"},{"id":"hn","value":"HN","label":"honduras"},{"id":"hr","value":"HR","label":"croatia"},{"id":"ht","value":"HT","label":"haiti"},{"id":"hu","value":"HU","label":"hungary"},{"id":"id","value":"ID","label":"indonesia"},{"id":"ie","value":"IE","label":"ireland"},{"id":"il","value":"IL","label":"israel"},{"id":"im","value":"IM","label":"isle-of-man"},{"id":"in","value":"IN","label":"india"},{"id":"io","value":"IO","label":"british-indian-ocean-territory"},{"id":"iq","value":"IQ","label":"iraq"},{"id":"ir","value":"IR","label":"iran"},{"id":"is","value":"IS","label":"iceland"},{"id":"it","value":"IT","label":"italy"},{"id":"je","value":"JE","label":"jersey"},{"id":"jm","value":"JM","label":"jamaica"},{"id":"jo","value":"JO","label":"jordan"},{"id":"jp","value":"JP","label":"japan"},{"id":"ke","value":"KE","label":"kenya"},{"id":"kg","value":"KG","label":"kyrgyzstan"},{"id":"kh","value":"KH","label":"cambodia"},{"id":"ki","value":"KI","label":"kiribati"},{"id":"km","value":"KM","label":"comoros"},{"id":"kn","value":"KN","label":"saint-kitts-and-nevis"},{"id":"kp","value":"KP","label":"north-korea"},{"id":"kr","value":"KR","label":"south-korea"},{"id":"kw","value":"KW","label":"kuwait"},{"id":"ky","value":"KY","label":"cayman-islands"},{"id":"kz","value":"KZ","label":"kazakhstan"},{"id":"la","value":"LA","label":"laos"},{"id":"lb","value":"LB","label":"lebanon"},{"id":"lc","value":"LC","label":"saint-lucia"},{"id":"li","value":"LI","label":"liechtenstein"},{"id":"lk","value":"LK","label":"sri-lanka"},{"id":"lr","value":"LR","label":"liberia"},{"id":"ls","value":"LS","label":"lesotho"},{"id":"lt","value":"LT","label":"lithuania"},{"id":"lu","value":"LU","label":"luxembourg"},{"id":"lv","value":"LV","label":"latvia"},{"id":"ly","value":"LY","label":"libya"},{"id":"ma","value":"MA","label":"morocco"},{"id":"mc","value":"MC","label":"monaco"},{"id":"md","value":"MD","label":"moldova"},{"id":"me","value":"ME","label":"montenegro"},{"id":"mf","value":"MF","label":"saint-martin"},{"id":"mg","value":"MG","label":"madagascar"},{"id":"mh","value":"MH","label":"marshall-islands"},{"id":"mk","value":"MK","label":"north-macedonia"},{"id":"ml","value":"ML","label":"mali"},{"id":"mm","value":"MM","label":"myanmar"},{"id":"mn","value":"MN","label":"mongolia"},{"id":"mo","value":"MO","label":"macao"},{"id":"mp","value":"MP","label":"northern-mariana-islands"},{"id":"mq","value":"MQ","label":"martinique"},{"id":"mr","value":"MR","label":"mauritania"},{"id":"ms","value":"MS","label":"montserrat"},{"id":"mt","value":"MT","label":"malta"},{"id":"mu","value":"MU","label":"mauritius"},{"id":"mv","value":"MV","label":"maldives"},{"id":"mw","value":"MW","label":"malawi"},{"id":"mx","value":"MX","label":"mexico"},{"id":"my","value":"MY","label":"malaysia"},{"id":"mz","value":"MZ","label":"mozambique"},{"id":"na","value":"NA","label":"namibia"},{"id":"nc","value":"NC","label":"new-caledonia"},{"id":"ne","value":"NE","label":"niger"},{"id":"nf","value":"NF","label":"norfolk-island"},{"id":"ng","value":"NG","label":"nigeria"},{"id":"ni","value":"NI","label":"nicaragua"},{"id":"nl","value":"NL","label":"netherlands"},{"id":"no","value":"NO","label":"norway"},{"id":"np","value":"NP","label":"nepal"},{"id":"nr","value":"NR","label":"nauru"},{"id":"nu","value":"NU","label":"niue"},{"id":"nz","value":"NZ","label":"new-zealand"},{"id":"om","value":"OM","label":"oman"},{"id":"pa","value":"PA","label":"panama"},{"id":"pe","value":"PE","label":"peru"},{"id":"pf","value":"PF","label":"french-polynesia"},{"id":"pg","value":"PG","label":"papua-new-guinea"},{"id":"ph","value":"PH","label":"philippines"},{"id":"pk","value":"PK","label":"pakistan"},{"id":"pl","value":"PL","label":"poland"},{"id":"pm","value":"PM","label":"saint-pierre-and-miquelon"},{"id":"pn","value":"PN","label":"pitcairn-islands"},{"id":"pr","value":"PR","label":"puerto-rico"},{"id":"ps","value":"PS","label":"palestine"},{"id":"pt","value":"PT","label":"portugal"},{"id":"pw","value":"PW","label":"palau"},{"id":"py","value":"PY","label":"paraguay"},{"id":"qa","value":"QA","label":"qatar"},{"id":"re","value":"RE","label":"r-union"},{"id":"ro","value":"RO","label":"romania"},{"id":"rs","value":"RS","label":"serbia"},{"id":"ru","value":"RU","label":"russia"},{"id":"rw","value":"RW","label":"rwanda"},{"id":"sa","value":"SA","label":"saudi-arabia"},{"id":"sb","value":"SB","label":"solomon-islands"},{"id":"sc","value":"SC","label":"seychelles"},{"id":"sd","value":"SD","label":"sudan"},{"id":"se","value":"SE","label":"sweden"},{"id":"sg","value":"SG","label":"singapore"},{"id":"sh","value":"SH","label":"saint-helena"},{"id":"si","value":"SI","label":"slovenia"},{"id":"sj","value":"SJ","label":"svalbard-and-jan-mayen"},{"id":"sk","value":"SK","label":"slovakia"},{"id":"sl","value":"SL","label":"sierra-leone"},{"id":"sm","value":"SM","label":"san-marino"},{"id":"sn","value":"SN","label":"senegal"},{"id":"so","value":"SO","label":"somalia"},{"id":"sr","value":"SR","label":"suriname"},{"id":"ss","value":"SS","label":"south-sudan"},{"id":"st","value":"ST","label":"s-o-tom-and-pr-ncipe"},{"id":"sv","value":"SV","label":"el-salvador"},{"id":"sx","value":"SX","label":"sint-maarten"},{"id":"sy","value":"SY","label":"syria"},{"id":"sz","value":"SZ","label":"eswatini"},{"id":"tc","value":"TC","label":"turks-and-caicos-islands"},{"id":"td","value":"TD","label":"chad"},{"id":"tf","value":"TF","label":"french-southern-territories"},{"id":"tg","value":"TG","label":"togo"},{"id":"th","value":"TH","label":"thailand"},{"id":"tj","value":"TJ","label":"tajikistan"},{"id":"tk","value":"TK","label":"tokelau"},{"id":"tl","value":"TL","label":"timor-leste"},{"id":"tm","value":"TM","label":"turkmenistan"},{"id":"tn","value":"TN","label":"tunisia"},{"id":"to","value":"TO","label":"tonga"},{"id":"tr","value":"TR","label":"turkey"},{"id":"tt","value":"TT","label":"trinidad-and-tobago"},{"id":"tv","value":"TV","label":"tuvalu"},{"id":"tw","value":"TW","label":"taiwan"},{"id":"tz","value":"TZ","label":"tanzania"},{"id":"ua","value":"UA","label":"ukraine"},{"id":"ug","value":"UG","label":"uganda"},{"id":"um","value":"UM","label":"united-states-minor-outlying-islands"},{"id":"us","value":"US","label":"united-states"},{"id":"uy","value":"UY","label":"uruguay"},{"id":"uz","value":"UZ","label":"uzbekistan"},{"id":"va","value":"VA","label":"vatican-city"},{"id":"vc","value":"VC","label":"saint-vincent-and-the-grenadines"},{"id":"ve","value":"VE","label":"venezuela"},{"id":"vg","value":"VG","label":"virgin-islands-british"},{"id":"vi","value":"VI","label":"virgin-islands-u-s"},{"id":"vn","value":"VN","label":"vietnam"},{"id":"vu","value":"VU","label":"vanuatu"},{"id":"wf","value":"WF","label":"wallis-and-futuna"},{"id":"ws","value":"WS","label":"samoa"},{"id":"ye","value":"YE","label":"yemen"},{"id":"yt","value":"YT","label":"mayotte"},{"id":"za","value":"ZA","label":"south-africa"},{"id":"zm","value":"ZM","label":"zambia"},{"id":"zw","value":"ZW","label":"zimbabwe"}]],"file_accept":[[{"value":"image/*","label":"Any image","id":"file_accept-0-0"},{"value":".png","label":"PNG","id":"file_accept-0-1"},{"value":".jpg","label":"JPG","id":"file_accept-0-2"},{"value":".jpeg","label":"JPEG","id":"file_accept-0-3"},{"value":".svg","label":"SVG","id":"file_accept-0-4"},{"value":".gif","label":"GIF","id":"file_accept-0-5"},{"value":".webp","label":"WEBP","id":"file_accept-0-6"},{"value":".pdf","label":"PDF","id":"file_accept-0-7"},{"value":".txt","label":"TXT","id":"file_accept-0-8"},{"value":".md","label":"Markdown","id":"file_accept-0-9"},{"value":".csv","label":"CSV","id":"file_accept-0-10"},{"value":".json","label":"JSON","id":"file_accept-0-11"},{"value":".xlsx","label":"XLSX","id":"file_accept-0-12"},{"value":".docx","label":"DOCX","id":"file_accept-0-13"},{"value":".zip","label":"ZIP","id":"file_accept-0-14"},{"value":"video/*","label":"Any video","id":"file_accept-0-15"},{"value":"audio/*","label":"Any audio","id":"file_accept-0-16"}]],"language_options":[[{"value":"en","label":"English","id":"language_options-0-0"},{"value":"hi","label":"हिन्दी","id":"language_options-0-1"},{"value":"bn","label":"বাংলা","id":"language_options-0-2"},{"value":"pa","label":"ਪੰਜਾਬੀ","id":"language_options-0-3"},{"value":"ta","label":"தமிழ்","id":"language_options-0-4"},{"value":"te","label":"తెలుగు","id":"language_options-0-5"},{"value":"mr","label":"मराठी","id":"language_options-0-6"},{"value":"gu","label":"ગુજરાતી","id":"language_options-0-7"},{"value":"or","label":"ଓଡ଼ିଆ","id":"language_options-0-8"},{"value":"ml","label":"മലയാളം","id":"language_options-0-9"},{"value":"kn","label":"ಕನ್ನಡ","id":"language_options-0-10"},{"value":"ur","label":"اردو","id":"language_options-0-11"},{"value":"af","label":"Afrikaans","id":"language_options-0-12"},{"value":"sq","label":"Shqip","id":"language_options-0-13"},{"value":"am","label":"አማርኛ","id":"language_options-0-14"},{"value":"ar","label":"العربية","id":"language_options-0-15"},{"value":"hy","label":"Հայերեն","id":"language_options-0-16"},{"value":"az","label":"Azərbaycan dili","id":"language_options-0-17"},{"value":"eu","label":"Euskara","id":"language_options-0-18"},{"value":"be","label":"Беларуская","id":"language_options-0-19"},{"value":"bg","label":"Български","id":"language_options-0-20"},{"value":"bs","label":"Bosanski","id":"language_options-0-21"},{"value":"ca","label":"Català","id":"language_options-0-22"},{"value":"ceb","label":"Cebuano","id":"language_options-0-23"},{"value":"ny","label":"Chichewa","id":"language_options-0-24"},{"value":"zh","label":"中文","id":"language_options-0-25"},{"value":"co","label":"Corsu","id":"language_options-0-26"},{"value":"hr","label":"Hrvatski","id":"language_options-0-27"},{"value":"cs","label":"Čeština","id":"language_options-0-28"},{"value":"da","label":"Dansk","id":"language_options-0-29"},{"value":"nl","label":"Nederlands","id":"language_options-0-30"},{"value":"eo","label":"Esperanto","id":"language_options-0-31"},{"value":"et","label":"Eesti","id":"language_options-0-32"},{"value":"tl","label":"Filipino","id":"language_options-0-33"},{"value":"fi","label":"Suomi","id":"language_options-0-34"},{"value":"fr","label":"Français","id":"language_options-0-35"},{"value":"fy","label":"Frysk","id":"language_options-0-36"},{"value":"gl","label":"Galego","id":"language_options-0-37"},{"value":"ka","label":"ქართული","id":"language_options-0-38"},{"value":"de","label":"Deutsch","id":"language_options-0-39"},{"value":"el","label":"Ελληνικά","id":"language_options-0-40"},{"value":"ha","label":"Hausa","id":"language_options-0-41"},{"value":"haw","label":"Hawaiʻi","id":"language_options-0-42"},{"value":"iw","label":"עברית","id":"language_options-0-43"},{"value":"hmn","label":"Hmong","id":"language_options-0-44"},{"value":"hu","label":"Magyar","id":"language_options-0-45"},{"value":"is","label":"Íslenska","id":"language_options-0-46"},{"value":"ig","label":"Igbo","id":"language_options-0-47"},{"value":"id","label":"Bahasa Indonesia","id":"language_options-0-48"},{"value":"ga","label":"Gaeilge","id":"language_options-0-49"},{"value":"it","label":"Italiano","id":"language_options-0-50"},{"value":"ja","label":"日本語","id":"language_options-0-51"},{"value":"jw","label":"Jawa","id":"language_options-0-52"},{"value":"kk","label":"Қазақ тілі","id":"language_options-0-53"},{"value":"km","label":"ខ្មែរ","id":"language_options-0-54"},{"value":"ko","label":"한국어","id":"language_options-0-55"},{"value":"ku","label":"Kurdî","id":"language_options-0-56"},{"value":"ky","label":"Кыргызча","id":"language_options-0-57"},{"value":"lo","label":"ລາວ","id":"language_options-0-58"},{"value":"la","label":"Latina","id":"language_options-0-59"},{"value":"lv","label":"Latviešu","id":"language_options-0-60"},{"value":"lt","label":"Lietuvių","id":"language_options-0-61"},{"value":"lb","label":"Lëtzebuergesch","id":"language_options-0-62"},{"value":"mk","label":"Македонски","id":"language_options-0-63"},{"value":"mg","label":"Malagasy","id":"language_options-0-64"},{"value":"ms","label":"Bahasa Melayu","id":"language_options-0-65"},{"value":"mt","label":"Malti","id":"language_options-0-66"},{"value":"mi","label":"Māori","id":"language_options-0-67"},{"value":"mn","label":"Монгол","id":"language_options-0-68"},{"value":"my","label":"မြန်မာ","id":"language_options-0-69"},{"value":"ne","label":"नेपाली","id":"language_options-0-70"},{"value":"no","label":"Norsk","id":"language_options-0-71"},{"value":"ps","label":"پښتو","id":"language_options-0-72"},{"value":"fa","label":"فارسی","id":"language_options-0-73"},{"value":"pl","label":"Polski","id":"language_options-0-74"},{"value":"pt","label":"Português","id":"language_options-0-75"},{"value":"ro","label":"Română","id":"language_options-0-76"},{"value":"ru","label":"Русский","id":"language_options-0-77"},{"value":"sm","label":"Samoan","id":"language_options-0-78"},{"value":"gd","label":"Gàidhlig","id":"language_options-0-79"},{"value":"sr","label":"Српски","id":"language_options-0-80"},{"value":"st","label":"Sesotho","id":"language_options-0-81"},{"value":"sn","label":"Shona","id":"language_options-0-82"},{"value":"si","label":"සිංහල","id":"language_options-0-83"},{"value":"sk","label":"Slovenčina","id":"language_options-0-84"},{"value":"sl","label":"Slovenščina","id":"language_options-0-85"},{"value":"so","label":"Soomaali","id":"language_options-0-86"},{"value":"es","label":"Español","id":"language_options-0-87"},{"value":"su","label":"Basa Sunda","id":"language_options-0-88"},{"value":"sw","label":"Kiswahili","id":"language_options-0-89"},{"value":"sv","label":"Svenska","id":"language_options-0-90"},{"value":"tg","label":"Тоҷикӣ","id":"language_options-0-91"},{"value":"th","label":"ไทย","id":"language_options-0-92"},{"value":"tr","label":"Türkçe","id":"language_options-0-93"},{"value":"uk","label":"Українська","id":"language_options-0-94"},{"value":"uz","label":"O'zbek","id":"language_options-0-95"},{"value":"vi","label":"Tiếng Việt","id":"language_options-0-96"},{"value":"cy","label":"Cymraeg","id":"language_options-0-97"},{"value":"xh","label":"isiXhosa","id":"language_options-0-98"},{"value":"yi","label":"ייִדיש","id":"language_options-0-99"},{"value":"yo","label":"Yorùbá","id":"language_options-0-100"},{"value":"zu","label":"isiZulu","id":"language_options-0-101"}]],"sample-options":[[{"id":"low","label":"Low Priority"},{"id":"medium","label":"Medium Priority"},{"id":"high","label":"High Priority"},{"id":"urgent","label":"Urgent"}]]},"pagination":{"default":{"showPageNumbers":true,"maxVisiblePages":5,"variant":"default"}},"patterns":{"alphanumeric":{"name":"alphanumeric","expression":"^(?:[A-Za-z0-9]+)$","message":"alphanumeric-expected"},"aspect-ratio":{"name":"aspect-ratio","expression":"^(?:\\d+(?:\\.\\d+)?:\\d+(?:\\.\\d+)?)$","message":"not-a-valid-aspect-ratio"},"digits-only":{"name":"digits-only","expression":"^(?:\\d+)$","message":"digits-only-expected"},"email":{"name":"email","expression":"^(?:[^@\\s]+@[^@\\s]+\\.[A-Za-z]{2,})$","message":"not-a-valid-email"},"hex-color":{"name":"hex-color","expression":"^(?:#(?:[0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}))$","flags":"i","message":"not-a-valid-hex-color"},"iban":{"name":"iban","expression":"^(?:[A-Z]{2}\\d{2}[A-Z0-9]{11,30})$","flags":"i","message":"not-a-valid-iban"},"letters-only":{"name":"letters-only","expression":"^(?:[A-Za-z]+)$","message":"letters-only-expected"},"no-whitespace":{"name":"no-whitespace","expression":"^(?:\\S+)$","message":"whitespace-not-allowed"},"phone-e164":{"name":"phone-e164","expression":"^(?:\\+[1-9]\\d{7,14})$","message":"not-a-valid-phone"},"postal-code-loose":{"name":"postal-code-loose","expression":"^(?:[A-Za-z0-9][A-Za-z0-9 -]{1,10}[A-Za-z0-9])$","flags":"i","message":"not-a-valid-postal-code"},"slug":{"name":"slug","expression":"^(?:[a-z0-9]+(?:-[a-z0-9]+)*)$","message":"not-a-valid-slug"},"strong-password":{"name":"strong-password","expression":"^(?:(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^A-Za-z0-9]).{8,})$","message":"password-invalid"},"url":{"name":"url","expression":"^(?:https?://[^\\s]+)$","message":"not-a-valid-url"}},"settings":{"user":{"sections":[{"id":"profile","title":"profile","icon":"user","keywords":["name","username","avatar","photo","display"]},{"id":"account","title":"account","icon":"key","keywords":["email","password","security","login","auth"]},{"id":"notifications","title":"notifications","icon":"notification","keywords":["alerts","push","email","notify"]}]}},"sort":{"default":{"sortBy":"","sortOrder":"asc","variant":"default","options":[]}},"theme":{"dark":{"icon":"star","mode":"dark","color":{"background":"#0d1117","border":"#30363d","frame":"#161b22","backgroundLite":"#21262d","text":"#f0f6fc","inverseText":"#0d1117","textSecondary":"#c9d1d9","textTertiary":"#8b949e","textQuaternary":"#6e7681","textQuinary":"#484f58","textSenary":"#383e47","textSeptenary":"#2d333b","textOctonary":"#24292f","textNonary":"#1c2128","mm":"#4169e1","mmLite":"#6495ed","mmDark":"#1e3a8a","focus":"#4169e1","error":"#f85149","errorLight":"#2e1a1a","warning":"#ff8800","fade":"#6e7681","toolTipBg":"#21262d","toolTipCol":"#f0f6fc","bgFocus":"#262c36","clickEffect":"rgba(255,255,255,.08)","successLite":"#1a2f1a","success":"#3fb950","header":"#4169e1","highlight":"#1e3a8a1a","wealth":"#fd7e14","page":"#0d1117","pageDark":"#010409","focusBg":"rgba(65, 105, 225, 0.25)","modalBackground":"rgba(1, 4, 9, 0.55)","backdropStandard":"rgba(0, 0, 0, 0.3)","backdropGlass":"rgba(0, 0, 0, 0.5)","backdropFrosted":"rgba(0, 0, 0, 0.4)","backdropTheme":"rgba(0, 0, 0, 0.45)","backdropBorder":"rgba(48, 54, 61, 0.5)","backdropFrame":"rgba(22, 27, 34, 0.4)","backdropOverlay":"rgba(0, 0, 0, 0.75)","backdropPopup":"rgba(0, 0, 0, 0.3)","backdropNav":"rgba(22, 27, 34, 0.9)","backdropSidebar":"rgba(22, 27, 34, 0.8)","backdropCard":"rgba(0, 0, 0, 0.5)","backdropSurface":"rgba(0, 0, 0, 0.3)","backdropMm":"rgba(65, 105, 225, 0.15)","backdropError":"rgba(248, 81, 73, 0.15)","backdropWarning":"rgba(255, 136, 0, 0.15)","backdropSuccess":"rgba(63, 185, 80, 0.15)","backdropShadow":"rgba(0, 0, 0, 0.3)","gold":"#FFD700","backdropGold":"rgba(255, 215, 0, 0.15)","easeOutExpo":"cubic-bezier(0.16, 1, 0.3, 1)","warningLite":"#2d1d05","info":"#0366d6","infoLite":"#112740"}},"default":{"color":{"background":"#f3f4f6","border":"#e1e4e8","frame":"#fafbfc","backgroundLite":"#f8f9fa","text":"#334955","inverseText":"#ffffff","textSecondary":"#666666","textTertiary":"#888888","textQuaternary":"#999999","textQuinary":"#aaaaaa","textSenary":"#bbbbbb","textSeptenary":"#cccccc","textOctonary":"#dddddd","textNonary":"#eeeeee","mm":"#7891ff","mmLite":"#99aaff","mmDark":"#5566cc","focus":"#2f98fb","error":"#EB191A","errorLight":"#fae7fb","warning":"#F77A02","fade":"#A4A4A4","toolTipBg":"#4D4F59","toolTipCol":"#CFD1DD","bgFocus":"#F4F4F4","clickEffect":"rgba(0,0,0,.01)","successLite":"#e4f8cf","success":"#6da82f","header":"#517be6","highlight":"#c8e5f9","wealth":"#de6130","page":"#fefaf2","pageDark":"#f5efe6","focusBg":"rgba(66, 153, 225, 0.6)","modalBackground":"rgba(0, 0, 0, 0.5)","gold":"#FFD700","easeOutExpo":"cubic-bezier(0.16, 1, 0.3, 1)","backdropStandard":"rgba(255, 255, 255, 0.1)","backdropGlass":"rgba(255, 255, 255, 0.25)","backdropFrosted":"rgba(255, 255, 255, 0.15)","backdropTheme":"rgba(255, 255, 255, 0.2)","backdropBorder":"rgba(225, 228, 232, 0.3)","backdropFrame":"rgba(250, 251, 252, 0.15)","backdropOverlay":"rgba(255, 255, 255, 0.75)","backdropPopup":"rgba(255, 255, 255, 0.1)","backdropNav":"rgba(250, 251, 252, 0.8)","backdropSidebar":"rgba(248, 249, 250, 0.15)","backdropCard":"rgba(255, 255, 255, 0.25)","backdropSurface":"rgba(255, 255, 255, 0.1)","backdropMm":"rgba(120, 145, 255, 0.1)","backdropError":"rgba(235, 25, 26, 0.1)","backdropWarning":"rgba(247, 122, 2, 0.1)","backdropSuccess":"rgba(109, 168, 47, 0.1)","backdropShadow":"rgba(0, 0, 0, 0.15)","backdropGold":"rgba(255, 215, 0, 0.15)","warningLite":"#fff4e5","info":"#0366d6","infoLite":"#dbedff"}},"light":{"icon":"sun","mode":"light","color":{"background":"#ffffff","border":"#d0d7de","frame":"#f6f8fa","backgroundLite":"#fafbfc","text":"#24292f","inverseText":"#ffffff","textSecondary":"#656d76","textTertiary":"#8b949e","textQuaternary":"#a0a8b0","textQuinary":"#b6bcc6","textSenary":"#c9d1d9","textSeptenary":"#d7dde3","textOctonary":"#e5e9ed","textNonary":"#f3f4f6","mm":"#4169e1","mmLite":"#6495ed","mmDark":"#1e3a8a","focus":"#4169e1","error":"#EB191A","errorLight":"#fae7fb","warning":"#F77A02","fade":"#A4A4A4","toolTipBg":"#24292f","toolTipCol":"#ffffff","bgFocus":"#f6f8fa","clickEffect":"rgba(0,0,0,.03)","successLite":"#e4f8cf","success":"#6da82f","header":"#4169e1","highlight":"#dbeafe","wealth":"#de6130","page":"#fefaf2","pageDark":"#f5efe6","focusBg":"rgba(65, 105, 225, 0.6)","modalBackground":"rgba(255, 255, 255, 0.35)","backdropStandard":"rgba(255, 255, 255, 0.1)","backdropGlass":"rgba(255, 255, 255, 0.25)","backdropFrosted":"rgba(255, 255, 255, 0.15)","backdropTheme":"rgba(255, 255, 255, 0.2)","backdropBorder":"rgba(208, 215, 222, 0.3)","backdropFrame":"rgba(246, 248, 250, 0.15)","backdropOverlay":"rgba(255, 255, 255, 0.75)","backdropPopup":"rgba(255, 255, 255, 0.1)","backdropNav":"rgba(250, 251, 252, 0.8)","backdropSidebar":"rgba(246, 248, 250, 0.15)","backdropCard":"rgba(255, 255, 255, 0.25)","backdropSurface":"rgba(255, 255, 255, 0.1)","backdropMm":"rgba(65, 105, 225, 0.1)","backdropError":"rgba(235, 25, 26, 0.1)","backdropWarning":"rgba(247, 122, 2, 0.1)","backdropSuccess":"rgba(109, 168, 47, 0.1)","backdropShadow":"rgba(0, 0, 0, 0.3)","gold":"#FFD700","backdropGold":"rgba(255, 215, 0, 0.15)","easeOutExpo":"cubic-bezier(0.16, 1, 0.3, 1)","warningLite":"#fff4e5","info":"#0366d6","infoLite":"#dbedff"}},"theme":[{"fileName":"light","name":"light","mode":"light","icon":"sun"},{"fileName":"default","name":"default","mode":"normal"},{"fileName":"dark","name":"dark","mode":"dark","icon":"star"}]}}
1
+ {"accordion_groups":{"small_gap":null},"accordions":{"fixed_allocation":{"label":"fixed-allocation","subtitle":"portfolio_targets","open":false,"variant":"flat"},"general_settings":{"label":"settings","subtitle":"strategy_configuration","open":true,"variant":"flat"}},"badges":{"danger_absolute":{"variant":"danger","position":"absolute"},"danger_static":{"variant":"danger","position":"static"},"filter_badge":{"variant":"chip"}},"button_groups":{"comment_edit_actions":{"names":["comment_cancel","comment_save"],"primary":"comment_save","one":true,"buttons":[]},"date_header":{"names":["date_header_back","date_header_title","date_header_next"],"buttons":[]},"form-actions":{"layout":"horizontal","spacing":"medium","alignment":"right","buttons":[]},"nav_footer_button_group":{"vertical":true,"center":true,"size":"sm","color":"textSecondary","buttons":[{"name":"settings_icon_only","icon":"gear","color":"mm","nav":"root_settings","variant":"ghost"},{"name":"theme_icon_only","icon":"star","color":"mm","nav":"root_settings_user_theme","variant":"ghost"},{"name":"current_lang","nav":"root_settings_user_language","label":"en","variant":"ghost"}]},"nav_main_button_group":{"vertical":true,"center":true,"color":"mm","buttons":[{"name":"search","icon":"search","color":"mm","nav":"root_search","variant":"ghost","iconOnly":true},{"name":"notification","title":"Notifications","icon":"notification","iconOnly":true,"variant":"ghost"}]},"nav_user_actions":{"names":["nav_user_settings","nav_user_logout"],"size":"sm","one":true,"buttons":[]},"notification_actions":{"names":["decline","accept"],"primary":"accept","one":true,"buttons":[{"name":"decline_notification","label":"decline","variant":"ghost"}]},"notification_filter":{"names":["all","unread"],"size":"sm","primary":"all","buttons":[{"name":"all","label":"all","variant":"ghost"},{"name":"unread","label":"unread","variant":"ghost"}]},"profile_modal_actions":{"names":["cancel_profile","save_profile"],"primary":"save_profile","center":true,"one":true,"buttons":[]},"reply_actions":{"names":["comment_cancel","post"],"primary":"post","one":true,"buttons":[]},"showcase_nav":{"names":["showcase_back","showcase_back_to_home"],"buttons":[]}},"buttons":{"accordion_chevron":{"icon":"chevron-down","variant":"ghost"},"all":{"label":"all","variant":"ghost"},"app_open_arrow":{"icon":"chevron-right","color":"textSecondary","variant":"ghost","label":"open","iconOnly":true},"apps":{"icon":"apps","iconOnly":true,"variant":"ghost","nav":"root_app"},"back_icon":{"icon":"arrow-left","color":"mm","variant":"ghost"},"cancel_profile":{"label":"cancel","icon":"x","variant":"ghost"},"close-icon-only":{"icon":"x","color":"error","variant":"ghost","isOne":true},"comment_cancel":{"label":"comment_cancel","color":"danger"},"comment_hide_replies":{"label":"hide-replies","variant":"ghost","color":"mm"},"comment_reply":{"icon":"comment_reply","variant":"ghost","color":"mm"},"comment_save":{"label":"save-changes","color":"mm","variant":"primary"},"comment_view_replies":{"label":"view-replies","variant":"ghost","color":"mm"},"confirm_cancel":{"label":"cancel","variant":"ghost","fullWidth":true},"current_lang":{"nav":"root_settings_user_language","label":"en","variant":"ghost"},"date_header_back":{"icon":"arrow-left","variant":"ghost"},"date_header_next":{"icon":"arrow-right","variant":"ghost"},"date_header_title":{"variant":"ghost"},"decline_notification":{"label":"decline","variant":"ghost"},"edit_profile":{"label":"edit","icon":"pencil","variant":"primary"},"eye":{"icon":"eye","color":"mm","variant":"ghost"},"eye_close":{"icon":"eye_close","color":"mm","variant":"ghost"},"filter_toggle":{"icon":"adjust","one":true,"variant":"ghost","iconOnly":true},"language":{"icon":"language","variant":"ghost","nav":"root_settings_user_language","label":"language"},"login_icon_only":{"icon":"lock","color":"mm","action":"authenticate","variant":"ghost"},"logout":{"icon":"lock","label":"logout","variant":"ghost"},"mark_all_read":{"label":"mark-all-read","variant":"ghost"},"menu":{"icon":"menu","variant":"ghost","color":"mm"},"nav_back":{"icon":"chevron_left","color":"mm","variant":"ghost"},"nav_trail_next":{"icon":"chevron-right","color":"mm","variant":"ghost","iconOnly":true},"nav_user_logout":{"icon":"lock","label":"logout","variant":"ghost"},"nav_user_settings":{"icon":"gear","label":"settings","variant":"ghost"},"next":{"icon":"arrow-right","label":"next","color":"mm","isRightIcon":true,"variant":"secondary"},"no":{"label":"false","icon":"x","color":"danger","variant":"ghost"},"notification":{"title":"Notifications","icon":"notification","iconOnly":true,"variant":"ghost"},"ok":{"label":"OK","icon":"check","color":"success"},"okay":{"label":"okay","variant":"primary","fullWidth":true},"pagination_first":{"icon":"chevrons-left","variant":"ghost"},"pagination_last":{"icon":"chevrons-right","variant":"ghost"},"pagination_next":{"icon":"arrow-right","variant":"ghost"},"pagination_prev":{"icon":"arrow-left","variant":"ghost"},"post":{"icon":"arrow-right","label":"post","color":"mm","variant":"primary"},"remove_allocation":{"icon":"trash-2","iconOnly":true,"variant":"ghost"},"resend":{"label":"resend","color":"mm"},"reset":{"label":"reset","color":"mm"},"save_allocation":{"label":"save-allocation","icon":"save","variant":"primary"},"save_general":{"label":"save-settings","icon":"check-circle","variant":"primary"},"save_profile":{"label":"save","icon":"check-circle","variant":"primary"},"search":{"icon":"search","color":"mm","nav":"root_search","variant":"ghost","iconOnly":true},"search_clear":{"icon":"x","one":true,"variant":"ghost"},"search_toggle":{"icon":"search","one":true,"variant":"ghost","iconOnly":true},"select_user":{"label":"select-user","icon":"user","variant":"primary"},"send_comment":{"icon":"send","color":"mm"},"settings":{"icon":"gear","color":"mm","nav":"root_settings","variant":"ghost","iconOnly":true},"settings_icon_only":{"icon":"gear","color":"mm","nav":"root_settings","variant":"ghost"},"showcase_back":{"iconOnly":true,"icon":"chevron-left","variant":"ghost","label":"back"},"showcase_back_to_home":{"label":"one-ui","icon":"logo","variant":"ghost","nav":"root"},"sign_in":{"icon":"user","label":"sign_in","variant":"primary"},"sort_asc":{"icon":"chevron-up"},"sort_desc":{"icon":"chevron-down"},"stepper_next":{"icon":"chevron-right","label":"next","isRightIcon":true,"variant":"ghost"},"stepper_prev":{"icon":"chevron-left","label":"prev","variant":"ghost"},"submit":{"icon":{"name":"check"},"text":"Submit","type":"primary","disabled":false},"terms":{"name":"terms","label":"terms","nav":"root_info_terms"},"theme":{"icon":"theme","variant":"ghost","nav":"root_settings_user_theme","label":"theme"},"theme_icon_only":{"icon":"star","color":"mm","nav":"root_settings_user_theme","variant":"ghost"},"unread":{"label":"unread","variant":"ghost"},"upload_image":{"icon":"upload","variant":"ghost"},"user":{"icon":"user","iconOnly":true,"variant":"ghost","nav":"root_user"},"x":{"icon":"x","one":true,"variant":"ghost"},"yes":{"label":"true","icon":"check","color":"success"}},"cards":{"beautiful":{"variant":"beautiful","interactive":true},"featured":{"variant":"beautiful","interactive":true,"separator":true},"no_border":{"variant":"no-border","fullHeight":true}},"carousel":{"sample":{"slides":[{"image":"https://images.unsplash.com/photo-1612036782180-6f0b6cd846fe?q=80&w=2070&auto=format&fit=crop","title":"Marvel Universe","description":"Explore the vast Multiverse of Marvel Comics."},{"image":"https://images.unsplash.com/photo-1620336655055-088d06e36bf0?q=80&w=1974&auto=format&fit=crop","title":"DC Universe","description":"Witness the dawn of justice with DC Legends."},{"image":"https://images.unsplash.com/photo-1588497859490-85d1c17db96d?q=80&w=2070&auto=format&fit=crop","title":"Manga Classics","description":"Dive into the world of Japanese storytelling."}],"autoPlay":true,"interval":5000,"showDots":true,"dotsPosition":"bottom","componentPosition":"right"}},"charts":{"default":{"showGlow":false,"showLegend":false,"showPnlZone":false,"showCurrentValue":false,"vPad":12},"dual_area":{"showGlow":true,"showLegend":true,"showPnlZone":true,"showCurrentValue":false,"vPad":0}},"fields":{"allocation_pct":{"type":"number","label":"","placeholder":"0","min":0,"max":100,"step":1},"backgroundColor":{"type":"color","label":"background-color","name":"backgroundColor"},"bevel":{"type":"radio","label":"bevel"},"butt":{"type":"radio","label":"butt"},"canInteract":{"type":"toggle","label":"can-interact","name":"canInteract"},"comment_edit_textarea":{"type":"textarea","name":"comment_edit_textarea","placeholder":"comment_placeholder","variant":"comment-edit"},"confirm_password":{"type":"password","label":"confirm-password"},"dob":{"type":"date","label":"date-of-birth"},"edgeSensitivity":{"type":"range","label":"edge-sensitivity","name":"edgeSensitivity","min":0,"max":5},"email":{"type":1,"model":"email","placeholder":"Enter your email","validators":[{"type":"required","message":"Email is required"},{"type":"email","message":"Please enter a valid email"}]},"female":{"type":"radio","label":"female"},"first_name":{"type":"text","label":"first-name","placeholder":"type-text"},"identity":{"type":"selectable_card","label":"","vertical":true,"multiSelect":false,"isCheckboxVisible":false},"invertSvg":{"type":"toggle","label":"invert-svg","name":"invertSvg"},"last_name":{"type":"text","label":"last-name","placeholder":"type-text"},"last_name_search":{"type":"text","label":"last-name","button":"search","buttonAction":"search","placeholder":"type-text"},"lineColor":{"type":"color","label":"line-color","name":"lineColor"},"lineSmoothing":{"type":"range","label":"line-smoothing","name":"lineSmoothing","min":0,"max":10},"linecap":{"type":"radio_group","label":"line-cap","name":"linecap","vertical":true,"options":["butt","round","square"]},"linejoin":{"type":"radio_group","label":"line-join","name":"linejoin","vertical":true,"options":["miter","round","bevel"]},"male":{"type":"radio","label":"male"},"miter":{"type":"radio","label":"miter"},"nearestPoint":{"type":"range","label":"nearest-point","name":"nearestPoint","min":0,"max":5},"new_password":{"type":"password","label":"new-password"},"noiseReduction":{"type":"range","label":"noise-reduction","name":"noiseReduction","min":0,"max":20},"other":{"type":"radio","label":"other"},"otp":{"type":"otp","label":"one-time-password","length":6},"password":{"type":"password","label":"password"},"playground_format":{"type":"toggle_radio","name":"playground_format","label":"","configs":[{"type":"radio","id":"json","label":"json"},{"type":"radio","id":"yaml","label":"yaml"}]},"re_password":{"type":"password","label":"retype-password"},"round":{"type":"radio","label":"round"},"search_input":{"name":"search","type":"search","label":"","icon":"search","one":true,"placeholder":"Search..."},"service_agreement":{"type":"checkbox","label":"i-agree-to-above-agreement"},"sex":{"type":"radio_group","label":"sex","options":["male","female","other"]},"square":{"type":"radio","label":"square"},"strokeWidth":{"type":"range","label":"stroke-width","name":"strokeWidth","min":1,"max":25},"table_page_size":{"type":"dropdown","label":"rows-per-page","maxWidth":100,"placeholder":"please_select"},"table_search":{"type":"search","label":"","icon":"search","one":true,"maxWidth":240},"threshold":{"type":"range","label":"threshold","name":"threshold","min":0,"max":255},"tree_search":{"type":"search","label":"","icon":"search","one":true},"username_email_mobile":{"type":"text","label":"username-email-mobile","placeholder":"type-text"}},"forms":{"allocation_row":{"inputs":[["allocation_pct"]],"spans":[[12]]},"check_username":{"inputs":[["username_email_mobile"]]},"companies_search":{"inputs":[["search"]],"spans":[[12]]},"contact":{"fields":["email"],"validators":[],"values":{},"isValid":[],"isTouched":[]},"create_user":{"inputs":[["first_name","last_name"],["dob"],["sex","country"],["password"],["re_password"]]},"reset_password":{"inputs":[["otp"],["new_password"],["confirm_password"]]},"select_identity":{"inputs":[["identity"]]},"service_agreement":{"inputs":[["service_agreement"]]},"settings_general":{"inputs":[["amount"],["max"]],"spans":[[12],[12]]},"svg_edit":{"inputs":[["strokeWidth"],["linecap"],["linejoin"],["invertSvg"],["canInteract"],["backgroundColor"],["lineColor"]]},"svg_tuning":{"inputs":[["threshold"],["edgeSensitivity"],["lineSmoothing"],["noiseReduction"],["nearestPoint"]]},"user_search":{"inputs":[["first_name","last_name_search"]]},"verify_otp":{"inputs":[["otp"]]},"verify_password":{"inputs":[["password"]]}},"graphs":{"animated-graphs":{"dimensions":{"desktop":"60vh","tablet":"50vh","mobile":"40vh"},"curviness":"150px"}},"menu":{"comment_actions":{"icon":{"name":"ellipsis-vertical"},"width":"140px","options":[[{"id":"edit","label":"comment_edit","icon":"pencil"},{"id":"delete","label":"comment_delete","icon":"trash"}]]},"comments_feed_actions":{"icon":{"name":"ellipsis-vertical"},"width":"160px","align":"right","options":[[{"id":"refresh","label":"refresh","icon":"reset"}]]},"user_header":{"options":[[{"id":"edit_profile","label":"edit-profile","icon":"user"},{"id":"settings","label":"settings","icon":"gear"}],[{"id":"logout","label":"logout","icon":"lock"}]],"icon":{"name":"ellipsis-vertical"},"width":"220px"}},"modal":{"authenticate":{"align":"center","resizable":false,"backdropClose":false,"closeProhibited":true,"fullscreen":false,"noBackdrop":false},"bottom":{"one":true,"align":"bottom","backdropClose":true},"center":{"one":true,"align":"center","backdropClose":true},"fullscreen":{"one":true,"fullscreen":true}},"options":{"countries":[[{"id":"ad","value":"AD","label":"andorra"},{"id":"ae","value":"AE","label":"united-arab-emirates"},{"id":"af","value":"AF","label":"afghanistan"},{"id":"ag","value":"AG","label":"antigua-and-barbuda"},{"id":"ai","value":"AI","label":"anguilla"},{"id":"al","value":"AL","label":"albania"},{"id":"am","value":"AM","label":"armenia"},{"id":"ao","value":"AO","label":"angola"},{"id":"aq","value":"AQ","label":"antarctica"},{"id":"ar","value":"AR","label":"argentina"},{"id":"as","value":"AS","label":"american-samoa"},{"id":"at","value":"AT","label":"austria"},{"id":"au","value":"AU","label":"australia"},{"id":"aw","value":"AW","label":"aruba"},{"id":"ax","value":"AX","label":"land-islands"},{"id":"az","value":"AZ","label":"azerbaijan"},{"id":"ba","value":"BA","label":"bosnia-and-herzegovina"},{"id":"bb","value":"BB","label":"barbados"},{"id":"bd","value":"BD","label":"bangladesh"},{"id":"be","value":"BE","label":"belgium"},{"id":"bf","value":"BF","label":"burkina-faso"},{"id":"bg","value":"BG","label":"bulgaria"},{"id":"bh","value":"BH","label":"bahrain"},{"id":"bi","value":"BI","label":"burundi"},{"id":"bj","value":"BJ","label":"benin"},{"id":"bl","value":"BL","label":"saint-barth-lemy"},{"id":"bm","value":"BM","label":"bermuda"},{"id":"bn","value":"BN","label":"brunei"},{"id":"bo","value":"BO","label":"bolivia"},{"id":"bq","value":"BQ","label":"caribbean-netherlands"},{"id":"br","value":"BR","label":"brazil"},{"id":"bs","value":"BS","label":"bahamas"},{"id":"bt","value":"BT","label":"bhutan"},{"id":"bv","value":"BV","label":"bouvet-island"},{"id":"bw","value":"BW","label":"botswana"},{"id":"by","value":"BY","label":"belarus"},{"id":"bz","value":"BZ","label":"belize"},{"id":"ca","value":"CA","label":"canada"},{"id":"cc","value":"CC","label":"cocos-keeling-islands"},{"id":"cd","value":"CD","label":"democratic-republic-of-the-congo"},{"id":"cf","value":"CF","label":"central-african-republic"},{"id":"cg","value":"CG","label":"congo"},{"id":"ch","value":"CH","label":"switzerland"},{"id":"ci","value":"CI","label":"c-te-d-ivoire"},{"id":"ck","value":"CK","label":"cook-islands"},{"id":"cl","value":"CL","label":"chile"},{"id":"cm","value":"CM","label":"cameroon"},{"id":"cn","value":"CN","label":"china"},{"id":"co","value":"CO","label":"colombia"},{"id":"cr","value":"CR","label":"costa-rica"},{"id":"cu","value":"CU","label":"cuba"},{"id":"cv","value":"CV","label":"cabo-verde"},{"id":"cw","value":"CW","label":"cura-ao"},{"id":"cx","value":"CX","label":"christmas-island"},{"id":"cy","value":"CY","label":"cyprus"},{"id":"cz","value":"CZ","label":"czechia"},{"id":"de","value":"DE","label":"germany"},{"id":"dj","value":"DJ","label":"djibouti"},{"id":"dk","value":"DK","label":"denmark"},{"id":"dm","value":"DM","label":"dominica"},{"id":"do","value":"DO","label":"dominican-republic"},{"id":"dz","value":"DZ","label":"algeria"},{"id":"ec","value":"EC","label":"ecuador"},{"id":"ee","value":"EE","label":"estonia"},{"id":"eg","value":"EG","label":"egypt"},{"id":"eh","value":"EH","label":"western-sahara"},{"id":"er","value":"ER","label":"eritrea"},{"id":"es","value":"ES","label":"spain"},{"id":"et","value":"ET","label":"ethiopia"},{"id":"fi","value":"FI","label":"finland"},{"id":"fj","value":"FJ","label":"fiji"},{"id":"fk","value":"FK","label":"falkland-islands"},{"id":"fm","value":"FM","label":"micronesia"},{"id":"fo","value":"FO","label":"faroe-islands"},{"id":"fr","value":"FR","label":"france"},{"id":"ga","value":"GA","label":"gabon"},{"id":"gb","value":"GB","label":"united-kingdom"},{"id":"gd","value":"GD","label":"grenada"},{"id":"ge","value":"GE","label":"georgia"},{"id":"gf","value":"GF","label":"french-guiana"},{"id":"gg","value":"GG","label":"guernsey"},{"id":"gh","value":"GH","label":"ghana"},{"id":"gi","value":"GI","label":"gibraltar"},{"id":"gl","value":"GL","label":"greenland"},{"id":"gm","value":"GM","label":"gambia"},{"id":"gn","value":"GN","label":"guinea"},{"id":"gp","value":"GP","label":"guadeloupe"},{"id":"gq","value":"GQ","label":"equatorial-guinea"},{"id":"gr","value":"GR","label":"greece"},{"id":"gs","value":"GS","label":"country_gs"},{"id":"gt","value":"GT","label":"guatemala"},{"id":"gu","value":"GU","label":"guam"},{"id":"gw","value":"GW","label":"guinea-bissau"},{"id":"gy","value":"GY","label":"guyana"},{"id":"hk","value":"HK","label":"hong-kong"},{"id":"hm","value":"HM","label":"heard-island-and-mcdonald-islands"},{"id":"hn","value":"HN","label":"honduras"},{"id":"hr","value":"HR","label":"croatia"},{"id":"ht","value":"HT","label":"haiti"},{"id":"hu","value":"HU","label":"hungary"},{"id":"id","value":"ID","label":"indonesia"},{"id":"ie","value":"IE","label":"ireland"},{"id":"il","value":"IL","label":"israel"},{"id":"im","value":"IM","label":"isle-of-man"},{"id":"in","value":"IN","label":"india"},{"id":"io","value":"IO","label":"british-indian-ocean-territory"},{"id":"iq","value":"IQ","label":"iraq"},{"id":"ir","value":"IR","label":"iran"},{"id":"is","value":"IS","label":"iceland"},{"id":"it","value":"IT","label":"italy"},{"id":"je","value":"JE","label":"jersey"},{"id":"jm","value":"JM","label":"jamaica"},{"id":"jo","value":"JO","label":"jordan"},{"id":"jp","value":"JP","label":"japan"},{"id":"ke","value":"KE","label":"kenya"},{"id":"kg","value":"KG","label":"kyrgyzstan"},{"id":"kh","value":"KH","label":"cambodia"},{"id":"ki","value":"KI","label":"kiribati"},{"id":"km","value":"KM","label":"comoros"},{"id":"kn","value":"KN","label":"saint-kitts-and-nevis"},{"id":"kp","value":"KP","label":"north-korea"},{"id":"kr","value":"KR","label":"south-korea"},{"id":"kw","value":"KW","label":"kuwait"},{"id":"ky","value":"KY","label":"cayman-islands"},{"id":"kz","value":"KZ","label":"kazakhstan"},{"id":"la","value":"LA","label":"laos"},{"id":"lb","value":"LB","label":"lebanon"},{"id":"lc","value":"LC","label":"saint-lucia"},{"id":"li","value":"LI","label":"liechtenstein"},{"id":"lk","value":"LK","label":"sri-lanka"},{"id":"lr","value":"LR","label":"liberia"},{"id":"ls","value":"LS","label":"lesotho"},{"id":"lt","value":"LT","label":"lithuania"},{"id":"lu","value":"LU","label":"luxembourg"},{"id":"lv","value":"LV","label":"latvia"},{"id":"ly","value":"LY","label":"libya"},{"id":"ma","value":"MA","label":"morocco"},{"id":"mc","value":"MC","label":"monaco"},{"id":"md","value":"MD","label":"moldova"},{"id":"me","value":"ME","label":"montenegro"},{"id":"mf","value":"MF","label":"saint-martin"},{"id":"mg","value":"MG","label":"madagascar"},{"id":"mh","value":"MH","label":"marshall-islands"},{"id":"mk","value":"MK","label":"north-macedonia"},{"id":"ml","value":"ML","label":"mali"},{"id":"mm","value":"MM","label":"myanmar"},{"id":"mn","value":"MN","label":"mongolia"},{"id":"mo","value":"MO","label":"macao"},{"id":"mp","value":"MP","label":"northern-mariana-islands"},{"id":"mq","value":"MQ","label":"martinique"},{"id":"mr","value":"MR","label":"mauritania"},{"id":"ms","value":"MS","label":"montserrat"},{"id":"mt","value":"MT","label":"malta"},{"id":"mu","value":"MU","label":"mauritius"},{"id":"mv","value":"MV","label":"maldives"},{"id":"mw","value":"MW","label":"malawi"},{"id":"mx","value":"MX","label":"mexico"},{"id":"my","value":"MY","label":"malaysia"},{"id":"mz","value":"MZ","label":"mozambique"},{"id":"na","value":"NA","label":"namibia"},{"id":"nc","value":"NC","label":"new-caledonia"},{"id":"ne","value":"NE","label":"niger"},{"id":"nf","value":"NF","label":"norfolk-island"},{"id":"ng","value":"NG","label":"nigeria"},{"id":"ni","value":"NI","label":"nicaragua"},{"id":"nl","value":"NL","label":"netherlands"},{"id":"no","value":"NO","label":"norway"},{"id":"np","value":"NP","label":"nepal"},{"id":"nr","value":"NR","label":"nauru"},{"id":"nu","value":"NU","label":"niue"},{"id":"nz","value":"NZ","label":"new-zealand"},{"id":"om","value":"OM","label":"oman"},{"id":"pa","value":"PA","label":"panama"},{"id":"pe","value":"PE","label":"peru"},{"id":"pf","value":"PF","label":"french-polynesia"},{"id":"pg","value":"PG","label":"papua-new-guinea"},{"id":"ph","value":"PH","label":"philippines"},{"id":"pk","value":"PK","label":"pakistan"},{"id":"pl","value":"PL","label":"poland"},{"id":"pm","value":"PM","label":"saint-pierre-and-miquelon"},{"id":"pn","value":"PN","label":"pitcairn-islands"},{"id":"pr","value":"PR","label":"puerto-rico"},{"id":"ps","value":"PS","label":"palestine"},{"id":"pt","value":"PT","label":"portugal"},{"id":"pw","value":"PW","label":"palau"},{"id":"py","value":"PY","label":"paraguay"},{"id":"qa","value":"QA","label":"qatar"},{"id":"re","value":"RE","label":"r-union"},{"id":"ro","value":"RO","label":"romania"},{"id":"rs","value":"RS","label":"serbia"},{"id":"ru","value":"RU","label":"russia"},{"id":"rw","value":"RW","label":"rwanda"},{"id":"sa","value":"SA","label":"saudi-arabia"},{"id":"sb","value":"SB","label":"solomon-islands"},{"id":"sc","value":"SC","label":"seychelles"},{"id":"sd","value":"SD","label":"sudan"},{"id":"se","value":"SE","label":"sweden"},{"id":"sg","value":"SG","label":"singapore"},{"id":"sh","value":"SH","label":"saint-helena"},{"id":"si","value":"SI","label":"slovenia"},{"id":"sj","value":"SJ","label":"svalbard-and-jan-mayen"},{"id":"sk","value":"SK","label":"slovakia"},{"id":"sl","value":"SL","label":"sierra-leone"},{"id":"sm","value":"SM","label":"san-marino"},{"id":"sn","value":"SN","label":"senegal"},{"id":"so","value":"SO","label":"somalia"},{"id":"sr","value":"SR","label":"suriname"},{"id":"ss","value":"SS","label":"south-sudan"},{"id":"st","value":"ST","label":"s-o-tom-and-pr-ncipe"},{"id":"sv","value":"SV","label":"el-salvador"},{"id":"sx","value":"SX","label":"sint-maarten"},{"id":"sy","value":"SY","label":"syria"},{"id":"sz","value":"SZ","label":"eswatini"},{"id":"tc","value":"TC","label":"turks-and-caicos-islands"},{"id":"td","value":"TD","label":"chad"},{"id":"tf","value":"TF","label":"french-southern-territories"},{"id":"tg","value":"TG","label":"togo"},{"id":"th","value":"TH","label":"thailand"},{"id":"tj","value":"TJ","label":"tajikistan"},{"id":"tk","value":"TK","label":"tokelau"},{"id":"tl","value":"TL","label":"timor-leste"},{"id":"tm","value":"TM","label":"turkmenistan"},{"id":"tn","value":"TN","label":"tunisia"},{"id":"to","value":"TO","label":"tonga"},{"id":"tr","value":"TR","label":"turkey"},{"id":"tt","value":"TT","label":"trinidad-and-tobago"},{"id":"tv","value":"TV","label":"tuvalu"},{"id":"tw","value":"TW","label":"taiwan"},{"id":"tz","value":"TZ","label":"tanzania"},{"id":"ua","value":"UA","label":"ukraine"},{"id":"ug","value":"UG","label":"uganda"},{"id":"um","value":"UM","label":"united-states-minor-outlying-islands"},{"id":"us","value":"US","label":"united-states"},{"id":"uy","value":"UY","label":"uruguay"},{"id":"uz","value":"UZ","label":"uzbekistan"},{"id":"va","value":"VA","label":"vatican-city"},{"id":"vc","value":"VC","label":"saint-vincent-and-the-grenadines"},{"id":"ve","value":"VE","label":"venezuela"},{"id":"vg","value":"VG","label":"virgin-islands-british"},{"id":"vi","value":"VI","label":"virgin-islands-u-s"},{"id":"vn","value":"VN","label":"vietnam"},{"id":"vu","value":"VU","label":"vanuatu"},{"id":"wf","value":"WF","label":"wallis-and-futuna"},{"id":"ws","value":"WS","label":"samoa"},{"id":"ye","value":"YE","label":"yemen"},{"id":"yt","value":"YT","label":"mayotte"},{"id":"za","value":"ZA","label":"south-africa"},{"id":"zm","value":"ZM","label":"zambia"},{"id":"zw","value":"ZW","label":"zimbabwe"}]],"file_accept":[[{"value":"image/*","label":"Any image","id":"file_accept-0-0"},{"value":".png","label":"PNG","id":"file_accept-0-1"},{"value":".jpg","label":"JPG","id":"file_accept-0-2"},{"value":".jpeg","label":"JPEG","id":"file_accept-0-3"},{"value":".svg","label":"SVG","id":"file_accept-0-4"},{"value":".gif","label":"GIF","id":"file_accept-0-5"},{"value":".webp","label":"WEBP","id":"file_accept-0-6"},{"value":".pdf","label":"PDF","id":"file_accept-0-7"},{"value":".txt","label":"TXT","id":"file_accept-0-8"},{"value":".md","label":"Markdown","id":"file_accept-0-9"},{"value":".csv","label":"CSV","id":"file_accept-0-10"},{"value":".json","label":"JSON","id":"file_accept-0-11"},{"value":".xlsx","label":"XLSX","id":"file_accept-0-12"},{"value":".docx","label":"DOCX","id":"file_accept-0-13"},{"value":".zip","label":"ZIP","id":"file_accept-0-14"},{"value":"video/*","label":"Any video","id":"file_accept-0-15"},{"value":"audio/*","label":"Any audio","id":"file_accept-0-16"}]],"language_options":[[{"value":"en","label":"English","id":"language_options-0-0"},{"value":"hi","label":"हिन्दी","id":"language_options-0-1"},{"value":"bn","label":"বাংলা","id":"language_options-0-2"},{"value":"pa","label":"ਪੰਜਾਬੀ","id":"language_options-0-3"},{"value":"ta","label":"தமிழ்","id":"language_options-0-4"},{"value":"te","label":"తెలుగు","id":"language_options-0-5"},{"value":"mr","label":"मराठी","id":"language_options-0-6"},{"value":"gu","label":"ગુજરાતી","id":"language_options-0-7"},{"value":"or","label":"ଓଡ଼ିଆ","id":"language_options-0-8"},{"value":"ml","label":"മലയാളം","id":"language_options-0-9"},{"value":"kn","label":"ಕನ್ನಡ","id":"language_options-0-10"},{"value":"ur","label":"اردو","id":"language_options-0-11"},{"value":"af","label":"Afrikaans","id":"language_options-0-12"},{"value":"sq","label":"Shqip","id":"language_options-0-13"},{"value":"am","label":"አማርኛ","id":"language_options-0-14"},{"value":"ar","label":"العربية","id":"language_options-0-15"},{"value":"hy","label":"Հայերեն","id":"language_options-0-16"},{"value":"az","label":"Azərbaycan dili","id":"language_options-0-17"},{"value":"eu","label":"Euskara","id":"language_options-0-18"},{"value":"be","label":"Беларуская","id":"language_options-0-19"},{"value":"bg","label":"Български","id":"language_options-0-20"},{"value":"bs","label":"Bosanski","id":"language_options-0-21"},{"value":"ca","label":"Català","id":"language_options-0-22"},{"value":"ceb","label":"Cebuano","id":"language_options-0-23"},{"value":"ny","label":"Chichewa","id":"language_options-0-24"},{"value":"zh","label":"中文","id":"language_options-0-25"},{"value":"co","label":"Corsu","id":"language_options-0-26"},{"value":"hr","label":"Hrvatski","id":"language_options-0-27"},{"value":"cs","label":"Čeština","id":"language_options-0-28"},{"value":"da","label":"Dansk","id":"language_options-0-29"},{"value":"nl","label":"Nederlands","id":"language_options-0-30"},{"value":"eo","label":"Esperanto","id":"language_options-0-31"},{"value":"et","label":"Eesti","id":"language_options-0-32"},{"value":"tl","label":"Filipino","id":"language_options-0-33"},{"value":"fi","label":"Suomi","id":"language_options-0-34"},{"value":"fr","label":"Français","id":"language_options-0-35"},{"value":"fy","label":"Frysk","id":"language_options-0-36"},{"value":"gl","label":"Galego","id":"language_options-0-37"},{"value":"ka","label":"ქართული","id":"language_options-0-38"},{"value":"de","label":"Deutsch","id":"language_options-0-39"},{"value":"el","label":"Ελληνικά","id":"language_options-0-40"},{"value":"ha","label":"Hausa","id":"language_options-0-41"},{"value":"haw","label":"Hawaiʻi","id":"language_options-0-42"},{"value":"iw","label":"עברית","id":"language_options-0-43"},{"value":"hmn","label":"Hmong","id":"language_options-0-44"},{"value":"hu","label":"Magyar","id":"language_options-0-45"},{"value":"is","label":"Íslenska","id":"language_options-0-46"},{"value":"ig","label":"Igbo","id":"language_options-0-47"},{"value":"id","label":"Bahasa Indonesia","id":"language_options-0-48"},{"value":"ga","label":"Gaeilge","id":"language_options-0-49"},{"value":"it","label":"Italiano","id":"language_options-0-50"},{"value":"ja","label":"日本語","id":"language_options-0-51"},{"value":"jw","label":"Jawa","id":"language_options-0-52"},{"value":"kk","label":"Қазақ тілі","id":"language_options-0-53"},{"value":"km","label":"ខ្មែរ","id":"language_options-0-54"},{"value":"ko","label":"한국어","id":"language_options-0-55"},{"value":"ku","label":"Kurdî","id":"language_options-0-56"},{"value":"ky","label":"Кыргызча","id":"language_options-0-57"},{"value":"lo","label":"ລາວ","id":"language_options-0-58"},{"value":"la","label":"Latina","id":"language_options-0-59"},{"value":"lv","label":"Latviešu","id":"language_options-0-60"},{"value":"lt","label":"Lietuvių","id":"language_options-0-61"},{"value":"lb","label":"Lëtzebuergesch","id":"language_options-0-62"},{"value":"mk","label":"Македонски","id":"language_options-0-63"},{"value":"mg","label":"Malagasy","id":"language_options-0-64"},{"value":"ms","label":"Bahasa Melayu","id":"language_options-0-65"},{"value":"mt","label":"Malti","id":"language_options-0-66"},{"value":"mi","label":"Māori","id":"language_options-0-67"},{"value":"mn","label":"Монгол","id":"language_options-0-68"},{"value":"my","label":"မြန်မာ","id":"language_options-0-69"},{"value":"ne","label":"नेपाली","id":"language_options-0-70"},{"value":"no","label":"Norsk","id":"language_options-0-71"},{"value":"ps","label":"پښتو","id":"language_options-0-72"},{"value":"fa","label":"فارسی","id":"language_options-0-73"},{"value":"pl","label":"Polski","id":"language_options-0-74"},{"value":"pt","label":"Português","id":"language_options-0-75"},{"value":"ro","label":"Română","id":"language_options-0-76"},{"value":"ru","label":"Русский","id":"language_options-0-77"},{"value":"sm","label":"Samoan","id":"language_options-0-78"},{"value":"gd","label":"Gàidhlig","id":"language_options-0-79"},{"value":"sr","label":"Српски","id":"language_options-0-80"},{"value":"st","label":"Sesotho","id":"language_options-0-81"},{"value":"sn","label":"Shona","id":"language_options-0-82"},{"value":"si","label":"සිංහල","id":"language_options-0-83"},{"value":"sk","label":"Slovenčina","id":"language_options-0-84"},{"value":"sl","label":"Slovenščina","id":"language_options-0-85"},{"value":"so","label":"Soomaali","id":"language_options-0-86"},{"value":"es","label":"Español","id":"language_options-0-87"},{"value":"su","label":"Basa Sunda","id":"language_options-0-88"},{"value":"sw","label":"Kiswahili","id":"language_options-0-89"},{"value":"sv","label":"Svenska","id":"language_options-0-90"},{"value":"tg","label":"Тоҷикӣ","id":"language_options-0-91"},{"value":"th","label":"ไทย","id":"language_options-0-92"},{"value":"tr","label":"Türkçe","id":"language_options-0-93"},{"value":"uk","label":"Українська","id":"language_options-0-94"},{"value":"uz","label":"O'zbek","id":"language_options-0-95"},{"value":"vi","label":"Tiếng Việt","id":"language_options-0-96"},{"value":"cy","label":"Cymraeg","id":"language_options-0-97"},{"value":"xh","label":"isiXhosa","id":"language_options-0-98"},{"value":"yi","label":"ייִדיש","id":"language_options-0-99"},{"value":"yo","label":"Yorùbá","id":"language_options-0-100"},{"value":"zu","label":"isiZulu","id":"language_options-0-101"}]],"sample-options":[[{"id":"low","label":"Low Priority"},{"id":"medium","label":"Medium Priority"},{"id":"high","label":"High Priority"},{"id":"urgent","label":"Urgent"}]]},"pagination":{"default":{"showPageNumbers":true,"maxVisiblePages":5,"variant":"default"}},"patterns":{"alphanumeric":{"name":"alphanumeric","expression":"^(?:[A-Za-z0-9]+)$","message":"alphanumeric-expected"},"aspect-ratio":{"name":"aspect-ratio","expression":"^(?:\\d+(?:\\.\\d+)?:\\d+(?:\\.\\d+)?)$","message":"not-a-valid-aspect-ratio"},"digits-only":{"name":"digits-only","expression":"^(?:\\d+)$","message":"digits-only-expected"},"email":{"name":"email","expression":"^(?:[^@\\s]+@[^@\\s]+\\.[A-Za-z]{2,})$","message":"not-a-valid-email"},"hex-color":{"name":"hex-color","expression":"^(?:#(?:[0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}))$","flags":"i","message":"not-a-valid-hex-color"},"iban":{"name":"iban","expression":"^(?:[A-Z]{2}\\d{2}[A-Z0-9]{11,30})$","flags":"i","message":"not-a-valid-iban"},"letters-only":{"name":"letters-only","expression":"^(?:[A-Za-z]+)$","message":"letters-only-expected"},"no-whitespace":{"name":"no-whitespace","expression":"^(?:\\S+)$","message":"whitespace-not-allowed"},"phone-e164":{"name":"phone-e164","expression":"^(?:\\+[1-9]\\d{7,14})$","message":"not-a-valid-phone"},"postal-code-loose":{"name":"postal-code-loose","expression":"^(?:[A-Za-z0-9][A-Za-z0-9 -]{1,10}[A-Za-z0-9])$","flags":"i","message":"not-a-valid-postal-code"},"slug":{"name":"slug","expression":"^(?:[a-z0-9]+(?:-[a-z0-9]+)*)$","message":"not-a-valid-slug"},"strong-password":{"name":"strong-password","expression":"^(?:(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[^A-Za-z0-9]).{8,})$","message":"password-invalid"},"url":{"name":"url","expression":"^(?:https?://[^\\s]+)$","message":"not-a-valid-url"}},"settings":{"user":{"sections":[{"id":"profile","title":"profile","icon":"user","keywords":["name","username","avatar","photo","display"]},{"id":"account","title":"account","icon":"key","keywords":["email","password","security","login","auth"]},{"id":"notifications","title":"notifications","icon":"notification","keywords":["alerts","push","email","notify"]}]}},"sort":{"default":{"sortBy":"","sortOrder":"asc","variant":"default","options":[]}},"theme":{"dark":{"icon":"star","mode":"dark","color":{"background":"#0d1117","border":"#30363d","frame":"#161b22","backgroundLite":"#21262d","text":"#f0f6fc","inverseText":"#0d1117","textSecondary":"#c9d1d9","textTertiary":"#8b949e","textQuaternary":"#6e7681","textQuinary":"#484f58","textSenary":"#383e47","textSeptenary":"#2d333b","textOctonary":"#24292f","textNonary":"#1c2128","mm":"#60a5fa","mmLite":"#93c5fd","mmDark":"#2563eb","focus":"#60a5fa","error":"#f85149","errorLight":"#2e1a1a","warning":"#ff8800","fade":"#6e7681","toolTipBg":"#21262d","toolTipCol":"#f0f6fc","bgFocus":"#262c36","clickEffect":"rgba(255,255,255,.08)","successLite":"#1a2f1a","success":"#3fb950","header":"#2563eb","highlight":"#1e3a8a1a","wealth":"#fd7e14","page":"#0d1117","pageDark":"#010409","focusBg":"rgba(96, 165, 250, 0.25)","modalBackground":"rgba(1, 4, 9, 0.55)","backdropStandard":"rgba(0, 0, 0, 0.3)","backdropGlass":"rgba(0, 0, 0, 0.5)","backdropFrosted":"rgba(0, 0, 0, 0.4)","backdropTheme":"rgba(0, 0, 0, 0.45)","backdropBorder":"rgba(48, 54, 61, 0.5)","backdropFrame":"rgba(22, 27, 34, 0.4)","backdropOverlay":"rgba(0, 0, 0, 0.75)","backdropPopup":"rgba(0, 0, 0, 0.3)","backdropNav":"rgba(22, 27, 34, 0.9)","backdropSidebar":"rgba(22, 27, 34, 0.8)","backdropCard":"rgba(0, 0, 0, 0.5)","backdropSurface":"rgba(0, 0, 0, 0.3)","backdropMm":"rgba(96, 165, 250, 0.15)","backdropError":"rgba(248, 81, 73, 0.15)","backdropWarning":"rgba(255, 136, 0, 0.15)","backdropSuccess":"rgba(63, 185, 80, 0.15)","backdropShadow":"rgba(0, 0, 0, 0.3)","gold":"#FFD700","backdropGold":"rgba(255, 215, 0, 0.15)","easeOutExpo":"cubic-bezier(0.16, 1, 0.3, 1)","warningLite":"#2d1d05","info":"#0366d6","infoLite":"#112740"}},"default":{"color":{"background":"#f3f4f6","border":"#e1e4e8","frame":"#fafbfc","backgroundLite":"#f8f9fa","text":"#334955","inverseText":"#ffffff","textSecondary":"#666666","textTertiary":"#888888","textQuaternary":"#999999","textQuinary":"#aaaaaa","textSenary":"#bbbbbb","textSeptenary":"#cccccc","textOctonary":"#dddddd","textNonary":"#eeeeee","mm":"#2563eb","mmLite":"#60a5fa","mmDark":"#1d4ed8","focus":"#2563eb","error":"#EB191A","errorLight":"#fae7fb","warning":"#F77A02","fade":"#A4A4A4","toolTipBg":"#4D4F59","toolTipCol":"#CFD1DD","bgFocus":"#F4F4F4","clickEffect":"rgba(0,0,0,.01)","successLite":"#e4f8cf","success":"#6da82f","header":"#2563eb","highlight":"#c8e5f9","wealth":"#de6130","page":"#fefaf2","pageDark":"#f5efe6","focusBg":"rgba(37, 99, 235, 0.6)","modalBackground":"rgba(0, 0, 0, 0.5)","gold":"#FFD700","easeOutExpo":"cubic-bezier(0.16, 1, 0.3, 1)","backdropStandard":"rgba(255, 255, 255, 0.1)","backdropGlass":"rgba(255, 255, 255, 0.25)","backdropFrosted":"rgba(255, 255, 255, 0.15)","backdropTheme":"rgba(255, 255, 255, 0.2)","backdropBorder":"rgba(225, 228, 232, 0.3)","backdropFrame":"rgba(250, 251, 252, 0.15)","backdropOverlay":"rgba(255, 255, 255, 0.75)","backdropPopup":"rgba(255, 255, 255, 0.1)","backdropNav":"rgba(250, 251, 252, 0.8)","backdropSidebar":"rgba(248, 249, 250, 0.15)","backdropCard":"rgba(255, 255, 255, 0.25)","backdropSurface":"rgba(255, 255, 255, 0.1)","backdropMm":"rgba(37, 99, 235, 0.1)","backdropError":"rgba(235, 25, 26, 0.1)","backdropWarning":"rgba(247, 122, 2, 0.1)","backdropSuccess":"rgba(109, 168, 47, 0.1)","backdropShadow":"rgba(0, 0, 0, 0.15)","backdropGold":"rgba(255, 215, 0, 0.15)","warningLite":"#fff4e5","info":"#0366d6","infoLite":"#dbedff"}},"light":{"icon":"sun","mode":"light","color":{"background":"#ffffff","border":"#d0d7de","frame":"#f6f8fa","backgroundLite":"#fafbfc","text":"#24292f","inverseText":"#ffffff","textSecondary":"#656d76","textTertiary":"#8b949e","textQuaternary":"#a0a8b0","textQuinary":"#b6bcc6","textSenary":"#c9d1d9","textSeptenary":"#d7dde3","textOctonary":"#e5e9ed","textNonary":"#f3f4f6","mm":"#2563eb","mmLite":"#60a5fa","mmDark":"#1d4ed8","focus":"#2563eb","error":"#EB191A","errorLight":"#fae7fb","warning":"#F77A02","fade":"#A4A4A4","toolTipBg":"#24292f","toolTipCol":"#ffffff","bgFocus":"#f6f8fa","clickEffect":"rgba(0,0,0,.03)","successLite":"#e4f8cf","success":"#6da82f","header":"#2563eb","highlight":"#dbeafe","wealth":"#de6130","page":"#fefaf2","pageDark":"#f5efe6","focusBg":"rgba(37, 99, 235, 0.6)","modalBackground":"rgba(255, 255, 255, 0.35)","backdropStandard":"rgba(255, 255, 255, 0.1)","backdropGlass":"rgba(255, 255, 255, 0.25)","backdropFrosted":"rgba(255, 255, 255, 0.15)","backdropTheme":"rgba(255, 255, 255, 0.2)","backdropBorder":"rgba(208, 215, 222, 0.3)","backdropFrame":"rgba(246, 248, 250, 0.15)","backdropOverlay":"rgba(255, 255, 255, 0.75)","backdropPopup":"rgba(255, 255, 255, 0.1)","backdropNav":"rgba(250, 251, 252, 0.8)","backdropSidebar":"rgba(246, 248, 250, 0.15)","backdropCard":"rgba(255, 255, 255, 0.25)","backdropSurface":"rgba(255, 255, 255, 0.1)","backdropMm":"rgba(37, 99, 235, 0.1)","backdropError":"rgba(235, 25, 26, 0.1)","backdropWarning":"rgba(247, 122, 2, 0.1)","backdropSuccess":"rgba(109, 168, 47, 0.1)","backdropShadow":"rgba(0, 0, 0, 0.3)","gold":"#FFD700","backdropGold":"rgba(255, 215, 0, 0.15)","easeOutExpo":"cubic-bezier(0.16, 1, 0.3, 1)","warningLite":"#fff4e5","info":"#0366d6","infoLite":"#dbedff"}},"theme":[{"fileName":"light","name":"light","mode":"light","icon":"sun"},{"fileName":"default","name":"default","mode":"normal"},{"fileName":"dark","name":"dark","mode":"dark","icon":"star"}]}}
@@ -16,10 +16,10 @@
16
16
  "textSeptenary": "#2d333b",
17
17
  "textOctonary": "#24292f",
18
18
  "textNonary": "#1c2128",
19
- "mm": "#4169e1",
20
- "mmLite": "#6495ed",
21
- "mmDark": "#1e3a8a",
22
- "focus": "#4169e1",
19
+ "mm": "#60a5fa",
20
+ "mmLite": "#93c5fd",
21
+ "mmDark": "#2563eb",
22
+ "focus": "#60a5fa",
23
23
  "error": "#f85149",
24
24
  "errorLight": "#2e1a1a",
25
25
  "warning": "#ff8800",
@@ -30,12 +30,12 @@
30
30
  "clickEffect": "rgba(255,255,255,.08)",
31
31
  "successLite": "#1a2f1a",
32
32
  "success": "#3fb950",
33
- "header": "#4169e1",
33
+ "header": "#2563eb",
34
34
  "highlight": "#1e3a8a1a",
35
35
  "wealth": "#fd7e14",
36
36
  "page": "#0d1117",
37
37
  "pageDark": "#010409",
38
- "focusBg": "rgba(65, 105, 225, 0.25)",
38
+ "focusBg": "rgba(96, 165, 250, 0.25)",
39
39
  "modalBackground": "rgba(1, 4, 9, 0.55)",
40
40
  "backdropStandard": "rgba(0, 0, 0, 0.3)",
41
41
  "backdropGlass": "rgba(0, 0, 0, 0.5)",
@@ -49,7 +49,7 @@
49
49
  "backdropSidebar": "rgba(22, 27, 34, 0.8)",
50
50
  "backdropCard": "rgba(0, 0, 0, 0.5)",
51
51
  "backdropSurface": "rgba(0, 0, 0, 0.3)",
52
- "backdropMm": "rgba(65, 105, 225, 0.15)",
52
+ "backdropMm": "rgba(96, 165, 250, 0.15)",
53
53
  "backdropError": "rgba(248, 81, 73, 0.15)",
54
54
  "backdropWarning": "rgba(255, 136, 0, 0.15)",
55
55
  "backdropSuccess": "rgba(63, 185, 80, 0.15)",
@@ -14,10 +14,10 @@
14
14
  "textSeptenary": "#cccccc",
15
15
  "textOctonary": "#dddddd",
16
16
  "textNonary": "#eeeeee",
17
- "mm": "#7891ff",
18
- "mmLite": "#99aaff",
19
- "mmDark": "#5566cc",
20
- "focus": "#2f98fb",
17
+ "mm": "#2563eb",
18
+ "mmLite": "#60a5fa",
19
+ "mmDark": "#1d4ed8",
20
+ "focus": "#2563eb",
21
21
  "error": "#EB191A",
22
22
  "errorLight": "#fae7fb",
23
23
  "warning": "#F77A02",
@@ -28,12 +28,12 @@
28
28
  "clickEffect": "rgba(0,0,0,.01)",
29
29
  "successLite": "#e4f8cf",
30
30
  "success": "#6da82f",
31
- "header": "#517be6",
31
+ "header": "#2563eb",
32
32
  "highlight": "#c8e5f9",
33
33
  "wealth": "#de6130",
34
34
  "page": "#fefaf2",
35
35
  "pageDark": "#f5efe6",
36
- "focusBg": "rgba(66, 153, 225, 0.6)",
36
+ "focusBg": "rgba(37, 99, 235, 0.6)",
37
37
  "modalBackground": "rgba(0, 0, 0, 0.5)",
38
38
  "gold": "#FFD700",
39
39
  "easeOutExpo": "cubic-bezier(0.16, 1, 0.3, 1)",
@@ -49,7 +49,7 @@
49
49
  "backdropSidebar": "rgba(248, 249, 250, 0.15)",
50
50
  "backdropCard": "rgba(255, 255, 255, 0.25)",
51
51
  "backdropSurface": "rgba(255, 255, 255, 0.1)",
52
- "backdropMm": "rgba(120, 145, 255, 0.1)",
52
+ "backdropMm": "rgba(37, 99, 235, 0.1)",
53
53
  "backdropError": "rgba(235, 25, 26, 0.1)",
54
54
  "backdropWarning": "rgba(247, 122, 2, 0.1)",
55
55
  "backdropSuccess": "rgba(109, 168, 47, 0.1)",
@@ -16,10 +16,10 @@
16
16
  "textSeptenary": "#d7dde3",
17
17
  "textOctonary": "#e5e9ed",
18
18
  "textNonary": "#f3f4f6",
19
- "mm": "#4169e1",
20
- "mmLite": "#6495ed",
21
- "mmDark": "#1e3a8a",
22
- "focus": "#4169e1",
19
+ "mm": "#2563eb",
20
+ "mmLite": "#60a5fa",
21
+ "mmDark": "#1d4ed8",
22
+ "focus": "#2563eb",
23
23
  "error": "#EB191A",
24
24
  "errorLight": "#fae7fb",
25
25
  "warning": "#F77A02",
@@ -30,12 +30,12 @@
30
30
  "clickEffect": "rgba(0,0,0,.03)",
31
31
  "successLite": "#e4f8cf",
32
32
  "success": "#6da82f",
33
- "header": "#4169e1",
33
+ "header": "#2563eb",
34
34
  "highlight": "#dbeafe",
35
35
  "wealth": "#de6130",
36
36
  "page": "#fefaf2",
37
37
  "pageDark": "#f5efe6",
38
- "focusBg": "rgba(65, 105, 225, 0.6)",
38
+ "focusBg": "rgba(37, 99, 235, 0.6)",
39
39
  "modalBackground": "rgba(255, 255, 255, 0.35)",
40
40
  "backdropStandard": "rgba(255, 255, 255, 0.1)",
41
41
  "backdropGlass": "rgba(255, 255, 255, 0.25)",
@@ -49,7 +49,7 @@
49
49
  "backdropSidebar": "rgba(246, 248, 250, 0.15)",
50
50
  "backdropCard": "rgba(255, 255, 255, 0.25)",
51
51
  "backdropSurface": "rgba(255, 255, 255, 0.1)",
52
- "backdropMm": "rgba(65, 105, 225, 0.1)",
52
+ "backdropMm": "rgba(37, 99, 235, 0.1)",
53
53
  "backdropError": "rgba(235, 25, 26, 0.1)",
54
54
  "backdropWarning": "rgba(247, 122, 2, 0.1)",
55
55
  "backdropSuccess": "rgba(109, 168, 47, 0.1)",
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { input, inject, viewChild, signal, computed, effect, DestroyRef, ChangeDetectionStrategy, Component } from '@angular/core';
3
- import { M as MODAL_REF, a as MIN_ZOOM, I as InputType, b as MAX_ZOOM, p as parseRatio, o as outputSize, c as cropRect, i as initialFraming, e as encodeFramed, d as drawFramed, r as renameForType, f as clampFraming, B as ButtonComponent, H as HeaderComponent, R as RangeInputComponent } from './magmonium-one-magmonium-one-DpJYXHAK.mjs';
3
+ import { M as MODAL_REF, a as MIN_ZOOM, I as InputType, b as MAX_ZOOM, p as parseRatio, o as outputSize, c as cropRect, i as initialFraming, e as encodeFramed, d as drawFramed, r as renameForType, f as clampFraming, B as ButtonComponent, H as HeaderComponent, R as RangeInputComponent } from './magmonium-one-magmonium-one-zMBbH4e6.mjs';
4
4
 
5
5
  const WHEEL_ZOOM_RATE = 0.0015;
6
6
  const distance = (a, b) => Math.hypot(a.x - b.x, a.y - b.y);
@@ -287,4 +287,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
287
287
  }], propDecorators: { file: [{ type: i0.Input, args: [{ isSignal: true, alias: "file", required: true }] }], ratio: [{ type: i0.Input, args: [{ isSignal: true, alias: "ratio", required: true }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: true }] }], stage: [{ type: i0.ViewChild, args: ['stage', { isSignal: true }] }] } });
288
288
 
289
289
  export { ImageEditorComponent };
290
- //# sourceMappingURL=magmonium-one-image-editor-DleCJcan.mjs.map
290
+ //# sourceMappingURL=magmonium-one-image-editor-C_KeJ24r.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"magmonium-one-image-editor-DleCJcan.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/file-upload-input/image-editor.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { HeaderComponent } from '../../../header';\nimport { RangeInputComponent } from '../range/range';\nimport { InputType, RangeInput } from '../../model/input';\nimport { MODAL_REF, ModalRef } from '../../../../config/modal-ref';\nimport {\n clampFraming,\n cropRect,\n drawFramed,\n encodeFramed,\n Framing,\n FrameSize,\n initialFraming,\n MAX_ZOOM,\n MIN_ZOOM,\n outputSize,\n parseRatio,\n renameForType,\n} from './image-frame';\n\n/**\n * What an ImageEditor closes with. The framed file on an apply, `unreadable`\n * when the picture never decoded, and neither for a dismissal — a flat object\n * rather than a union, so the web-component build (no `strict`) reads it too.\n */\nexport type ImageEditorResult = { file?: File; unreadable?: boolean };\n\ntype Point = { x: number; y: number };\n\nconst WHEEL_ZOOM_RATE = 0.0015;\n\nconst distance = (a: Point, b: Point): number =>\n Math.hypot(a.x - b.x, a.y - b.y);\n\n@Component({\n selector: 'm-image-editor',\n template: `\n <div class=\"image-editor\">\n <m-header\n [level]=\"3\"\n label=\"edit-image-size\"\n [params]=\"sizeParams()\"\n />\n <div\n #stage\n class=\"image-editor__stage\"\n [style.aspect-ratio]=\"aspect()\"\n [style.--m-image-editor-aspect]=\"aspect()\"\n [class.image-editor__stage--panning]=\"isPanning()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (wheel)=\"onWheel($event)\"\n >\n @if (sourceUrl(); as url) {\n <img\n class=\"image-editor__image\"\n [src]=\"url\"\n alt=\"\"\n draggable=\"false\"\n [style.width.px]=\"imageBox().width\"\n [style.height.px]=\"imageBox().height\"\n [style.transform]=\"imageBox().transform\"\n />\n }\n </div>\n <m-range\n [config]=\"zoomConfig()\"\n [value]=\"zoomPercent()\"\n (valueChange)=\"onZoom($event)\"\n />\n <!-- asset: buttons/okay.yml. No cancel beside it: the Modal's own close\n is the cancel, and it drops the image the same way. -->\n <m-one-button\n name=\"okay\"\n label=\"apply\"\n [disabled]=\"!source() || isApplying()\"\n (clicked)=\"apply()\"\n />\n </div>\n `,\n imports: [ButtonComponent, HeaderComponent, RangeInputComponent],\n styleUrl: './image-editor.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ImageEditorComponent {\n readonly file = input.required<File>();\n readonly ratio = input.required<string>();\n readonly width = input.required<number>();\n\n readonly #modalRef = inject<ModalRef<ImageEditorResult | undefined>>(MODAL_REF);\n private readonly stage = viewChild<ElementRef<HTMLDivElement>>('stage');\n\n protected readonly source = signal<ImageBitmap | undefined>(undefined);\n protected readonly sourceUrl = signal<string | undefined>(undefined);\n protected readonly isApplying = signal(false);\n private readonly framing = signal<Framing>({ cx: 0, cy: 0, zoom: MIN_ZOOM });\n private readonly stageWidth = signal(0);\n private readonly pointers = new Map<number, Point>();\n protected readonly isPanning = signal(false);\n #settled = false;\n\n protected readonly zoomConfig = computed<RangeInput>(() => ({\n name: 'zoom',\n label: 'zoom',\n type: InputType.RANGE,\n min: MIN_ZOOM * 100,\n max: MAX_ZOOM * 100,\n }));\n\n protected readonly aspect = computed(() => parseRatio(this.ratio()) ?? 1);\n\n private readonly output = computed<FrameSize | undefined>(() =>\n outputSize(this.ratio(), this.width())\n );\n\n protected readonly sizeParams = computed(() => {\n const size = this.output();\n return {\n width: String(size?.width ?? ''),\n height: String(size?.height ?? ''),\n };\n });\n\n private readonly imageSize = computed<FrameSize | undefined>(() => {\n const bitmap = this.source();\n return bitmap ? { width: bitmap.width, height: bitmap.height } : undefined;\n });\n\n protected readonly zoomPercent = computed(() =>\n String(Math.round(this.framing().zoom * 100))\n );\n\n /** The whole picture laid out so the box shows exactly the crop. */\n protected readonly imageBox = computed(() => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return { width: 0, height: 0, transform: 'none' };\n const rect = cropRect(image, this.aspect(), this.framing());\n const scale = stage / rect.width;\n return {\n width: image.width * scale,\n height: image.height * scale,\n transform: `translate(${-rect.x * scale}px, ${-rect.y * scale}px)`,\n };\n });\n\n private readonly load = effect((onCleanup) => {\n const file = this.file();\n let cancelled = false;\n const url = URL.createObjectURL(file);\n this.sourceUrl.set(url);\n // EXIF orientation applied here, so the geometry below and the <img> the\n // stage draws agree on which way is up.\n createImageBitmap(file, { imageOrientation: 'from-image' })\n .then((bitmap) => {\n if (cancelled) {\n bitmap.close();\n return;\n }\n this.framing.set(\n initialFraming({ width: bitmap.width, height: bitmap.height })\n );\n this.source.set(bitmap);\n })\n .catch(() => {\n if (!cancelled) this.settle({ unreadable: true });\n });\n onCleanup(() => {\n cancelled = true;\n URL.revokeObjectURL(url);\n this.source()?.close();\n });\n });\n\n private readonly measure = effect((onCleanup) => {\n const stage = this.stage()?.nativeElement;\n if (!stage) return;\n this.stageWidth.set(stage.clientWidth);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) =>\n this.stageWidth.set(entry.contentRect.width)\n );\n observer.observe(stage);\n onCleanup(() => observer.disconnect());\n });\n\n // The Modal's own close affordance destroys the body without a word, and a\n // dismissal is a cancel: whoever opened the editor is still waiting.\n private readonly reportDismissal = inject(DestroyRef).onDestroy(() =>\n this.settle(undefined)\n );\n\n protected onPointerDown = (event: PointerEvent): void => {\n if (!this.source()) return;\n (event.currentTarget as HTMLElement).setPointerCapture?.(event.pointerId);\n this.pointers.set(event.pointerId, { x: event.clientX, y: event.clientY });\n this.isPanning.set(true);\n };\n\n protected onPointerMove = (event: PointerEvent): void => {\n const previous = this.pointers.get(event.pointerId);\n if (!previous) return;\n const next = { x: event.clientX, y: event.clientY };\n const others = [...this.pointers.entries()].filter(\n ([id]) => id !== event.pointerId\n );\n if (others.length === 1) {\n // Pinch: the gap between two fingers is the zoom.\n const anchor = others[0][1];\n const before = distance(previous, anchor);\n if (before > 0) this.zoomBy(distance(next, anchor) / before);\n } else if (others.length === 0) {\n this.panBy(next.x - previous.x, next.y - previous.y);\n }\n this.pointers.set(event.pointerId, next);\n };\n\n protected onPointerUp = (event: PointerEvent): void => {\n this.pointers.delete(event.pointerId);\n this.isPanning.set(this.pointers.size > 0);\n };\n\n protected onWheel = (event: WheelEvent): void => {\n if (!this.source()) return;\n event.preventDefault();\n this.zoomBy(Math.exp(-event.deltaY * WHEEL_ZOOM_RATE));\n };\n\n protected onZoom = (percent: string): void => {\n const zoom = Number(percent) / 100;\n if (!Number.isFinite(zoom)) return;\n this.updateFraming((framing) => ({ ...framing, zoom }));\n };\n\n protected apply = async (): Promise<void> => {\n const bitmap = this.source();\n const image = this.imageSize();\n const output = this.output();\n if (!bitmap || !image || !output || this.isApplying()) return;\n this.isApplying.set(true);\n try {\n const rect = cropRect(image, this.aspect(), this.framing());\n const blob = await encodeFramed(drawFramed(bitmap, rect, output));\n const original = this.file();\n this.settle({\n file: new File([blob], renameForType(original.name, blob.type), {\n type: blob.type,\n lastModified: Date.now(),\n }),\n });\n } catch {\n this.settle({ unreadable: true });\n }\n };\n\n /** Screen pixels dragged, moved into source pixels at the current scale. */\n private panBy = (dx: number, dy: number): void => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return;\n const rect = cropRect(image, this.aspect(), this.framing());\n const perPixel = rect.width / stage;\n this.updateFraming((framing) => ({\n ...framing,\n cx: framing.cx - dx * perPixel,\n cy: framing.cy - dy * perPixel,\n }));\n };\n\n private zoomBy = (factor: number): void => {\n this.updateFraming((framing) => ({\n ...framing,\n zoom: framing.zoom * factor,\n }));\n };\n\n private updateFraming = (change: (framing: Framing) => Framing): void => {\n const image = this.imageSize();\n if (!image) return;\n this.framing.update((framing) =>\n clampFraming(image, this.aspect(), change(framing))\n );\n };\n\n private settle = (result: ImageEditorResult | undefined): void => {\n if (this.#settled) return;\n this.#settled = true;\n this.#modalRef.close(result);\n };\n}\n"],"names":[],"mappings":";;;;AAyCA,MAAM,eAAe,GAAG,MAAM;AAE9B,MAAM,QAAQ,GAAG,CAAC,CAAQ,EAAE,CAAQ,KAClC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;2FAIpD,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBApDhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,gBAAgB,EAAA,QAAA,EAChB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CT,EAAA,OAAA,EACQ,CAAC,eAAe,EAAE,eAAe,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAE/C,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,0wBAAA,CAAA,EAAA;4UAQgB,OAAO,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
1
+ {"version":3,"file":"magmonium-one-image-editor-C_KeJ24r.mjs","sources":["../../../../libs/one/src/lib/shared/ui/input/ui/file-upload-input/image-editor.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ButtonComponent } from '../../../button/ui/button';\nimport { HeaderComponent } from '../../../header';\nimport { RangeInputComponent } from '../range/range';\nimport { InputType, RangeInput } from '../../model/input';\nimport { MODAL_REF, ModalRef } from '../../../../config/modal-ref';\nimport {\n clampFraming,\n cropRect,\n drawFramed,\n encodeFramed,\n Framing,\n FrameSize,\n initialFraming,\n MAX_ZOOM,\n MIN_ZOOM,\n outputSize,\n parseRatio,\n renameForType,\n} from './image-frame';\n\n/**\n * What an ImageEditor closes with. The framed file on an apply, `unreadable`\n * when the picture never decoded, and neither for a dismissal — a flat object\n * rather than a union, so the web-component build (no `strict`) reads it too.\n */\nexport type ImageEditorResult = { file?: File; unreadable?: boolean };\n\ntype Point = { x: number; y: number };\n\nconst WHEEL_ZOOM_RATE = 0.0015;\n\nconst distance = (a: Point, b: Point): number =>\n Math.hypot(a.x - b.x, a.y - b.y);\n\n@Component({\n selector: 'm-image-editor',\n template: `\n <div class=\"image-editor\">\n <m-header\n [level]=\"3\"\n label=\"edit-image-size\"\n [params]=\"sizeParams()\"\n />\n <div\n #stage\n class=\"image-editor__stage\"\n [style.aspect-ratio]=\"aspect()\"\n [style.--m-image-editor-aspect]=\"aspect()\"\n [class.image-editor__stage--panning]=\"isPanning()\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerUp($event)\"\n (wheel)=\"onWheel($event)\"\n >\n @if (sourceUrl(); as url) {\n <img\n class=\"image-editor__image\"\n [src]=\"url\"\n alt=\"\"\n draggable=\"false\"\n [style.width.px]=\"imageBox().width\"\n [style.height.px]=\"imageBox().height\"\n [style.transform]=\"imageBox().transform\"\n />\n }\n </div>\n <m-range\n [config]=\"zoomConfig()\"\n [value]=\"zoomPercent()\"\n (valueChange)=\"onZoom($event)\"\n />\n <!-- asset: buttons/okay.yml. No cancel beside it: the Modal's own close\n is the cancel, and it drops the image the same way. -->\n <m-one-button\n name=\"okay\"\n label=\"apply\"\n [disabled]=\"!source() || isApplying()\"\n (clicked)=\"apply()\"\n />\n </div>\n `,\n imports: [ButtonComponent, HeaderComponent, RangeInputComponent],\n styleUrl: './image-editor.sass',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ImageEditorComponent {\n readonly file = input.required<File>();\n readonly ratio = input.required<string>();\n readonly width = input.required<number>();\n\n readonly #modalRef = inject<ModalRef<ImageEditorResult | undefined>>(MODAL_REF);\n private readonly stage = viewChild<ElementRef<HTMLDivElement>>('stage');\n\n protected readonly source = signal<ImageBitmap | undefined>(undefined);\n protected readonly sourceUrl = signal<string | undefined>(undefined);\n protected readonly isApplying = signal(false);\n private readonly framing = signal<Framing>({ cx: 0, cy: 0, zoom: MIN_ZOOM });\n private readonly stageWidth = signal(0);\n private readonly pointers = new Map<number, Point>();\n protected readonly isPanning = signal(false);\n #settled = false;\n\n protected readonly zoomConfig = computed<RangeInput>(() => ({\n name: 'zoom',\n label: 'zoom',\n type: InputType.RANGE,\n min: MIN_ZOOM * 100,\n max: MAX_ZOOM * 100,\n }));\n\n protected readonly aspect = computed(() => parseRatio(this.ratio()) ?? 1);\n\n private readonly output = computed<FrameSize | undefined>(() =>\n outputSize(this.ratio(), this.width())\n );\n\n protected readonly sizeParams = computed(() => {\n const size = this.output();\n return {\n width: String(size?.width ?? ''),\n height: String(size?.height ?? ''),\n };\n });\n\n private readonly imageSize = computed<FrameSize | undefined>(() => {\n const bitmap = this.source();\n return bitmap ? { width: bitmap.width, height: bitmap.height } : undefined;\n });\n\n protected readonly zoomPercent = computed(() =>\n String(Math.round(this.framing().zoom * 100))\n );\n\n /** The whole picture laid out so the box shows exactly the crop. */\n protected readonly imageBox = computed(() => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return { width: 0, height: 0, transform: 'none' };\n const rect = cropRect(image, this.aspect(), this.framing());\n const scale = stage / rect.width;\n return {\n width: image.width * scale,\n height: image.height * scale,\n transform: `translate(${-rect.x * scale}px, ${-rect.y * scale}px)`,\n };\n });\n\n private readonly load = effect((onCleanup) => {\n const file = this.file();\n let cancelled = false;\n const url = URL.createObjectURL(file);\n this.sourceUrl.set(url);\n // EXIF orientation applied here, so the geometry below and the <img> the\n // stage draws agree on which way is up.\n createImageBitmap(file, { imageOrientation: 'from-image' })\n .then((bitmap) => {\n if (cancelled) {\n bitmap.close();\n return;\n }\n this.framing.set(\n initialFraming({ width: bitmap.width, height: bitmap.height })\n );\n this.source.set(bitmap);\n })\n .catch(() => {\n if (!cancelled) this.settle({ unreadable: true });\n });\n onCleanup(() => {\n cancelled = true;\n URL.revokeObjectURL(url);\n this.source()?.close();\n });\n });\n\n private readonly measure = effect((onCleanup) => {\n const stage = this.stage()?.nativeElement;\n if (!stage) return;\n this.stageWidth.set(stage.clientWidth);\n if (typeof ResizeObserver === 'undefined') return;\n const observer = new ResizeObserver(([entry]) =>\n this.stageWidth.set(entry.contentRect.width)\n );\n observer.observe(stage);\n onCleanup(() => observer.disconnect());\n });\n\n // The Modal's own close affordance destroys the body without a word, and a\n // dismissal is a cancel: whoever opened the editor is still waiting.\n private readonly reportDismissal = inject(DestroyRef).onDestroy(() =>\n this.settle(undefined)\n );\n\n protected onPointerDown = (event: PointerEvent): void => {\n if (!this.source()) return;\n (event.currentTarget as HTMLElement).setPointerCapture?.(event.pointerId);\n this.pointers.set(event.pointerId, { x: event.clientX, y: event.clientY });\n this.isPanning.set(true);\n };\n\n protected onPointerMove = (event: PointerEvent): void => {\n const previous = this.pointers.get(event.pointerId);\n if (!previous) return;\n const next = { x: event.clientX, y: event.clientY };\n const others = [...this.pointers.entries()].filter(\n ([id]) => id !== event.pointerId\n );\n if (others.length === 1) {\n // Pinch: the gap between two fingers is the zoom.\n const anchor = others[0][1];\n const before = distance(previous, anchor);\n if (before > 0) this.zoomBy(distance(next, anchor) / before);\n } else if (others.length === 0) {\n this.panBy(next.x - previous.x, next.y - previous.y);\n }\n this.pointers.set(event.pointerId, next);\n };\n\n protected onPointerUp = (event: PointerEvent): void => {\n this.pointers.delete(event.pointerId);\n this.isPanning.set(this.pointers.size > 0);\n };\n\n protected onWheel = (event: WheelEvent): void => {\n if (!this.source()) return;\n event.preventDefault();\n this.zoomBy(Math.exp(-event.deltaY * WHEEL_ZOOM_RATE));\n };\n\n protected onZoom = (percent: string): void => {\n const zoom = Number(percent) / 100;\n if (!Number.isFinite(zoom)) return;\n this.updateFraming((framing) => ({ ...framing, zoom }));\n };\n\n protected apply = async (): Promise<void> => {\n const bitmap = this.source();\n const image = this.imageSize();\n const output = this.output();\n if (!bitmap || !image || !output || this.isApplying()) return;\n this.isApplying.set(true);\n try {\n const rect = cropRect(image, this.aspect(), this.framing());\n const blob = await encodeFramed(drawFramed(bitmap, rect, output));\n const original = this.file();\n this.settle({\n file: new File([blob], renameForType(original.name, blob.type), {\n type: blob.type,\n lastModified: Date.now(),\n }),\n });\n } catch {\n this.settle({ unreadable: true });\n }\n };\n\n /** Screen pixels dragged, moved into source pixels at the current scale. */\n private panBy = (dx: number, dy: number): void => {\n const image = this.imageSize();\n const stage = this.stageWidth();\n if (!image || !stage) return;\n const rect = cropRect(image, this.aspect(), this.framing());\n const perPixel = rect.width / stage;\n this.updateFraming((framing) => ({\n ...framing,\n cx: framing.cx - dx * perPixel,\n cy: framing.cy - dy * perPixel,\n }));\n };\n\n private zoomBy = (factor: number): void => {\n this.updateFraming((framing) => ({\n ...framing,\n zoom: framing.zoom * factor,\n }));\n };\n\n private updateFraming = (change: (framing: Framing) => Framing): void => {\n const image = this.imageSize();\n if (!image) return;\n this.framing.update((framing) =>\n clampFraming(image, this.aspect(), change(framing))\n );\n };\n\n private settle = (result: ImageEditorResult | undefined): void => {\n if (this.#settled) return;\n this.#settled = true;\n this.#modalRef.close(result);\n };\n}\n"],"names":[],"mappings":";;;;AAyCA,MAAM,eAAe,GAAG,MAAM;AAE9B,MAAM,QAAQ,GAAG,CAAC,CAAQ,EAAE,CAAQ,KAClC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;MAsDrB,oBAAoB,CAAA;AACtB,IAAA,IAAI,GAAG,KAAK,CAAC,QAAQ,0EAAQ;AAC7B,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAChC,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAEhC,IAAA,SAAS,GAAG,MAAM,CAA0C,SAAS,CAAC;AAC9D,IAAA,KAAK,GAAG,SAAS,CAA6B,OAAO,4EAAC;AAEpD,IAAA,MAAM,GAAG,MAAM,CAA0B,SAAS,6EAAC;AACnD,IAAA,SAAS,GAAG,MAAM,CAAqB,SAAS,gFAAC;AACjD,IAAA,UAAU,GAAG,MAAM,CAAC,KAAK,iFAAC;AAC5B,IAAA,OAAO,GAAG,MAAM,CAAU,EAAE,EAAE,EAAE,CAAC,EAA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