@chaibuilder/sdk 1.1.18 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/dist/AddBlocks-57-vroWk.cjs +1 -0
  2. package/dist/AddBlocks-QvCc-oag.js +225 -0
  3. package/dist/BrandingOptions-arKT1zCy.cjs +1 -0
  4. package/dist/{BrandingOptions-zFJ28xmJ.js → BrandingOptions-mZXO7thQ.js} +27 -25
  5. package/dist/{CanvasArea-vTV3O27-.js → CanvasArea-59Gm0EZx.js} +581 -598
  6. package/dist/CanvasArea-jRg53jrS.cjs +59 -0
  7. package/dist/CurrentPage-MLObvs0K.cjs +1 -0
  8. package/dist/{CurrentPage-Ay7X9h9y.js → CurrentPage-YPI5QTjk.js} +17 -14
  9. package/dist/Functions-7jnEwJyw.js +15 -0
  10. package/dist/Functions-N3yhPYKY.cjs +1 -0
  11. package/dist/{Layers-CWnzKXMo.js → Layers-no2keK4N.js} +149 -146
  12. package/dist/Layers-x_mWeT_q.cjs +1 -0
  13. package/dist/MODIFIERS-2FeVfZQ9.cjs +1 -0
  14. package/dist/{MODIFIERS-MLfpKQY1.js → MODIFIERS-RiXS5Mn1.js} +7 -13
  15. package/dist/MarkAsGlobalBlock-S2BhHTsK.cjs +1 -0
  16. package/dist/{MarkAsGlobalBlock-uhj0kGZo.js → MarkAsGlobalBlock-SPWd6Flk.js} +9 -7
  17. package/dist/{PagesPanel-ALbBHaO3.js → PagesPanel-Q08uN4X3.js} +12 -9
  18. package/dist/PagesPanel-pOIuFPOA.cjs +1 -0
  19. package/dist/ProjectPanel-4bN_GyNm.cjs +1 -0
  20. package/dist/{ProjectPanel-tIDarI9R.js → ProjectPanel-zzYV9yrV.js} +25 -22
  21. package/dist/{Settings-5uDMY9SU.js → Settings-28A7R61i.js} +334 -331
  22. package/dist/Settings-KlTtgu3w.cjs +1 -0
  23. package/dist/{SidePanels-D6U95ur1.js → SidePanels--ZK6Iqou.js} +80 -77
  24. package/dist/SidePanels-eJBA_cUu.cjs +1 -0
  25. package/dist/{Topbar-_-1HX-EE.js → Topbar-ks1ckGLz.js} +15 -13
  26. package/dist/Topbar-u5XKdWgQ.cjs +1 -0
  27. package/dist/{UnsplashImages-mqK09h8E.js → UnsplashImages-8vJPuqrF.js} +25 -23
  28. package/dist/UnsplashImages-V8oKEHfi.cjs +1 -0
  29. package/dist/{UploadImages-IDkkRuhx.js → UploadImages-6N6UrjLo.js} +26 -24
  30. package/dist/UploadImages-eHYxwWAp.cjs +1 -0
  31. package/dist/_commonjsHelpers-UyOWmZb0.js +8 -0
  32. package/dist/_commonjsHelpers-wDK0ZLPo.cjs +1 -0
  33. package/dist/{add-page-modal-C1UGoRkw.js → add-page-modal-EHIYTW4T.js} +27 -24
  34. package/dist/add-page-modal-OvNXLGf0.cjs +1 -0
  35. package/dist/{confirm-alert-ea5xpncD.js → confirm-alert-biqvaLT-.js} +9 -7
  36. package/dist/confirm-alert-f3DYO5Hj.cjs +1 -0
  37. package/dist/controls-Dy1qa8Dc.cjs +1 -0
  38. package/dist/controls-XPXGHKht.js +182 -0
  39. package/dist/core.cjs +1 -1
  40. package/dist/core.d.ts +10 -1
  41. package/dist/core.js +60 -57
  42. package/dist/delete-page-modal-U4yiuhx0.cjs +1 -0
  43. package/dist/{delete-page-modal-0GxR128b.js → delete-page-modal-qZJCk_JH.js} +15 -12
  44. package/dist/email-blocks.cjs +1 -0
  45. package/dist/email-blocks.d.ts +3 -0
  46. package/dist/email-blocks.js +35 -0
  47. package/dist/{form-irY39wvJ.js → form-Moz_psOw.js} +16 -16
  48. package/dist/form-lJhy9DEC.cjs +1 -0
  49. package/dist/functions-Ox_svtKm.cjs +1 -0
  50. package/dist/functions-xIebp8Aw.js +23 -0
  51. package/dist/html-to-json-dfALTAdG.cjs +1 -0
  52. package/dist/{html-to-json-wmbV9eZP.js → html-to-json-xKBERAI1.js} +47 -46
  53. package/dist/index-IIJ_o44s.cjs +1 -0
  54. package/dist/{index-qEix1meh.js → index-QEchoZ98.js} +8 -8
  55. package/dist/{index-0OqmBgqo.js → index-_OgCuSUz.js} +528 -533
  56. package/dist/{index-npVo1wi3.cjs → index-hMoPNZVn.cjs} +2 -2
  57. package/dist/{jsx-runtime-NV737rRe.js → jsx-runtime-WbnYoNE9.js} +1 -1
  58. package/dist/{jsx-runtime-WUGKV8jN.cjs → jsx-runtime-Z_BpKhVy.cjs} +7 -7
  59. package/dist/lib.cjs +2 -2
  60. package/dist/lib.d.ts +1 -1
  61. package/dist/lib.js +47 -44
  62. package/dist/page-viewer-WhM1FSU0.cjs +1 -0
  63. package/dist/{page-viewer-mgnZt6nO.js → page-viewer-zFLkUu2I.js} +17 -14
  64. package/dist/{project-general-setting-M52W-vUp.js → project-general-setting-MWGOOurD.js} +16 -13
  65. package/dist/project-general-setting-y8daY7V9.cjs +1 -0
  66. package/dist/project-seo-setting-9JGBPzcA.cjs +1 -0
  67. package/dist/{project-seo-setting-EhqUcTKy.js → project-seo-setting-dXclexQW.js} +15 -13
  68. package/dist/render.cjs +1 -1
  69. package/dist/render.d.ts +1 -1
  70. package/dist/render.js +50 -49
  71. package/dist/server.cjs +1 -1
  72. package/dist/server.d.ts +1 -1
  73. package/dist/server.js +11 -11
  74. package/dist/single-page-detail--xPv74bX.cjs +1 -0
  75. package/dist/{single-page-detail-61UDUgWG.js → single-page-detail-C48IPzbd.js} +77 -74
  76. package/dist/studio.cjs +1 -1
  77. package/dist/studio.js +11 -8
  78. package/dist/ui.cjs +1 -1
  79. package/dist/ui.d.ts +3 -3
  80. package/dist/ui.js +144 -142
  81. package/dist/useAddBlockByDrop-_nd8yZBa.cjs +1 -0
  82. package/dist/useAddBlockByDrop-uPXvrg4G.js +20 -0
  83. package/dist/{utils-XsPKXMVo.js → utils-AvyFzbPC.js} +26 -35
  84. package/dist/utils-PTxFk6qT.cjs +1 -0
  85. package/dist/web-blocks.cjs +9 -0
  86. package/dist/web-blocks.d.ts +3 -0
  87. package/dist/web-blocks.js +1033 -0
  88. package/package.json +5 -2
  89. package/dist/AddBlocks-sKF4ti68.js +0 -222
  90. package/dist/AddBlocks-yPovJXtD.cjs +0 -1
  91. package/dist/BrandingOptions-TRVyCvVq.cjs +0 -1
  92. package/dist/CanvasArea-xxqOiENt.cjs +0 -59
  93. package/dist/CurrentPage-ju6otPNk.cjs +0 -1
  94. package/dist/Layers-d9OU0HRE.cjs +0 -1
  95. package/dist/MODIFIERS-WFzDQfiT.cjs +0 -1
  96. package/dist/MarkAsGlobalBlock-CDmEHNx7.cjs +0 -1
  97. package/dist/PagesPanel-F9Cdi4Pf.cjs +0 -1
  98. package/dist/ProjectPanel-T49RUDyt.cjs +0 -1
  99. package/dist/Settings-eZnusNbR.cjs +0 -1
  100. package/dist/SidePanels-BVM5JwGC.cjs +0 -1
  101. package/dist/Topbar-gQxbcPtG.cjs +0 -1
  102. package/dist/UnsplashImages-PNp5fYCc.cjs +0 -1
  103. package/dist/UploadImages-BoSSsLtD.cjs +0 -1
  104. package/dist/add-page-modal-HP1yv9yJ.cjs +0 -1
  105. package/dist/confirm-alert-dHRDZrA1.cjs +0 -1
  106. package/dist/controls-QnyBNkXG.cjs +0 -36
  107. package/dist/controls-kEuiMMDf.js +0 -4600
  108. package/dist/delete-page-modal-yOgfPcHr.cjs +0 -1
  109. package/dist/form-6qGAOYI3.cjs +0 -1
  110. package/dist/functions-86L6n983.js +0 -23
  111. package/dist/functions-Jr7gX_RX.cjs +0 -1
  112. package/dist/html-to-json-AqLy6ye-.cjs +0 -1
  113. package/dist/index-d55M5MRz.cjs +0 -1
  114. package/dist/lodash-2us0VT8I.cjs +0 -36
  115. package/dist/lodash-3gkdNK5u.js +0 -4538
  116. package/dist/page-viewer-G2YIKVSt.cjs +0 -1
  117. package/dist/project-general-setting-sinIiBKe.cjs +0 -1
  118. package/dist/project-seo-setting-N0OnBCvh.cjs +0 -1
  119. package/dist/single-page-detail-oa-yTXhQ.cjs +0 -1
  120. package/dist/useAddBlockByDrop-5QW86HjG.js +0 -20
  121. package/dist/useAddBlockByDrop-Ckzuvu-s.cjs +0 -1
  122. package/dist/utils-37UXq2O5.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const fr=require("./MODIFIERS-WFzDQfiT.cjs"),Oe=require("react");var N={exports:{}},j={};/**
1
+ "use strict";const fr=require("./_commonjsHelpers-wDK0ZLPo.cjs"),Oe=require("react");var N={exports:{}},j={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ye;function or(){if(ye)return j;ye=1;var M=Oe,S=Symbol.for("react.element"),V=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,D=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F={key:!0,ref:!0,__self:!0,__source:!0};function P(b,l,y){var d,E={},h=null,A=null;y!==void 0&&(h=""+y),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(A=l.ref);for(d in l)_.call(l,d)&&!F.hasOwnProperty(d)&&(E[d]=l[d]);if(b&&b.defaultProps)for(d in l=b.defaultProps,l)E[d]===void 0&&(E[d]=l[d]);return{$$typeof:S,type:b,key:h,ref:A,props:E,_owner:D.current}}return j.Fragment=V,j.jsx=P,j.jsxs=P,j}var k={};/**
9
+ */var ye;function or(){if(ye)return j;ye=1;var V=Oe,P=Symbol.for("react.element"),M=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,D=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,F={key:!0,ref:!0,__self:!0,__source:!0};function S(R,l,y){var d,g={},b=null,A=null;y!==void 0&&(b=""+y),l.key!==void 0&&(b=""+l.key),l.ref!==void 0&&(A=l.ref);for(d in l)_.call(l,d)&&!F.hasOwnProperty(d)&&(g[d]=l[d]);if(R&&R.defaultProps)for(d in l=R.defaultProps,l)g[d]===void 0&&(g[d]=l[d]);return{$$typeof:P,type:R,key:b,ref:A,props:g,_owner:D.current}}return j.Fragment=M,j.jsx=S,j.jsxs=S,j}var k={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Te;function ur(){return Te||(Te=1,process.env.NODE_ENV!=="production"&&function(){"use strict";var M=Oe,S=Symbol.for("react.element"),V=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),b=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),X=Symbol.iterator,Ce="@@iterator";function Se(e){if(e===null||typeof e!="object")return null;var r=X&&e[X]||e[Ce];return typeof r=="function"?r:null}var T=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Pe("error",e,t)}}function Pe(e,r,t){{var n=T.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var we=!1,xe=!1,je=!1,ke=!1,De=!1,Z;Z=Symbol.for("react.module.reference");function Fe(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===F||De||e===D||e===y||e===d||ke||e===A||we||xe||je||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===E||e.$$typeof===P||e.$$typeof===b||e.$$typeof===l||e.$$typeof===Z||e.getModuleId!==void 0))}function Ae(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function g(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case V:return"Portal";case F:return"Profiler";case D:return"StrictMode";case y:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case b:var r=e;return Q(r)+".Consumer";case P:var t=e;return Q(t._context)+".Provider";case l:return Ae(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:g(e.type)||"Memo";case h:{var o=e,u=o._payload,i=o._init;try{return g(i(u))}catch{return null}}}return null}var m=Object.assign,w=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function Ie(){{if(w===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}w++}}function $e(){{if(w--,w===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:m({},e,{value:ee}),info:m({},e,{value:re}),warn:m({},e,{value:te}),error:m({},e,{value:ne}),group:m({},e,{value:ae}),groupCollapsed:m({},e,{value:ie}),groupEnd:m({},e,{value:oe})})}w<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=T.ReactCurrentDispatcher,q;function I(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
18
- `+q+e}}var B=!1,$;{var We=typeof WeakMap=="function"?WeakMap:Map;$=new We}function se(e,r){if(!e||B)return"";{var t=$.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,Ie();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(R){n=R}Reflect.construct(e,[],i)}else{try{i.call()}catch(R){n=R}e.call(i.prototype)}}else{try{throw Error()}catch(R){n=R}e()}}catch(R){if(R&&n&&typeof R.stack=="string"){for(var a=R.stack.split(`
17
+ */var Te;function ur(){return Te||(Te=1,process.env.NODE_ENV!=="production"&&function(){"use strict";var V=Oe,P=Symbol.for("react.element"),M=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),R=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),X=Symbol.iterator,Ce="@@iterator";function Pe(e){if(e===null||typeof e!="object")return null;var r=X&&e[X]||e[Ce];return typeof r=="function"?r:null}var T=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Se("error",e,t)}}function Se(e,r,t){{var n=T.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var we=!1,xe=!1,je=!1,ke=!1,De=!1,Z;Z=Symbol.for("react.module.reference");function Fe(e){return!!(typeof e=="string"||typeof e=="function"||e===_||e===F||De||e===D||e===y||e===d||ke||e===A||we||xe||je||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===S||e.$$typeof===R||e.$$typeof===l||e.$$typeof===Z||e.getModuleId!==void 0))}function Ae(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function E(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case M:return"Portal";case F:return"Profiler";case D:return"StrictMode";case y:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return Q(r)+".Consumer";case S:var t=e;return Q(t._context)+".Provider";case l:return Ae(e,e.render,"ForwardRef");case g:var n=e.displayName||null;return n!==null?n:E(e.type)||"Memo";case b:{var o=e,u=o._payload,i=o._init;try{return E(i(u))}catch{return null}}}return null}var h=Object.assign,w=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function Ie(){{if(w===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}w++}}function $e(){{if(w--,w===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:h({},e,{value:ee}),info:h({},e,{value:re}),warn:h({},e,{value:te}),error:h({},e,{value:ne}),group:h({},e,{value:ae}),groupCollapsed:h({},e,{value:ie}),groupEnd:h({},e,{value:oe})})}w<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=T.ReactCurrentDispatcher,q;function I(e,r,t){{if(q===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);q=n&&n[1]||""}return`
18
+ `+q+e}}var B=!1,$;{var We=typeof WeakMap=="function"?WeakMap:Map;$=new We}function se(e,r){if(!e||B)return"";{var t=$.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,Ie();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(m){n=m}Reflect.construct(e,[],i)}else{try{i.call()}catch(m){n=m}e.call(i.prototype)}}else{try{throw Error()}catch(m){n=m}e()}}catch(m){if(m&&n&&typeof m.stack=="string"){for(var a=m.stack.split(`
19
19
  `),v=n.stack.split(`
20
20
  `),s=a.length-1,f=v.length-1;s>=1&&f>=0&&a[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==v[f]){var p=`
21
- `+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,p),p}while(s>=1&&f>=0);break}}}finally{B=!1,U.current=u,$e(),Error.prepareStackTrace=o}var C=e?e.displayName||e.name:"",_e=C?I(C):"";return typeof e=="function"&&$.set(e,_e),_e}function Ye(e,r,t){return se(e,!1)}function Le(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function W(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Le(e));if(typeof e=="string")return I(e);switch(e){case y:return I("Suspense");case d:return I("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ye(e.render);case E:return W(e.type,r,t);case h:{var n=e,o=n._payload,u=n._init;try{return W(u(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,fe={},le=T.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);le.setExtraStackFrame(t)}else le.setExtraStackFrame(null)}function Ne(e,r,t,n,o){{var u=Function.call.bind(Y);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Me=Array.isArray;function J(e){return Me(e)}function Ve(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ue(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(Ue(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ve(e)),ce(e)}var x=T.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},de,pe,G;G={};function Be(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Je(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){if(typeof e.ref=="string"&&x.current&&r&&x.current.stateNode!==r){var t=g(x.current.type);G[t]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',g(x.current.type),e.ref),G[t]=!0)}}function ze(e,r){{var t=function(){de||(de=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ke(e,r){{var t=function(){pe||(pe=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var He=function(e,r,t,n,o,u,i){var a={$$typeof:S,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Xe(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Je(r)&&(ve(r.key),a=""+r.key),Be(r)&&(v=r.ref,Ge(r,o));for(u in r)Y.call(r,u)&&!qe.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ze(i,f),v&&Ke(i,f)}return He(e,a,v,o,n,x.current,i)}}var z=T.ReactCurrentOwner,Ee=T.ReactDebugCurrentFrame;function O(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var K;K=!1;function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}function ge(){{if(z.current){var e=g(z.current.type);if(e)return`
21
+ `+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,p),p}while(s>=1&&f>=0);break}}}finally{B=!1,U.current=u,$e(),Error.prepareStackTrace=o}var C=e?e.displayName||e.name:"",_e=C?I(C):"";return typeof e=="function"&&$.set(e,_e),_e}function Ye(e,r,t){return se(e,!1)}function Le(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function W(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Le(e));if(typeof e=="string")return I(e);switch(e){case y:return I("Suspense");case d:return I("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Ye(e.render);case g:return W(e.type,r,t);case b:{var n=e,o=n._payload,u=n._init;try{return W(u(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,fe={},le=T.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);le.setExtraStackFrame(t)}else le.setExtraStackFrame(null)}function Ne(e,r,t,n,o){{var u=Function.call.bind(Y);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in fe)&&(fe[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Ve=Array.isArray;function J(e){return Ve(e)}function Me(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ue(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(Ue(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Me(e)),ce(e)}var x=T.ReactCurrentOwner,qe={key:!0,ref:!0,__self:!0,__source:!0},de,pe,G;G={};function Be(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Je(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){if(typeof e.ref=="string"&&x.current&&r&&x.current.stateNode!==r){var t=E(x.current.type);G[t]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',E(x.current.type),e.ref),G[t]=!0)}}function ze(e,r){{var t=function(){de||(de=!0,c("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function He(e,r){{var t=function(){pe||(pe=!0,c("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ke=function(e,r,t,n,o,u,i){var a={$$typeof:P,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Xe(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Je(r)&&(ve(r.key),a=""+r.key),Be(r)&&(v=r.ref,Ge(r,o));for(u in r)Y.call(r,u)&&!qe.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ze(i,f),v&&He(i,f)}return Ke(e,a,v,o,n,x.current,i)}}var z=T.ReactCurrentOwner,ge=T.ReactDebugCurrentFrame;function O(e){if(e){var r=e._owner,t=W(e.type,e._source,r?r.type:null);ge.setExtraStackFrame(t)}else ge.setExtraStackFrame(null)}var H;H=!1;function K(e){return typeof e=="object"&&e!==null&&e.$$typeof===P}function Ee(){{if(z.current){var e=E(z.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function Ze(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var Re={};function Qe(e){{var r=ge();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+t+"."}return""}}var me={};function Qe(e){{var r=Ee();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Qe(r);if(Re[t])return;Re[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+g(e._owner.type)+"."),O(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),O(null)}}function he(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];H(n)&&be(n,r)}else if(H(e))e._store&&(e._store.validated=!0);else if(e){var o=Se(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)H(i.value)&&be(i.value,r)}}}function er(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=g(r);Ne(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=g(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){O(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),O(null);break}}e.ref!==null&&(O(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),O(null))}}function me(e,r,t,n,o,u){{var i=Fe(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=Ze(o);v?a+=v:a+=ge();var s;e===null?s="null":J(e)?s="array":e!==void 0&&e.$$typeof===S?(s="<"+(g(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=Xe(e,r,t,o,u);if(f==null)return f;if(i){var p=r.children;if(p!==void 0)if(n)if(J(p)){for(var C=0;C<p.length;C++)he(p[C],e);Object.freeze&&Object.freeze(p)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(p,e)}return e===_?rr(f):er(f),f}}function tr(e,r,t){return me(e,r,t,!0)}function nr(e,r,t){return me(e,r,t,!1)}var ar=nr,ir=tr;k.Fragment=_,k.jsx=ar,k.jsxs=ir}()),k}var lr=N.exports;process.env.NODE_ENV==="production"?N.exports=or():N.exports=ur();var sr=N.exports;exports.jsxRuntimeExports=sr;
27
+ Check the top-level render call using <`+t+">.")}return r}}function Re(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Qe(r);if(me[t])return;me[t]=!0;var n="";e&&e._owner&&e._owner!==z.current&&(n=" It was passed a child from "+E(e._owner.type)+"."),O(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),O(null)}}function be(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];K(n)&&Re(n,r)}else if(K(e))e._store&&(e._store.validated=!0);else if(e){var o=Pe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)K(i.value)&&Re(i.value,r)}}}function er(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===g))t=r.propTypes;else return;if(t){var n=E(r);Ne(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=E(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function rr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){O(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),O(null);break}}e.ref!==null&&(O(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),O(null))}}function he(e,r,t,n,o,u){{var i=Fe(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=Ze(o);v?a+=v:a+=Ee();var s;e===null?s="null":J(e)?s="array":e!==void 0&&e.$$typeof===P?(s="<"+(E(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=Xe(e,r,t,o,u);if(f==null)return f;if(i){var p=r.children;if(p!==void 0)if(n)if(J(p)){for(var C=0;C<p.length;C++)be(p[C],e);Object.freeze&&Object.freeze(p)}else c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else be(p,e)}return e===_?rr(f):er(f),f}}function tr(e,r,t){return he(e,r,t,!0)}function nr(e,r,t){return he(e,r,t,!1)}var ar=nr,ir=tr;k.Fragment=_,k.jsx=ar,k.jsxs=ir}()),k}var lr=N.exports;process.env.NODE_ENV==="production"?N.exports=or():N.exports=ur();var sr=N.exports;exports.jsxRuntimeExports=sr;
package/dist/lib.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./utils-37UXq2O5.cjs"),z=require("./html-to-json-AqLy6ye-.cjs"),r=require("./lodash-2us0VT8I.cjs"),g=require("./functions-Jr7gX_RX.cjs"),_=require("@bobthered/tailwindcss-palette-generator"),D=require("@mhsdesign/jit-browser-tailwindcss"),T=require("./MODIFIERS-WFzDQfiT.cjs"),E=require("@tailwindcss/forms"),O=require("@tailwindcss/typography"),v=require("@tailwindcss/aspect-ratio"),A=require("@tailwindcss/line-clamp");require("clsx");require("tailwind-merge");require("himalaya");const w={25:"1/4","33.33":"1/3",50:"1/2","66.67":"2/3",75:"3/4",20:"1/5",40:"2/5",60:"3/5",80:"4/5","16.67":"1/6","83.33":"5/6","8.33":"1/12","41.67":"5/12","58.33":"7/12","91.67":"11/12",100:"full"},L={0:"0",1:"px",2:"0.5",4:"1",6:"1.5",8:"2",10:"2.5",12:"3",14:"3.5",16:"4",20:"5",24:"6",28:"7",32:"8",36:"9",40:"10",44:"11",48:"12",56:"14",64:"16",80:"20",96:"24",112:"28",128:"32",144:"36",160:"40",176:"44",192:"48",208:"52",224:"56",240:"60",256:"64",288:"72",320:"80",384:"96"};const U=16,P=4;function I(e){return e.indexOf("rem")!==-1&&(e=`${parseFloat(e.replace("rem",""))*U}px`),e}const R=e=>{const a=e.match(/\[.*\]/);if(a===null)return e;const n=d.constructClassObject(e);if(n===null)return e;const{property:s}=n;let t=r.head(a).replace(/\]/i,"").replace(/\[/i,"");const i=e.replace(/\[.*\]/i,"");t=I(t);let o=e;switch(s){case"top":case"right":case"left":case"bottom":case"inset":case"insetX":case"insetY":case"gap":case"gapX":case"gapY":case"padding":case"paddingX":case"paddingY":case"paddingTop":case"paddingRight":case"paddingBottom":case"paddingLeft":case"margin":case"marginX":case"marginY":case"marginTop":case"marginRight":case"marginBottom":case"marginLeft":case"flexBasis":case"width":case"height":case"maxHeight":case"textIndent":case"spaceX":case"spaceY":if(t.indexOf("px")!==-1){const p=r.map(r.keys(L),l=>`${l}px`);if(r.includes(p,t)){const l=r.parseInt(t.replace("px",""),10);l===1?o=`${i}px`:o=i+l/P}}if(t.indexOf("%")!==-1){const p=r.map(r.keys(w),l=>`${l}%`);if(r.includes(p,t)){const l=parseFloat(t.replace("%",""));o=i+r.get(w,l)}}t.indexOf("vw")!==-1&&parseFloat(t.replace("vw",""))===100&&(o=`${i}screen`),t.indexOf("vh")!==-1&&parseFloat(t.replace("vh",""))===100&&(o=`${i}screen`);break;case"minWidth":t.indexOf("%")!==-1&&parseFloat(t.replace("%",""))===100&&(o=`${i}full`),t==="0px"&&(o="min-w-0");break;case"maxWidth":t==="0px"&&(o="max-w-0");const x={"320px":"xs","384px":"sm","448px":"md","512px":"lg","576px":"xl","672px":"2xl","768px":"3xl","896px":"4xl","1024px":"5xl","1152px":"6xl","1280px":"7xl","100%":"full","65ch":"prose","640px":"screen-sm","1536px":"screen-2xl"};r.includes(r.keys(x),t)&&(o=`max-w-${x[t]}`);break;case"minHeight":t.indexOf("%")!==-1&&parseFloat(t.replace("%",""))===100&&(o=`${i}full`),t==="0px"&&(o="min-h-0"),t==="100vh"&&(o="min-h-screen");break;case"fontSize":const m={"12px":"xs","14px":"sm","16px":"base","18px":"lg","20px":"xl","24px":"2xl","30px":"3xl","36px":"4xl","48px":"5xl","60px":"6xl","72px":"7xl","96px":"8xl","128px":"9xl"};r.includes(r.keys(m),t)&&(o=i+m[t]);break;case"lineHeight":const c={"12px":"3","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10",1:"none","1.25":"tight","1.375":"snug","1.5":"normal","1.625":"relaxed",2:"loose"};r.includes(r.keys(c),t)&&(o=i+c[t]);break;case"zIndex":o=["0","10","20","30","40","50"].indexOf(t)!==-1?`${i}${t}`:e;break;case"opacity":const h=["0","5","10","20","25","30","40","50","60","70","75","80","90","95","100"],y=parseFloat(t)*100;r.includes(h,y.toString())&&(o=`opacity-${y}`);break;default:break}return o};var k={},S={};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return a}});function a(n){return Array.isArray(n)?n.map(s=>a(s)):typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n).map(([s,t])=>[s,a(t)])):n}})(S);var H={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:a})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...a(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const a=S,n=s(H);function s(i){return i&&i.__esModule?i:{default:i}}const t=(0,a.cloneDeep)(n.default.theme)})(k);let u=k;var $=(u.__esModule?u:{default:u}).default;const f=T.getDefaultExportFromCjs($);async function C(e,a,n=[],s="c-"){const t=r.get(e,"primaryColor","#000"),i=r.get(e,"secondaryColor","#ccc"),o=r.get(e,"headingFont","Inter"),x=r.get(e,"bodyFont","Inter"),m=r.get(e,"roundedCorners","0"),c=_.tailwindcssPaletteGenerator({colors:[t,i],names:["primary","secondary"]});return r.set(c,"primary.DEFAULT",t),r.set(c,"secondary.DEFAULT",i),`${await D.createTailwindcss({tailwindConfig:{prefix:s,darkMode:"class",safelist:n,theme:{fontFamily:{heading:[o,...f.fontFamily.sans],body:[x,...f.fontFamily.sans]},extend:{borderRadius:{global:`${m||"0"}px`},colors:c}},plugins:[E,O,v,A],corePlugins:{preflight:!1}}}).generateStylesFromContent(` @tailwind components;
2
- @tailwind utilities;`,a)} .${s}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${o}",${f.fontFamily.sans.join(", ")};}`}const B=(e,a)=>e.map(n=>{const s={};return Object.keys(n).forEach(t=>{r.startsWith(n[t],T.STYLES_KEY)&&(s[t]=g.addPrefixToClasses(n[t],a))}),s}),b=(e,a,n="c-")=>{const s=g.getBrandingClasses(a,n);return C(a,[r.replace(JSON.stringify(B(e,n)),/#styles:/g,"")],s.split(" ").concat(`${n}inline-block`,`${n}w-full`,`${n}h-full`))},M=async(e,a="c-")=>{const n=e.page.blocks;return await b(n,e.project.brandingOptions,a)},W=async(e,a,n="c-")=>await b(e,a,n);exports.cn=d.cn;exports.generateUUID=d.generateUUID;exports.getBreakpointValue=d.getBreakpointValue;exports.getBlocksFromHTML=z.getBlocksFromHTML;exports.addPrefixToClasses=g.addPrefixToClasses;exports.getBrandingClasses=g.getBrandingClasses;exports.convertArbitraryToTailwindClass=R;exports.getBlocksTailwindCSS=b;exports.getStylesForBlocks=W;exports.getStylesForPageData=M;exports.getTailwindCSS=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./utils-PTxFk6qT.cjs"),T=require("./Functions-N3yhPYKY.cjs"),z=require("./html-to-json-dfALTAdG.cjs"),r=require("lodash-es"),d=require("./functions-Ox_svtKm.cjs"),_=require("@bobthered/tailwindcss-palette-generator"),E=require("@mhsdesign/jit-browser-tailwindcss"),D=require("./_commonjsHelpers-wDK0ZLPo.cjs"),O=require("@tailwindcss/forms"),v=require("@tailwindcss/typography"),A=require("@tailwindcss/aspect-ratio"),L=require("@tailwindcss/line-clamp"),U=require("./MODIFIERS-2FeVfZQ9.cjs");require("clsx");require("tailwind-merge");require("himalaya");require("lodash");const y={25:"1/4","33.33":"1/3",50:"1/2","66.67":"2/3",75:"3/4",20:"1/5",40:"2/5",60:"3/5",80:"4/5","16.67":"1/6","83.33":"5/6","8.33":"1/12","41.67":"5/12","58.33":"7/12","91.67":"11/12",100:"full"},P={0:"0",1:"px",2:"0.5",4:"1",6:"1.5",8:"2",10:"2.5",12:"3",14:"3.5",16:"4",20:"5",24:"6",28:"7",32:"8",36:"9",40:"10",44:"11",48:"12",56:"14",64:"16",80:"20",96:"24",112:"28",128:"32",144:"36",160:"40",176:"44",192:"48",208:"52",224:"56",240:"60",256:"64",288:"72",320:"80",384:"96"};const H=16,I=4;function R(e){return e.indexOf("rem")!==-1&&(e=`${parseFloat(e.replace("rem",""))*H}px`),e}const $=e=>{const o=e.match(/\[.*\]/);if(o===null)return e;const n=w.constructClassObject(e);if(n===null)return e;const{property:s}=n;let t=r.first(o).replace(/\]/i,"").replace(/\[/i,"");const i=e.replace(/\[.*\]/i,"");t=R(t);let a=e;switch(s){case"top":case"right":case"left":case"bottom":case"inset":case"insetX":case"insetY":case"gap":case"gapX":case"gapY":case"padding":case"paddingX":case"paddingY":case"paddingTop":case"paddingRight":case"paddingBottom":case"paddingLeft":case"margin":case"marginX":case"marginY":case"marginTop":case"marginRight":case"marginBottom":case"marginLeft":case"flexBasis":case"width":case"height":case"maxHeight":case"textIndent":case"spaceX":case"spaceY":if(t.indexOf("px")!==-1){const p=r.map(r.keys(P),l=>`${l}px`);if(r.includes(p,t)){const l=r.parseInt(t.replace("px",""),10);l===1?a=`${i}px`:a=i+l/I}}if(t.indexOf("%")!==-1){const p=r.map(r.keys(y),l=>`${l}%`);if(r.includes(p,t)){const l=parseFloat(t.replace("%",""));a=i+r.get(y,l)}}t.indexOf("vw")!==-1&&parseFloat(t.replace("vw",""))===100&&(a=`${i}screen`),t.indexOf("vh")!==-1&&parseFloat(t.replace("vh",""))===100&&(a=`${i}screen`);break;case"minWidth":t.indexOf("%")!==-1&&parseFloat(t.replace("%",""))===100&&(a=`${i}full`),t==="0px"&&(a="min-w-0");break;case"maxWidth":t==="0px"&&(a="max-w-0");const x={"320px":"xs","384px":"sm","448px":"md","512px":"lg","576px":"xl","672px":"2xl","768px":"3xl","896px":"4xl","1024px":"5xl","1152px":"6xl","1280px":"7xl","100%":"full","65ch":"prose","640px":"screen-sm","1536px":"screen-2xl"};r.includes(r.keys(x),t)&&(a=`max-w-${x[t]}`);break;case"minHeight":t.indexOf("%")!==-1&&parseFloat(t.replace("%",""))===100&&(a=`${i}full`),t==="0px"&&(a="min-h-0"),t==="100vh"&&(a="min-h-screen");break;case"fontSize":const m={"12px":"xs","14px":"sm","16px":"base","18px":"lg","20px":"xl","24px":"2xl","30px":"3xl","36px":"4xl","48px":"5xl","60px":"6xl","72px":"7xl","96px":"8xl","128px":"9xl"};r.includes(r.keys(m),t)&&(a=i+m[t]);break;case"lineHeight":const c={"12px":"3","16px":"4","20px":"5","24px":"6","28px":"7","32px":"8","36px":"9","40px":"10",1:"none","1.25":"tight","1.375":"snug","1.5":"normal","1.625":"relaxed",2:"loose"};r.includes(r.keys(c),t)&&(a=i+c[t]);break;case"zIndex":a=["0","10","20","30","40","50"].indexOf(t)!==-1?`${i}${t}`:e;break;case"opacity":const b=["0","5","10","20","25","30","40","50","60","70","75","80","90","95","100"],h=parseFloat(t)*100;r.includes(b,h.toString())&&(a=`opacity-${h}`);break;default:break}return a};var k={},S={};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return o}});function o(n){return Array.isArray(n)?n.map(s=>o(s)):typeof n=="object"&&n!==null?Object.fromEntries(Object.entries(n).map(([s,t])=>[s,o(t)])):n}})(S);var B={content:[],presets:[],darkMode:"media",theme:{accentColor:({theme:e})=>({...e("colors"),auto:"auto"}),animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0, 0, 0.2, 1) infinite",pulse:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",bounce:"bounce 1s infinite"},aria:{busy:'busy="true"',checked:'checked="true"',disabled:'disabled="true"',expanded:'expanded="true"',hidden:'hidden="true"',pressed:'pressed="true"',readonly:'readonly="true"',required:'required="true"',selected:'selected="true"'},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9"},backdropBlur:({theme:e})=>e("blur"),backdropBrightness:({theme:e})=>e("brightness"),backdropContrast:({theme:e})=>e("contrast"),backdropGrayscale:({theme:e})=>e("grayscale"),backdropHueRotate:({theme:e})=>e("hueRotate"),backdropInvert:({theme:e})=>e("invert"),backdropOpacity:({theme:e})=>e("opacity"),backdropSaturate:({theme:e})=>e("saturate"),backdropSepia:({theme:e})=>e("sepia"),backgroundColor:({theme:e})=>e("colors"),backgroundImage:{none:"none","gradient-to-t":"linear-gradient(to top, var(--tw-gradient-stops))","gradient-to-tr":"linear-gradient(to top right, var(--tw-gradient-stops))","gradient-to-r":"linear-gradient(to right, var(--tw-gradient-stops))","gradient-to-br":"linear-gradient(to bottom right, var(--tw-gradient-stops))","gradient-to-b":"linear-gradient(to bottom, var(--tw-gradient-stops))","gradient-to-bl":"linear-gradient(to bottom left, var(--tw-gradient-stops))","gradient-to-l":"linear-gradient(to left, var(--tw-gradient-stops))","gradient-to-tl":"linear-gradient(to top left, var(--tw-gradient-stops))"},backgroundOpacity:({theme:e})=>e("opacity"),backgroundPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{0:"0",none:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},borderColor:({theme:e})=>({...e("colors"),DEFAULT:e("colors.gray.200","currentColor")}),borderOpacity:({theme:e})=>e("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},borderSpacing:({theme:e})=>({...e("spacing")}),borderWidth:{DEFAULT:"1px",0:"0px",2:"2px",4:"4px",8:"8px"},boxShadow:{sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",DEFAULT:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",none:"none"},boxShadowColor:({theme:e})=>e("colors"),brightness:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5",200:"2"},caretColor:({theme:e})=>e("colors"),colors:({colors:e})=>({inherit:e.inherit,current:e.current,transparent:e.transparent,black:e.black,white:e.white,slate:e.slate,gray:e.gray,zinc:e.zinc,neutral:e.neutral,stone:e.stone,red:e.red,orange:e.orange,amber:e.amber,yellow:e.yellow,lime:e.lime,green:e.green,emerald:e.emerald,teal:e.teal,cyan:e.cyan,sky:e.sky,blue:e.blue,indigo:e.indigo,violet:e.violet,purple:e.purple,fuchsia:e.fuchsia,pink:e.pink,rose:e.rose}),columns:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},container:{},content:{none:"none"},contrast:{0:"0",50:".5",75:".75",100:"1",125:"1.25",150:"1.5",200:"2"},cursor:{auto:"auto",default:"default",pointer:"pointer",wait:"wait",text:"text",move:"move",help:"help","not-allowed":"not-allowed",none:"none","context-menu":"context-menu",progress:"progress",cell:"cell",crosshair:"crosshair","vertical-text":"vertical-text",alias:"alias",copy:"copy","no-drop":"no-drop",grab:"grab",grabbing:"grabbing","all-scroll":"all-scroll","col-resize":"col-resize","row-resize":"row-resize","n-resize":"n-resize","e-resize":"e-resize","s-resize":"s-resize","w-resize":"w-resize","ne-resize":"ne-resize","nw-resize":"nw-resize","se-resize":"se-resize","sw-resize":"sw-resize","ew-resize":"ew-resize","ns-resize":"ns-resize","nesw-resize":"nesw-resize","nwse-resize":"nwse-resize","zoom-in":"zoom-in","zoom-out":"zoom-out"},divideColor:({theme:e})=>e("borderColor"),divideOpacity:({theme:e})=>e("borderOpacity"),divideWidth:({theme:e})=>e("borderWidth"),dropShadow:{sm:"0 1px 1px rgb(0 0 0 / 0.05)",DEFAULT:["0 1px 2px rgb(0 0 0 / 0.1)","0 1px 1px rgb(0 0 0 / 0.06)"],md:["0 4px 3px rgb(0 0 0 / 0.07)","0 2px 2px rgb(0 0 0 / 0.06)"],lg:["0 10px 8px rgb(0 0 0 / 0.04)","0 4px 3px rgb(0 0 0 / 0.1)"],xl:["0 20px 13px rgb(0 0 0 / 0.03)","0 8px 5px rgb(0 0 0 / 0.08)"],"2xl":"0 25px 25px rgb(0 0 0 / 0.15)",none:"0 0 #0000"},fill:({theme:e})=>({none:"none",...e("colors")}),flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%"}),flexGrow:{0:"0",DEFAULT:"1"},flexShrink:{0:"0",DEFAULT:"1"},fontFamily:{sans:["ui-sans-serif","system-ui","-apple-system","BlinkMacSystemFont",'"Segoe UI"',"Roboto",'"Helvetica Neue"',"Arial",'"Noto Sans"',"sans-serif",'"Apple Color Emoji"','"Segoe UI Emoji"','"Segoe UI Symbol"','"Noto Color Emoji"'],serif:["ui-serif","Georgia","Cambria",'"Times New Roman"',"Times","serif"],mono:["ui-monospace","SFMono-Regular","Menlo","Monaco","Consolas",'"Liberation Mono"','"Courier New"',"monospace"]},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}],"4xl":["2.25rem",{lineHeight:"2.5rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:({theme:e})=>e("spacing"),gradientColorStops:({theme:e})=>e("colors"),gradientColorStopPositions:{"0%":"0%","5%":"5%","10%":"10%","15%":"15%","20%":"20%","25%":"25%","30%":"30%","35%":"35%","40%":"40%","45%":"45%","50%":"50%","55%":"55%","60%":"60%","65%":"65%","70%":"70%","75%":"75%","80%":"80%","85%":"85%","90%":"90%","95%":"95%","100%":"100%"},grayscale:{0:"0",DEFAULT:"100%"},gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0, 1fr)"},gridColumn:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-7":"span 7 / span 7","span-8":"span 8 / span 8","span-9":"span 9 / span 9","span-10":"span 10 / span 10","span-11":"span 11 / span 11","span-12":"span 12 / span 12","span-full":"1 / -1"},gridColumnEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridColumnStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13"},gridRow:{auto:"auto","span-1":"span 1 / span 1","span-2":"span 2 / span 2","span-3":"span 3 / span 3","span-4":"span 4 / span 4","span-5":"span 5 / span 5","span-6":"span 6 / span 6","span-full":"1 / -1"},gridRowEnd:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridRowStart:{auto:"auto",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7"},gridTemplateColumns:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))",7:"repeat(7, minmax(0, 1fr))",8:"repeat(8, minmax(0, 1fr))",9:"repeat(9, minmax(0, 1fr))",10:"repeat(10, minmax(0, 1fr))",11:"repeat(11, minmax(0, 1fr))",12:"repeat(12, minmax(0, 1fr))"},gridTemplateRows:{none:"none",1:"repeat(1, minmax(0, 1fr))",2:"repeat(2, minmax(0, 1fr))",3:"repeat(3, minmax(0, 1fr))",4:"repeat(4, minmax(0, 1fr))",5:"repeat(5, minmax(0, 1fr))",6:"repeat(6, minmax(0, 1fr))"},height:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},inset:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),invert:{0:"0",DEFAULT:"100%"},keyframes:{spin:{to:{transform:"rotate(360deg)"}},ping:{"75%, 100%":{transform:"scale(2)",opacity:"0"}},pulse:{"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},listStyleType:{none:"none",disc:"disc",decimal:"decimal"},listStyleImage:{none:"none"},margin:({theme:e})=>({auto:"auto",...e("spacing")}),lineClamp:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6"},maxHeight:({theme:e})=>({...e("spacing"),none:"none",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"}),maxWidth:({theme:e,breakpoints:o})=>({none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch",...o(e("screens"))}),minHeight:{0:"0px",full:"100%",screen:"100vh",min:"min-content",max:"max-content",fit:"fit-content"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},objectPosition:{bottom:"bottom",center:"center",left:"left","left-bottom":"left bottom","left-top":"left top",right:"right","right-bottom":"right bottom","right-top":"right top",top:"top"},opacity:{0:"0",5:"0.05",10:"0.1",20:"0.2",25:"0.25",30:"0.3",40:"0.4",50:"0.5",60:"0.6",70:"0.7",75:"0.75",80:"0.8",90:"0.9",95:"0.95",100:"1"},order:{first:"-9999",last:"9999",none:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},outlineColor:({theme:e})=>e("colors"),outlineOffset:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},outlineWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},padding:({theme:e})=>e("spacing"),placeholderColor:({theme:e})=>e("colors"),placeholderOpacity:({theme:e})=>e("opacity"),ringColor:({theme:e})=>({DEFAULT:e("colors.blue.500","#3b82f6"),...e("colors")}),ringOffsetColor:({theme:e})=>e("colors"),ringOffsetWidth:{0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},ringOpacity:({theme:e})=>({DEFAULT:"0.5",...e("opacity")}),ringWidth:{DEFAULT:"3px",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},rotate:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg",45:"45deg",90:"90deg",180:"180deg"},saturate:{0:"0",50:".5",100:"1",150:"1.5",200:"2"},scale:{0:"0",50:".5",75:".75",90:".9",95:".95",100:"1",105:"1.05",110:"1.1",125:"1.25",150:"1.5"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},scrollMargin:({theme:e})=>({...e("spacing")}),scrollPadding:({theme:e})=>e("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{0:"0deg",1:"1deg",2:"2deg",3:"3deg",6:"6deg",12:"12deg"},space:({theme:e})=>({...e("spacing")}),spacing:{px:"1px",0:"0px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",11:"2.75rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},stroke:({theme:e})=>({none:"none",...e("colors")}),strokeWidth:{0:"0",1:"1",2:"2"},supports:{},data:{},textColor:({theme:e})=>e("colors"),textDecorationColor:({theme:e})=>e("colors"),textDecorationThickness:{auto:"auto","from-font":"from-font",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},textIndent:({theme:e})=>({...e("spacing")}),textOpacity:({theme:e})=>e("opacity"),textUnderlineOffset:{auto:"auto",0:"0px",1:"1px",2:"2px",4:"4px",8:"8px"},transformOrigin:{center:"center",top:"top","top-right":"top right",right:"right","bottom-right":"bottom right",bottom:"bottom","bottom-left":"bottom left",left:"left","top-left":"top left"},transitionDelay:{0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionDuration:{DEFAULT:"150ms",0:"0s",75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},transitionProperty:{none:"none",all:"all",DEFAULT:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",colors:"color, background-color, border-color, text-decoration-color, fill, stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4, 0, 0.2, 1)",linear:"linear",in:"cubic-bezier(0.4, 0, 1, 1)",out:"cubic-bezier(0, 0, 0.2, 1)","in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},translate:({theme:e})=>({...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%",full:"100%"}),width:({theme:e})=>({auto:"auto",...e("spacing"),"1/2":"50%","1/3":"33.333333%","2/3":"66.666667%","1/4":"25%","2/4":"50%","3/4":"75%","1/5":"20%","2/5":"40%","3/5":"60%","4/5":"80%","1/6":"16.666667%","2/6":"33.333333%","3/6":"50%","4/6":"66.666667%","5/6":"83.333333%","1/12":"8.333333%","2/12":"16.666667%","3/12":"25%","4/12":"33.333333%","5/12":"41.666667%","6/12":"50%","7/12":"58.333333%","8/12":"66.666667%","9/12":"75%","10/12":"83.333333%","11/12":"91.666667%",full:"100%",screen:"100vw",min:"min-content",max:"max-content",fit:"fit-content"}),willChange:{auto:"auto",scroll:"scroll-position",contents:"contents",transform:"transform"},zIndex:{auto:"auto",0:"0",10:"10",20:"20",30:"30",40:"40",50:"50"}},plugins:[]};(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t}});const o=S,n=s(B);function s(i){return i&&i.__esModule?i:{default:i}}const t=(0,o.cloneDeep)(n.default.theme)})(k);let g=k;var M=(g.__esModule?g:{default:g}).default;const u=D.getDefaultExportFromCjs(M);async function C(e,o,n=[],s="c-"){const t=r.get(e,"primaryColor","#000"),i=r.get(e,"secondaryColor","#ccc"),a=r.get(e,"headingFont","Inter"),x=r.get(e,"bodyFont","Inter"),m=r.get(e,"roundedCorners","0"),c=_.tailwindcssPaletteGenerator({colors:[t,i],names:["primary","secondary"]});return r.set(c,"primary.DEFAULT",t),r.set(c,"secondary.DEFAULT",i),`${await E.createTailwindcss({tailwindConfig:{prefix:s,darkMode:"class",safelist:n,theme:{fontFamily:{heading:[a,...u.fontFamily.sans],body:[x,...u.fontFamily.sans]},extend:{borderRadius:{global:`${m||"0"}px`},colors:c}},plugins:[O,v,A,L],corePlugins:{preflight:!1}}}).generateStylesFromContent(` @tailwind components;
2
+ @tailwind utilities;`,o)} .${s}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${a}",${u.fontFamily.sans.join(", ")};}`}const q=(e,o)=>e.map(n=>{const s={};return Object.keys(n).forEach(t=>{r.startsWith(n[t],U.STYLES_KEY)&&(s[t]=d.addPrefixToClasses(n[t],o))}),s}),f=(e,o,n="c-")=>{const s=d.getBrandingClasses(o,n);return C(o,[r.replace(JSON.stringify(q(e,n)),/#styles:/g,"")],s.split(" ").concat(`${n}inline-block`,`${n}w-full`,`${n}h-full`))},W=async(e,o="c-")=>{const n=e.page.blocks;return await f(n,e.project.brandingOptions,o)},j=async(e,o,n="c-")=>await f(e,o,n);exports.cn=w.cn;exports.generateUUID=T.generateUUID;exports.getBreakpointValue=T.getBreakpointValue;exports.getBlocksFromHTML=z.getBlocksFromHTML;exports.addPrefixToClasses=d.addPrefixToClasses;exports.getBrandingClasses=d.getBrandingClasses;exports.convertArbitraryToTailwindClass=$;exports.getBlocksTailwindCSS=f;exports.getStylesForBlocks=j;exports.getStylesForPageData=W;exports.getTailwindCSS=C;
package/dist/lib.d.ts CHANGED
@@ -11,10 +11,10 @@ declare type BrandingOptions = {
11
11
 
12
12
  declare type ChaiBlock = {
13
13
  _id: string;
14
+ _type: string;
14
15
  _name?: string;
15
16
  _parent?: string | null | undefined;
16
17
  _bindings?: Record<string, string>;
17
- readonly _type: string;
18
18
  } & Record<string, any>;
19
19
 
20
20
  export declare type ChaiPageData = {
package/dist/lib.js CHANGED
@@ -1,18 +1,21 @@
1
- import { c as F } from "./utils-XsPKXMVo.js";
2
- import { b as de, g as ge, a as ue } from "./utils-XsPKXMVo.js";
3
- import { g as be } from "./html-to-json-wmbV9eZP.js";
4
- import { h as _, c as m, k as d, d as y, p as E, g as c, s as w, e as O, r as v } from "./lodash-3gkdNK5u.js";
5
- import { a as A, g as D } from "./functions-86L6n983.js";
1
+ import { c as F } from "./utils-AvyFzbPC.js";
2
+ import { a as ue } from "./utils-AvyFzbPC.js";
3
+ import { g as be, a as he } from "./Functions-7jnEwJyw.js";
4
+ import { g as we } from "./html-to-json-xKBERAI1.js";
5
+ import { first as _, includes as m, keys as d, map as y, parseInt as E, get as c, set as w, startsWith as O, replace as v } from "lodash-es";
6
+ import { a as A, g as D } from "./functions-xIebp8Aw.js";
6
7
  import { tailwindcssPaletteGenerator as L } from "@bobthered/tailwindcss-palette-generator";
7
8
  import { createTailwindcss as U } from "@mhsdesign/jit-browser-tailwindcss";
8
- import { g as R, a as H } from "./MODIFIERS-MLfpKQY1.js";
9
- import $ from "@tailwindcss/forms";
10
- import I from "@tailwindcss/typography";
11
- import P from "@tailwindcss/aspect-ratio";
12
- import W from "@tailwindcss/line-clamp";
9
+ import { g as R } from "./_commonjsHelpers-UyOWmZb0.js";
10
+ import H from "@tailwindcss/forms";
11
+ import $ from "@tailwindcss/typography";
12
+ import I from "@tailwindcss/aspect-ratio";
13
+ import P from "@tailwindcss/line-clamp";
14
+ import { a as W } from "./MODIFIERS-RiXS5Mn1.js";
13
15
  import "clsx";
14
16
  import "tailwind-merge";
15
17
  import "himalaya";
18
+ import "lodash";
16
19
  const T = {
17
20
  25: "1/4",
18
21
  "33.33": "1/3",
@@ -71,7 +74,7 @@ const B = 16, V = 4;
71
74
  function j(e) {
72
75
  return e.indexOf("rem") !== -1 && (e = `${parseFloat(e.replace("rem", "")) * B}px`), e;
73
76
  }
74
- const pe = (e) => {
77
+ const me = (e) => {
75
78
  const n = e.match(/\[.*\]/);
76
79
  if (n === null)
77
80
  return e;
@@ -80,9 +83,9 @@ const pe = (e) => {
80
83
  return e;
81
84
  const { property: i } = r;
82
85
  let t = _(n).replace(/\]/i, "").replace(/\[/i, "");
83
- const o = e.replace(/\[.*\]/i, "");
86
+ const a = e.replace(/\[.*\]/i, "");
84
87
  t = j(t);
85
- let a = e;
88
+ let o = e;
86
89
  switch (i) {
87
90
  case "top":
88
91
  case "right":
@@ -119,23 +122,23 @@ const pe = (e) => {
119
122
  const p = y(d(M), (s) => `${s}px`);
120
123
  if (m(p, t)) {
121
124
  const s = E(t.replace("px", ""), 10);
122
- s === 1 ? a = `${o}px` : a = o + s / V;
125
+ s === 1 ? o = `${a}px` : o = a + s / V;
123
126
  }
124
127
  }
125
128
  if (t.indexOf("%") !== -1) {
126
129
  const p = y(d(T), (s) => `${s}%`);
127
130
  if (m(p, t)) {
128
131
  const s = parseFloat(t.replace("%", ""));
129
- a = o + c(T, s);
132
+ o = a + c(T, s);
130
133
  }
131
134
  }
132
- t.indexOf("vw") !== -1 && parseFloat(t.replace("vw", "")) === 100 && (a = `${o}screen`), t.indexOf("vh") !== -1 && parseFloat(t.replace("vh", "")) === 100 && (a = `${o}screen`);
135
+ t.indexOf("vw") !== -1 && parseFloat(t.replace("vw", "")) === 100 && (o = `${a}screen`), t.indexOf("vh") !== -1 && parseFloat(t.replace("vh", "")) === 100 && (o = `${a}screen`);
133
136
  break;
134
137
  case "minWidth":
135
- t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (a = `${o}full`), t === "0px" && (a = "min-w-0");
138
+ t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (o = `${a}full`), t === "0px" && (o = "min-w-0");
136
139
  break;
137
140
  case "maxWidth":
138
- t === "0px" && (a = "max-w-0");
141
+ t === "0px" && (o = "max-w-0");
139
142
  const g = {
140
143
  "320px": "xs",
141
144
  "384px": "sm",
@@ -153,10 +156,10 @@ const pe = (e) => {
153
156
  "640px": "screen-sm",
154
157
  "1536px": "screen-2xl"
155
158
  };
156
- m(d(g), t) && (a = `max-w-${g[t]}`);
159
+ m(d(g), t) && (o = `max-w-${g[t]}`);
157
160
  break;
158
161
  case "minHeight":
159
- t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (a = `${o}full`), t === "0px" && (a = "min-h-0"), t === "100vh" && (a = "min-h-screen");
162
+ t.indexOf("%") !== -1 && parseFloat(t.replace("%", "")) === 100 && (o = `${a}full`), t === "0px" && (o = "min-h-0"), t === "100vh" && (o = "min-h-screen");
160
163
  break;
161
164
  case "fontSize":
162
165
  const x = {
@@ -174,7 +177,7 @@ const pe = (e) => {
174
177
  "96px": "8xl",
175
178
  "128px": "9xl"
176
179
  };
177
- m(d(x), t) && (a = o + x[t]);
180
+ m(d(x), t) && (o = a + x[t]);
178
181
  break;
179
182
  case "lineHeight":
180
183
  const l = {
@@ -193,10 +196,10 @@ const pe = (e) => {
193
196
  "1.625": "relaxed",
194
197
  2: "loose"
195
198
  };
196
- m(d(l), t) && (a = o + l[t]);
199
+ m(d(l), t) && (o = a + l[t]);
197
200
  break;
198
201
  case "zIndex":
199
- a = ["0", "10", "20", "30", "40", "50"].indexOf(t) !== -1 ? `${o}${t}` : e;
202
+ o = ["0", "10", "20", "30", "40", "50"].indexOf(t) !== -1 ? `${a}${t}` : e;
200
203
  break;
201
204
  case "opacity":
202
205
  const b = [
@@ -216,12 +219,12 @@ const pe = (e) => {
216
219
  "95",
217
220
  "100"
218
221
  ], h = parseFloat(t) * 100;
219
- m(b, h.toString()) && (a = `opacity-${h}`);
222
+ m(b, h.toString()) && (o = `opacity-${h}`);
220
223
  break;
221
224
  default:
222
225
  break;
223
226
  }
224
- return a;
227
+ return o;
225
228
  };
226
229
  var k = {}, S = {};
227
230
  (function(e) {
@@ -1243,9 +1246,9 @@ var X = {
1243
1246
  }
1244
1247
  });
1245
1248
  const n = S, r = /* @__PURE__ */ i(X);
1246
- function i(o) {
1247
- return o && o.__esModule ? o : {
1248
- default: o
1249
+ function i(a) {
1250
+ return a && a.__esModule ? a : {
1251
+ default: a
1249
1252
  };
1250
1253
  }
1251
1254
  const t = (0, n.cloneDeep)(r.default.theme);
@@ -1254,18 +1257,18 @@ let u = k;
1254
1257
  var Y = (u.__esModule ? u : { default: u }).default;
1255
1258
  const f = /* @__PURE__ */ R(Y);
1256
1259
  async function q(e, n, r = [], i = "c-") {
1257
- const t = c(e, "primaryColor", "#000"), o = c(e, "secondaryColor", "#ccc"), a = c(e, "headingFont", "Inter"), g = c(e, "bodyFont", "Inter"), x = c(e, "roundedCorners", "0"), l = L({
1258
- colors: [t, o],
1260
+ const t = c(e, "primaryColor", "#000"), a = c(e, "secondaryColor", "#ccc"), o = c(e, "headingFont", "Inter"), g = c(e, "bodyFont", "Inter"), x = c(e, "roundedCorners", "0"), l = L({
1261
+ colors: [t, a],
1259
1262
  names: ["primary", "secondary"]
1260
1263
  });
1261
- return w(l, "primary.DEFAULT", t), w(l, "secondary.DEFAULT", o), `${await U({
1264
+ return w(l, "primary.DEFAULT", t), w(l, "secondary.DEFAULT", a), `${await U({
1262
1265
  tailwindConfig: {
1263
1266
  prefix: i,
1264
1267
  darkMode: "class",
1265
1268
  safelist: r,
1266
1269
  theme: {
1267
1270
  fontFamily: {
1268
- heading: [a, ...f.fontFamily.sans],
1271
+ heading: [o, ...f.fontFamily.sans],
1269
1272
  body: [g, ...f.fontFamily.sans]
1270
1273
  },
1271
1274
  extend: {
@@ -1275,21 +1278,21 @@ async function q(e, n, r = [], i = "c-") {
1275
1278
  colors: l
1276
1279
  }
1277
1280
  },
1278
- plugins: [$, I, P, W],
1281
+ plugins: [H, $, I, P],
1279
1282
  corePlugins: { preflight: !1 }
1280
1283
  }
1281
1284
  }).generateStylesFromContent(
1282
1285
  ` @tailwind components;
1283
1286
  @tailwind utilities;`,
1284
1287
  n
1285
- )} .${i}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${a}",${f.fontFamily.sans.join(
1288
+ )} .${i}bg-clip-text{background-clip: text;-webkit-background-clip: text;} h1,h2,h3,h4,h5,h6{font-family: "${o}",${f.fontFamily.sans.join(
1286
1289
  ", "
1287
1290
  )};}`;
1288
1291
  }
1289
1292
  const G = (e, n) => e.map((r) => {
1290
1293
  const i = {};
1291
1294
  return Object.keys(r).forEach((t) => {
1292
- O(r[t], H) && (i[t] = A(r[t], n));
1295
+ O(r[t], W) && (i[t] = A(r[t], n));
1293
1296
  }), i;
1294
1297
  }), z = (e, n, r = "c-") => {
1295
1298
  const i = D(n, r);
@@ -1298,20 +1301,20 @@ const G = (e, n) => e.map((r) => {
1298
1301
  [v(JSON.stringify(G(e, r)), /#styles:/g, "")],
1299
1302
  i.split(" ").concat(`${r}inline-block`, `${r}w-full`, `${r}h-full`)
1300
1303
  );
1301
- }, le = async (e, n = "c-") => {
1304
+ }, ce = async (e, n = "c-") => {
1302
1305
  const r = e.page.blocks;
1303
1306
  return await z(r, e.project.brandingOptions, n);
1304
- }, me = async (e, n, r = "c-") => await z(e, n, r);
1307
+ }, xe = async (e, n, r = "c-") => await z(e, n, r);
1305
1308
  export {
1306
1309
  A as addPrefixToClasses,
1307
- de as cn,
1308
- pe as convertArbitraryToTailwindClass,
1309
- ge as generateUUID,
1310
- be as getBlocksFromHTML,
1310
+ ue as cn,
1311
+ me as convertArbitraryToTailwindClass,
1312
+ be as generateUUID,
1313
+ we as getBlocksFromHTML,
1311
1314
  z as getBlocksTailwindCSS,
1312
1315
  D as getBrandingClasses,
1313
- ue as getBreakpointValue,
1314
- me as getStylesForBlocks,
1315
- le as getStylesForPageData,
1316
+ he as getBreakpointValue,
1317
+ xe as getStylesForBlocks,
1318
+ ce as getStylesForPageData,
1316
1319
  q as getTailwindCSS
1317
1320
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-Z_BpKhVy.cjs"),u=require("react"),n=require("@radix-ui/react-icons"),o=require("./index-IIJ_o44s.cjs"),x=require("./index-hMoPNZVn.cjs");require("./_commonjsHelpers-wDK0ZLPo.cjs");require("@radix-ui/react-toggle");require("class-variance-authority");require("./utils-PTxFk6qT.cjs");require("lodash-es");require("./MODIFIERS-2FeVfZQ9.cjs");require("clsx");require("tailwind-merge");require("@radix-ui/react-switch");require("@radix-ui/react-slot");require("@radix-ui/react-accordion");require("@radix-ui/react-alert-dialog");require("@radix-ui/react-dialog");require("@radix-ui/react-label");require("@radix-ui/react-scroll-area");require("@radix-ui/react-tabs");require("@radix-ui/react-tooltip");require("@radix-ui/react-popover");require("@radix-ui/react-menubar");require("@radix-ui/react-hover-card");require("@radix-ui/react-select");require("@radix-ui/react-dropdown-menu");require("@radix-ui/react-separator");require("@radix-ui/react-toast");require("cmdk");require("@radix-ui/react-context-menu");require("react-icons-picker");require("react-dom");require("react-quill");require("jotai");require("flat-to-nested");require("./Functions-N3yhPYKY.cjs");require("redux-undo");require("@chaibuilder/runtime");require("@react-hookz/web");require("react-i18next");require("i18next");require("@floating-ui/react-dom");require("react-textarea-autosize");require("flagged");require("react-dnd");require("@minoru/react-dnd-treeview");require("react-hotkeys-hook");require("sonner");require("./html-to-json-dfALTAdG.cjs");require("himalaya");require("lodash");require("lucide-react");const m=u.lazy(()=>Promise.resolve().then(()=>require("./single-page-detail--xPv74bX.cjs"))),j=({pageData:s})=>{const[r,i]=u.useState("CLOSE");return e.jsxRuntimeExports.jsxs(o.Popover,{open:r==="OPEN"||r==="ALERT"||r==="PENDING",onOpenChange:t=>{i(r==="PENDING"?"ALERT":t?"OPEN":"CLOSE")},children:[e.jsxRuntimeExports.jsx(o.PopoverTrigger,{asChild:!0,onClick:t=>{t.stopPropagation(),i("OPEN")},children:e.jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between",children:r==="OPEN"||r==="ALERT"||r==="PENDING"?e.jsxRuntimeExports.jsx(n.ChevronRightIcon,{}):e.jsxRuntimeExports.jsx("div",{className:"hidden hover:text-blue-600 group-hover:flex",children:e.jsxRuntimeExports.jsx(n.GearIcon,{})})})}),e.jsxRuntimeExports.jsx(o.PopoverContent,{side:"right",align:"start",alignOffset:-35,className:"h-screen w-96",children:e.jsxRuntimeExports.jsx(u.Suspense,{fallback:e.jsxRuntimeExports.jsxs("div",{className:"flex w-full animate-pulse flex-col gap-y-3",children:[e.jsxRuntimeExports.jsx("div",{className:"bg-background-300 h-6 w-1/2"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-300 h-20 w-full"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-300 h-20 w-full"})]}),children:e.jsxRuntimeExports.jsx(m,{pageData:s,open:r,setOpen:i})})})]})},q=s=>{const[r]=x.useCurrentPage(),{data:i}=x.useProject(),t=x.useChangePage(),l=(i==null?void 0:i.homepage)===s.uuid,a=r===s.uuid,c=()=>t(s);return i?e.jsxRuntimeExports.jsxs("button",{className:`group relative flex w-full cursor-pointer items-center justify-between px-2.5 py-2 ${a?"bg-blue-200 ":""}`,onClick:c,type:"button",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex text-sm items-center gap-x-1.5",children:[l?e.jsxRuntimeExports.jsx(n.HomeIcon,{}):e.jsxRuntimeExports.jsx(n.FileTextIcon,{})," ",s.name]}),e.jsxRuntimeExports.jsx(j,{pageData:s})]}):null},p=({pages:s,isLoading:r})=>r?e.jsxRuntimeExports.jsxs("div",{className:"flex animate-pulse flex-col gap-y-1 px-2.5 pt-2",children:[e.jsxRuntimeExports.jsx("div",{className:"bg-background-200 h-7 w-full"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-200 h-7 w-full"}),e.jsxRuntimeExports.jsx("div",{className:"bg-background-200 h-7 w-full"})]}):s.length===0?e.jsxRuntimeExports.jsx("div",{className:"px-2.5 pb-2 pt-4",children:"No pages"}):e.jsxRuntimeExports.jsx("div",{className:"-mb-2",children:u.Children.toArray(s.map(i=>e.jsxRuntimeExports.jsx(q,{...i})))});exports.default=p;
@@ -1,13 +1,14 @@
1
- import { j as e } from "./jsx-runtime-NV737rRe.js";
2
- import s, { useState as p, Suspense as l } from "react";
1
+ import { j as e } from "./jsx-runtime-WbnYoNE9.js";
2
+ import s, { useState as n, Suspense as l } from "react";
3
3
  import { ChevronRightIcon as c, GearIcon as u, HomeIcon as d, FileTextIcon as x } from "@radix-ui/react-icons";
4
- import { b0 as g, b1 as h, b2 as f } from "./index-0OqmBgqo.js";
5
- import { e as j, b, d as N } from "./index-qEix1meh.js";
6
- import "./MODIFIERS-MLfpKQY1.js";
4
+ import { a$ as g, b0 as h, b1 as f } from "./index-_OgCuSUz.js";
5
+ import { e as j, b as N, d as b } from "./index-QEchoZ98.js";
6
+ import "./_commonjsHelpers-UyOWmZb0.js";
7
7
  import "@radix-ui/react-toggle";
8
8
  import "class-variance-authority";
9
- import "./utils-XsPKXMVo.js";
10
- import "./lodash-3gkdNK5u.js";
9
+ import "./utils-AvyFzbPC.js";
10
+ import "lodash-es";
11
+ import "./MODIFIERS-RiXS5Mn1.js";
11
12
  import "clsx";
12
13
  import "tailwind-merge";
13
14
  import "@radix-ui/react-switch";
@@ -33,6 +34,7 @@ import "react-dom";
33
34
  import "react-quill";
34
35
  import "jotai";
35
36
  import "flat-to-nested";
37
+ import "./Functions-7jnEwJyw.js";
36
38
  import "redux-undo";
37
39
  import "@chaibuilder/runtime";
38
40
  import "@react-hookz/web";
@@ -45,11 +47,12 @@ import "react-dnd";
45
47
  import "@minoru/react-dnd-treeview";
46
48
  import "react-hotkeys-hook";
47
49
  import "sonner";
48
- import "./html-to-json-wmbV9eZP.js";
50
+ import "./html-to-json-xKBERAI1.js";
49
51
  import "himalaya";
52
+ import "lodash";
50
53
  import "lucide-react";
51
- const v = s.lazy(() => import("./single-page-detail-61UDUgWG.js")), P = ({ pageData: r }) => {
52
- const [t, i] = p("CLOSE");
54
+ const v = s.lazy(() => import("./single-page-detail-C48IPzbd.js")), P = ({ pageData: r }) => {
55
+ const [t, i] = n("CLOSE");
53
56
  return /* @__PURE__ */ e.jsxs(
54
57
  g,
55
58
  {
@@ -83,12 +86,12 @@ const v = s.lazy(() => import("./single-page-detail-61UDUgWG.js")), P = ({ pageD
83
86
  }
84
87
  );
85
88
  }, E = (r) => {
86
- const [t] = j(), { data: i } = b(), o = N(), m = (i == null ? void 0 : i.homepage) === r.uuid, a = t === r.uuid, n = () => o(r);
89
+ const [t] = j(), { data: i } = N(), o = b(), m = (i == null ? void 0 : i.homepage) === r.uuid, a = t === r.uuid, p = () => o(r);
87
90
  return i ? /* @__PURE__ */ e.jsxs(
88
91
  "button",
89
92
  {
90
93
  className: `group relative flex w-full cursor-pointer items-center justify-between px-2.5 py-2 ${a ? "bg-blue-200 " : ""}`,
91
- onClick: n,
94
+ onClick: p,
92
95
  type: "button",
93
96
  children: [
94
97
  /* @__PURE__ */ e.jsxs("div", { className: "flex text-sm items-center gap-x-1.5", children: [
@@ -100,11 +103,11 @@ const v = s.lazy(() => import("./single-page-detail-61UDUgWG.js")), P = ({ pageD
100
103
  ]
101
104
  }
102
105
  ) : null;
103
- }, Ne = ({ pages: r, isLoading: t }) => t ? /* @__PURE__ */ e.jsxs("div", { className: "flex animate-pulse flex-col gap-y-1 px-2.5 pt-2", children: [
106
+ }, Ee = ({ pages: r, isLoading: t }) => t ? /* @__PURE__ */ e.jsxs("div", { className: "flex animate-pulse flex-col gap-y-1 px-2.5 pt-2", children: [
104
107
  /* @__PURE__ */ e.jsx("div", { className: "bg-background-200 h-7 w-full" }),
105
108
  /* @__PURE__ */ e.jsx("div", { className: "bg-background-200 h-7 w-full" }),
106
109
  /* @__PURE__ */ e.jsx("div", { className: "bg-background-200 h-7 w-full" })
107
110
  ] }) : r.length === 0 ? /* @__PURE__ */ e.jsx("div", { className: "px-2.5 pb-2 pt-4", children: "No pages" }) : /* @__PURE__ */ e.jsx("div", { className: "-mb-2", children: s.Children.toArray(r.map((i) => /* @__PURE__ */ e.jsx(E, { ...i }))) });
108
111
  export {
109
- Ne as default
112
+ Ee as default
110
113
  };