@tech_carthagos/page-builder 1.0.6 → 1.0.7

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.
@@ -1,4 +1,4 @@
1
- "use strict";const h=require("react/jsx-runtime"),j=require("react"),Gs=require("react-dom"),u0=require("@tanstack/react-query");function Xs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const x=Xs(j),Ys=Xs(Gs);function Js(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Js(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Fn(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Js(t))&&(n&&(n+=" "),n+=e);return n}const Ru="-",o0=t=>{const e=s0(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split(Ru);return a[0]===""&&a.length!==1&&a.shift(),Ks(a,e)||a0(o)},getConflictingClassGroupIds:(o,a)=>{const s=r[o]||[];return a&&n[o]?[...s,...n[o]]:s}}},Ks=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?Ks(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const u=t.join(Ru);return(o=e.validators.find(({validator:a})=>a(u)))==null?void 0:o.classGroupId},na=/^\[(.+)\]$/,a0=t=>{if(na.test(t)){const e=na.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},s0=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return c0(Object.entries(t.classGroups),r).forEach(([u,o])=>{Fi(o,n,u,e)}),n},Fi=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const u=i===""?e:ia(e,i);u.classGroupId=r;return}if(typeof i=="function"){if(l0(i)){Fi(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,o])=>{Fi(o,ia(e,u),r,n)})})},ia=(t,e)=>{let r=t;return e.split(Ru).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},l0=t=>t.isThemeGetter,c0=(t,e)=>e?t.map(([r,n])=>{const i=n.map(u=>typeof u=="string"?e+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([o,a])=>[e+o,a])):u);return[r,i]}):t,d0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(u,o)=>{r.set(u,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(u){let o=r.get(u);if(o!==void 0)return o;if((o=n.get(u))!==void 0)return i(u,o),o},set(u,o){r.has(u)?r.set(u,o):i(u,o)}}},Zs="!",f0=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],u=e.length,o=a=>{const s=[];let l=0,c=0,p;for(let b=0;b<a.length;b++){let y=a[b];if(l===0){if(y===i&&(n||a.slice(b,b+u)===e)){s.push(a.slice(c,b)),c=b+u;continue}if(y==="/"){p=b;continue}}y==="["?l++:y==="]"&&l--}const d=s.length===0?a:a.substring(c),f=d.startsWith(Zs),g=f?d.substring(1):d,m=p&&p>c?p-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:o}):o},p0=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},h0=t=>({cache:d0(t.cacheSize),parseClassName:f0(t),...o0(t)}),b0=/\s+/,g0=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,u=[],o=t.trim().split(b0);let a="";for(let s=o.length-1;s>=0;s-=1){const l=o[s],{modifiers:c,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:f}=r(l);let g=!!f,m=n(g?d.substring(0,f):d);if(!m){if(!g){a=l+(a.length>0?" "+a:a);continue}if(m=n(d),!m){a=l+(a.length>0?" "+a:a);continue}g=!1}const b=p0(c).join(":"),y=p?b+Zs:b,v=y+m;if(u.includes(v))continue;u.push(v);const C=i(m,g);for(let S=0;S<C.length;++S){const O=C[S];u.push(y+O)}a=l+(a.length>0?" "+a:a)}return a};function m0(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Qs(e))&&(n&&(n+=" "),n+=r);return n}const Qs=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Qs(t[n]))&&(r&&(r+=" "),r+=e);return r};function y0(t,...e){let r,n,i,u=o;function o(s){const l=e.reduce((c,p)=>p(c),t());return r=h0(l),n=r.cache.get,i=r.cache.set,u=a,a(s)}function a(s){const l=n(s);if(l)return l;const c=g0(s,r);return i(s,c),c}return function(){return u(m0.apply(null,arguments))}}const Q=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},el=/^\[(?:([a-z-]+):)?(.+)\]$/i,v0=/^\d+\/\d+$/,x0=new Set(["px","full","screen"]),w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=t=>It(t)||x0.has(t)||v0.test(t),it=t=>Jt(t,"length",R0),It=t=>!!t&&!Number.isNaN(Number(t)),Si=t=>Jt(t,"number",It),lr=t=>!!t&&Number.isInteger(Number(t)),A0=t=>t.endsWith("%")&&It(t.slice(0,-1)),q=t=>el.test(t),ut=t=>w0.test(t),O0=new Set(["length","size","percentage"]),N0=t=>Jt(t,O0,tl),j0=t=>Jt(t,"position",tl),_0=new Set(["image","url"]),P0=t=>Jt(t,_0,D0),k0=t=>Jt(t,"",I0),cr=()=>!0,Jt=(t,e,r)=>{const n=el.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},R0=t=>E0.test(t)&&!S0.test(t),tl=()=>!1,I0=t=>C0.test(t),D0=t=>T0.test(t),L0=()=>{const t=Q("colors"),e=Q("spacing"),r=Q("blur"),n=Q("brightness"),i=Q("borderColor"),u=Q("borderRadius"),o=Q("borderSpacing"),a=Q("borderWidth"),s=Q("contrast"),l=Q("grayscale"),c=Q("hueRotate"),p=Q("invert"),d=Q("gap"),f=Q("gradientColorStops"),g=Q("gradientColorStopPositions"),m=Q("inset"),b=Q("margin"),y=Q("opacity"),v=Q("padding"),C=Q("saturate"),S=Q("scale"),O=Q("sepia"),k=Q("skew"),R=Q("space"),D=Q("translate"),$=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",q,e],T=()=>[q,e],_=()=>["",ze,it],I=()=>["auto",It,q],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",q],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[It,q];return{cacheSize:500,separator:":",theme:{colors:[cr],spacing:[ze,it],blur:["none","",ut,q],brightness:le(),borderColor:[t],borderRadius:["none","","full",ut,q],borderSpacing:T(),borderWidth:_(),contrast:le(),grayscale:B(),hueRotate:le(),invert:B(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[A0,it],inset:E(),margin:E(),opacity:le(),padding:T(),saturate:le(),scale:le(),sepia:B(),skew:le(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[ut]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...w(),q]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",lr,q]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",lr,q]}],"grid-cols":[{"grid-cols":[cr]}],"col-start-end":[{col:["auto",{span:["full",lr,q]},q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[cr]}],"row-start-end":[{row:["auto",{span:[lr,q]},q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,e]}],"min-w":[{"min-w":[q,e,"min","max","fit"]}],"max-w":[{"max-w":[q,e,"none","full","min","max","fit","prose",{screen:[ut]},ut]}],h:[{h:[q,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ut,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Si]}],"font-family":[{font:[cr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",It,Si]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ze,it]}],"underline-offset":[{"underline-offset":["auto",ze,q]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),j0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",N0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P0]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:N()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[ze,q]}],"outline-w":[{outline:[ze,it]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ze,it]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ut,k0]}],"shadow-color":[{shadow:[cr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",ut,q]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[C]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[lr,q]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ze,it,Si]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},rl=y0(L0);function ge(...t){return rl(Fn(t))}const Iu=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));Iu.displayName="Card";const M0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex flex-col space-y-1.5 p-6",t),...e}));M0.displayName="CardHeader";const $0=x.forwardRef(({className:t,...e},r)=>h.jsx("h3",{ref:r,className:ge("text-2xl font-semibold leading-none tracking-tight",t),...e}));$0.displayName="CardTitle";const B0=x.forwardRef(({className:t,...e},r)=>h.jsx("p",{ref:r,className:ge("text-sm text-muted-foreground",t),...e}));B0.displayName="CardDescription";const Du=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("p-6 pt-0",t),...e}));Du.displayName="CardContent";const q0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex items-center p-6 pt-0",t),...e}));q0.displayName="CardFooter";function Gr({className:t,...e}){return h.jsx("div",{className:ge("animate-pulse rounded-md bg-muted",t),...e})}const nl=j.createContext(null),Lu=({children:t,value:e})=>h.jsx(nl.Provider,{value:e,children:t}),zn=()=>j.useContext(nl),H0=j.lazy(()=>Promise.resolve().then(()=>require("./CraftEditor-D9INxCkv.cjs"))),F0=({initialData:t,onSave:e,onStateChange:r,eventData:n})=>h.jsx(Lu,{value:n,children:h.jsx(j.Suspense,{fallback:h.jsx(Iu,{children:h.jsx(Du,{className:"p-4",children:h.jsxs("div",{className:"space-y-4",children:[h.jsx(Gr,{className:"h-8 w-48"}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx(Gr,{className:"h-[500px] w-48"}),h.jsx(Gr,{className:"h-[500px] flex-1"}),h.jsx(Gr,{className:"h-[500px] w-64"})]})]})})}),children:h.jsx(H0,{initialData:t,onSave:e,onStateChange:r})})});/**
1
+ "use strict";const h=require("react/jsx-runtime"),j=require("react"),Gs=require("react-dom"),u0=require("@tanstack/react-query");function Xs(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const x=Xs(j),Ys=Xs(Gs);function Js(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Js(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Fn(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Js(t))&&(n&&(n+=" "),n+=e);return n}const Ru="-",o0=t=>{const e=s0(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:o=>{const a=o.split(Ru);return a[0]===""&&a.length!==1&&a.shift(),Ks(a,e)||a0(o)},getConflictingClassGroupIds:(o,a)=>{const s=r[o]||[];return a&&n[o]?[...s,...n[o]]:s}}},Ks=(t,e)=>{var o;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?Ks(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const u=t.join(Ru);return(o=e.validators.find(({validator:a})=>a(u)))==null?void 0:o.classGroupId},na=/^\[(.+)\]$/,a0=t=>{if(na.test(t)){const e=na.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},s0=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return c0(Object.entries(t.classGroups),r).forEach(([u,o])=>{Fi(o,n,u,e)}),n},Fi=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const u=i===""?e:ia(e,i);u.classGroupId=r;return}if(typeof i=="function"){if(l0(i)){Fi(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([u,o])=>{Fi(o,ia(e,u),r,n)})})},ia=(t,e)=>{let r=t;return e.split(Ru).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},l0=t=>t.isThemeGetter,c0=(t,e)=>e?t.map(([r,n])=>{const i=n.map(u=>typeof u=="string"?e+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(([o,a])=>[e+o,a])):u);return[r,i]}):t,d0=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(u,o)=>{r.set(u,o),e++,e>t&&(e=0,n=r,r=new Map)};return{get(u){let o=r.get(u);if(o!==void 0)return o;if((o=n.get(u))!==void 0)return i(u,o),o},set(u,o){r.has(u)?r.set(u,o):i(u,o)}}},Zs="!",f0=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],u=e.length,o=a=>{const s=[];let l=0,c=0,p;for(let b=0;b<a.length;b++){let y=a[b];if(l===0){if(y===i&&(n||a.slice(b,b+u)===e)){s.push(a.slice(c,b)),c=b+u;continue}if(y==="/"){p=b;continue}}y==="["?l++:y==="]"&&l--}const d=s.length===0?a:a.substring(c),f=d.startsWith(Zs),g=f?d.substring(1):d,m=p&&p>c?p-c:void 0;return{modifiers:s,hasImportantModifier:f,baseClassName:g,maybePostfixModifierPosition:m}};return r?a=>r({className:a,parseClassName:o}):o},p0=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},h0=t=>({cache:d0(t.cacheSize),parseClassName:f0(t),...o0(t)}),b0=/\s+/,g0=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,u=[],o=t.trim().split(b0);let a="";for(let s=o.length-1;s>=0;s-=1){const l=o[s],{modifiers:c,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:f}=r(l);let g=!!f,m=n(g?d.substring(0,f):d);if(!m){if(!g){a=l+(a.length>0?" "+a:a);continue}if(m=n(d),!m){a=l+(a.length>0?" "+a:a);continue}g=!1}const b=p0(c).join(":"),y=p?b+Zs:b,v=y+m;if(u.includes(v))continue;u.push(v);const C=i(m,g);for(let S=0;S<C.length;++S){const O=C[S];u.push(y+O)}a=l+(a.length>0?" "+a:a)}return a};function m0(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Qs(e))&&(n&&(n+=" "),n+=r);return n}const Qs=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Qs(t[n]))&&(r&&(r+=" "),r+=e);return r};function y0(t,...e){let r,n,i,u=o;function o(s){const l=e.reduce((c,p)=>p(c),t());return r=h0(l),n=r.cache.get,i=r.cache.set,u=a,a(s)}function a(s){const l=n(s);if(l)return l;const c=g0(s,r);return i(s,c),c}return function(){return u(m0.apply(null,arguments))}}const Q=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},el=/^\[(?:([a-z-]+):)?(.+)\]$/i,v0=/^\d+\/\d+$/,x0=new Set(["px","full","screen"]),w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=t=>It(t)||x0.has(t)||v0.test(t),it=t=>Jt(t,"length",R0),It=t=>!!t&&!Number.isNaN(Number(t)),Si=t=>Jt(t,"number",It),lr=t=>!!t&&Number.isInteger(Number(t)),A0=t=>t.endsWith("%")&&It(t.slice(0,-1)),q=t=>el.test(t),ut=t=>w0.test(t),O0=new Set(["length","size","percentage"]),N0=t=>Jt(t,O0,tl),j0=t=>Jt(t,"position",tl),_0=new Set(["image","url"]),P0=t=>Jt(t,_0,D0),k0=t=>Jt(t,"",I0),cr=()=>!0,Jt=(t,e,r)=>{const n=el.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},R0=t=>E0.test(t)&&!S0.test(t),tl=()=>!1,I0=t=>C0.test(t),D0=t=>T0.test(t),L0=()=>{const t=Q("colors"),e=Q("spacing"),r=Q("blur"),n=Q("brightness"),i=Q("borderColor"),u=Q("borderRadius"),o=Q("borderSpacing"),a=Q("borderWidth"),s=Q("contrast"),l=Q("grayscale"),c=Q("hueRotate"),p=Q("invert"),d=Q("gap"),f=Q("gradientColorStops"),g=Q("gradientColorStopPositions"),m=Q("inset"),b=Q("margin"),y=Q("opacity"),v=Q("padding"),C=Q("saturate"),S=Q("scale"),O=Q("sepia"),k=Q("skew"),R=Q("space"),D=Q("translate"),$=()=>["auto","contain","none"],L=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto",q,e],T=()=>[q,e],_=()=>["",ze,it],I=()=>["auto",It,q],w=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],N=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],P=()=>["start","end","center","between","around","evenly","stretch"],B=()=>["","0",q],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[It,q];return{cacheSize:500,separator:":",theme:{colors:[cr],spacing:[ze,it],blur:["none","",ut,q],brightness:le(),borderColor:[t],borderRadius:["none","","full",ut,q],borderSpacing:T(),borderWidth:_(),contrast:le(),grayscale:B(),hueRotate:le(),invert:B(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[A0,it],inset:E(),margin:E(),opacity:le(),padding:T(),saturate:le(),scale:le(),sepia:B(),skew:le(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",q]}],container:["container"],columns:[{columns:[ut]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...w(),q]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",lr,q]}],basis:[{basis:E()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",q]}],grow:[{grow:B()}],shrink:[{shrink:B()}],order:[{order:["first","last","none",lr,q]}],"grid-cols":[{"grid-cols":[cr]}],"col-start-end":[{col:["auto",{span:["full",lr,q]},q]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[cr]}],"row-start-end":[{row:["auto",{span:[lr,q]},q]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",q]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",q]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...P()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...P(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...P(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[R]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[R]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",q,e]}],"min-w":[{"min-w":[q,e,"min","max","fit"]}],"max-w":[{"max-w":[q,e,"none","full","min","max","fit","prose",{screen:[ut]},ut]}],h:[{h:[q,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[q,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[q,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ut,it]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Si]}],"font-family":[{font:[cr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",q]}],"line-clamp":[{"line-clamp":["none",It,Si]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ze,q]}],"list-image":[{"list-image":["none",q]}],"list-style-type":[{list:["none","disc","decimal",q]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ze,it]}],"underline-offset":[{"underline-offset":["auto",ze,q]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...w(),j0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",N0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},P0]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[u]}],"rounded-s":[{"rounded-s":[u]}],"rounded-e":[{"rounded-e":[u]}],"rounded-t":[{"rounded-t":[u]}],"rounded-r":[{"rounded-r":[u]}],"rounded-b":[{"rounded-b":[u]}],"rounded-l":[{"rounded-l":[u]}],"rounded-ss":[{"rounded-ss":[u]}],"rounded-se":[{"rounded-se":[u]}],"rounded-ee":[{"rounded-ee":[u]}],"rounded-es":[{"rounded-es":[u]}],"rounded-tl":[{"rounded-tl":[u]}],"rounded-tr":[{"rounded-tr":[u]}],"rounded-br":[{"rounded-br":[u]}],"rounded-bl":[{"rounded-bl":[u]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...N(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:N()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...N()]}],"outline-offset":[{"outline-offset":[ze,q]}],"outline-w":[{outline:[ze,it]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ze,it]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ut,k0]}],"shadow-color":[{shadow:[cr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",ut,q]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[C]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[C]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",q]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",q]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",q]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[lr,q]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",q]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",q]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",q]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[ze,it,Si]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},rl=y0(L0);function ge(...t){return rl(Fn(t))}const Iu=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));Iu.displayName="Card";const M0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex flex-col space-y-1.5 p-6",t),...e}));M0.displayName="CardHeader";const $0=x.forwardRef(({className:t,...e},r)=>h.jsx("h3",{ref:r,className:ge("text-2xl font-semibold leading-none tracking-tight",t),...e}));$0.displayName="CardTitle";const B0=x.forwardRef(({className:t,...e},r)=>h.jsx("p",{ref:r,className:ge("text-sm text-muted-foreground",t),...e}));B0.displayName="CardDescription";const Du=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("p-6 pt-0",t),...e}));Du.displayName="CardContent";const q0=x.forwardRef(({className:t,...e},r)=>h.jsx("div",{ref:r,className:ge("flex items-center p-6 pt-0",t),...e}));q0.displayName="CardFooter";function Gr({className:t,...e}){return h.jsx("div",{className:ge("animate-pulse rounded-md bg-muted",t),...e})}const nl=j.createContext(null),Lu=({children:t,value:e})=>h.jsx(nl.Provider,{value:e,children:t}),zn=()=>j.useContext(nl),H0=j.lazy(()=>Promise.resolve().then(()=>require("./CraftEditor-hppH9kcS.cjs"))),F0=({initialData:t,onSave:e,onStateChange:r,eventData:n})=>h.jsx(Lu,{value:n,children:h.jsx(j.Suspense,{fallback:h.jsx(Iu,{children:h.jsx(Du,{className:"p-4",children:h.jsxs("div",{className:"space-y-4",children:[h.jsx(Gr,{className:"h-8 w-48"}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx(Gr,{className:"h-[500px] w-48"}),h.jsx(Gr,{className:"h-[500px] flex-1"}),h.jsx(Gr,{className:"h-[500px] w-64"})]})]})})}),children:h.jsx(H0,{initialData:t,onSave:e,onStateChange:r})})});/**
2
2
  * @license lucide-react v0.462.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -2303,7 +2303,7 @@ J0.displayName = "CardFooter";
