@ikas/popup-renderer 1.0.59 → 1.0.62
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/build/popup-renderer/components/form-element-renderer/date-item-view/index.js +1 -1
- package/build/popup-renderer/components/index.js +1 -1
- package/build/popup-renderer/components/product-list-renderer/index.d.ts +1 -0
- package/build/popup-renderer/components/product-list-renderer/index.js +1 -1
- package/build/popup-renderer/models/modal/background-settings/index.js +1 -1
- package/build/popup-renderer/models/modal/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/base/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/button/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/divider/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/form/form-settings/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/form/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/image-column/index.d.ts +1 -0
- package/build/popup-renderer/models/modal/step/elements/image-column/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/product/detail-settings/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/product/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/text/index.js +1 -1
- package/build/popup-renderer/models/modal/step/index.js +1 -1
- package/build/popup-renderer/models/modal/teaser/index.js +1 -1
- package/build/popup-renderer/models/modal/window-settings/index.js +1 -1
- package/build/popup-renderer/models/settings/visibility-condition/index.js +1 -1
- package/build/popup-renderer/style.css +0 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import'./../../../../ext/mobx-react-lite/es/index.js';import
|
|
1
|
+
import e from"react";import'./../../../../ext/mobx-react-lite/es/index.js';import r from"react-date-picker";import{observer as t}from'./../../../../ext/mobx-react-lite/es/observer.js';var o=t((function(t){var o=e.useState(!1),a=o[0],l=o[1],n=e.useRef(null);t.placeholder;var c=t.isRequired,i=t.inputLabel;t.updateCurrentInfo;var s=t.formInputSettings,d=t.value,u=t.onValueChange;e.useEffect((function(){if(n.current){var e=n.current.getElementsByClassName("react-date-picker__wrapper");if(e.length>0){var r=e[0];r.style.backgroundColor=s.bgColor,r.style.border="".concat(s.borderWidth,"px solid ").concat(a?s.focusBorderColor:s.borderColor),r.style.borderRadius="".concat(s.borderRadius,"px"),r.style.fontSize="14px",r.style.padding="10px 12px",r.style.height="".concat(s.height,"px")}}}),[n.current]);return e.createElement("div",{style:{width:"100%",display:"flex",gap:2,flexDirection:"column"},ref:n},(i||c)&&e.createElement("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:"6px"}},e.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"}},i&&e.createElement("label",{style:{color:"black",fontSize:"14px"}},i.text),c&&e.createElement("label",{style:{color:"black",fontSize:"14px"}},"*")),c&&c.hasError&&e.createElement("div",{style:{color:"red",fontSize:"12px"}},c.validationErrorMessage)),e.createElement(r,{onChange:function(e){return function(e){var r=e?e.valueOf().toString():"";u(r),c&&c.hasError&&r.length>0&&(c.hasError=!1)}(e)},value:d?new Date(Number(d)):null,className:"ikas-popup-datepicker",disableCalendar:!0,format:"dd / MM / yyyy",maxDate:new Date,clearIcon:null,onFocus:function(){return l(!0)},onBlur:function(){return function(){if(l(!1),n.current){var e=n.current.getElementsByClassName("react-date-picker__wrapper");e.length>0&&(e[0].style.border="".concat(s.borderWidth,"px solid ").concat(s.borderColor))}}()}}))}));export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"react";import'./../../ext/mobx-react-lite/es/index.js';import{PopupTypeEnum as t,PopupPositonEnum as o}from"../models/modal/index.js";import i from"../assets/x-close.js";import{CloseButtonPositionTypeEnum as r,CloseIconTypeEnum as n,CloseButtonDisplayTypeEnum as l}from"../models/modal/close-settings/index.js";import{PopupElementTypeEnum as s,ComponentVerticalAlignmentEnum as d}from"../models/modal/step/elements/base/index.js";import a from"./text-element-renderer/index.js";import c from"./button-element-renderer/index.js";import p from"./space-element-renderer/index.js";import m from"./divider-element-renderer/index.js";import u from"./social-element-renderer/index.js";import f from"./image-element-renderer/index.js";import x from"./image-column-element-renderer/index.js";import P from"./product-list-renderer/index.js";import E from"./form-element-renderer/index.js";import{ImageColumnPositionEnum as v}from"../models/modal/step/elements/image-column/index.js";import{observer as T}from'./../../ext/mobx-react-lite/es/observer.js';var b=T((function(T){var b,g,y,O,_=T.popup,I=T.dynamicData,h=T.dashboardComponents,C=T.previewMode,M=T.sfProps,R=_.modal,A=R.teaser,
|
|
1
|
+
import e from"react";import'./../../ext/mobx-react-lite/es/index.js';import{PopupTypeEnum as t,PopupPositonEnum as o}from"../models/modal/index.js";import i from"../assets/x-close.js";import{CloseButtonPositionTypeEnum as r,CloseIconTypeEnum as n,CloseButtonDisplayTypeEnum as l}from"../models/modal/close-settings/index.js";import{PopupElementTypeEnum as s,ComponentVerticalAlignmentEnum as d}from"../models/modal/step/elements/base/index.js";import a from"./text-element-renderer/index.js";import c from"./button-element-renderer/index.js";import p from"./space-element-renderer/index.js";import m from"./divider-element-renderer/index.js";import u from"./social-element-renderer/index.js";import f from"./image-element-renderer/index.js";import x from"./image-column-element-renderer/index.js";import P from"./product-list-renderer/index.js";import E from"./form-element-renderer/index.js";import{ImageColumnPositionEnum as v}from"../models/modal/step/elements/image-column/index.js";import{observer as T}from'./../../ext/mobx-react-lite/es/observer.js';var b=T((function(T){var b,g,y,O,_=T.popup,I=T.dynamicData,h=T.dashboardComponents,C=T.previewMode,M=T.sfProps,R=_.modal,A=R.teaser,w=!!R.selectedStep.isTeaser,S=R.selectedStep.elements.find((function(e){return e.type===s.IMAGE_COLUMN})),D=w?A.backgroundSettings:R.backgroundSettings,k=w?A.windowSettings:R.windowSettings,j=w?A.closeSettings:R.closeSettings,N=D.allowScrollingWhenPopupOpen,L=_.isPreviewMode||C,U=!!L||R.isVisible;document.body.style.overflow=U&&!N?"hidden":"auto";var B=D.overlay,W=D.border,F="center",H="center";switch(w?t.POPUP:R.type){case t.POPUP:var V=w?A.position:R.position;V===o.POPUP_TOP_LEFT?(F="flex-start",H="flex-start"):V===o.POPUP_TOP_CENTER?(F="center",H="flex-start"):V===o.POPUP_TOP_RIGHT?(F="flex-end",H="flex-start"):V===o.POPUP_MIDDLE_LEFT?(F="flex-start",H="center"):V===o.POPUP_MIDDLE_CENTER?(F="center",H="center"):V===o.POPUP_MIDDLE_RIGHT?(F="flex-end",H="center"):V===o.POPUP_BOTTOM_LEFT?(F="flex-start",H="flex-end"):V===o.POPUP_BOTTOM_CENTER?(F="center",H="flex-end"):V===o.POPUP_BOTTOM_RIGHT&&(F="flex-end",H="flex-end");break;case t.DRAWER:R.position===o.DRAWER_LEFT?(F="flex-start",H="center"):R.position===o.DRAWER_RIGHT&&(F="flex-end",H="center");break;case t.NOTIFICATION_BAR:R.position===o.NOTIFICATION_BAR_UP?(F="center",H="flex-start"):R.position===o.NOTIFICATION_BAR_DOWN&&(F="center",H="flex-end")}var G={position:"fixed",display:"flex",justifyContent:F,alignItems:H,top:0,left:0,right:0,bottom:0,zIndex:9995,overflow:"hidden",padding:"".concat(k.outerVerticalPadding,"px ").concat(k.outerHorizontalPadding,"px"),opacity:U?1:0,visibility:U?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},z={position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9996,backgroundColor:B?B.bgColor:"",opacity:B?(B.bgOpacity||100)/100:void 0},K={position:"relative",zIndex:9997,display:"flex",flexDirection:S?S.imagePosition===v.LEFT_ALIGN?"row-reverse":"row":"column",backgroundColor:D.bgColor,border:W?"".concat(W.borderWidth,"px ").concat(W.borderStyle," ").concat(W.borderColor):"",borderRadius:"".concat(k.borderRadius,"px"),width:k.takeFullWidth?"100%":void 0,maxWidth:"100%",maxHeight:"100%",height:k.takeFullHeight?"100%":k.maxHeight,boxShadow:D.shadow?"0 0 10px ".concat(D.shadow.color):"",opacity:U?1:0,visibility:U?"visible":"hidden",transition:"opacity 0.3s ease, visibility 0.3s ease"},X="";switch(null==S?void 0:S.verticalAlignment){case d.BOTTOM:X="flex-end";break;case d.MIDDLE:X="center";break;case d.TOP:X="flex-start"}var Y={width:k.takeFullWidth?"100%":k.maxWidth,maxWidth:"100%",overflow:"auto",display:"flex",flexDirection:"column",justifyContent:X,borderRadius:"".concat(k.borderRadius,"px")},q={position:j.closeButtonPositionType===r.TAKE_SPACE?"relative":"absolute",float:j.closeButtonPositionType===r.TAKE_SPACE?"right":"none",top:8,right:8,zIndex:9998},J={position:"sticky",padding:"6px",marginLeft:j.closeButtonPositionType===r.TAKE_SPACE?"14px":void 0,display:"flex",justifyContent:"center",alignItems:"center",border:(null===(b=j.iconSettings)||void 0===b?void 0:b.type)===n.WITH_BORDER?"1px solid ".concat(null===(g=j.iconSettings)||void 0===g?void 0:g.color):"",borderRadius:"50%",backgroundColor:null===(y=j.iconSettings)||void 0===y?void 0:y.backgroundColor},Q={color:null===(O=j.iconSettings)||void 0===O?void 0:O.color,cursor:"pointer"},Z=function(t){var o=t.type,i=h&&h[o]&&h[o].length?h[o][0]:null,r=i&&_.marketingPopupViewModel?e.createElement(i,{element:t,marketingPopupViewModel:_.marketingPopupViewModel}):void 0;switch(o){case s.TEXT:return e.createElement(a,{element:t});case s.IMAGE:return e.createElement(f,{element:t,popup:_,editModeChildren:r});case s.IMAGE_COLUMN:return e.createElement(x,{element:t,popup:_,editModeChildren:r});case s.BUTTON:return e.createElement(c,{element:t});case s.DIVIDER:return e.createElement(m,{element:t});case s.FORM:return e.createElement(E,{element:t,popup:_,isPreviewMode:!!L,sfProps:M});case s.PRODUCT_LIST:return e.createElement(P,{element:t,products:I.products[t.id],popup:_,editModeChildren:r,isPreviewMode:!!L});case s.SOCIAL_MEDIA:return e.createElement(u,{element:t,popup:_,editModeChildren:r});case s.SPACE:return e.createElement(p,{element:t})}},$=function(){L||R.isVisible&&(R.isVisible=!1,M&&M.onModalClose())};return e.createElement("div",{className:"ikas-popup-default-styles",id:"ikas-popup-container",style:G},e.createElement("div",{style:K,onClick:function(e){w&&(R.selectedStep=R.steps[0])}},j.closeButtonDisplayType!==l.ALWAYS_HIDDEN&&e.createElement("div",{style:q,onClick:function(){return $()}},e.createElement("div",{style:J,className:j.closeButtonDisplayType===l.VISIBLE_ON_HOVER?"visible-on-hover":""},e.createElement(i,{style:Q}))),e.createElement("div",{style:Y},R.selectedStep.elements.filter((function(e){return e.type!==s.IMAGE_COLUMN})).slice().sort((function(e,t){return e.order-t.order})).map((function(e){return Z(e)}))),S&&Z(S)),e.createElement("div",{style:z,onClick:function(){return $()}}))}));export{b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__spreadArray as t,__assign as e}from'./../../../ext/tslib/tslib.es6.mjs.js';import o from"react";import'./../../../ext/mobx-react-lite/es/index.js';import{getHorizontalAlignment as
|
|
1
|
+
import{__spreadArray as t,__assign as e}from'./../../../ext/tslib/tslib.es6.mjs.js';import o from"react";import'./../../../ext/mobx-react-lite/es/index.js';import{getHorizontalAlignment as n,injectFontScript as i}from"../../helpers/index.js";import{ProductListTypeEnum as l,ProductListLayoutEnum as r}from"../../models/modal/step/elements/product/index.js";import d from"../button-element-renderer/index.js";import{Navigation as a,Scrollbar as c}from"swiper/modules";import{Swiper as u,SwiperSlide as s}from"swiper/react";import v from"../../assets/left-arrow.js";import m from"../../assets/right-arrow.js";import{observer as g}from'./../../../ext/mobx-react-lite/es/observer.js';var p=g((function(g){var p,f=g.element,b=g.products,h=g.popup,x=g.editModeChildren,y=g.isPreviewMode,E=o.useState(null),C=E[0],w=E[1],P=o.useState(!1),S=P[0],R=P[1],z=o.useState(!1),j=z[0],W=z[1],I=f,k=[];if(b&&(k=I.listType===l.SPECIFIC?(null===(p=I.variantPairs)||void 0===p?void 0:p.length)?b.slice().sort((function(t,e){return I.variantPairs.findIndex((function(e){return e.variantId===t.variantId}))-I.variantPairs.findIndex((function(t){return t.variantId===e.variantId}))})):[]:t([],b,!0)),k.length>I.maxProductsToShow&&(k.length=I.maxProductsToShow),!(k&&k.length||!h.isPreviewMode)&&x)return x;if(!k||!k.length)return null;I.gapBetweenProductElements;var F=I.productDetailSettings.image,D=I.productDetailSettings.button,A=I.buttonSettings,N=I.productDetailSettings.discountRatio,_=I.productDetailSettings.finalPrice,B=I.productDetailSettings.originalPrice,M=I.productDetailSettings.name,L=n(I.horizontalAlignment),O=1;I.layout===r.ONE_COLUMN?O=1:I.layout===r.TWO_COLUMN?O=2:I.layout===r.THREE_COLUMN&&(O=3);var T={padding:"".concat(I.verticalPadding,"px ").concat(I.horizontalPadding,"px"),backgroundColor:I.productBgColor,width:"100%",height:"max-content"},U={display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",height:"100%"},H={display:"flex",justifyContent:L,alignItems:"center",width:"100%",backgroundColor:null==F?void 0:F.bgColor,borderRadius:(null==F?void 0:F.borderRadius)?"".concat(F.borderRadius,"px"):void 0},V={width:"".concat(null==F?void 0:F.maxWidth,"%"),objectFit:"contain",borderRadius:(null==F?void 0:F.borderRadius)?"".concat(F.borderRadius,"px"):void 0},$={display:"flex",flexDirection:"column",width:"100%"},q={display:"flex",flexDirection:"column"},G={backgroundColor:null==M?void 0:M.bgColor,color:null==M?void 0:M.color,fontFamily:M?i(M.fontFamily):void 0,fontSize:null==M?void 0:M.fontSize,fontWeight:null==M?void 0:M.fontWeight,padding:"".concat(null==M?void 0:M.verticalPadding,"px ").concat(null==M?void 0:M.horizontalPadding,"px"),width:"100%",textAlign:null==M?void 0:M.horizontalAlignment,border:"".concat(null==M?void 0:M.borderWidth,"px ").concat(null==M?void 0:M.borderStyle," ").concat(null==M?void 0:M.borderColor),borderRadius:null==M?void 0:M.borderRadius},J={backgroundColor:null==N?void 0:N.bgColor,color:null==N?void 0:N.color,fontFamily:N?i(N.fontFamily):void 0,fontSize:null==N?void 0:N.fontSize,fontWeight:null==N?void 0:N.fontWeight,padding:"".concat(null==N?void 0:N.verticalPadding,"px ").concat(null==N?void 0:N.horizontalPadding,"px"),width:"100%",textAlign:null==N?void 0:N.horizontalAlignment,border:"".concat(null==N?void 0:N.borderWidth,"px ").concat(null==N?void 0:N.borderStyle," ").concat(null==N?void 0:N.borderColor),borderRadius:null==N?void 0:N.borderRadius},K={textDecoration:"line-through",backgroundColor:null==B?void 0:B.bgColor,color:null==B?void 0:B.color,fontFamily:B?i(B.fontFamily):void 0,fontSize:null==B?void 0:B.fontSize,fontWeight:null==B?void 0:B.fontWeight,padding:"".concat(null==B?void 0:B.verticalPadding,"px ").concat(null==B?void 0:B.horizontalPadding,"px"),width:"100%",textAlign:null==B?void 0:B.horizontalAlignment,border:"".concat(null==B?void 0:B.borderWidth,"px ").concat(null==B?void 0:B.borderStyle," ").concat(null==B?void 0:B.borderColor),borderRadius:null==B?void 0:B.borderRadius},Q={backgroundColor:null==_?void 0:_.bgColor,color:null==_?void 0:_.color,fontFamily:_?i(_.fontFamily):void 0,fontSize:null==_?void 0:_.fontSize,fontWeight:null==_?void 0:_.fontWeight,padding:"".concat(null==_?void 0:_.verticalPadding,"px ").concat(null==_?void 0:_.horizontalPadding,"px"),width:"100%",textAlign:null==_?void 0:_.horizontalAlignment,border:"".concat(null==_?void 0:_.borderWidth,"px ").concat(null==_?void 0:_.borderStyle," ").concat(null==_?void 0:_.borderColor),borderRadius:null==_?void 0:_.borderRadius},X={width:"".concat(A.width,"%"),minWidth:"fit-content"},Y=e({display:"flex",justifyContent:"center",width:"100%",gap:"10px"},1===O?{position:"absolute",top:0,left:0,right:0,bottom:0,alignItems:"center",justifyContent:"space-between",zIndex:10}:void 0),Z={padding:10,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"100%",border:"1px solid #EEF2F6",cursor:"pointer"};return o.createElement("div",{style:T},o.createElement(u,{onSwiper:w,modules:[a,c],spaceBetween:I.gapBetweenProducts,slidesPerView:O,navigation:{nextEl:".custom-next-button",prevEl:".custom-prev-button"},scrollbar:void 0},k.map((function(t,e){return o.createElement(s,{style:{height:"auto"},key:t.variantId},o.createElement("div",{style:U,onClick:function(){return function(t){if(!y&&t.url){var e=document.createElement("a");e.href=t.url,e.target="_blank",e.click()}}(t)}},o.createElement("div",{style:$},!!F&&t.imageURL&&o.createElement("div",{style:H},o.createElement("img",{src:t.imageURL||void 0,alt:t.name||void 0,style:V})),(!!M||!!N)&&o.createElement("div",{style:q},!!M&&o.createElement("div",{style:G},t.name),!!N&&!!t.discountPrice&&o.createElement("div",{style:J},t.$discountRatio)),(!!B||!!_)&&o.createElement("div",null,!!B&&!!t.discountPrice&&o.createElement("div",{style:K},t.price),!!_&&o.createElement("div",{style:Q},t.discountPrice||t.price))),!!D&&o.createElement("div",{style:X}," ",o.createElement(d,{element:A})," ")))})),o.createElement("div",{style:Y},o.createElement("div",{className:"custom-prev-button",style:e(e({},Z),S?{opacity:.5,cursor:"not-allowed"}:{}),onClick:function(){C&&(C.slidePrev(),W(C.isEnd),R(C.isBeginning))}},o.createElement(v,null)),o.createElement("div",{className:"custom-next-button",style:e(e({},Z),j?{opacity:.5,cursor:"not-allowed"}:{}),onClick:function(){C&&(C.slideNext(),W(C.isEnd),R(C.isBeginning))}},o.createElement(m,null)))))}));export{p as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as o,observable as r}from"mobx";var t,l=function(t){this.bgColor=t.bgColor||"#FFFFFF",this.overlay=t.overlay?new i(t.overlay):new i({}),this.shadow=t.shadow?new e(t.shadow):null,this.border=t.border?new
|
|
1
|
+
import{makeObservable as o,observable as r}from"mobx";var t,l=function(t){this.bgColor=t.bgColor||"#FFFFFF",this.overlay=t.overlay?new i(t.overlay):new i({bgColor:"#364152",bgOpacity:40}),this.shadow=t.shadow?new e(t.shadow):null,this.border=t.border?new b(t.border):null,this.allowScrollingWhenPopupOpen=t.allowScrollingWhenPopupOpen||!1,o(this,{bgColor:r,overlay:r,shadow:r,border:r,allowScrollingWhenPopupOpen:r})},i=function(t){this.bgColor=t.bgColor||"",this.bgOpacity=t.bgOpacity||0,o(this,{bgOpacity:r,bgColor:r})},e=function(t){this.color=t.color||"",this.bgOpacity=t.bgOpacity||0,o(this,{bgOpacity:r,color:r})};!function(o){o.SOLID="solid",o.DASHED="dashed",o.DOTTED="dotted"}(t||(t={}));var b=function(l){this.borderColor=l.borderColor||"",this.borderWidth=l.borderWidth||0,this.borderStyle=l.borderStyle||t.SOLID,o(this,{borderColor:r,borderWidth:r,borderStyle:r})};export{l as BackgroundSettings,b as Border,t as ButtonBorderStyle,i as Overlay,e as Shadow};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as i,computed as e,action as P}from"mobx";import{PopupStep as n}from"./step/index.js";import{Teaser as s}from"./teaser/index.js";import{WindowSettings as o}from"./window-settings/index.js";import{Border as O,BackgroundSettings as T}from"./background-settings/index.js";import{CloseSettings as _}from"./close-settings/index.js";var
|
|
1
|
+
import{makeObservable as t,observable as i,computed as e,action as P}from"mobx";import{PopupStep as n}from"./step/index.js";import{Teaser as s}from"./teaser/index.js";import{WindowSettings as o}from"./window-settings/index.js";import{Border as O,BackgroundSettings as T}from"./background-settings/index.js";import{CloseSettings as _}from"./close-settings/index.js";var r,a;!function(t){t.POPUP="POPUP",t.NOTIFICATION_BAR="NOTIFICATION_BAR",t.DRAWER="DRAWER"}(r||(r={})),function(t){t.POPUP_TOP_LEFT="POPUP_TOP_LEFT",t.POPUP_TOP_CENTER="POPUP_TOP_CENTER",t.POPUP_TOP_RIGHT="POPUP_TOP_RIGHT",t.POPUP_MIDDLE_LEFT="POPUP_MIDDLE_LEFT",t.POPUP_MIDDLE_CENTER="POPUP_MIDDLE_CENTER",t.POPUP_MIDDLE_RIGHT="POPUP_MIDDLE_RIGHT",t.POPUP_BOTTOM_LEFT="POPUP_BOTTOM_LEFT",t.POPUP_BOTTOM_CENTER="POPUP_BOTTOM_CENTER",t.POPUP_BOTTOM_RIGHT="POPUP_BOTTOM_RIGHT",t.NOTIFICATION_BAR_UP="NOTIFICATION_BAR_UP",t.NOTIFICATION_BAR_DOWN="NOTIFICATION_BAR_DOWN",t.DRAWER_RIGHT="DRAWER_RIGHT",t.DRAWER_LEFT="DRAWER_LEFT"}(a||(a={}));var I=function(){function I(O){this.type=O.type||r.POPUP,this.teaser=O.teaser?new s(O.teaser):new s({backgroundSettings:new T({allowScrollingWhenPopupOpen:!0})}),this.windowSettings=O.windowSettings?new o(O.windowSettings):new o({borderRadius:4,outerVerticalPadding:12,outerHorizontalPadding:12}),this.backgroundSettings=new T(O.backgroundSettings||{}),this.closeSettings=new _(O.closeSettings||{}),this.steps=O.steps&&O.steps.length?O.steps.map((function(t){return new n(t)})):[new n({stepNumber:1,name:"TODO",isThankYouStep:!1})],this.isVisible=!1,this.selectedStep=this.steps[0],this.position=O.position?O.position:a.POPUP_MIDDLE_CENTER,t(this,{isVisible:i,type:i,position:i,teaser:i,windowSettings:i,backgroundSettings:i,closeSettings:i,steps:i,selectedStep:i,availablePositions:e,setInitialSettings:P,setInitialPosition:P,setInitialWindowSettings:P})}return I.prototype.setInitialSettings=function(t){void 0===t&&(t=!1),this.setInitialPosition(t),this.setInitialWindowSettings(t)},I.prototype.setInitialPosition=function(t){switch(this.type){case r.POPUP:this.position=t?a.POPUP_BOTTOM_RIGHT:a.POPUP_MIDDLE_CENTER;break;case r.NOTIFICATION_BAR:this.position=a.NOTIFICATION_BAR_UP;break;case r.DRAWER:this.position=a.DRAWER_RIGHT}},I.prototype.setInitialWindowSettings=function(t){switch(this.type){case r.POPUP:this.windowSettings=new o({borderRadius:4,outerVerticalPadding:12,outerHorizontalPadding:12}),t&&(this.backgroundSettings.allowScrollingWhenPopupOpen=!0,this.backgroundSettings.overlay=null,this.backgroundSettings.border=new O({borderWidth:1,borderColor:"#E3E8EF"}));break;case r.NOTIFICATION_BAR:this.windowSettings=new o({outerHorizontalPadding:0,outerVerticalPadding:0,borderRadius:4,takeFullWidth:!0});break;case r.DRAWER:this.windowSettings=new o({borderRadius:4,outerHorizontalPadding:0,outerVerticalPadding:0,takeFullHeight:!0})}},Object.defineProperty(I.prototype,"availablePositions",{get:function(){var t;return(t={})[r.POPUP]=[a.POPUP_TOP_LEFT,a.POPUP_TOP_CENTER,a.POPUP_TOP_RIGHT,a.POPUP_MIDDLE_LEFT,a.POPUP_MIDDLE_CENTER,a.POPUP_MIDDLE_RIGHT,a.POPUP_BOTTOM_LEFT,a.POPUP_BOTTOM_CENTER,a.POPUP_BOTTOM_RIGHT],t[r.NOTIFICATION_BAR]=[a.NOTIFICATION_BAR_UP,a.NOTIFICATION_BAR_DOWN],t[r.DRAWER]=[a.DRAWER_RIGHT,a.DRAWER_LEFT],t},enumerable:!1,configurable:!0}),I}();export{I as Modal,a as PopupPositonEnum,r as PopupTypeEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as i,observable as t}from"mobx";var n,o
|
|
1
|
+
import{makeObservable as i,observable as t}from"mobx";var n,a,o;!function(i){i.LEFT="LEFT",i.CENTER="CENTER",i.RIGHT="RIGHT"}(n||(n={})),function(i){i.TOP="TOP",i.MIDDLE="MIDDLE",i.BOTTOM="BOTTOM"}(a||(a={})),function(i){i.TEXT="TEXT",i.FORM="FORM",i.IMAGE="IMAGE",i.IMAGE_COLUMN="IMAGE_COLUMN",i.PRODUCT_LIST="PRODUCT_LIST",i.BUTTON="BUTTON",i.SOCIAL_MEDIA="SOCIAL_MEDIA",i.DIVIDER="DIVIDER",i.SPACE="SPACE"}(o||(o={}));var l=function(n){void 0===n&&(n={}),this.name=n.name||"Poppins",this.variants=n.variants||["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"],i(this,{name:t,variants:t})},r=function(o){var l,r,d,e,T;void 0===o&&(o={}),this.id=o.id||Date.now().toString(),this.order=o.order||0,this.width=null!==(l=o.width)&&void 0!==l?l:"100",this.verticalPadding=null!==(r=o.verticalPadding)&&void 0!==r?r:24,this.horizontalPadding=null!==(d=o.horizontalPadding)&&void 0!==d?d:24,this.outerVerticalPadding=null!==(e=o.outerVerticalPadding)&&void 0!==e?e:0,this.outerHorizontalPadding=null!==(T=o.outerHorizontalPadding)&&void 0!==T?T:0,this.horizontalAlignment=o.horizontalAlignment||n.CENTER,this.verticalAlignment=o.verticalAlignment||a.TOP,i(this,{id:t,order:t,width:t,verticalPadding:t,horizontalPadding:t,outerVerticalPadding:t,outerHorizontalPadding:t,horizontalAlignment:t,verticalAlignment:t})};export{r as BaseElement,n as ComponentHorizontalAlignmentEnum,a as ComponentVerticalAlignmentEnum,l as IkasPopupRendererFontFamily,o as PopupElementTypeEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as
|
|
1
|
+
import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as t}from"mobx";import{PopupElementTypeEnum as i,IkasPopupRendererFontFamily as l,BaseElement as n}from"../base/index.js";import{ButtonBorderStyle as d}from"../../../background-settings/index.js";var e=function(n){function e(o){var e,a,u,b,g,s,f,m,v=this;return(v=n.call(this,o)||this).text=o.text||"Button Text",v.type=i.BUTTON,v.color=o.color||"#FFFFFF",v.buttonBgColor=o.buttonBgColor||"",v.bgColor=o.bgColor||"",v.fontFamily=new l(o.fontFamily),v.fontSize=null!==(e=o.fontSize)&&void 0!==e?e:16,v.fontWeight=null!==(a=o.fontWeight)&&void 0!==a?a:400,v.borderRadius=null!==(u=o.borderRadius)&&void 0!==u?u:4,v.borderColor=o.borderColor||"",v.borderStyle=o.borderStyle||d.SOLID,v.borderWidth=null!==(b=o.borderWidth)&&void 0!==b?b:0,v.link=o.link||null,v.verticalPadding=null!==(g=o.verticalPadding)&&void 0!==g?g:12,v.horizontalPadding=null!==(s=o.horizontalPadding)&&void 0!==s?s:12,v.outerVerticalPadding=null!==(f=o.outerVerticalPadding)&&void 0!==f?f:12,v.outerHorizontalPadding=null!==(m=o.outerHorizontalPadding)&&void 0!==m?m:12,r(v,{text:t,color:t,buttonBgColor:t,bgColor:t,fontFamily:t,fontSize:t,fontWeight:t,borderRadius:t,borderColor:t,borderStyle:t,borderWidth:t,link:t}),v}return o(e,n),e}(n);export{e as ButtonElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as r}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as o,observable as d}from"mobx";import{PopupElementTypeEnum as i,BaseElement as e}from"../base/index.js";import{ButtonBorderStyle as t}from"../../../background-settings/index.js";var l=function(e){function l(r){void 0===r&&(r={});var l,n,b,s,a=this;return(a=e.call(this,r)||this).type=i.DIVIDER,a.bgColor=r.bgColor||"",a.borderWidth=null!==(l=r.borderWidth)&&void 0!==l?l:1,a.borderRadius=null!==(n=r.borderRadius)&&void 0!==n?n:0,a.borderColor=r.borderColor||"
|
|
1
|
+
import{__extends as r}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as o,observable as d}from"mobx";import{PopupElementTypeEnum as i,BaseElement as e}from"../base/index.js";import{ButtonBorderStyle as t}from"../../../background-settings/index.js";var l=function(e){function l(r){void 0===r&&(r={});var l,n,b,s,a=this;return(a=e.call(this,r)||this).type=i.DIVIDER,a.bgColor=r.bgColor||"",a.borderWidth=null!==(l=r.borderWidth)&&void 0!==l?l:1,a.borderRadius=null!==(n=r.borderRadius)&&void 0!==n?n:0,a.borderColor=r.borderColor||"",a.borderStyle=r.borderStyle||t.SOLID,a.verticalPadding=null!==(b=r.verticalPadding)&&void 0!==b?b:24,a.horizontalPadding=null!==(s=r.horizontalPadding)&&void 0!==s?s:24,o(a,{bgColor:d,borderWidth:d,borderRadius:d,borderColor:d,borderStyle:d}),a}return r(l,e),l}(e);export{l as DividerElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as
|
|
1
|
+
import{makeObservable as o,observable as r}from"mobx";import{IkasPopupRendererFontFamily as t}from"../../base/index.js";var i=function(i){var n,d;void 0===i&&(i={}),this.formInputSettings=i.formInputSettings?new e(i.formInputSettings):new e({borderColor:"#E3E8EF",focusBorderColor:"#000000"}),this.gapBetweenItems=null!==(n=i.gapBetweenItems)&&void 0!==n?n:12,this.fontFamily=new t(i.fontFamily),this.fontSize=null!==(d=i.fontSize)&&void 0!==d?d:14,o(this,{formInputSettings:r,gapBetweenItems:r,fontFamily:r,fontSize:r})},e=function(t){var i,e,n;void 0===t&&(t={}),this.bgColor=t.bgColor||"",this.borderWidth=null!==(i=t.borderWidth)&&void 0!==i?i:1,this.borderRadius=null!==(e=t.borderRadius)&&void 0!==e?e:4,this.borderColor=t.borderColor||"",this.focusBorderColor=t.focusBorderColor||"",this.height=null!==(n=t.height)&&void 0!==n?n:40,o(this,{bgColor:r,borderWidth:r,borderRadius:r,borderColor:r,focusBorderColor:r,height:r})};export{e as FormInputSettings,i as FormSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as t,__assign as r}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as o,observable as e,action as n}from"mobx";import{PopupElementTypeEnum as i,BaseElement as s}from"../base/index.js";import{ButtonElement as d}from"../button/index.js";import{FormSettings as m}from"./form-settings/index.js";import{CustomerNameFormItem as u}from"./customer-name/index.js";import{CustomerSurnameFormItem as E}from"./customer-surname/index.js";import{CustomerEmailFormItem as a}from"./customer-email/index.js";import{CustomerPhoneFormItem as c}from"./customer-phone/index.js";import{CustomerBirthdayFormItem as l}from"./customer-birthday/index.js";import{CustomerGenderFormItem as h}from"./customer-gender/index.js";import{CheckboxFormItem as M}from"./checkbox/index.js";import{CustomerAttributeFormItem as f}from"./customer-attribute/index.js";var R;!function(t){t.CUSTOMER_NAME="CUSTOMER_NAME",t.CUSTOMER_SURNAME="CUSTOMER_SURNAME",t.CUSTOMER_EMAIL="CUSTOMER_EMAIL",t.CUSTOMER_PHONE="CUSTOMER_PHONE",t.CUSTOMER_BIRTHDAY="CUSTOMER_BIRTHDAY",t.CUSTOMER_GENDER="CUSTOMER_GENDER",t.CHECKBOX_FORM_ITEM="CHECKBOX_FORM_ITEM",t.CUSTOMER_ATTRIBUTE="CUSTOMER_ATTRIBUTE"}(R||(R={}));var T=function(r){function s(t){void 0===t&&(t={});var s,u,E=this;return(E=r.call(this,t)||this).type=i.FORM,E.rows=t.rows?t.rows.map((function(t){return new
|
|
1
|
+
import{__extends as t,__assign as r}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as o,observable as e,action as n}from"mobx";import{PopupElementTypeEnum as i,BaseElement as s}from"../base/index.js";import{ButtonElement as d}from"../button/index.js";import{FormSettings as m}from"./form-settings/index.js";import{CustomerNameFormItem as u}from"./customer-name/index.js";import{CustomerSurnameFormItem as E}from"./customer-surname/index.js";import{CustomerEmailFormItem as a}from"./customer-email/index.js";import{CustomerPhoneFormItem as c}from"./customer-phone/index.js";import{CustomerBirthdayFormItem as l}from"./customer-birthday/index.js";import{CustomerGenderFormItem as h}from"./customer-gender/index.js";import{CheckboxFormItem as M}from"./checkbox/index.js";import{CustomerAttributeFormItem as f}from"./customer-attribute/index.js";var R;!function(t){t.CUSTOMER_NAME="CUSTOMER_NAME",t.CUSTOMER_SURNAME="CUSTOMER_SURNAME",t.CUSTOMER_EMAIL="CUSTOMER_EMAIL",t.CUSTOMER_PHONE="CUSTOMER_PHONE",t.CUSTOMER_BIRTHDAY="CUSTOMER_BIRTHDAY",t.CUSTOMER_GENDER="CUSTOMER_GENDER",t.CHECKBOX_FORM_ITEM="CHECKBOX_FORM_ITEM",t.CUSTOMER_ATTRIBUTE="CUSTOMER_ATTRIBUTE"}(R||(R={}));var T=function(r){function s(t){void 0===t&&(t={});var s,u,E=this;return(E=r.call(this,t)||this).type=i.FORM,E.rows=t.rows?t.rows.map((function(t){return new C(t)})):[],E.formSettings=t.formSettings||new m,E.buttonSettings=t.buttonSettings||new d({outerHorizontalPadding:0,outerVerticalPadding:0,buttonBgColor:"#000000",borderColor:"#000000"}),E.bgColor=t.bgColor||"",E.verticalPadding=null!==(s=t.verticalPadding)&&void 0!==s?s:12,E.horizontalPadding=null!==(u=t.horizontalPadding)&&void 0!==u?u:12,o(E,{rows:e,formSettings:e,buttonSettings:e,bgColor:e,addNewElement:n.bound}),0===E.rows.length&&E.addNewElement(R.CUSTOMER_EMAIL),E}return t(s,r),s.prototype.addNewElement=function(t){var r=new C({order:this.rows.length,columns:[new S({type:t,order:0})]});this.rows.push(r)},s}(s),C=function(){function t(t){var r;void 0===t&&(t={}),this.id=t.id||Date.now().toString(),this.order=null!==(r=t.order)&&void 0!==r?r:0,this.columns=t.columns?t.columns.map((function(t){return new S(t)})):[],o(this,{id:e,order:e,columns:e,addNewElement:n.bound,changeColumnSort:n.bound})}return t.prototype.addNewElement=function(t){this.columns.push(new S({type:t,order:this.columns.length}))},t.prototype.changeColumnSort=function(){this.columns.forEach((function(t,r){0===r?t.order=t.order+1:1===r&&(t.order=t.order-1)})),this.columns=this.columns.sort((function(t,r){return t.order-r.order}))},t}(),S=function(){function t(t){var r;void 0===t&&(t={}),this.id=t.id||Date.now().toString(),this.order=null!==(r=t.order)&&void 0!==r?r:0,this.type=t.type||R.CUSTOMER_NAME,this.formItem=this.setFormItems(t.formItem),o(this,{id:e,order:e,type:e,formItem:e,setFormItems:n.bound})}return t.prototype.setFormItems=function(t){switch(this.type){case R.CUSTOMER_NAME:return new u(r({},t));case R.CUSTOMER_SURNAME:return new E(r({},t));case R.CUSTOMER_EMAIL:return new a(r({},t));case R.CUSTOMER_PHONE:return new c(r({},t));case R.CUSTOMER_BIRTHDAY:return new l(r({},t));case R.CUSTOMER_GENDER:return new h(r({},t));case R.CHECKBOX_FORM_ITEM:return new M(r({},t));case R.CUSTOMER_ATTRIBUTE:return new f(r({},t))}},t}(),p=function(t){void 0===t&&(t={}),this.text=t.text||"Input Label",o(this,{text:e})},O=function(t){void 0===t&&(t={}),this.validationErrorMessage=t.validationErrorMessage||"It's required to fill this field",this.hasError=t.hasError||!1,o(this,{validationErrorMessage:e,hasError:e})};export{S as FormColumn,T as FormElement,R as FormItemTypeEnum,C as FormRow,p as InputLabel,O as RequiredInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as i}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as n,observable as t,computed as
|
|
1
|
+
import{__extends as i}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as n,observable as t,computed as o}from"mobx";import{PopupElementTypeEnum as e,BaseElement as a}from"../base/index.js";import{IMAGE_SIZE as r}from"../image/index.js";var d;!function(i){i.LEFT_ALIGN="LEFT_ALIGN",i.RIGTH_ALIGN="RIGTH_ALIGN"}(d||(d={}));var l=function(a){function l(i){var r,l,m=this;return(m=a.call(this,i)||this).type=e.IMAGE_COLUMN,m.imagePosition=i.imagePosition||d.RIGTH_ALIGN,m.imageId=i.imageId||null,m.bgColor=i.bgColor||"",m.cdnURL=null,m.merchantId=null,m.link=i.link||null,m.verticalPadding=null!==(r=i.verticalPadding)&&void 0!==r?r:24,m.horizontalPadding=null!==(l=i.horizontalPadding)&&void 0!==l?l:24,n(m,{imagePosition:t,imageId:t,cdnURL:t,merchantId:t,link:t,src:o}),m}return i(l,a),Object.defineProperty(l.prototype,"src",{get:function(){if(this.imageId)return this.imageId.includes("/")?"".concat(this.cdnURL,"images/").concat(this.merchantId,"/").concat(this.imageId,"/image_").concat(r,".jpeg"):void 0},enumerable:!1,configurable:!0}),l}(a);export{l as ImageColumnElement,d as ImageColumnPositionEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as i,observable as
|
|
1
|
+
import{makeObservable as i,observable as o}from"mobx";import{TextElement as t}from"../../text/index.js";import{IkasPopupRendererFontFamily as n}from"../../base/index.js";var a,e=function(n){void 0===n&&(n={}),this.image=n.image?new r(n.image):new r({}),this.name=n.name?new t(n.name):new t({horizontalPadding:0,verticalPadding:6}),this.discountRatio=n.discountRatio?new t(n.discountRatio):new t({horizontalPadding:0,verticalPadding:8}),this.originalPrice=n.originalPrice?new t(n.originalPrice):new t({horizontalPadding:0,verticalPadding:2,fontSize:14,color:"#697586"}),this.finalPrice=n.finalPrice?new t(n.finalPrice):new t({horizontalPadding:0,verticalPadding:2}),this.button=n.button?new l(n.button):new l({}),i(this,{image:o,name:o,discountRatio:o,originalPrice:o,finalPrice:o,button:o})},r=function(t){var n,a;this.bgColor=t.bgColor||"",this.maxWidth=null!==(n=t.maxWidth)&&void 0!==n?n:100,this.borderRadius=null!==(a=t.borderRadius)&&void 0!==a?a:0,i(this,{bgColor:o,maxWidth:o,borderRadius:o})},d=function(t){var a;void 0===t&&(t={}),this.color=t.color||"#000000",this.bgColor=t.bgColor||"",this.fontFamily=new n(t.fontFamily),this.fontSize=null!==(a=t.fontSize)&&void 0!==a?a:24,i(this,{color:o,bgColor:o,fontFamily:o,fontSize:o})};!function(i){i.ADD_TO_CART="ADD_TO_CART",i.NAVIGATE_TO_PRODUCT_DETAIL="NAVIGATE_TO_PRODUCT_DETAIL"}(a||(a={}));var l=function(t){void 0===t&&(t={}),this.text=t.text||"Button Text",this.action=t.action||a.ADD_TO_CART,i(this,{text:o,action:o})};export{a as ProductActionTypeEnum,l as ProductButtonSettings,e as ProductDetailSettings,d as ProductDiscountRatioSettings,r as ProductImageSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as t}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as o,observable as i}from"mobx";import{PopupElementTypeEnum as n,BaseElement as e}from"../base/index.js";import{ProductDetailSettings as r}from"./detail-settings/index.js";import{ButtonElement as d}from"../button/index.js";var u,a,E;!function(t){t.ASC_AVERAGE_RATING="ASC_AVERAGE_RATING",t.DESC_AVERAGE_RATING="DESC_AVERAGE_RATING",t.ASC_CREATED_AT="ASC_CREATED_AT",t.DESC_CREATED_AT="DESC_CREATED_AT",t.ASC_DISCOUNT_RATIO="ASC_DISCOUNT_RATIO",t.DESC_DISCOUNT_RATIO="DESC_DISCOUNT_RATIO",t.ASC_NAME="ASC_NAME",t.DESC_NAME="DESC_NAME",t.ASC_PRICE="ASC_PRICE",t.DESC_PRICE="DESC_PRICE",t.ASC_REVIEW_COUNT="ASC_REVIEW_COUNT",t.DESC_REVIEW_COUNT="DESC_REVIEW_COUNT",t.ASC_SALE_COUNT="ASC_SALE_COUNT",t.DESC_SALE_COUNT="DESC_SALE_COUNT"}(u||(u={})),function(t){t.ALL="ALL",t.SPECIFIC="SPECIFIC",t.CATEGORY="CATEGORY",t.LAST_VIEWED="LAST_VIEWED"}(a||(a={})),function(t){t.ONE_COLUMN="ONE_COLUMN",t.TWO_COLUMN="TWO_COLUMN",t.THREE_COLUMN="THREE_COLUMN"}(E||(E={}));var
|
|
1
|
+
import{__extends as t}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as o,observable as i}from"mobx";import{PopupElementTypeEnum as n,BaseElement as e}from"../base/index.js";import{ProductDetailSettings as r}from"./detail-settings/index.js";import{ButtonElement as d}from"../button/index.js";var u,a,E;!function(t){t.ASC_AVERAGE_RATING="ASC_AVERAGE_RATING",t.DESC_AVERAGE_RATING="DESC_AVERAGE_RATING",t.ASC_CREATED_AT="ASC_CREATED_AT",t.DESC_CREATED_AT="DESC_CREATED_AT",t.ASC_DISCOUNT_RATIO="ASC_DISCOUNT_RATIO",t.DESC_DISCOUNT_RATIO="DESC_DISCOUNT_RATIO",t.ASC_NAME="ASC_NAME",t.DESC_NAME="DESC_NAME",t.ASC_PRICE="ASC_PRICE",t.DESC_PRICE="DESC_PRICE",t.ASC_REVIEW_COUNT="ASC_REVIEW_COUNT",t.DESC_REVIEW_COUNT="DESC_REVIEW_COUNT",t.ASC_SALE_COUNT="ASC_SALE_COUNT",t.DESC_SALE_COUNT="DESC_SALE_COUNT"}(u||(u={})),function(t){t.ALL="ALL",t.SPECIFIC="SPECIFIC",t.CATEGORY="CATEGORY",t.LAST_VIEWED="LAST_VIEWED"}(a||(a={})),function(t){t.ONE_COLUMN="ONE_COLUMN",t.TWO_COLUMN="TWO_COLUMN",t.THREE_COLUMN="THREE_COLUMN"}(E||(E={}));var l=10,s=function(e){function l(t){void 0===t&&(t={});var l,s,C,_,c,A,S,T,I=this;return(I=e.call(this,t)||this).type=n.PRODUCT_LIST,I.listType=t.listType||a.ALL,I.sortType=t.sortType||u.ASC_CREATED_AT,I.maxProductsToShow=null!==(l=t.maxProductsToShow)&&void 0!==l?l:10,I.categoryId=null!==(s=t.categoryId)&&void 0!==s?s:null,I.variantPairs=null!==(C=t.variantPairs)&&void 0!==C?C:null,I.layout=null!==(_=t.layout)&&void 0!==_?_:E.TWO_COLUMN,I.productDetailSettings=t.productDetailSettings?new r(t.productDetailSettings):new r,I.buttonSettings=t.buttonSettings?new d(t.buttonSettings):new d({outerHorizontalPadding:0,buttonBgColor:"#000000",borderColor:"#000000"}),I.productBgColor=t.productBgColor||"",I.gapBetweenProductElements=null!==(c=t.gapBetweenProductElements)&&void 0!==c?c:12,I.gapBetweenProducts=null!==(A=t.gapBetweenProducts)&&void 0!==A?A:12,I.verticalPadding=null!==(S=t.verticalPadding)&&void 0!==S?S:12,I.horizontalPadding=null!==(T=t.horizontalPadding)&&void 0!==T?T:12,o(I,{type:i,listType:i,sortType:i,maxProductsToShow:i,categoryId:i,variantPairs:i,layout:i,productDetailSettings:i,buttonSettings:i,productBgColor:i,gapBetweenProductElements:i,gapBetweenProducts:i}),I}return t(l,e),l}(e),C=function(t){var n;this.productId=t.productId,this.variantId=t.variantId,this.order=null!==(n=t.order)&&void 0!==n?n:0,this.productListElementId=t.productListElementId,o(this,{productId:i,variantId:i,order:i,productListElementId:i})},_=function(){function t(t){void 0===t&&(t={}),this.productId=t.productId||Date.now().toString(),this.variantId=t.variantId||Date.now().toString(),this.name=t.name||"",this.price=t.price||"",this.discountPrice=t.discountPrice||null,this.discountRatio=t.discountRatio||null,this.imageURL=t.imageURL?"".concat(t.imageURL,"/image_").concat(1080,".jpeg"):null,this.url=t.url||null,o(this,{productId:i,variantId:i,name:i,price:i,discountPrice:i,discountRatio:i,imageURL:i,url:i})}return Object.defineProperty(t.prototype,"$discountRatio",{get:function(){return this.discountRatio?"%"+this.discountRatio:null},enumerable:!1,configurable:!0}),t}();export{l as MAX_PRODUCT_COUNT,_ as PopupProduct,C as PopupVariantPair,s as ProductListElement,E as ProductListLayoutEnum,u as ProductListSortTypeEnum,a as ProductListTypeEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as
|
|
1
|
+
import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as i}from"mobx";import{PopupElementTypeEnum as t,IkasPopupRendererFontFamily as l,ComponentHorizontalAlignmentEnum as d,BaseElement as e}from"../base/index.js";import{ButtonBorderStyle as n}from"../../../background-settings/index.js";var a=function(e){function a(o){var a,u,b,s,g,m,f,h,v=this;return(v=e.call(this,o)||this).type=t.TEXT,v.text=o.text||"This is a text",v.color=o.color||"#000000",v.bgColor=o.bgColor||"",v.fontFamily=new l(o.fontFamily),v.fontSize=null!==(a=o.fontSize)&&void 0!==a?a:16,v.fontWeight=null!==(u=o.fontWeight)&&void 0!==u?u:400,v.borderRadius=null!==(b=o.borderRadius)&&void 0!==b?b:4,v.borderColor=o.borderColor||"#000000",v.borderStyle=o.borderStyle||n.SOLID,v.borderWidth=null!==(s=o.borderWidth)&&void 0!==s?s:0,v.verticalPadding=null!==(g=o.verticalPadding)&&void 0!==g?g:12,v.horizontalPadding=null!==(m=o.horizontalPadding)&&void 0!==m?m:12,v.outerHorizontalPadding=null!==(f=o.outerHorizontalPadding)&&void 0!==f?f:0,v.outerVerticalPadding=null!==(h=o.outerVerticalPadding)&&void 0!==h?h:0,v.horizontalAlignment=o.horizontalAlignment||d.LEFT,r(v,{text:i,color:i,bgColor:i,fontFamily:i,fontSize:i,fontWeight:i,borderRadius:i,borderColor:i,borderStyle:i,borderWidth:i}),v}return o(a,e),a}(e);export{a as TextElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as e,observable as t,action as s}from"mobx";import{TextElement as n}from"./elements/text/index.js";import{FormElement as r}from"./elements/form/index.js";import{ImageElement as i}from"./elements/image/index.js";import{ProductListElement as
|
|
1
|
+
import{makeObservable as e,observable as t,action as s}from"mobx";import{TextElement as n}from"./elements/text/index.js";import{FormElement as r}from"./elements/form/index.js";import{ImageElement as i}from"./elements/image/index.js";import{ProductListElement as o}from"./elements/product/index.js";import{ButtonElement as m}from"./elements/button/index.js";import{SocialMediaElement as a}from"./elements/social/index.js";import{DividerElement as h}from"./elements/divider/index.js";import{SpaceElement as u}from"./elements/space/index.js";import{PopupElementTypeEnum as l}from"./elements/base/index.js";import{ImageColumnElement as p}from"./elements/image-column/index.js";var d=function(){function d(r){var i=this;this.id=r.id||Date.now().toString(),this.stepNumber=r.stepNumber||0,this.name=r.name||"",this.isThankYouStep=r.isThankYouStep||!1,this.isTeaser=r.isTeaser||!1,this.elements=r.elements&&r.elements.length?r.elements.map((function(e){return i.setContent(e)})):[],this.isTeaser&&(this.id=this.id+"-teaser"),this.isTeaser&&!this.elements.length&&this.elements.push(new n({order:0})),e(this,{stepNumber:t,name:t,isThankYouStep:t,isTeaser:t,elements:t,setContent:s.bound,addNewElement:s.bound})}return d.prototype.setContent=function(e){switch(e.type){case l.TEXT:return new n(e||{});case l.FORM:return new r(e||{});case l.IMAGE:return new i(e||{});case l.IMAGE_COLUMN:return new p(e||{});case l.PRODUCT_LIST:return new o(e||{});case l.BUTTON:return new m(e||{});case l.SOCIAL_MEDIA:return new a(e||{});case l.DIVIDER:return new h(e||{});case l.SPACE:return new u(e||{})}},d.prototype.addNewElement=function(e){var t=this.elements.length;switch(e){case l.TEXT:this.elements.push(new n({order:t}));break;case l.FORM:this.elements.push(new r({order:t}));break;case l.IMAGE:this.elements.push(new i({order:t}));break;case l.IMAGE_COLUMN:this.elements.push(new p({order:t}));break;case l.PRODUCT_LIST:this.elements.push(new o({order:t}));break;case l.BUTTON:this.elements.push(new m({order:t,buttonBgColor:"#000000",borderColor:"#000000"}));break;case l.SOCIAL_MEDIA:this.elements.push(new a({order:t}));break;case l.DIVIDER:this.elements.push(new h({order:t,borderColor:"#E3E8EF"}));break;case l.SPACE:this.elements.push(new u({order:t}))}},d}();export{d as PopupStep};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as i,observable as t}from"mobx";import{WindowSettings as s}from"../window-settings/index.js";import{BackgroundSettings as e}from"../background-settings/index.js";import{CloseSettings as n}from"../close-settings/index.js";import{PopupStep as o}from"../step/index.js";import{PopupPositonEnum as _}from"../index.js";var
|
|
1
|
+
import{makeObservable as i,observable as t}from"mobx";import{WindowSettings as s}from"../window-settings/index.js";import{BackgroundSettings as e}from"../background-settings/index.js";import{CloseSettings as n}from"../close-settings/index.js";import{PopupStep as o}from"../step/index.js";import{PopupPositonEnum as _}from"../index.js";var r;!function(i){i.VISIBLE_AT_FIRST_AND_AT_THE_END="VISIBLE_AT_FIRST_AND_AT_THE_END",i.VISIBLE_AT_FIRST="VISIBLE_AT_FIRST",i.VISIBLE_AT_THE_END="VISIBLE_AT_THE_END"}(r||(r={}));var T=function(T){this.isActive=T.isActive||null,this.step=T.step?new o(T.step):new o({isTeaser:!0,stepNumber:1,name:"Teaser"}),this.windowSettings=new s(T.windowSettings||{maxHeight:150,maxWidth:350,borderRadius:4,outerVerticalPadding:12,outerHorizontalPadding:12}),this.backgroundSettings=new e(T.backgroundSettings||{}),this.closeSettings=new n(T.closeSettings||{}),this.visibleCondition=T.visibleCondition||r.VISIBLE_AT_FIRST_AND_AT_THE_END,this.position=T.position||_.POPUP_BOTTOM_RIGHT,i(this,{isActive:t,step:t,windowSettings:t,backgroundSettings:t,closeSettings:t,visibleCondition:t,position:t})};export{T as Teaser,r as VisibilityConditionEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as i}from"mobx";var a=function(a){this.maxHeight=a.maxHeight||435,this.maxWidth=a.maxWidth||400,this.borderRadius=a.borderRadius
|
|
1
|
+
import{makeObservable as t,observable as i}from"mobx";var a=function(a){var d,e,l;this.maxHeight=a.maxHeight||435,this.maxWidth=a.maxWidth||400,this.borderRadius=null!==(d=a.borderRadius)&&void 0!==d?d:0,this.outerVerticalPadding=null!==(e=a.outerVerticalPadding)&&void 0!==e?e:0,this.outerHorizontalPadding=null!==(l=a.outerHorizontalPadding)&&void 0!==l?l:0,this.takeFullHeight=a.takeFullHeight||!1,this.takeFullWidth=a.takeFullWidth||!1,t(this,{maxHeight:i,maxWidth:i,borderRadius:i,outerVerticalPadding:i,outerHorizontalPadding:i,takeFullHeight:i,takeFullWidth:i})};export{a as WindowSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as e,observable as o}from"mobx";var
|
|
1
|
+
import{makeObservable as e,observable as o}from"mobx";var r;!function(e){e.ON_PAGE_LOAD="ON_PAGE_LOAD",e.ON_PAGE_SCROLL="ON_PAGE_SCROLL",e.BEFORE_PAGE_CLOSE="BEFORE_PAGE_CLOSE"}(r||(r={}));var t=function(t){var l,O,_;this.type=t.type||r.ON_PAGE_LOAD,this.afterSeconds=null!==(l=t.afterSeconds)&&void 0!==l?l:0,this.afterScroll=null!==(O=t.afterScroll)&&void 0!==O?O:0,this.beforePageClose=null!==(_=t.beforePageClose)&&void 0!==_?_:0,e(this,{type:o,afterSeconds:o,afterScroll:o,beforePageClose:o})};export{t as VisibilityCondition,r as VisibilityConditionTypeEnum};
|
|
@@ -70,16 +70,6 @@
|
|
|
70
70
|
background-color: #cdd5df !important;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
.ikas-popup-datepicker input {
|
|
74
|
-
outline: none !important;
|
|
75
|
-
border: none !important;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ikas-popup-datepicker input:focus-visible {
|
|
79
|
-
outline: none !important;
|
|
80
|
-
border: none !important;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
73
|
.visible-on-hover {
|
|
84
74
|
opacity: 0;
|
|
85
75
|
|