@billgangcom/theme-lib 1.10.1 → 1.11.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.
- package/dist/builder.cjs.js +3 -3
- package/dist/builder.es.js +159 -159
- package/dist/{index-C8nZ3s7u.cjs → index-C4eTUjpB.cjs} +1 -1
- package/dist/{index-Ca7u1mPN.js → index-hz9iiZsE.js} +6 -6
- package/dist/shared/ui/Accordion/index.d.ts +7 -0
- package/dist/shared/ui/index.d.ts +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +439 -404
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ Check the top-level render call using <`+b+">.")}return P}}function Sr(c,P){{if(
|
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,ps,le,wo,le),yr[le+ps]=!0}}return c===t?xo(B):go(B),B}}function qo(c,P,b){return wr(c,P,b,!0)}function So(c,P,b){return wr(c,P,b,!1)}var bo=So,yo=qo;Ee.Fragment=t,Ee.jsx=bo,Ee.jsxs=yo}()),Ee}process.env.NODE_ENV==="production"?Os.exports=To():Os.exports=Do();var v=Os.exports;const Dr=s=>{let e;const r=new Set,t=(l,h)=>{const d=typeof l=="function"?l(e):l;if(!Object.is(d,e)){const q=e;e=h??(typeof d!="object"||d===null)?d:Object.assign({},e,d),r.forEach(x=>x(e,q))}},o=()=>e,a={setState:t,getState:o,getInitialState:()=>u,subscribe:l=>(r.add(l),()=>r.delete(l))},u=e=s(t,o,a);return a},Eo=s=>s?Dr(s):Dr,Oo=s=>s;function _o(s,e=Oo){const r=T.useSyncExternalStore(s.subscribe,()=>e(s.getState()),()=>e(s.getInitialState()));return T.useDebugValue(r),r}const Er=s=>{const e=Eo(s),r=t=>_o(e,t);return Object.assign(r,e),r},z=s=>s?Er(s):Er,Ro=z(s=>({blocks:{},setBlocks:e=>s(()=>({blocks:e})),activeBlock:null,setActiveBlock:e=>s(()=>({activeBlock:e})),sourceBlocks:{},setSourceBlocks:e=>s(()=>({sourceBlocks:e})),currentInstance:null,setCurrentInstance:e=>s(()=>({currentInstance:e}))})),ko=z(s=>({currentDevice:{icon:"Desktop",value:"desktop"},setCurrentDevice:e=>s(()=>({currentDevice:e}))}));z(s=>({pageData:null,setPageData:e=>s(()=>({pageData:e}))}));const it=[{icon:"TreeStructure",name:"Layers"},{icon:"Plus",name:"Add"},{icon:"Palette",name:"Theme"},{icon:"Gear",name:"Settings"}],Io=Array.from({length:122/2+1},(s,e)=>String(6+e*2)),Ao=["100","200","300","400","500","600","700","800","900"],No=["home","reviews","faqs","contact","product","ticket","login"],Lo={home:{path:"/",name:"home",icon:"HouseSimple",seo:{description:"",title:""},visibility:"public"},product:{path:"/product",name:"product",icon:"SquaresFour",seo:{description:"",title:""},visibility:"public"},faqs:{path:"/faqs",name:"faqs",icon:"SealQuestion",seo:{description:"",title:""},visibility:"public"},reviews:{path:"/reviews",name:"reviews",icon:"Star",seo:{description:"",title:""},visibility:"public"},contact:{path:"/contact",name:"contact",icon:"ChatCentered",seo:{description:"",title:""},visibility:"public"},ticket:{path:"/ticket",name:"ticket",icon:"Ticket",seo:{description:"",title:""},visibility:"public"},login:{path:"/login",name:"login",icon:"UserCircleGear",seo:{description:"",title:""},visibility:"public"}},Fo=z(s=>({activeBlock:it[0],setActiveBlock:e=>s(()=>({activeBlock:e}))}));function Bo(s,e){let r;try{r=s()}catch{return}return{getItem:o=>{var i;const n=u=>u===null?null:JSON.parse(u,void 0),a=(i=r.getItem(o))!=null?i:null;return a instanceof Promise?a.then(n):n(a)},setItem:(o,i)=>r.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>r.removeItem(o)}}const _s=s=>e=>{try{const r=s(e);return r instanceof Promise?r:{then(t){return _s(t)(r)},catch(t){return this}}}catch(r){return{then(t){return this},catch(t){return _s(t)(r)}}}},Mo=(s,e)=>(r,t,o)=>{let i={storage:Bo(()=>localStorage),partialize:f=>f,version:0,merge:(f,g)=>({...g,...f}),...e},n=!1;const a=new Set,u=new Set;let l=i.storage;if(!l)return s((...f)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...f)},t,o);const h=()=>{const f=i.partialize({...t()});return l.setItem(i.name,{state:f,version:i.version})},d=o.setState;o.setState=(f,g)=>{d(f,g),h()};const q=s((...f)=>{r(...f),h()},t,o);o.getInitialState=()=>q;let x;const p=()=>{var f,g;if(!l)return;n=!1,a.forEach(S=>{var w;return S((w=t())!=null?w:q)});const y=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(f=t())!=null?f:q))||void 0;return _s(l.getItem.bind(l))(i.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==i.version){if(i.migrate)return[!0,i.migrate(S.state,S.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var w;const[I,L]=S;if(x=i.merge(L,(w=t())!=null?w:q),r(x,!0),I)return h()}).then(()=>{y==null||y(x,void 0),x=t(),n=!0,u.forEach(S=>S(x))}).catch(S=>{y==null||y(void 0,S)})};return o.persist={setOptions:f=>{i={...i,...f},f.storage&&(l=f.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>n,onHydrate:f=>(a.add(f),()=>{a.delete(f)}),onFinishHydration:f=>(u.add(f),()=>{u.delete(f)})},i.skipHydration||p(),x||q},Je=Mo,jo=z(Je(s=>({onPreview:!1,setOnPreview:e=>s(()=>({onPreview:e})),activeBlock:null,setActiveBlock:e=>s(()=>({activeBlock:e}))}),{name:"preview-storage",partialize:s=>{const{onPreview:e}=s;return{onPreview:e}}}));var j=[];for(var Ps=0;Ps<256;++Ps)j.push((Ps+256).toString(16).slice(1));function Ho(s,e=0){return(j[s[e+0]]+j[s[e+1]]+j[s[e+2]]+j[s[e+3]]+"-"+j[s[e+4]]+j[s[e+5]]+"-"+j[s[e+6]]+j[s[e+7]]+"-"+j[s[e+8]]+j[s[e+9]]+"-"+j[s[e+10]]+j[s[e+11]]+j[s[e+12]]+j[s[e+13]]+j[s[e+14]]+j[s[e+15]]).toLowerCase()}var Me,Uo=new Uint8Array(16);function $o(){if(!Me&&(Me=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Me))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Me(Uo)}var Vo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Or={randomUUID:Vo};function ze(s,e,r){if(Or.randomUUID&&!e&&!s)return Or.randomUUID();s=s||{};var t=s.random||(s.rng||$o)();return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Ho(t)}const Wo=z(Je((s,e)=>({header:null,blocks:{home:{},contact:{},product:{},faqs:{},reviews:{},ticket:{},login:{}},footer:null,currentBlock:null,positionBlock:null,setHeader:r=>{s({header:r})},setFooter:r=>{s({footer:r})},createPage:r=>{const t=e().blocks;t[r]={},s({blocks:t})},deletePage:r=>{const t=e().blocks;delete t[r],s({blocks:t})},updatePage:(r,t)=>{const o=e().blocks;if(o[t])return;const i=o[r];delete o[r],o[t]=i,s({blocks:o})},setCurrentBlock:r=>{s({currentBlock:r})},setPositionBlock:r=>{s({positionBlock:r})},addBlock:(r,t)=>{const o=e().blocks,i=o[r]||{},n=e().positionBlock,a=ze();i[a]={name:t.name,value:t.value};const u=Object.keys(i);if(n===null||n>=u.length)s({blocks:{...o,[r]:i}});else{const l={name:t.name,value:{...t.value}},h=u.slice(0,n),d=u.slice(n),q={...h.reduce((x,p)=>(x[p]=i[p],x),{}),[a]:l,...d.reduce((x,p)=>(x[p]=i[p],x),{})};s({blocks:{...o,[r]:q}})}},editBlock:(r,t,o)=>{const i=e().blocks,n=i[r]||{};n[t]={name:o.name,value:{...o.value}},s({blocks:{...i,[r]:n}})},removeBlock:(r,t)=>{const o=e().blocks,i=o[r]||{};delete i[t],s({blocks:{...o,[r]:i}})},moveBlock:(r,t,o)=>s(i=>{const n={...i.blocks[r]},a=Object.keys(n),[u]=a.splice(t,1);a.splice(o,0,u);const l=a.reduce((h,d)=>(h[d]=n[d],h),{});return{blocks:{...i.blocks,[r]:l}}}),duplicateBlock:(r,t)=>{const{blocks:o}=e(),i=o[r],n=i[t],a=ze(),u={name:n.name,value:{...n.value}},l=Object.keys(i),h=l.indexOf(t),d=l.slice(0,h+1),q=l.slice(h+1),x={...d.reduce((p,f)=>(p[f]=i[f],p),{}),[a]:u,...q.reduce((p,f)=>(p[f]=i[f],p),{})};s({blocks:{...o,[r]:x}})}}),{name:"layers-storage",partialize:s=>{const{blocks:e,header:r,footer:t}=s;return{blocks:e,header:r,footer:t}}})),nt=z((s,e)=>({isModalVisible:!1,hoverBlockId:null,isMouseOverModal:!1,hideTimeout:null,setHoverBlockId:r=>{s({hoverBlockId:r})},showModal:r=>{e().hideTimeout&&clearTimeout(e().hideTimeout),s({isModalVisible:!0,hoverBlockId:r})},hideModal:()=>{s({isModalVisible:!1,hoverBlockId:null})},startHideTimeout:()=>{if(!e().isMouseOverModal){const r=setTimeout(()=>{s({isModalVisible:!1,hoverBlockId:null})},500);s({hideTimeout:r})}},clearHideTimeout:()=>{e().hideTimeout&&(clearTimeout(e().hideTimeout),s({hideTimeout:null}))},setMouseOverModal:r=>{s({isMouseOverModal:r})},isPreviewVisible:!1,showPreview:r=>{s({isPreviewVisible:!0,hoverBlockId:r})},hidePreview:()=>{s({isPreviewVisible:!1,hoverBlockId:null})}})),Go=z(s=>({activeBlock:null,setActiveBlock:e=>s(()=>({activeBlock:e})),activeFont:null,setActiveFont:e=>s(()=>({activeFont:e})),themeSettings:{colors:{brand:{primary:"#fefefe",secondary:"#fefefe",toner:"#ffffff"},background:{primary:"#fefefe",secondary:"#000000"},text_icons:{primary:"#000000",secondary:"#fefefe",tertiary:"#fefefe",disabled:"#ffffff"},lines:{divider:"#000000",border:"#fefefe"},others:{link:"#000000"}},fonts:{heading:{h1:{font:"Archivo",weight:"900",size:48},h2:{font:"Archivo",weight:"700",size:32},h3:{font:"Archivo",weight:"600",size:24},h4:{font:"Archivo",weight:"500",size:16},h5:{font:"Archivo",weight:"400",size:16},h6:{font:"Archivo",weight:"400",size:16}},paragraph:{text:{font:"Archivo",size:48,weight:"400"}}},borders:{radius:52,thickness:52},buttons:{size:26,alignment:"left",radius:32,height:40},inputs:{general:{height:48,name:"Style Name",size:48,color:"black"},field:{active:!0,color:"black",opacity:40},border:{active:!0,style:"solid",radius:0,thickness:0,color:"black"},label:{height:48,size:48,color:"black",alignment:"left"}}},updateColor:(e,r,t)=>s(o=>{const i={...o.themeSettings.colors,[e]:{...o.themeSettings.colors[e],[r]:t}};return{themeSettings:{...o.themeSettings,colors:i}}}),updateFont:(e,r,t,o)=>s(i=>{const n={...i.themeSettings.fonts,[e]:{...i.themeSettings.fonts[e],[r]:{...i.themeSettings.fonts[e][r],[t]:o}}};return{themeSettings:{...i.themeSettings,fonts:n}}}),updateBorder:(e,r)=>s(t=>{const o={...t.themeSettings.borders,[e]:r};return{themeSettings:{...t.themeSettings,borders:o}}}),updateButton:(e,r)=>s(t=>{const o={...t.themeSettings.buttons,[e]:r};return{themeSettings:{...t.themeSettings,buttons:o}}}),updateInput:(e,r,t)=>s(o=>({themeSettings:{...o.themeSettings,inputs:{...o.themeSettings.inputs,[e]:{...o.themeSettings.inputs[e],[t]:r}}}}))})),zo=z(Je(s=>({fonts:[],setFonts:e=>s(()=>({fonts:e}))}),{name:"fonts-storage"})),Xo=z(s=>({settings:null,setSettings:e=>s(()=>({settings:e}))})),at=z()(s=>({color:"default",initialColor:"",setInitialColor:e=>s(()=>({initialColor:e})),colorChange:()=>{},update:()=>{},activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,setModalPosition:e=>s(()=>({modalPosition:e})),setHue:e=>s(()=>({hue:e})),setSaturation:e=>s(()=>({saturation:e})),setBrightness:e=>s(()=>({brightness:e})),setShowModal:e=>s(()=>({showModal:e})),setDragging:e=>s(()=>({dragging:e})),setActiveLabel:e=>s(()=>({activeLabel:e})),setColor:e=>s(()=>({color:e})),setUpdate:e=>s(()=>({update:e})),setColorChange:e=>s(()=>({colorChange:e}))})),Yo=z(Je((s,e)=>({pages:{...Lo},currentPage:"home",pageContext:{listings:void 0,products:void 0,reviews:void 0,categories:void 0,faqs:void 0,general:void 0},isOpenModal:!1,isOpenSelectModal:!1,isEdit:!1,editedPage:null,setEditedPage:r=>s(()=>({editedPage:r})),setCurrentPage:r=>s(()=>({currentPage:r})),setPageContext:r=>s(()=>({pageContext:r})),setIsOpenModal:r=>s(()=>({isOpenModal:r})),setIsOpenSelectModal:r=>s(()=>({isOpenSelectModal:r})),setIsEdit:r=>s(()=>({isEdit:r})),createPage:r=>{const t=e().pages,o=ze();t[o]=r,s({pages:t})},updatePage:(r,t)=>{const o=e().pages;o[r]={...t},s({pages:o})},deletePage:r=>{const t=e().pages;delete t[r],s({pages:t})}}),{name:"pages-storage",partialize:s=>{const{pages:e}=s;return{pages:e}}})),Vs=z(s=>({openModal:!1,setOpenModal:e=>s(()=>({openModal:e})),onChange:null,setOnChange:e=>s(()=>({onChange:e}))})),Jo=(s,e,r)=>{const t=s[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})},Ko="_icon_bsuj2_1",Qo="_hoverable_bsuj2_5",Zo="_rotated_bsuj2_9",_r={icon:Ko,hoverable:Qo,rotated:Zo};var ct={exports:{}};/*!
|
|
30
|
+
<%s key={someKey} {...props} />`,ps,le,wo,le),yr[le+ps]=!0}}return c===t?xo(B):go(B),B}}function qo(c,P,b){return wr(c,P,b,!0)}function So(c,P,b){return wr(c,P,b,!1)}var bo=So,yo=qo;Ee.Fragment=t,Ee.jsx=bo,Ee.jsxs=yo}()),Ee}process.env.NODE_ENV==="production"?Os.exports=To():Os.exports=Do();var v=Os.exports;const Dr=s=>{let e;const r=new Set,t=(l,h)=>{const d=typeof l=="function"?l(e):l;if(!Object.is(d,e)){const q=e;e=h??(typeof d!="object"||d===null)?d:Object.assign({},e,d),r.forEach(x=>x(e,q))}},o=()=>e,a={setState:t,getState:o,getInitialState:()=>u,subscribe:l=>(r.add(l),()=>r.delete(l))},u=e=s(t,o,a);return a},Eo=s=>s?Dr(s):Dr,Oo=s=>s;function _o(s,e=Oo){const r=T.useSyncExternalStore(s.subscribe,()=>e(s.getState()),()=>e(s.getInitialState()));return T.useDebugValue(r),r}const Er=s=>{const e=Eo(s),r=t=>_o(e,t);return Object.assign(r,e),r},z=s=>s?Er(s):Er,Ro=z(s=>({blocks:{},setBlocks:e=>s(()=>({blocks:e})),activeBlock:null,setActiveBlock:e=>s(()=>({activeBlock:e})),sourceBlocks:{},setSourceBlocks:e=>s(()=>({sourceBlocks:e})),currentInstance:null,setCurrentInstance:e=>s(()=>({currentInstance:e}))})),ko=z(s=>({currentDevice:{icon:"Desktop",value:"desktop"},setCurrentDevice:e=>s(()=>({currentDevice:e}))}));z(s=>({pageData:null,setPageData:e=>s(()=>({pageData:e}))}));const it=[{icon:"TreeStructure",name:"Layers"},{icon:"Plus",name:"Add"},{icon:"Palette",name:"Theme"},{icon:"Gear",name:"Settings"}],Io=Array.from({length:122/2+1},(s,e)=>String(6+e*2)),Ao=["100","200","300","400","500","600","700","800","900"],No=["home","reviews","faqs","contact","product","ticket","login"],Lo={home:{path:"/",name:"home",icon:"HouseSimple",seo:{description:"",title:""},visibility:"public"},product:{path:"/product",name:"product",icon:"SquaresFour",seo:{description:"",title:""},visibility:"public"},faqs:{path:"/faqs",name:"faqs",icon:"SealQuestion",seo:{description:"",title:""},visibility:"public"},reviews:{path:"/reviews",name:"reviews",icon:"Star",seo:{description:"",title:""},visibility:"public"},contact:{path:"/contact",name:"contact",icon:"ChatCentered",seo:{description:"",title:""},visibility:"public"},ticket:{path:"/ticket",name:"ticket",icon:"Ticket",seo:{description:"",title:""},visibility:"public"},login:{path:"/login",name:"login",icon:"UserCircleGear",seo:{description:"",title:""},visibility:"public"}},Fo=z(s=>({activeBlock:it[0],setActiveBlock:e=>s(()=>({activeBlock:e}))}));function Bo(s,e){let r;try{r=s()}catch{return}return{getItem:o=>{var i;const n=u=>u===null?null:JSON.parse(u,void 0),a=(i=r.getItem(o))!=null?i:null;return a instanceof Promise?a.then(n):n(a)},setItem:(o,i)=>r.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>r.removeItem(o)}}const _s=s=>e=>{try{const r=s(e);return r instanceof Promise?r:{then(t){return _s(t)(r)},catch(t){return this}}}catch(r){return{then(t){return this},catch(t){return _s(t)(r)}}}},Mo=(s,e)=>(r,t,o)=>{let i={storage:Bo(()=>localStorage),partialize:f=>f,version:0,merge:(f,g)=>({...g,...f}),...e},n=!1;const a=new Set,u=new Set;let l=i.storage;if(!l)return s((...f)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),r(...f)},t,o);const h=()=>{const f=i.partialize({...t()});return l.setItem(i.name,{state:f,version:i.version})},d=o.setState;o.setState=(f,g)=>{d(f,g),h()};const q=s((...f)=>{r(...f),h()},t,o);o.getInitialState=()=>q;let x;const p=()=>{var f,g;if(!l)return;n=!1,a.forEach(S=>{var w;return S((w=t())!=null?w:q)});const y=((g=i.onRehydrateStorage)==null?void 0:g.call(i,(f=t())!=null?f:q))||void 0;return _s(l.getItem.bind(l))(i.name).then(S=>{if(S)if(typeof S.version=="number"&&S.version!==i.version){if(i.migrate)return[!0,i.migrate(S.state,S.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,S.state];return[!1,void 0]}).then(S=>{var w;const[I,L]=S;if(x=i.merge(L,(w=t())!=null?w:q),r(x,!0),I)return h()}).then(()=>{y==null||y(x,void 0),x=t(),n=!0,u.forEach(S=>S(x))}).catch(S=>{y==null||y(void 0,S)})};return o.persist={setOptions:f=>{i={...i,...f},f.storage&&(l=f.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>n,onHydrate:f=>(a.add(f),()=>{a.delete(f)}),onFinishHydration:f=>(u.add(f),()=>{u.delete(f)})},i.skipHydration||p(),x||q},Je=Mo,jo=z(Je(s=>({onPreview:!1,setOnPreview:e=>s(()=>({onPreview:e})),activeBlock:null,setActiveBlock:e=>s(()=>({activeBlock:e}))}),{name:"preview-storage",partialize:s=>{const{onPreview:e}=s;return{onPreview:e}}}));var j=[];for(var Ps=0;Ps<256;++Ps)j.push((Ps+256).toString(16).slice(1));function Ho(s,e=0){return(j[s[e+0]]+j[s[e+1]]+j[s[e+2]]+j[s[e+3]]+"-"+j[s[e+4]]+j[s[e+5]]+"-"+j[s[e+6]]+j[s[e+7]]+"-"+j[s[e+8]]+j[s[e+9]]+"-"+j[s[e+10]]+j[s[e+11]]+j[s[e+12]]+j[s[e+13]]+j[s[e+14]]+j[s[e+15]]).toLowerCase()}var Me,Uo=new Uint8Array(16);function $o(){if(!Me&&(Me=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Me))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Me(Uo)}var Vo=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Or={randomUUID:Vo};function ze(s,e,r){if(Or.randomUUID&&!e&&!s)return Or.randomUUID();s=s||{};var t=s.random||(s.rng||$o)();return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Ho(t)}const Wo=z(Je((s,e)=>({header:null,blocks:{home:{},contact:{},product:{},faqs:{},reviews:{},ticket:{},login:{}},footer:null,currentBlock:null,positionBlock:null,setHeader:r=>{s({header:r})},setFooter:r=>{s({footer:r})},createPage:r=>{const t=e().blocks;t[r]={},s({blocks:t})},deletePage:r=>{const t=e().blocks;delete t[r],s({blocks:t})},updatePage:(r,t)=>{const o=e().blocks;if(o[t])return;const i=o[r];delete o[r],o[t]=i,s({blocks:o})},setCurrentBlock:r=>{s({currentBlock:r})},setPositionBlock:r=>{s({positionBlock:r})},addBlock:(r,t)=>{const o=e().blocks,i=o[r]||{},n=e().positionBlock,a=ze();i[a]={name:t.name,value:t.value};const u=Object.keys(i);if(n===null||n>=u.length)s({blocks:{...o,[r]:i}});else{const l={name:t.name,value:{...t.value}},h=u.slice(0,n),d=u.slice(n),q={...h.reduce((x,p)=>(x[p]=i[p],x),{}),[a]:l,...d.reduce((x,p)=>(x[p]=i[p],x),{})};s({blocks:{...o,[r]:q}})}},editBlock:(r,t,o)=>{const i=e().blocks,n=i[r]||{};n[t]={name:o.name,value:{...o.value}},s({blocks:{...i,[r]:n}})},removeBlock:(r,t)=>{const o=e().blocks,i=o[r]||{};delete i[t],s({blocks:{...o,[r]:i}})},moveBlock:(r,t,o)=>s(i=>{const n={...i.blocks[r]},a=Object.keys(n),[u]=a.splice(t,1);a.splice(o,0,u);const l=a.reduce((h,d)=>(h[d]=n[d],h),{});return{blocks:{...i.blocks,[r]:l}}}),duplicateBlock:(r,t)=>{const{blocks:o}=e(),i=o[r],n=i[t],a=ze(),u={name:n.name,value:{...n.value}},l=Object.keys(i),h=l.indexOf(t),d=l.slice(0,h+1),q=l.slice(h+1),x={...d.reduce((p,f)=>(p[f]=i[f],p),{}),[a]:u,...q.reduce((p,f)=>(p[f]=i[f],p),{})};s({blocks:{...o,[r]:x}})}}),{name:"layers-storage",partialize:s=>{const{blocks:e,header:r,footer:t}=s;return{blocks:e,header:r,footer:t}}})),nt=z((s,e)=>({isModalVisible:!1,hoverBlockId:null,isMouseOverModal:!1,hideTimeout:null,setHoverBlockId:r=>{s({hoverBlockId:r})},showModal:r=>{e().hideTimeout&&clearTimeout(e().hideTimeout),s({isModalVisible:!0,hoverBlockId:r})},hideModal:()=>{s({isModalVisible:!1,hoverBlockId:null})},startHideTimeout:()=>{if(!e().isMouseOverModal){const r=setTimeout(()=>{s({isModalVisible:!1,hoverBlockId:null})},500);s({hideTimeout:r})}},clearHideTimeout:()=>{e().hideTimeout&&(clearTimeout(e().hideTimeout),s({hideTimeout:null}))},setMouseOverModal:r=>{s({isMouseOverModal:r})},isPreviewVisible:!1,showPreview:r=>{s({isPreviewVisible:!0,hoverBlockId:r})},hidePreview:()=>{s({isPreviewVisible:!1,hoverBlockId:null})}})),Go=z(s=>({activeBlock:null,setActiveBlock:e=>s(()=>({activeBlock:e})),activeFont:null,setActiveFont:e=>s(()=>({activeFont:e})),themeSettings:{colors:{brand:{primary:"#fefefe",secondary:"#fefefe",toner:"#ffffff"},background:{primary:"#fefefe",secondary:"#000000"},text_icons:{primary:"#000000",secondary:"#fefefe",tertiary:"#fefefe",disabled:"#ffffff"},lines:{divider:"#000000",border:"#fefefe"},others:{link:"#000000"}},fonts:{heading:{h1:{font:"Archivo",weight:"900",size:48},h2:{font:"Archivo",weight:"700",size:32},h3:{font:"Archivo",weight:"600",size:24},h4:{font:"Archivo",weight:"500",size:16},h5:{font:"Archivo",weight:"400",size:16},h6:{font:"Archivo",weight:"400",size:16}},paragraph:{text:{font:"Archivo",size:48,weight:"400"}}},borders:{radius:52,thickness:52},buttons:{size:26,alignment:"left",radius:32,height:40},inputs:{general:{height:48,name:"Style Name",size:48,color:"black"},field:{active:!0,color:"black",opacity:40},border:{active:!0,style:"solid",radius:0,thickness:0,color:"black"},label:{height:48,size:48,color:"black",alignment:"left"}}},updateColor:(e,r,t)=>s(o=>{const i={...o.themeSettings.colors,[e]:{...o.themeSettings.colors[e],[r]:t}};return{themeSettings:{...o.themeSettings,colors:i}}}),updateFont:(e,r,t,o)=>s(i=>{const n={...i.themeSettings.fonts,[e]:{...i.themeSettings.fonts[e],[r]:{...i.themeSettings.fonts[e][r],[t]:o}}};return{themeSettings:{...i.themeSettings,fonts:n}}}),updateBorder:(e,r)=>s(t=>{const o={...t.themeSettings.borders,[e]:r};return{themeSettings:{...t.themeSettings,borders:o}}}),updateButton:(e,r)=>s(t=>{const o={...t.themeSettings.buttons,[e]:r};return{themeSettings:{...t.themeSettings,buttons:o}}}),updateInput:(e,r,t)=>s(o=>({themeSettings:{...o.themeSettings,inputs:{...o.themeSettings.inputs,[e]:{...o.themeSettings.inputs[e],[t]:r}}}}))})),zo=z(Je(s=>({fonts:[],setFonts:e=>s(()=>({fonts:e}))}),{name:"fonts-storage"})),Xo=z(s=>({settings:null,setSettings:e=>s(()=>({settings:e}))})),at=z()(s=>({color:"default",initialColor:"",setInitialColor:e=>s(()=>({initialColor:e})),colorChange:()=>{},update:()=>{},activeLabel:null,modalPosition:{left:0,top:0},showModal:!1,dragging:!1,hue:0,saturation:100,brightness:100,setModalPosition:e=>s(()=>({modalPosition:e})),setHue:e=>s(()=>({hue:e})),setSaturation:e=>s(()=>({saturation:e})),setBrightness:e=>s(()=>({brightness:e})),setShowModal:e=>s(()=>({showModal:e})),setDragging:e=>s(()=>({dragging:e})),setActiveLabel:e=>s(()=>({activeLabel:e})),setColor:e=>s(()=>({color:e})),setUpdate:e=>s(()=>({update:e})),setColorChange:e=>s(()=>({colorChange:e}))})),Yo=z(Je((s,e)=>({pages:{...Lo},currentPage:"home",pageContext:{listings:[],products:[],reviews:[],categories:[],faqs:[],general:[]},isOpenModal:!1,isOpenSelectModal:!1,isEdit:!1,editedPage:null,setEditedPage:r=>s(()=>({editedPage:r})),setCurrentPage:r=>s(()=>({currentPage:r})),setPageContext:r=>s(()=>({pageContext:r})),setIsOpenModal:r=>s(()=>({isOpenModal:r})),setIsOpenSelectModal:r=>s(()=>({isOpenSelectModal:r})),setIsEdit:r=>s(()=>({isEdit:r})),createPage:r=>{const t=e().pages,o=ze();t[o]=r,s({pages:t})},updatePage:(r,t)=>{const o=e().pages;o[r]={...t},s({pages:o})},deletePage:r=>{const t=e().pages;delete t[r],s({pages:t})}}),{name:"pages-storage",partialize:s=>{const{pages:e}=s;return{pages:e}}})),Vs=z(s=>({openModal:!1,setOpenModal:e=>s(()=>({openModal:e})),onChange:null,setOnChange:e=>s(()=>({onChange:e}))})),Jo=(s,e,r)=>{const t=s[e];return t?typeof t=="function"?t():Promise.resolve(t):new Promise((o,i)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(i.bind(null,new Error("Unknown variable dynamic import: "+e+(e.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})},Ko="_icon_bsuj2_1",Qo="_hoverable_bsuj2_5",Zo="_rotated_bsuj2_9",_r={icon:Ko,hoverable:Qo,rotated:Zo};var ct={exports:{}};/*!
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|
|
33
33
|
http://jedwatson.github.io/classnames
|
|
@@ -1340,12 +1340,12 @@ const _u = G(
|
|
|
1340
1340
|
pages: { ...Mo },
|
|
1341
1341
|
currentPage: "home",
|
|
1342
1342
|
pageContext: {
|
|
1343
|
-
listings:
|
|
1344
|
-
products:
|
|
1345
|
-
reviews:
|
|
1346
|
-
categories:
|
|
1347
|
-
faqs:
|
|
1348
|
-
general:
|
|
1343
|
+
listings: [],
|
|
1344
|
+
products: [],
|
|
1345
|
+
reviews: [],
|
|
1346
|
+
categories: [],
|
|
1347
|
+
faqs: [],
|
|
1348
|
+
general: []
|
|
1349
1349
|
},
|
|
1350
1350
|
isOpenModal: !1,
|
|
1351
1351
|
isOpenSelectModal: !1,
|
package/dist/ui.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-C8nZ3s7u.cjs"),j=require("react"),et="_wrapper_1g82c_2",st="_alignmentBlock_1g82c_8",nt="_title_1g82c_15",ot="_subtitle_1g82c_22",it="_alignmentContent_1g82c_29",ct="_alignments_1g82c_35",lt="_alignment_1g82c_8",rt="_circle_1g82c_54",at="_paddings_1g82c_61",ut="_padding_1g82c_61",xt="_input_1g82c_79",T={wrapper:et,alignmentBlock:st,title:nt,subtitle:ot,alignmentContent:it,alignments:ct,alignment:lt,circle:rt,paddings:at,padding:ut,input:xt},dt=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],pt=["left","top","right","bottom"],mt=x=>{const{alignment:s,padding:o,setPadding:i,setAlignment:c}=x;function l(){switch(s){case"left":case"topLeft":case"bottomLeft":return"TextAlignLeft";case"right":case"topRight":case"bottomRight":return"TextAlignRight";case"center":case"top":case"bottom":return"TextAlignCenter";default:return"TextAlignCenter"}}function e(n){switch(n){case"left":return"AlignLeft";case"right":return"AlignRight";case"top":return"AlignTop";case"bottom":return"AlignBottom"}}return t.jsxRuntimeExports.jsxs("div",{className:T.layout,children:[t.jsxRuntimeExports.jsx("h3",{className:T.title,children:"Layout"}),t.jsxRuntimeExports.jsxs("div",{className:T.alignmentBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:T.subtitle,children:"Alignment"}),t.jsxRuntimeExports.jsxs("div",{className:T.alignmentContent,children:[t.jsxRuntimeExports.jsx("div",{className:T.alignments,children:dt.map(n=>t.jsxRuntimeExports.jsxs("div",{onClick:()=>{c(n)},className:T.alignment,children:[n!==s&&t.jsxRuntimeExports.jsx("div",{className:T.circle}),n===s&&t.jsxRuntimeExports.jsx(t.Icon,{name:l(),fill:"#FF3F19",width:22,height:22})]},n))}),t.jsxRuntimeExports.jsx("div",{className:T.paddings,children:pt.map(n=>t.jsxRuntimeExports.jsxs("label",{className:T.padding,children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:e(n),width:20,height:20})}),t.jsxRuntimeExports.jsx(t.Input,{type:"text",value:String(o[n]),onChange:a=>i({...o,[n]:Number(a)}),paddingless:!0,borderless:!0})]}))})]})]})]})},_t="_subtitle_2zbxx_1",ht="_header_2zbxx_8",gt="_text_2zbxx_9",jt="_top_2zbxx_16",bt="_itemsBlock_2zbxx_23",H={subtitle:_t,header:ht,text:gt,top:jt,itemsBlock:bt},ft="_typeTexts_3zlec_1",Et="_block_3zlec_7",Rt="_active_3zlec_18",Y={typeTexts:ft,block:Et,active:Rt},vt=["bold","italic","underline","strike-through","code"],J=x=>{const{typesText:s,setTypesText:o}=x;function i(c){switch(c){case"bold":return"TextB";case"italic":return"TextItalic";case"code":return"CodeSimple";case"strike-through":return"TextStrikethrough";case"underline":return"TextUnderline"}}return t.jsxRuntimeExports.jsx("div",{className:Y.typeTexts,children:vt.map(c=>t.jsxRuntimeExports.jsx("div",{className:t.clx(Y.block,{[Y.active]:s.includes(c)}),onClick:()=>{const l=[...s];if(l.includes(c)){const e=l.filter(n=>n!==c);o(e)}else l.push(c),o(l)},children:t.jsxRuntimeExports.jsx(t.Icon,{name:i(c),fill:s.includes(c)?"#252525":"#757575",width:20,height:20})},String(c)))})},K=x=>{const{typesText:s,isActiveText:o,setIsActiveText:i,text:c,setText:l,setTypesText:e,title:n,subtitle:a="Items"}=x;return t.jsxRuntimeExports.jsxs("div",{className:H.text,children:[(n||o!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:H.top,children:[n&&t.jsxRuntimeExports.jsx("h3",{className:H.title,children:n}),o!==void 0&&i&&t.jsxRuntimeExports.jsx(t.Switch,{current:o,onChange:f=>i(f)})]}),t.jsxRuntimeExports.jsxs("div",{className:H.itemsBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:H.subtitle,children:a}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:f=>l(f),value:c,maxLength:150}),t.jsxRuntimeExports.jsx(J,{typesText:s,setTypesText:e})]})]})},kt="_subtitle_11qr1_1",yt="_header_11qr1_8",$t="_text_11qr1_9",It="_productsBlock_11qr1_10",wt="_top_11qr1_22",Bt="_itemsBlock_11qr1_29",Ct="_typeTexts_11qr1_35",Nt="_block_11qr1_41",Tt="_active_11qr1_52",Pt="_products_11qr1_10",St="_product_11qr1_10",At="_button_11qr1_70",Ot="_disabled_11qr1_80",Dt="_image_11qr1_84",Lt="_info_11qr1_91",qt="_name_11qr1_102",Mt="_buttons_11qr1_106",Ht="_modal_11qr1_112",zt="_link_11qr1_130",Ft="_modalOptions_11qr1_136",v={subtitle:kt,header:yt,text:$t,productsBlock:It,top:wt,itemsBlock:Bt,typeTexts:Ct,block:Nt,active:Tt,products:Pt,product:St,button:At,disabled:Ot,image:Dt,info:Lt,name:qt,buttons:Mt,modal:Ht,link:zt,modalOptions:Ft},Gt=x=>{const{activeItem:s,setActiveItem:o,popupPosition:i,modalOptions:c,setIsOpenModal:l}=x;return t.jsxRuntimeExports.jsxs("div",{className:v.modal,onClick:e=>{e.stopPropagation()},style:{top:`${i.top}px`,left:`${i.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:v.top,children:[t.jsxRuntimeExports.jsx("h3",{children:s.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{o(null),l(!1)}})]}),t.jsxRuntimeExports.jsx("div",{className:v.modalOptions,children:c.map(e=>{if(e.type==="image")return t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:n=>{const a={...s,[e.field]:n};o(a)}});if(e.type==="text")return t.jsxRuntimeExports.jsx(K,{typesText:s[e.field.type],setTypesText:n=>{const a={...s,[e.field.type]:n};o(a)},text:s[e.field.text]||"",setText:n=>{const a={...s,[e.field.text]:n};o(a)},subtitle:e.label});if(e.type==="input")return t.jsxRuntimeExports.jsx(t.Input,{onChange:n=>{const a={...s,[e.field]:n};o(a)},value:s[e.field]||"",label:e.label,placeholder:e.placeholder});if(e.type==="inputSwitch")return t.jsxRuntimeExports.jsxs("div",{className:v.link,children:[t.jsxRuntimeExports.jsx(t.Input,{onChange:n=>{const a={...s,[e.field.text]:n};o(a)},value:s[e.field.text]||"",label:e.inputLabel,placeholder:e.placeholder}),t.jsxRuntimeExports.jsx(t.Switch,{current:!!s[e.field.switch]||!1,label:e.switchLabel,onChange:n=>{const a={...s,[e.field.switch]:n};o(a)}})]});if(e.type==="list")return t.jsxRuntimeExports.jsx(W,{items:s[e.field]||[],setItems:n=>{const a={...s,[e.field]:n};o(a)},itemsType:"select",draggable:e.draggable||!1,itemsOptions:e.itemsOptions,deletable:e.deletable||!1,editable:!1,subtitle:e.label});if(e.type==="select")return t.jsxRuntimeExports.jsx(t.Select,{options:e.itemsOptions,onChange:n=>{const a={...s,[e.field]:n};o(a)},label:e.label,value:s[e.field]||"String",leftAddon:e.leftAddon&&e.leftAddon==="icon"&&t.jsxRuntimeExports.jsx(t.Icon,{name:s[e.field]})})})})]})},Ut="_other_1wtgi_1",Xt="_subtitle_1wtgi_7",Yt="_items_1wtgi_14",V={other:Ut,subtitle:Xt,items:Yt},Q=x=>{const{items:s,title:o="Other"}=x;return t.jsxRuntimeExports.jsxs("div",{className:V.other,children:[t.jsxRuntimeExports.jsx("h5",{className:V.subtitle,children:o}),t.jsxRuntimeExports.jsx("div",{className:V.items,children:s.map(i=>t.jsxRuntimeExports.jsx(t.Switch,{current:i.isItem,onChange:c=>i.setIsItem(c),label:i.label,hasBackground:!0,paddingless:!1}))})]})},Vt=x=>{const{index:s,moveProduct:o,children:i}=x,[,c]=t.useDrop({accept:"product",hover(n){n.index!==s&&(o(n.index,s),n.index=s)}}),[{isDragging:l},e]=t.useDrag({type:"product",item:{index:s},collect:n=>({isDragging:n.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:n=>e(c(n)),className:`${v.product} ${l?v.dragging:""}`,children:i})},W=x=>{const{isActiveItems:s,setIsActiveItems:o,items:i,setItems:c,other:l,title:e,subtitle:n,editable:a=!0,draggable:f=!1,withImage:d=!1,deletable:b=!0,addable:g=!0,itemsType:k,itemsPlaceholder:m="",itemsOptions:p,hasRangeSelector:I=!1,rangeSelectorOptions:F,modalOptions:G,addableOptions:q={},limit:C}=x,[S,A]=j.useState(null),[X,U]=j.useState({top:0,left:0}),[u,_]=j.useState(!1),w=(r,y)=>{const B=[...i],[h]=B.splice(r,1);B.splice(y,0,h),c(B)};j.useEffect(()=>{const r=()=>{A(null),_(!1)};return document.body.addEventListener("click",r),A(null),_(!1),()=>{A(null),_(!1),document.body.removeEventListener("click",r)}},[]),j.useEffect(()=>{if(S){const r=[...i].map(y=>y.id===S.id?S:y);c(r)}},[S]);const E=(r,y)=>{r.stopPropagation(),_(!0);const B=r.target.getBoundingClientRect(),h=500,M=window.innerHeight;let P=B.top+window.scrollY;console.log(h),P+h>M&&(P=M-h-20),U({top:P-80,left:B.left-30}),A(y)};function D(r){if(d)return r?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${r[0]}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const N=(r,y)=>{const B=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[f&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})}),k==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:h=>{const P=[...i].map(O=>O.id===r.id?{...r,name:h}:O);A({...r,name:h}),c([...P])},value:r.name,options:p,leftAddon:D(r.images)}),k==="input"&&t.jsxRuntimeExports.jsx(t.Input,{onChange:h=>{const P=[...i].map(O=>O.id===r.id?{...r,name:h}:O);c([...P])},value:r.name,placeholder:m}),k==="image"&&t.jsxRuntimeExports.jsx(t.ChooseImage,{onChange:h=>{const P=[...i].map(O=>O.id===r.id?{...r,image:h[0]}:O);c([...P])}}),t.jsxRuntimeExports.jsxs("div",{className:v.buttons,children:[a&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:h=>E(h,r)}),b&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>c(i.filter(h=>h.id!==r.id))})]})]});return f?t.jsxRuntimeExports.jsx(Vt,{product:r,index:y,moveProduct:w,children:B},r.id):t.jsxRuntimeExports.jsx("div",{className:v.product,children:B},r.id)};return t.jsxRuntimeExports.jsxs("div",{className:v.productsBlock,children:[(e||s!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:v.top,children:[e&&t.jsxRuntimeExports.jsx("h3",{className:v.title,children:e}),s!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:s,onChange:r=>o==null?void 0:o(r)})]}),S&&a&&G&&u&&t.jsxRuntimeExports.jsx(Gt,{activeItem:S,setActiveItem:A,popupPosition:X,modalOptions:G,setIsOpenModal:_}),I&&F&&t.jsxRuntimeExports.jsx(tt,{...F}),t.jsxRuntimeExports.jsxs("div",{className:v.products,children:[n&&t.jsxRuntimeExports.jsx("h5",{className:v.subtitle,children:n}),f?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:i.map((r,y)=>N(r,y))}):i.map((r,y)=>N(r,y)),g&&t.jsxRuntimeExports.jsxs(t.Button,{className:t.clx(v.button,{[v.disabled]:!!(C&&C<=i.length)}),size:"s",disabled:!!(C&&C<=i.length),onClick:()=>{const r=[...i];k==="select"?r.push({name:p[0]||`Product ${i.length+1}`,id:t.v4(),...q}):k==="input"?r.push({name:"",id:t.v4(),...q}):r.push({name:`Image ${i.length+1}`,id:t.v4(),...q}),c(r)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),l!==void 0&&t.jsxRuntimeExports.jsx(Q,{items:l})]})},Jt="_subtitle_41klp_1",Kt="_header_41klp_8",Qt="_text_41klp_9",Wt="_productsBlock_41klp_10",Zt="_buttonsBlock_41klp_11",te="_top_41klp_21",ee="_itemsBlock_41klp_28",se="_typeTexts_41klp_34",ne="_block_41klp_40",oe="_active_41klp_51",ie="_products_41klp_10",ce="_product_41klp_10",le="_button_41klp_11",re="_image_41klp_79",ae="_info_41klp_86",ue="_name_41klp_97",xe="_buttons_41klp_11",de="_modal_41klp_107",pe="_other_41klp_124",me="_options_41klp_130",L={subtitle:Jt,header:Kt,text:Qt,productsBlock:Wt,buttonsBlock:Zt,top:te,itemsBlock:ee,typeTexts:se,block:ne,active:oe,products:ie,product:ce,button:le,image:re,info:ae,name:ue,buttons:xe,modal:de,other:pe,options:me},_e=x=>{const{activeButton:s,setActiveButton:o,popupPosition:i}=x,[c,l]=j.useState(s.typesText),[e,n]=j.useState(s.destination),[a,f]=j.useState(s.link||""),[d,b]=j.useState(s.text||"");return j.useEffect(()=>{o({...s,...{text:d,link:a,destination:e,typesText:c}})},[c,e,a,d]),t.jsxRuntimeExports.jsxs("div",{className:L.modal,onClick:g=>{g.stopPropagation()},style:{top:`${i.top}px`,left:`${i.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:L.top,children:[t.jsxRuntimeExports.jsx("h3",{children:s.type}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>o(null)})]}),t.jsxRuntimeExports.jsxs("div",{className:L.options,children:[t.jsxRuntimeExports.jsx(t.Select,{label:"Destination",onChange:g=>n(g),options:["Go to Page","Open Link"],value:e}),e==="Go to Page"?t.jsxRuntimeExports.jsx(t.Select,{label:"Go to",onChange:()=>{},options:[],value:"Homepage"}):t.jsxRuntimeExports.jsx(t.Input,{onChange:g=>f(g),value:a,placeholder:"https://",label:"Link"}),t.jsxRuntimeExports.jsx(t.Switch,{current:!1,label:"Open in new tab"}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:g=>b(g),value:d,label:"Text",maxLength:150}),t.jsxRuntimeExports.jsx(J,{typesText:c,setTypesText:l})]})]})},he="_subtitle_1y5sw_1",ge="_header_1y5sw_8",je="_text_1y5sw_9",be="_productsBlock_1y5sw_10",fe="_buttonsBlock_1y5sw_11",Ee="_top_1y5sw_22",Re="_itemsBlock_1y5sw_29",ve="_typeTexts_1y5sw_35",ke="_block_1y5sw_41",ye="_active_1y5sw_52",$e="_products_1y5sw_10",Ie="_product_1y5sw_10",we="_button_1y5sw_11",Be="_image_1y5sw_80",Ce="_info_1y5sw_87",Ne="_name_1y5sw_98",Te="_buttons_1y5sw_11",Pe="_modal_1y5sw_108",Se="_other_1y5sw_125",Ae="_options_1y5sw_131",z={subtitle:he,header:ge,text:je,productsBlock:be,buttonsBlock:fe,top:Ee,itemsBlock:Re,typeTexts:ve,block:ke,active:ye,products:$e,product:Ie,button:we,image:Be,info:Ce,name:Ne,buttons:Te,modal:Pe,other:Se,options:Ae},Z=x=>{const{buttons:s,setButtons:o,deletable:i=!0,addable:c=!0}=x,[l,e]=j.useState(null),[n,a]=j.useState({top:0,left:0});j.useEffect(()=>{const d=()=>{e(null)};return document.body.addEventListener("click",d),e(null),()=>{e(null),document.body.removeEventListener("click",d)}},[]),j.useEffect(()=>{if(l){const d=[...s].map(b=>b.id===l.id?l:b);o(d)}},[l]);const f=(d,b)=>{d.stopPropagation();const g=d.target.getBoundingClientRect(),k=490,m=window.innerHeight;let p=g.top+window.scrollY;p+k>m&&(p=m-k-20),a({top:p,left:g.left-30}),e(b)};return t.jsxRuntimeExports.jsxs("div",{className:z.products,children:[t.jsxRuntimeExports.jsx("h5",{className:z.subtitle,children:"Button Type"}),s.map(d=>t.jsxRuntimeExports.jsxs("div",{className:z.product,children:[t.jsxRuntimeExports.jsx(t.Select,{onChange:b=>{const k=[...s].map(m=>m.id===d.id?{...d,type:b}:m);o(k)},value:d.type,options:["Primary","Secondary","Tertiary"]}),t.jsxRuntimeExports.jsxs("div",{className:z.buttons,children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:b=>{f(b,d)}}),i&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,onClick:()=>{const b=s.filter(g=>g.id!==d.id);o(b)},width:20,height:20,fill:"#C12A2A"})]})]},d.id)),l&&t.jsxRuntimeExports.jsx(_e,{activeButton:l,setActiveButton:e,popupPosition:n}),c&&t.jsxRuntimeExports.jsxs(t.Button,{className:z.button,size:"s",onClick:()=>{const d=[...s];d.push({type:"Primary",id:t.v4(),typesText:[],destination:"Go to Page",text:""}),o(d)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]})},Oe=x=>{const{isActiveButtons:s,setIsActiveButtons:o,buttons:i,setButtons:c}=x;return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsxs("div",{className:L.buttonsBlock,children:[t.jsxRuntimeExports.jsxs("div",{className:L.top,children:[t.jsxRuntimeExports.jsx("h3",{className:L.title,children:"Buttons"}),t.jsxRuntimeExports.jsx(t.Switch,{current:s,onChange:l=>o(l)})]}),t.jsxRuntimeExports.jsx(Z,{buttons:i,setButtons:c})]})})},De="_wrapper_tn7gb_1",Le="_subtitle_tn7gb_7",qe="_content_tn7gb_14",Me="_range_tn7gb_21",He="_track_tn7gb_26",ze="_progress_tn7gb_35",Fe="_dots_tn7gb_45",Ge="_dot_tn7gb_45",Ue="_active_tn7gb_62",Xe="_input_tn7gb_74",Ye="_countBlock_tn7gb_88",Ve="_count_tn7gb_88",Je="_controls_tn7gb_103",Ke="_button_tn7gb_108",R={wrapper:De,subtitle:Le,content:qe,range:Me,track:He,progress:ze,dots:Fe,dot:Ge,active:Ue,input:Xe,countBlock:Ye,count:Ve,controls:Je,button:Ke},tt=x=>{const{label:s,min:o=1,max:i=4,step:c=1,count:l,setCount:e}=x,[n,a]=j.useState(!1),f=Array.from({length:(i-o)/c+1}),d=(l-o)/(i-o)*100,b=()=>{l<i&&e(l+c)},g=()=>{l>o&&e(l-c)},k=m=>{const p=o+m*c;e(p)};return t.jsxRuntimeExports.jsxs("div",{className:R.wrapper,children:[s&&t.jsxRuntimeExports.jsx("h5",{className:R.subtitle,children:s}),t.jsxRuntimeExports.jsxs("div",{className:R.content,children:[t.jsxRuntimeExports.jsxs("div",{className:R.range,children:[t.jsxRuntimeExports.jsx("div",{className:R.track}),t.jsxRuntimeExports.jsx("div",{className:R.progress,style:{width:`${d}%`}}),t.jsxRuntimeExports.jsx("div",{className:R.dots,children:f.map((m,p)=>{const I=p<=(l-o)/c;return t.jsxRuntimeExports.jsx("button",{onClick:()=>k(p),className:t.clx(R.dot,{[R.active]:I,[R.inactive]:!I,[R.dragging]:n}),"aria-label":`Set value to ${o+p*c}`},p)})}),t.jsxRuntimeExports.jsx("input",{type:"range",min:o,max:i,step:c,value:l,onChange:m=>e(Number(m.target.value)),onMouseDown:()=>a(!0),onMouseUp:()=>a(!1),onTouchStart:()=>a(!0),onTouchEnd:()=>a(!1),className:R.input})]}),t.jsxRuntimeExports.jsxs("div",{className:R.countBlock,children:[t.jsxRuntimeExports.jsx(t.Input,{type:"number",min:o,max:i,paddingless:!0,onChange:m=>{const p=Number(m);p>i?e(i):p<o?e(o):e(p)},value:String(l)}),t.jsxRuntimeExports.jsxs("div",{className:R.controls,children:[t.jsxRuntimeExports.jsx("button",{onClick:b,disabled:l>=i,className:R.button,"aria-label":"Increment count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretUp",width:15,height:15})}),t.jsxRuntimeExports.jsx("button",{onClick:g,disabled:l<=o,className:R.button,"aria-label":"Decrement count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretDown",width:15,height:15})})]})]})]})]})},Qe="_subtitle_1nl8x_1",We="_header_1nl8x_8",Ze="_text_1nl8x_9",ts="_productsBlock_1nl8x_10",es="_top_1nl8x_22",ss="_itemsBlock_1nl8x_29",ns="_typeTexts_1nl8x_35",os="_block_1nl8x_41",is="_active_1nl8x_52",cs="_products_1nl8x_10",ls="_product_1nl8x_10",rs="_button_1nl8x_70",as="_image_1nl8x_80",us="_info_1nl8x_87",xs="_name_1nl8x_98",ds="_buttons_1nl8x_102",ps="_modal_1nl8x_108",ms="_link_1nl8x_126",_s="_modalOptions_1nl8x_132",$={subtitle:Qe,header:We,text:Ze,productsBlock:ts,top:es,itemsBlock:ss,typeTexts:ns,block:os,active:is,products:cs,product:ls,button:rs,image:as,info:us,name:xs,buttons:ds,modal:ps,link:ms,modalOptions:_s},hs=x=>{const{activeItem:s,setActiveItem:o,popupPosition:i,setIsOpenModal:c}=x;return t.jsxRuntimeExports.jsxs("div",{className:$.modal,onClick:l=>{l.stopPropagation()},style:{top:`${i.top}px`,left:`${i.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[t.jsxRuntimeExports.jsx("h3",{children:s.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{c(!1),o(null)}})]}),t.jsxRuntimeExports.jsx("div",{className:$.modalOptions,children:t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:l=>{const e={...s,images:l,imagePath:l[0]};o(e)}})})]})},gs=x=>{const{index:s,moveProduct:o,children:i}=x,[,c]=t.useDrop({accept:"product",hover(n){n.index!==s&&(o(n.index,s),n.index=s)}}),[{isDragging:l},e]=t.useDrag({type:"product",item:{index:s},collect:n=>({isDragging:n.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:n=>e(c(n)),className:`${$.product} ${l?$.dragging:""}`,children:i})},js=x=>{const{isActiveItems:s,setIsActiveItems:o,items:i,setItems:c,other:l,title:e,subtitle:n,editable:a=!0,draggable:f=!1,withImage:d=!1,deletable:b=!0,addable:g=!0,itemsType:k,itemsOptions:m}=x,[p,I]=j.useState(null),[F,G]=j.useState({top:0,left:0}),[q,C]=j.useState(!1),S=(u,_)=>{const w=[...i],[E]=w.splice(u,1);w.splice(_,0,E),c(w)};j.useEffect(()=>{const u=()=>{I(null),C(!1)};return document.body.addEventListener("click",u),I(null),C(!1),()=>{I(null),C(!1),document.body.removeEventListener("click",u)}},[]),j.useEffect(()=>{if(p){const u=[...i].map(_=>_.id===p.id?p:_);c(u)}},[p]);const A=(u,_)=>{u.stopPropagation();const w=u.target.getBoundingClientRect(),E=100,D=window.innerHeight;let N=w.top+window.scrollY;N+E>D&&(N=D-E-20),C(!0),G({top:N-80,left:w.left-30}),I(_)};function X(u){if(d)return u?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${u}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const U=(u,_)=>{const w=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[f&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})}),k==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:E=>{const D=[...i],N=Number(E.split(" ")[1]),r=m.find(h=>h.id===N);if(!r)return;const y={...r.productData.stats,newPrice:r.productData.minPrice.amount,oldPrice:r.productData.compareAtPrice.amount},B=D.map(h=>h.id===u.id?{...u,name:E,listingId:N,stats:y}:h);I({...u,name:E,listingId:N}),c([...B])},value:u.name,options:[...m.map(E=>`Product ${E.id}`)],leftAddon:X(u.images[0])}),t.jsxRuntimeExports.jsxs("div",{className:$.buttons,children:[a&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:E=>A(E,u)}),b&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>c(i.filter(E=>E.id!==u.id))})]})]});return f?t.jsxRuntimeExports.jsx(gs,{product:u,index:_,moveProduct:S,children:w},u.id):t.jsxRuntimeExports.jsx("div",{className:$.product,children:w},u.id)};return t.jsxRuntimeExports.jsxs("div",{className:$.productsBlock,children:[(e||s!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[e&&t.jsxRuntimeExports.jsx("h3",{className:$.title,children:e}),s!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:s,onChange:u=>o==null?void 0:o(u)})]}),q&&p&&t.jsxRuntimeExports.jsx(hs,{activeItem:p,setActiveItem:I,setIsOpenModal:C,popupPosition:F}),t.jsxRuntimeExports.jsxs("div",{className:$.products,children:[n&&t.jsxRuntimeExports.jsx("h5",{className:$.subtitle,children:n}),f?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:i.map((u,_)=>U(u,_))}):i.map((u,_)=>U(u,_)),g&&t.jsxRuntimeExports.jsxs(t.Button,{className:$.button,size:"s",onClick:()=>{const u=[...i],_=m[0].id;u.push({name:`Product ${_}`,id:t.v4(),listingId:_,imagePath:"",images:[],stats:{...m[0].productData.stats,newPrice:m[0].productData.minPrice.amount,oldPrice:m[0].productData.compareAtPrice.amount}}),c(u)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),l!==void 0&&t.jsxRuntimeExports.jsx(Q,{items:l})]})};exports.Button=t.Button;exports.Checkbox=t.Checkbox;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ColorPicker=t.ColorPicker;exports.Icon=t.Icon;exports.Input=t.Input;exports.Modal=t.Modal;exports.Picker=t.Picker;exports.Radio=t.Radio;exports.Select=t.Select;exports.Submodal=t.Submodal;exports.Switch=t.Switch;exports.Textarea=t.Textarea;exports.Tip=t.Tip;exports.ButtonTypeSettings=Z;exports.ButtonsSettings=Oe;exports.ItemsSettings=W;exports.LayoutSettings=mt;exports.ListingSelector=js;exports.RangeSelector=tt;exports.TextSettings=K;exports.TypesText=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-C4eTUjpB.cjs"),m=require("react"),st="_accordion_2tiiw_1",nt="_header_2tiiw_9",ot="_icon_2tiiw_16",it="_open_2tiiw_19",ct="_content_2tiiw_23",H={accordion:st,header:nt,icon:ot,open:it,content:ct},lt=({title:x,content:s})=>{const[n,i]=m.useState(!1),[c,l]=m.useState(0),e=m.useRef(null),o=()=>{i(!n)};return m.useEffect(()=>{e.current&&l(n?e.current.scrollHeight:0)},[n]),t.jsxRuntimeExports.jsxs("div",{className:H.accordion,children:[t.jsxRuntimeExports.jsxs("div",{className:H.header,onClick:o,children:[t.jsxRuntimeExports.jsx("h3",{children:x}),t.jsxRuntimeExports.jsx("div",{className:t.clx(H.icon,{[H.open]:n}),children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretDown"})})]}),t.jsxRuntimeExports.jsx("div",{ref:e,className:H.content,style:{height:`${c}px`},children:t.jsxRuntimeExports.jsx("p",{children:s})})]})},rt="_wrapper_1g82c_2",at="_alignmentBlock_1g82c_8",ut="_title_1g82c_15",xt="_subtitle_1g82c_22",dt="_alignmentContent_1g82c_29",pt="_alignments_1g82c_35",mt="_alignment_1g82c_8",_t="_circle_1g82c_54",ht="_paddings_1g82c_61",gt="_padding_1g82c_61",jt="_input_1g82c_79",T={wrapper:rt,alignmentBlock:at,title:ut,subtitle:xt,alignmentContent:dt,alignments:pt,alignment:mt,circle:_t,paddings:ht,padding:gt,input:jt},bt=["topLeft","top","topRight","left","center","right","bottomLeft","bottom","bottomRight"],ft=["left","top","right","bottom"],Rt=x=>{const{alignment:s,padding:n,setPadding:i,setAlignment:c}=x;function l(){switch(s){case"left":case"topLeft":case"bottomLeft":return"TextAlignLeft";case"right":case"topRight":case"bottomRight":return"TextAlignRight";case"center":case"top":case"bottom":return"TextAlignCenter";default:return"TextAlignCenter"}}function e(o){switch(o){case"left":return"AlignLeft";case"right":return"AlignRight";case"top":return"AlignTop";case"bottom":return"AlignBottom"}}return t.jsxRuntimeExports.jsxs("div",{className:T.layout,children:[t.jsxRuntimeExports.jsx("h3",{className:T.title,children:"Layout"}),t.jsxRuntimeExports.jsxs("div",{className:T.alignmentBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:T.subtitle,children:"Alignment"}),t.jsxRuntimeExports.jsxs("div",{className:T.alignmentContent,children:[t.jsxRuntimeExports.jsx("div",{className:T.alignments,children:bt.map(o=>t.jsxRuntimeExports.jsxs("div",{onClick:()=>{c(o)},className:T.alignment,children:[o!==s&&t.jsxRuntimeExports.jsx("div",{className:T.circle}),o===s&&t.jsxRuntimeExports.jsx(t.Icon,{name:l(),fill:"#FF3F19",width:22,height:22})]},o))}),t.jsxRuntimeExports.jsx("div",{className:T.paddings,children:ft.map(o=>t.jsxRuntimeExports.jsxs("label",{className:T.padding,children:[t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:e(o),width:20,height:20})}),t.jsxRuntimeExports.jsx(t.Input,{type:"text",value:String(n[o]),onChange:a=>i({...n,[o]:Number(a)}),paddingless:!0,borderless:!0})]}))})]})]})]})},Et="_subtitle_2zbxx_1",vt="_header_2zbxx_8",kt="_text_2zbxx_9",yt="_top_2zbxx_16",$t="_itemsBlock_2zbxx_23",z={subtitle:Et,header:vt,text:kt,top:yt,itemsBlock:$t},wt="_typeTexts_3zlec_1",It="_block_3zlec_7",Bt="_active_3zlec_18",V={typeTexts:wt,block:It,active:Bt},Ct=["bold","italic","underline","strike-through","code"],K=x=>{const{typesText:s,setTypesText:n}=x;function i(c){switch(c){case"bold":return"TextB";case"italic":return"TextItalic";case"code":return"CodeSimple";case"strike-through":return"TextStrikethrough";case"underline":return"TextUnderline"}}return t.jsxRuntimeExports.jsx("div",{className:V.typeTexts,children:Ct.map(c=>t.jsxRuntimeExports.jsx("div",{className:t.clx(V.block,{[V.active]:s.includes(c)}),onClick:()=>{const l=[...s];if(l.includes(c)){const e=l.filter(o=>o!==c);n(e)}else l.push(c),n(l)},children:t.jsxRuntimeExports.jsx(t.Icon,{name:i(c),fill:s.includes(c)?"#252525":"#757575",width:20,height:20})},String(c)))})},Q=x=>{const{typesText:s,isActiveText:n,setIsActiveText:i,text:c,setText:l,setTypesText:e,title:o,subtitle:a="Items"}=x;return t.jsxRuntimeExports.jsxs("div",{className:z.text,children:[(o||n!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:z.top,children:[o&&t.jsxRuntimeExports.jsx("h3",{className:z.title,children:o}),n!==void 0&&i&&t.jsxRuntimeExports.jsx(t.Switch,{current:n,onChange:f=>i(f)})]}),t.jsxRuntimeExports.jsxs("div",{className:z.itemsBlock,children:[t.jsxRuntimeExports.jsx("h5",{className:z.subtitle,children:a}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:f=>l(f),value:c,maxLength:150}),t.jsxRuntimeExports.jsx(K,{typesText:s,setTypesText:e})]})]})},Nt="_subtitle_11qr1_1",Tt="_header_11qr1_8",St="_text_11qr1_9",Pt="_productsBlock_11qr1_10",At="_top_11qr1_22",Ot="_itemsBlock_11qr1_29",Dt="_typeTexts_11qr1_35",Lt="_block_11qr1_41",qt="_active_11qr1_52",Mt="_products_11qr1_10",Ht="_product_11qr1_10",zt="_button_11qr1_70",Ft="_disabled_11qr1_80",Gt="_image_11qr1_84",Ut="_info_11qr1_91",Xt="_name_11qr1_102",Yt="_buttons_11qr1_106",Vt="_modal_11qr1_112",Jt="_link_11qr1_130",Kt="_modalOptions_11qr1_136",v={subtitle:Nt,header:Tt,text:St,productsBlock:Pt,top:At,itemsBlock:Ot,typeTexts:Dt,block:Lt,active:qt,products:Mt,product:Ht,button:zt,disabled:Ft,image:Gt,info:Ut,name:Xt,buttons:Yt,modal:Vt,link:Jt,modalOptions:Kt},Qt=x=>{const{activeItem:s,setActiveItem:n,popupPosition:i,modalOptions:c,setIsOpenModal:l}=x;return t.jsxRuntimeExports.jsxs("div",{className:v.modal,onClick:e=>{e.stopPropagation()},style:{top:`${i.top}px`,left:`${i.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:v.top,children:[t.jsxRuntimeExports.jsx("h3",{children:s.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{n(null),l(!1)}})]}),t.jsxRuntimeExports.jsx("div",{className:v.modalOptions,children:c.map(e=>{if(e.type==="image")return t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:o=>{const a={...s,[e.field]:o};n(a)}});if(e.type==="text")return t.jsxRuntimeExports.jsx(Q,{typesText:s[e.field.type],setTypesText:o=>{const a={...s,[e.field.type]:o};n(a)},text:s[e.field.text]||"",setText:o=>{const a={...s,[e.field.text]:o};n(a)},subtitle:e.label});if(e.type==="input")return t.jsxRuntimeExports.jsx(t.Input,{onChange:o=>{const a={...s,[e.field]:o};n(a)},value:s[e.field]||"",label:e.label,placeholder:e.placeholder});if(e.type==="inputSwitch")return t.jsxRuntimeExports.jsxs("div",{className:v.link,children:[t.jsxRuntimeExports.jsx(t.Input,{onChange:o=>{const a={...s,[e.field.text]:o};n(a)},value:s[e.field.text]||"",label:e.inputLabel,placeholder:e.placeholder}),t.jsxRuntimeExports.jsx(t.Switch,{current:!!s[e.field.switch]||!1,label:e.switchLabel,onChange:o=>{const a={...s,[e.field.switch]:o};n(a)}})]});if(e.type==="list")return t.jsxRuntimeExports.jsx(Z,{items:s[e.field]||[],setItems:o=>{const a={...s,[e.field]:o};n(a)},itemsType:"select",draggable:e.draggable||!1,itemsOptions:e.itemsOptions,deletable:e.deletable||!1,editable:!1,subtitle:e.label});if(e.type==="select")return t.jsxRuntimeExports.jsx(t.Select,{options:e.itemsOptions,onChange:o=>{const a={...s,[e.field]:o};n(a)},label:e.label,value:s[e.field]||"String",leftAddon:e.leftAddon&&e.leftAddon==="icon"&&t.jsxRuntimeExports.jsx(t.Icon,{name:s[e.field]})})})})]})},Wt="_other_1wtgi_1",Zt="_subtitle_1wtgi_7",te="_items_1wtgi_14",J={other:Wt,subtitle:Zt,items:te},W=x=>{const{items:s,title:n="Other"}=x;return t.jsxRuntimeExports.jsxs("div",{className:J.other,children:[t.jsxRuntimeExports.jsx("h5",{className:J.subtitle,children:n}),t.jsxRuntimeExports.jsx("div",{className:J.items,children:s.map(i=>t.jsxRuntimeExports.jsx(t.Switch,{current:i.isItem,onChange:c=>i.setIsItem(c),label:i.label,hasBackground:!0,paddingless:!1}))})]})},ee=x=>{const{index:s,moveProduct:n,children:i}=x,[,c]=t.useDrop({accept:"product",hover(o){o.index!==s&&(n(o.index,s),o.index=s)}}),[{isDragging:l},e]=t.useDrag({type:"product",item:{index:s},collect:o=>({isDragging:o.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:o=>e(c(o)),className:`${v.product} ${l?v.dragging:""}`,children:i})},Z=x=>{const{isActiveItems:s,setIsActiveItems:n,items:i,setItems:c,other:l,title:e,subtitle:o,editable:a=!0,draggable:f=!1,withImage:d=!1,deletable:b=!0,addable:j=!0,itemsType:k,itemsPlaceholder:_="",itemsOptions:p,hasRangeSelector:w=!1,rangeSelectorOptions:G,modalOptions:U,addableOptions:q={},limit:C}=x,[P,A]=m.useState(null),[Y,X]=m.useState({top:0,left:0}),[u,h]=m.useState(!1),I=(r,y)=>{const B=[...i],[g]=B.splice(r,1);B.splice(y,0,g),c(B)};m.useEffect(()=>{const r=()=>{A(null),h(!1)};return document.body.addEventListener("click",r),A(null),h(!1),()=>{A(null),h(!1),document.body.removeEventListener("click",r)}},[]),m.useEffect(()=>{if(P){const r=[...i].map(y=>y.id===P.id?P:y);c(r)}},[P]);const R=(r,y)=>{r.stopPropagation(),h(!0);const B=r.target.getBoundingClientRect(),g=500,M=window.innerHeight;let S=B.top+window.scrollY;console.log(g),S+g>M&&(S=M-g-20),X({top:S-80,left:B.left-30}),A(y)};function D(r){if(d)return r?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${r[0]}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const N=(r,y)=>{const B=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[f&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})}),k==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:g=>{const S=[...i].map(O=>O.id===r.id?{...r,name:g}:O);A({...r,name:g}),c([...S])},value:r.name,options:p,leftAddon:D(r.images)}),k==="input"&&t.jsxRuntimeExports.jsx(t.Input,{onChange:g=>{const S=[...i].map(O=>O.id===r.id?{...r,name:g}:O);c([...S])},value:r.name,placeholder:_}),k==="image"&&t.jsxRuntimeExports.jsx(t.ChooseImage,{onChange:g=>{const S=[...i].map(O=>O.id===r.id?{...r,images:g}:O);c([...S])}}),t.jsxRuntimeExports.jsxs("div",{className:v.buttons,children:[a&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:g=>R(g,r)}),b&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>c(i.filter(g=>g.id!==r.id))})]})]});return f?t.jsxRuntimeExports.jsx(ee,{product:r,index:y,moveProduct:I,children:B},r.id):t.jsxRuntimeExports.jsx("div",{className:v.product,children:B},r.id)};return t.jsxRuntimeExports.jsxs("div",{className:v.productsBlock,children:[(e||s!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:v.top,children:[e&&t.jsxRuntimeExports.jsx("h3",{className:v.title,children:e}),s!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:s,onChange:r=>n==null?void 0:n(r)})]}),P&&a&&U&&u&&t.jsxRuntimeExports.jsx(Qt,{activeItem:P,setActiveItem:A,popupPosition:Y,modalOptions:U,setIsOpenModal:h}),w&&G&&t.jsxRuntimeExports.jsx(et,{...G}),t.jsxRuntimeExports.jsxs("div",{className:v.products,children:[o&&t.jsxRuntimeExports.jsx("h5",{className:v.subtitle,children:o}),f?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:i.map((r,y)=>N(r,y))}):i.map((r,y)=>N(r,y)),j&&t.jsxRuntimeExports.jsxs(t.Button,{className:t.clx(v.button,{[v.disabled]:!!(C&&C<=i.length)}),size:"s",disabled:!!(C&&C<=i.length),onClick:()=>{const r=[...i];k==="select"?r.push({name:p[0]||`Product ${i.length+1}`,id:t.v4(),...q}):k==="input"?r.push({name:"",id:t.v4(),...q}):r.push({name:`Image ${i.length+1}`,id:t.v4(),...q}),c(r)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),l!==void 0&&t.jsxRuntimeExports.jsx(W,{items:l})]})},se="_subtitle_41klp_1",ne="_header_41klp_8",oe="_text_41klp_9",ie="_productsBlock_41klp_10",ce="_buttonsBlock_41klp_11",le="_top_41klp_21",re="_itemsBlock_41klp_28",ae="_typeTexts_41klp_34",ue="_block_41klp_40",xe="_active_41klp_51",de="_products_41klp_10",pe="_product_41klp_10",me="_button_41klp_11",_e="_image_41klp_79",he="_info_41klp_86",ge="_name_41klp_97",je="_buttons_41klp_11",be="_modal_41klp_107",fe="_other_41klp_124",Re="_options_41klp_130",L={subtitle:se,header:ne,text:oe,productsBlock:ie,buttonsBlock:ce,top:le,itemsBlock:re,typeTexts:ae,block:ue,active:xe,products:de,product:pe,button:me,image:_e,info:he,name:ge,buttons:je,modal:be,other:fe,options:Re},Ee=x=>{const{activeButton:s,setActiveButton:n,popupPosition:i}=x,[c,l]=m.useState(s.typesText),[e,o]=m.useState(s.destination),[a,f]=m.useState(s.link||""),[d,b]=m.useState(s.text||"");return m.useEffect(()=>{n({...s,...{text:d,link:a,destination:e,typesText:c}})},[c,e,a,d]),t.jsxRuntimeExports.jsxs("div",{className:L.modal,onClick:j=>{j.stopPropagation()},style:{top:`${i.top}px`,left:`${i.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:L.top,children:[t.jsxRuntimeExports.jsx("h3",{children:s.type}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>n(null)})]}),t.jsxRuntimeExports.jsxs("div",{className:L.options,children:[t.jsxRuntimeExports.jsx(t.Select,{label:"Destination",onChange:j=>o(j),options:["Go to Page","Open Link"],value:e}),e==="Go to Page"?t.jsxRuntimeExports.jsx(t.Select,{label:"Go to",onChange:()=>{},options:[],value:"Homepage"}):t.jsxRuntimeExports.jsx(t.Input,{onChange:j=>f(j),value:a,placeholder:"https://",label:"Link"}),t.jsxRuntimeExports.jsx(t.Switch,{current:!1,label:"Open in new tab"}),t.jsxRuntimeExports.jsx(t.Textarea,{onChange:j=>b(j),value:d,label:"Text",maxLength:150}),t.jsxRuntimeExports.jsx(K,{typesText:c,setTypesText:l})]})]})},ve="_subtitle_1y5sw_1",ke="_header_1y5sw_8",ye="_text_1y5sw_9",$e="_productsBlock_1y5sw_10",we="_buttonsBlock_1y5sw_11",Ie="_top_1y5sw_22",Be="_itemsBlock_1y5sw_29",Ce="_typeTexts_1y5sw_35",Ne="_block_1y5sw_41",Te="_active_1y5sw_52",Se="_products_1y5sw_10",Pe="_product_1y5sw_10",Ae="_button_1y5sw_11",Oe="_image_1y5sw_80",De="_info_1y5sw_87",Le="_name_1y5sw_98",qe="_buttons_1y5sw_11",Me="_modal_1y5sw_108",He="_other_1y5sw_125",ze="_options_1y5sw_131",F={subtitle:ve,header:ke,text:ye,productsBlock:$e,buttonsBlock:we,top:Ie,itemsBlock:Be,typeTexts:Ce,block:Ne,active:Te,products:Se,product:Pe,button:Ae,image:Oe,info:De,name:Le,buttons:qe,modal:Me,other:He,options:ze},tt=x=>{const{buttons:s,setButtons:n,deletable:i=!0,addable:c=!0}=x,[l,e]=m.useState(null),[o,a]=m.useState({top:0,left:0});m.useEffect(()=>{const d=()=>{e(null)};return document.body.addEventListener("click",d),e(null),()=>{e(null),document.body.removeEventListener("click",d)}},[]),m.useEffect(()=>{if(l){const d=[...s].map(b=>b.id===l.id?l:b);n(d)}},[l]);const f=(d,b)=>{d.stopPropagation();const j=d.target.getBoundingClientRect(),k=490,_=window.innerHeight;let p=j.top+window.scrollY;p+k>_&&(p=_-k-20),a({top:p,left:j.left-30}),e(b)};return t.jsxRuntimeExports.jsxs("div",{className:F.products,children:[t.jsxRuntimeExports.jsx("h5",{className:F.subtitle,children:"Button Type"}),s.map(d=>t.jsxRuntimeExports.jsxs("div",{className:F.product,children:[t.jsxRuntimeExports.jsx(t.Select,{onChange:b=>{const k=[...s].map(_=>_.id===d.id?{...d,type:b}:_);n(k)},value:d.type,options:["Primary","Secondary","Tertiary"]}),t.jsxRuntimeExports.jsxs("div",{className:F.buttons,children:[t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:b=>{f(b,d)}}),i&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,onClick:()=>{const b=s.filter(j=>j.id!==d.id);n(b)},width:20,height:20,fill:"#C12A2A"})]})]},d.id)),l&&t.jsxRuntimeExports.jsx(Ee,{activeButton:l,setActiveButton:e,popupPosition:o}),c&&t.jsxRuntimeExports.jsxs(t.Button,{className:F.button,size:"s",onClick:()=>{const d=[...s];d.push({type:"Primary",id:t.v4(),typesText:[],destination:"Go to Page",text:""}),n(d)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]})},Fe=x=>{const{isActiveButtons:s,setIsActiveButtons:n,buttons:i,setButtons:c}=x;return t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:t.jsxRuntimeExports.jsxs("div",{className:L.buttonsBlock,children:[t.jsxRuntimeExports.jsxs("div",{className:L.top,children:[t.jsxRuntimeExports.jsx("h3",{className:L.title,children:"Buttons"}),t.jsxRuntimeExports.jsx(t.Switch,{current:s,onChange:l=>n(l)})]}),t.jsxRuntimeExports.jsx(tt,{buttons:i,setButtons:c})]})})},Ge="_wrapper_tn7gb_1",Ue="_subtitle_tn7gb_7",Xe="_content_tn7gb_14",Ye="_range_tn7gb_21",Ve="_track_tn7gb_26",Je="_progress_tn7gb_35",Ke="_dots_tn7gb_45",Qe="_dot_tn7gb_45",We="_active_tn7gb_62",Ze="_input_tn7gb_74",ts="_countBlock_tn7gb_88",es="_count_tn7gb_88",ss="_controls_tn7gb_103",ns="_button_tn7gb_108",E={wrapper:Ge,subtitle:Ue,content:Xe,range:Ye,track:Ve,progress:Je,dots:Ke,dot:Qe,active:We,input:Ze,countBlock:ts,count:es,controls:ss,button:ns},et=x=>{const{label:s,min:n=1,max:i=4,step:c=1,count:l,setCount:e}=x,[o,a]=m.useState(!1),f=Array.from({length:(i-n)/c+1}),d=(l-n)/(i-n)*100,b=()=>{l<i&&e(l+c)},j=()=>{l>n&&e(l-c)},k=_=>{const p=n+_*c;e(p)};return t.jsxRuntimeExports.jsxs("div",{className:E.wrapper,children:[s&&t.jsxRuntimeExports.jsx("h5",{className:E.subtitle,children:s}),t.jsxRuntimeExports.jsxs("div",{className:E.content,children:[t.jsxRuntimeExports.jsxs("div",{className:E.range,children:[t.jsxRuntimeExports.jsx("div",{className:E.track}),t.jsxRuntimeExports.jsx("div",{className:E.progress,style:{width:`${d}%`}}),t.jsxRuntimeExports.jsx("div",{className:E.dots,children:f.map((_,p)=>{const w=p<=(l-n)/c;return t.jsxRuntimeExports.jsx("button",{onClick:()=>k(p),className:t.clx(E.dot,{[E.active]:w,[E.inactive]:!w,[E.dragging]:o}),"aria-label":`Set value to ${n+p*c}`},p)})}),t.jsxRuntimeExports.jsx("input",{type:"range",min:n,max:i,step:c,value:l,onChange:_=>e(Number(_.target.value)),onMouseDown:()=>a(!0),onMouseUp:()=>a(!1),onTouchStart:()=>a(!0),onTouchEnd:()=>a(!1),className:E.input})]}),t.jsxRuntimeExports.jsxs("div",{className:E.countBlock,children:[t.jsxRuntimeExports.jsx(t.Input,{type:"number",min:n,max:i,paddingless:!0,onChange:_=>{const p=Number(_);p>i?e(i):p<n?e(n):e(p)},value:String(l)}),t.jsxRuntimeExports.jsxs("div",{className:E.controls,children:[t.jsxRuntimeExports.jsx("button",{onClick:b,disabled:l>=i,className:E.button,"aria-label":"Increment count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretUp",width:15,height:15})}),t.jsxRuntimeExports.jsx("button",{onClick:j,disabled:l<=n,className:E.button,"aria-label":"Decrement count",children:t.jsxRuntimeExports.jsx(t.Icon,{name:"CaretDown",width:15,height:15})})]})]})]})]})},os="_subtitle_1nl8x_1",is="_header_1nl8x_8",cs="_text_1nl8x_9",ls="_productsBlock_1nl8x_10",rs="_top_1nl8x_22",as="_itemsBlock_1nl8x_29",us="_typeTexts_1nl8x_35",xs="_block_1nl8x_41",ds="_active_1nl8x_52",ps="_products_1nl8x_10",ms="_product_1nl8x_10",_s="_button_1nl8x_70",hs="_image_1nl8x_80",gs="_info_1nl8x_87",js="_name_1nl8x_98",bs="_buttons_1nl8x_102",fs="_modal_1nl8x_108",Rs="_link_1nl8x_126",Es="_modalOptions_1nl8x_132",$={subtitle:os,header:is,text:cs,productsBlock:ls,top:rs,itemsBlock:as,typeTexts:us,block:xs,active:ds,products:ps,product:ms,button:_s,image:hs,info:gs,name:js,buttons:bs,modal:fs,link:Rs,modalOptions:Es},vs=x=>{const{activeItem:s,setActiveItem:n,popupPosition:i,setIsOpenModal:c}=x;return t.jsxRuntimeExports.jsxs("div",{className:$.modal,onClick:l=>{l.stopPropagation()},style:{top:`${i.top}px`,left:`${i.left}px`},children:[t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[t.jsxRuntimeExports.jsx("h3",{children:s.name}),t.jsxRuntimeExports.jsx(t.Icon,{name:"X",height:20,width:20,hoverable:!0,onClick:()=>{c(!1),n(null)}})]}),t.jsxRuntimeExports.jsx("div",{className:$.modalOptions,children:t.jsxRuntimeExports.jsx(t.ChooseImage,{label:"Put up an attractive image",onChange:l=>{const e={...s,images:l,imagePath:l[0]};n(e)}})})]})},ks=x=>{const{index:s,moveProduct:n,children:i}=x,[,c]=t.useDrop({accept:"product",hover(o){o.index!==s&&(n(o.index,s),o.index=s)}}),[{isDragging:l},e]=t.useDrag({type:"product",item:{index:s},collect:o=>({isDragging:o.isDragging()})});return t.jsxRuntimeExports.jsx("div",{ref:o=>e(c(o)),className:`${$.product} ${l?$.dragging:""}`,children:i})},ys=x=>{const{isActiveItems:s,setIsActiveItems:n,items:i,setItems:c,other:l,title:e,subtitle:o,editable:a=!0,draggable:f=!1,withImage:d=!1,deletable:b=!0,addable:j=!0,itemsType:k,itemsOptions:_}=x,[p,w]=m.useState(null),[G,U]=m.useState({top:0,left:0}),[q,C]=m.useState(!1),P=(u,h)=>{const I=[...i],[R]=I.splice(u,1);I.splice(h,0,R),c(I)};m.useEffect(()=>{const u=()=>{w(null),C(!1)};return document.body.addEventListener("click",u),w(null),C(!1),()=>{w(null),C(!1),document.body.removeEventListener("click",u)}},[]),m.useEffect(()=>{if(p){const u=[...i].map(h=>h.id===p.id?p:h);c(u)}},[p]);const A=(u,h)=>{u.stopPropagation();const I=u.target.getBoundingClientRect(),R=100,D=window.innerHeight;let N=I.top+window.scrollY;N+R>D&&(N=D-R-20),C(!0),U({top:N-80,left:I.left-30}),w(h)};function Y(u){if(d)return u?t.jsxRuntimeExports.jsx("img",{src:`https://imagedelivery.net/${u}/w=1000`,alt:"image",width:16,height:16}):t.jsxRuntimeExports.jsx(t.Icon,{name:"Image",width:16,height:16,fill:"#757575"})}const X=(u,h)=>{const I=t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[f&&t.jsxRuntimeExports.jsx("div",{children:t.jsxRuntimeExports.jsx(t.Icon,{name:"DotsSixVertical",hoverable:!0,width:20,height:20})}),k==="select"&&t.jsxRuntimeExports.jsx(t.Select,{onChange:R=>{const D=[...i],N=Number(R.split(" ")[1]),r=_.find(g=>g.id===N);if(!r)return;const y={...r.productData.stats,newPrice:r.productData.minPrice.amount,oldPrice:r.productData.compareAtPrice.amount},B=D.map(g=>g.id===u.id?{...u,name:R,listingId:N,stats:y}:g);w({...u,name:R,listingId:N}),c([...B])},value:u.name,options:[..._.map(R=>`Product ${R.id}`)],leftAddon:Y(u.images[0])}),t.jsxRuntimeExports.jsxs("div",{className:$.buttons,children:[a&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Sliders",hoverable:!0,width:20,height:20,onClick:R=>A(R,u)}),b&&t.jsxRuntimeExports.jsx(t.Icon,{name:"Trash",hoverable:!0,width:20,height:20,fill:"#C12A2A",onClick:()=>c(i.filter(R=>R.id!==u.id))})]})]});return f?t.jsxRuntimeExports.jsx(ks,{product:u,index:h,moveProduct:P,children:I},u.id):t.jsxRuntimeExports.jsx("div",{className:$.product,children:I},u.id)};return t.jsxRuntimeExports.jsxs("div",{className:$.productsBlock,children:[(e||s!==void 0)&&t.jsxRuntimeExports.jsxs("div",{className:$.top,children:[e&&t.jsxRuntimeExports.jsx("h3",{className:$.title,children:e}),s!==void 0&&t.jsxRuntimeExports.jsx(t.Switch,{current:s,onChange:u=>n==null?void 0:n(u)})]}),q&&p&&t.jsxRuntimeExports.jsx(vs,{activeItem:p,setActiveItem:w,setIsOpenModal:C,popupPosition:G}),t.jsxRuntimeExports.jsxs("div",{className:$.products,children:[o&&t.jsxRuntimeExports.jsx("h5",{className:$.subtitle,children:o}),f?t.jsxRuntimeExports.jsx(t.DndProvider,{backend:t.HTML5Backend,children:i.map((u,h)=>X(u,h))}):i.map((u,h)=>X(u,h)),j&&t.jsxRuntimeExports.jsxs(t.Button,{className:$.button,size:"s",onClick:()=>{const u=[...i],h=_[0].id;u.push({name:`Product ${h}`,id:t.v4(),listingId:h,imagePath:"",images:[],stats:{..._[0].productData.stats,newPrice:_[0].productData.minPrice.amount,oldPrice:_[0].productData.compareAtPrice.amount}}),c(u)},children:[t.jsxRuntimeExports.jsx("span",{children:"Add Option"}),t.jsxRuntimeExports.jsx(t.Icon,{name:"Plus",width:16,height:16})]})]}),l!==void 0&&t.jsxRuntimeExports.jsx(W,{items:l})]})};exports.Button=t.Button;exports.Checkbox=t.Checkbox;exports.ChooseImage=t.ChooseImage;exports.ChooseImageModal=t.ChooseImageModal;exports.ColorPicker=t.ColorPicker;exports.Icon=t.Icon;exports.Input=t.Input;exports.Modal=t.Modal;exports.Picker=t.Picker;exports.Radio=t.Radio;exports.Select=t.Select;exports.Submodal=t.Submodal;exports.Switch=t.Switch;exports.Textarea=t.Textarea;exports.Tip=t.Tip;exports.Accordion=lt;exports.ButtonTypeSettings=tt;exports.ButtonsSettings=Fe;exports.ItemsSettings=Z;exports.LayoutSettings=Rt;exports.ListingSelector=ys;exports.RangeSelector=et;exports.TextSettings=Q;exports.TypesText=K;
|