2303
2303
  function Zr({ className: t, ...e }) {
2304
2304
  return /* @__PURE__ */ h("div", { className: we("animate-pulse rounded-md bg-muted", t), ...e });
2305
2305
  }
2306
- const Ws = Fr(null), Gs = ({ children: t, value: e }) => /* @__PURE__ */ h(Ws.Provider, { value: e, children: t }), Bu = () => _t(Ws), K0 = o0(() => import("./CraftEditor-nn0wpTTP.js")), q4 = ({ initialData: t, onSave: e, onStateChange: r, eventData: n }) => /* @__PURE__ */ h(Gs, { value: n, children: /* @__PURE__ */ h(
2306
+ const Ws = Fr(null), Gs = ({ children: t, value: e }) => /* @__PURE__ */ h(Ws.Provider, { value: e, children: t }), Bu = () => _t(Ws), K0 = o0(() => import("./CraftEditor-vG_I7nCr.js")), q4 = ({ initialData: t, onSave: e, onStateChange: r, eventData: n }) => /* @__PURE__ */ h(Gs, { value: n, children: /* @__PURE__ */ h(
2307
2307
  s0,
2308
2308
  {
2309
2309
  fallback: /* @__PURE__ */ h(Us, { children: /* @__PURE__ */ h(Vs, { className: "p-4", children: /* @__PURE__ */ P("div", { className: "space-y-4", children: [
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CfQHo2yN.cjs");exports.ApiConfigProvider=e.ApiConfigProvider;exports.DEVICE_ORDER=e.DEVICE_ORDER;exports.DeviceSizeProvider=e.DeviceSizeProvider;exports.EventDataProvider=e.EventDataProvider;exports.PageBuilder=e.PageBuilder;exports.PreviewModal=e.PreviewModal;exports.TEMPLATE_VARIABLES=e.TEMPLATE_VARIABLES;exports.getPlaceholderPaths=e.getPlaceholderPaths;exports.getResponsiveValue=e.getResponsiveValue;exports.hasTemplatePlaceholders=e.hasTemplatePlaceholders;exports.processTemplate=e.processTemplate;exports.useApiConfig=e.useApiConfig;exports.useDeviceSize=e.useDeviceSize;exports.useEventData=e.useEventData;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CW2-0DoB.cjs");exports.ApiConfigProvider=e.ApiConfigProvider;exports.DEVICE_ORDER=e.DEVICE_ORDER;exports.DeviceSizeProvider=e.DeviceSizeProvider;exports.EventDataProvider=e.EventDataProvider;exports.PageBuilder=e.PageBuilder;exports.PreviewModal=e.PreviewModal;exports.TEMPLATE_VARIABLES=e.TEMPLATE_VARIABLES;exports.getPlaceholderPaths=e.getPlaceholderPaths;exports.getResponsiveValue=e.getResponsiveValue;exports.hasTemplatePlaceholders=e.hasTemplatePlaceholders;exports.processTemplate=e.processTemplate;exports.useApiConfig=e.useApiConfig;exports.useDeviceSize=e.useDeviceSize;exports.useEventData=e.useEventData;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { X as s, $ as i, K as r, O as o, U as t, W as l, a3 as v, a2 as P, _ as E, a1 as d, a0 as p, Y as D, Z as c, G as g } from "./index-DgSXmqG8.js";
1
+ import { X as s, $ as i, K as r, O as o, U as t, W as l, a3 as v, a2 as P, _ as E, a1 as d, a0 as p, Y as D, Z as c, G as g } from "./index-jbzHXFSB.js";
2
2
  export {
3
3
  s as ApiConfigProvider,
4
4
  i as DEVICE_ORDER,
@@ -1 +1 @@
1
- {"version":3,"file":"CraftEditor.d.ts","sourceRoot":"","sources":["../src/CraftEditor.jsx"],"names":[],"mappings":";AAsBA;;;;4CAyFC"}
1
+ {"version":3,"file":"CraftEditor.d.ts","sourceRoot":"","sources":["../src/CraftEditor.jsx"],"names":[],"mappings":";AAuBA;;;;4CA0FC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tech_carthagos/page-builder",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",