@bikdotai/bik-component-library 0.0.508-9-beta → 0.0.508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
2
+ import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
3
3
  declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
4
4
  export default EventsTrigger;
@@ -1,2 +1,2 @@
1
- import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
1
+ import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
2
2
  export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
2
+ import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
3
3
  declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
4
4
  export default IGTrigger;
@@ -1,2 +1,2 @@
1
- import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
1
+ import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
2
2
  export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DropdownOption } from "../../../dropdown/type";
3
- import { QueryBuilderProperty } from "../../Types/QueryBuilder.type";
4
- import { QueryBuilderNodeProps } from "../../Types/QueryBuilderNodeProps.type";
3
+ import { QueryBuilderProperty } from "../../types/QueryBuilder.type";
4
+ import { QueryBuilderNodeProps } from "../../types/QueryBuilderNodeProps.type";
5
5
  declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
6
6
  cacheKey: string;
7
7
  propertyAddBtnText: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Menus: ({
3
2
  displayName: string;
4
3
  key: number;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),t=require("../../utils/StringUtils.js"),o=require("../modals/styledModal.js"),a=require("../template-preview/models/Channels.js"),s=require("./context/templateModalContext.js"),r=require("./modalElements/Footer.js"),i=require("./modalElements/TemplateSelectModalContent.js"),n=require("./utils/convertPlaceholdersToBikDropdown.js");exports.TemplateContextMapper=d=>{let{selectedTemplate:u,closeDialog:c,showVariableMapping:p,channel:v,htmlContent:m,templateVariables:h,onTemplateSelect:C,globalPlaceholders:E,showOnlyContent:S,whatsappSpecificPickerMeta:x,zIndex:b,showVariableModal:g,variableList:P,discountCode:f,setDiscountCode:T,onBackPress:j,enabledCustomText:M,variableListForImage:I,showSampleValues:L,disableEditVariable:y,pod:N,extras:A,pickerConf:w,selectedCarouselProducts:V,disableEditExpiry:D,cardWidth:k,onDeleteSelectedProducts:q,fileName:H,setFileName:_}=d;var F,O,W,Y,B,z;l.useEffect((()=>{K(m)}),[m]);const R=v===a.CHANNEL_TYPE.WHATSAPP&&"CAROUSEL"===(null===(O=null===(F=null==u?void 0:u.components)||void 0===F?void 0:F[1])||void 0===O?void 0:O.type),U=null==u?void 0:u.isProductCarouselType,[$,G]=l.useState(v===a.CHANNEL_TYPE.EMAIL||R?"desktop":"mobile"),[J,K]=l.useState(m),[Q,X]=l.useState(!1),[Z,ee]=l.useState([]),[le,te]=l.useState(u),[oe,ae]=l.useState([]),[se,re]=l.useState(!1),[ie,ne]=l.useState(null!=h?h:[]),[de,ue]=l.useState(!1),[ce,pe]=l.useState(-1),[ve,me]=l.useState([]);l.useEffect((()=>{V?me(V):U&&me([])}),[V]),l.useEffect((()=>{var e;if(!se&&U&&(!V||0===me.length)){const l=null===(e=null==le?void 0:le.components)||void 0===e?void 0:e[1].cards,t=[];null==l||l.forEach((e=>{var l;null===(l=null==e?void 0:e.components)||void 0===l||l.forEach((e=>{var l,o,a;"HEADER"===e.type&&t.push(null!==(a=null===(o=null===(l=e.example)||void 0===l?void 0:l.header_handle)||void 0===o?void 0:o[0])&&void 0!==a?a:"")}))})),ae(t),re(!0)}}),[se]);const he=l.useMemo((()=>n.convertPlaceholdersToBikDropdown(E)),[E]);return e.jsx(s.TemplateModalContext.Provider,Object.assign({value:{template:le,setTemplate:te,device:$,setDevice:G,display_content:J,setDisplayContent:K,originalVariableList:ie,setOriginalVariableList:ne,isError:Q,setIsError:X,channel:v,globalNormalizedPlaceholders:he,templateSelectionTriggered:de,setTemplateSelectionTriggered:ue,enabledCustomText:M,disableEditVariable:y,pod:N,extras:A,isWhatsappCarousel:R,selectedCarouselIndex:ce,setSelectedCarouselIndex:pe,isProductCarouselType:U,cardCount:R?null===(Y=null===(W=u.components)||void 0===W?void 0:W[1].cards)||void 0===Y?void 0:Y.length:void 0,errorIndexes:Z,setErrorIndexes:ee,pickerConf:w,carouselProducts:ve,setCarouselProducts:me,disableEditExpiry:D,cardWidth:k,cardImages:oe,onDeleteSelectedProducts:q}},{children:S?e.jsx(i.default,{channel:a.CHANNEL_TYPE.EMAIL,hideHeader:!0}):e.jsxs(o.StyledModal,Object.assign({zIndex:b,centralContainerStyles:{width:R?900:v===a.CHANNEL_TYPE.EMAIL&&p?1e3:800},open:!0,onClose:()=>{null==c||c()},headingTitle:null==le?void 0:le.label,headingSubtitle:v===a.CHANNEL_TYPE.WHATSAPP?`${t.default.capitaliseFirstLetterOfString(null!==(B=null==le?void 0:le.category)&&void 0!==B?B:"")} • ${null!==(z=null==le?void 0:le.templateCategory)&&void 0!==z?z:""}`:"",onBackPress:()=>{null==j||j()}},{children:[e.jsx(i.default,{showSampleValues:L,showVariableMapping:p,channel:v,whatsappSpecificPickerMeta:x,showVariableModal:g,variableList:P,discountCode:f,setDiscountCode:T,variableListForImage:I&&(null==I?void 0:I.length)>0?I:P,fileName:H,setFileName:e=>{null==_||_(e)}}),C?e.jsx(r.default,{isWhatsappCarousel:null!=R&&R,onSelect:function(){if((null==ve?void 0:ve.length)<1&&U)return void X(!0);const e=null==C?void 0:C(le,ie,null!=J?J:"",ve);(null==e?void 0:e.errorIndexes)||(null==e?void 0:e.error)?((null==e?void 0:e.errorIndexes)&&ee(e.errorIndexes),(null==e?void 0:e.error)&&X(!!(null==e?void 0:e.error))):ue(!0)}}):e.jsx(e.Fragment,{})]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),l=require("react"),t=require("../../utils/StringUtils.js"),a=require("../modals/styledModal.js"),o=require("../template-preview/models/Channels.js"),r=require("./context/templateModalContext.js"),s=require("./modalElements/Footer.js"),i=require("./modalElements/TemplateSelectModalContent.js"),n=require("./utils/convertPlaceholdersToBikDropdown.js"),d=require("./utils/validateName.js");exports.TemplateContextMapper=u=>{let{selectedTemplate:c,closeDialog:p,showVariableMapping:v,channel:m,htmlContent:h,templateVariables:C,onTemplateSelect:E,globalPlaceholders:S,showOnlyContent:x,whatsappSpecificPickerMeta:b,zIndex:g,showVariableModal:P,variableList:f,discountCode:T,setDiscountCode:j,onBackPress:I,enabledCustomText:M,variableListForImage:N,showSampleValues:L,disableEditVariable:y,pod:A,extras:w,pickerConf:V,selectedCarouselProducts:q,disableEditExpiry:D,cardWidth:k,onDeleteSelectedProducts:H,fileName:_,setFileName:F}=u;var O,W,Y,B,z,R;l.useEffect((()=>{Q(h)}),[h]);const U=m===o.CHANNEL_TYPE.WHATSAPP&&"CAROUSEL"===(null===(W=null===(O=null==c?void 0:c.components)||void 0===O?void 0:O[1])||void 0===W?void 0:W.type),$=null==c?void 0:c.isProductCarouselType,[G,J]=l.useState(m===o.CHANNEL_TYPE.EMAIL||U?"desktop":"mobile"),[K,Q]=l.useState(h),[X,Z]=l.useState(!1),[ee,le]=l.useState([]),[te,ae]=l.useState(c),[oe,re]=l.useState([]),[se,ie]=l.useState(!1),[ne,de]=l.useState(null!=C?C:[]),[ue,ce]=l.useState(!1),[pe,ve]=l.useState(-1),[me,he]=l.useState([]),[Ce,Ee]=l.useState(_);l.useEffect((()=>{q?he(q):$&&he([])}),[q]),l.useEffect((()=>{var e;if(!se&&$&&(!q||0===he.length)){const l=null===(e=null==te?void 0:te.components)||void 0===e?void 0:e[1].cards,t=[];null==l||l.forEach((e=>{var l;null===(l=null==e?void 0:e.components)||void 0===l||l.forEach((e=>{var l,a,o;"HEADER"===e.type&&t.push(null!==(o=null===(a=null===(l=e.example)||void 0===l?void 0:l.header_handle)||void 0===a?void 0:a[0])&&void 0!==o?o:"")}))})),re(t),ie(!0)}}),[se]);const Se=l.useMemo((()=>n.convertPlaceholdersToBikDropdown(S)),[S]);return e.jsx(r.TemplateModalContext.Provider,Object.assign({value:{template:te,setTemplate:ae,device:G,setDevice:J,display_content:K,setDisplayContent:Q,originalVariableList:ne,setOriginalVariableList:de,isError:X,setIsError:Z,channel:m,globalNormalizedPlaceholders:Se,templateSelectionTriggered:ue,setTemplateSelectionTriggered:ce,enabledCustomText:M,disableEditVariable:y,pod:A,extras:w,isWhatsappCarousel:U,selectedCarouselIndex:pe,setSelectedCarouselIndex:ve,isProductCarouselType:$,cardCount:U?null===(B=null===(Y=c.components)||void 0===Y?void 0:Y[1].cards)||void 0===B?void 0:B.length:void 0,errorIndexes:ee,setErrorIndexes:le,pickerConf:V,carouselProducts:me,setCarouselProducts:he,disableEditExpiry:D,cardWidth:k,cardImages:oe,onDeleteSelectedProducts:H}},{children:x?e.jsx(i.default,{channel:o.CHANNEL_TYPE.EMAIL,hideHeader:!0}):e.jsxs(a.StyledModal,Object.assign({zIndex:g,centralContainerStyles:{width:U?900:m===o.CHANNEL_TYPE.EMAIL&&v?1e3:800},open:!0,onClose:()=>{null==p||p()},headingTitle:null==te?void 0:te.label,headingSubtitle:m===o.CHANNEL_TYPE.WHATSAPP?`${t.default.capitaliseFirstLetterOfString(null!==(z=null==te?void 0:te.category)&&void 0!==z?z:"")} • ${null!==(R=null==te?void 0:te.templateCategory)&&void 0!==R?R:""}`:"",onBackPress:()=>{null==I||I()}},{children:[e.jsx(i.default,{showSampleValues:L,showVariableMapping:v,channel:m,whatsappSpecificPickerMeta:b,showVariableModal:P,variableList:f,discountCode:T,setDiscountCode:j,variableListForImage:N&&(null==N?void 0:N.length)>0?N:f,fileName:_,setFileName:e=>{null==F||F(e),Ee(e)}}),E?e.jsx(s.default,{isWhatsappCarousel:null!=U&&U,onSelect:function(){if((null==me?void 0:me.length)<1&&$)return void Z(!0);if(!Ce)return void Z(!0);if(!Ce||d.validateInputName(Ce))return void Z(!0);const e=null==E?void 0:E(te,ne,null!=K?K:"",me);(null==e?void 0:e.errorIndexes)||(null==e?void 0:e.error)?((null==e?void 0:e.errorIndexes)&&le(e.errorIndexes),(null==e?void 0:e.error)&&Z(!!(null==e?void 0:e.error))):ce(!0)}}):e.jsx(e.Fragment,{})]}))}))};
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
2
+ import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
3
3
  declare const EventsTrigger: React.FC<QueryBuilderNodeProps>;
4
4
  export default EventsTrigger;
@@ -1,2 +1,2 @@
1
- import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
1
+ import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
2
2
  export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { QueryBuilderNodeProps } from "../../../Types/QueryBuilderNodeProps.type";
2
+ import { QueryBuilderNodeProps } from "../../../types/QueryBuilderNodeProps.type";
3
3
  declare const IGTrigger: React.FC<QueryBuilderNodeProps>;
4
4
  export default IGTrigger;
@@ -1,2 +1,2 @@
1
- import { QueryBuilderAPIData } from "../../../Types/QueryBuilderAPI.type";
1
+ import { QueryBuilderAPIData } from "../../../types/QueryBuilderAPI.type";
2
2
  export declare const useIGTriggerNameCacheSelector: () => QueryBuilderAPIData[];
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DropdownOption } from "../../../dropdown/type";
3
- import { QueryBuilderProperty } from "../../Types/QueryBuilder.type";
4
- import { QueryBuilderNodeProps } from "../../Types/QueryBuilderNodeProps.type";
3
+ import { QueryBuilderProperty } from "../../types/QueryBuilder.type";
4
+ import { QueryBuilderNodeProps } from "../../types/QueryBuilderNodeProps.type";
5
5
  declare const BaseTriggerQueryBuilderNode: React.FC<QueryBuilderNodeProps & {
6
6
  cacheKey: string;
7
7
  propertyAddBtnText: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const Menus: ({
3
2
  displayName: string;
4
3
  key: number;
@@ -1 +1 @@
1
- import{jsx as e,jsxs as l,Fragment as o}from"react/jsx-runtime";import{useEffect as t,useState as i,useMemo as r}from"react";import a from"../../utils/StringUtils.js";import{StyledModal as n}from"../modals/styledModal.js";import{CHANNEL_TYPE as s}from"../template-preview/models/Channels.js";import{TemplateModalContext as d}from"./context/templateModalContext.js";import c from"./modalElements/Footer.js";import u from"./modalElements/TemplateSelectModalContent.js";import{convertPlaceholdersToBikDropdown as p}from"./utils/convertPlaceholdersToBikDropdown.js";const m=m=>{let{selectedTemplate:v,closeDialog:h,showVariableMapping:C,channel:b,htmlContent:g,templateVariables:f,onTemplateSelect:x,globalPlaceholders:E,showOnlyContent:P,whatsappSpecificPickerMeta:S,zIndex:I,showVariableModal:T,variableList:y,discountCode:w,setDiscountCode:M,onBackPress:L,enabledCustomText:V,variableListForImage:j,showSampleValues:A,disableEditVariable:D,pod:k,extras:F,pickerConf:O,selectedCarouselProducts:W,disableEditExpiry:N,cardWidth:H,onDeleteSelectedProducts:z,fileName:B,setFileName:R}=m;var U,$,_,q,G,J;t((()=>{ee(g)}),[g]);const K=b===s.WHATSAPP&&"CAROUSEL"===(null===($=null===(U=null==v?void 0:v.components)||void 0===U?void 0:U[1])||void 0===$?void 0:$.type),Q=null==v?void 0:v.isProductCarouselType,[X,Y]=i(b===s.EMAIL||K?"desktop":"mobile"),[Z,ee]=i(g),[le,oe]=i(!1),[te,ie]=i([]),[re,ae]=i(v),[ne,se]=i([]),[de,ce]=i(!1),[ue,pe]=i(null!=f?f:[]),[me,ve]=i(!1),[he,Ce]=i(-1),[be,ge]=i([]);t((()=>{W?ge(W):Q&&ge([])}),[W]),t((()=>{var e;if(!de&&Q&&(!W||0===ge.length)){const l=null===(e=null==re?void 0:re.components)||void 0===e?void 0:e[1].cards,o=[];null==l||l.forEach((e=>{var l;null===(l=null==e?void 0:e.components)||void 0===l||l.forEach((e=>{var l,t,i;"HEADER"===e.type&&o.push(null!==(i=null===(t=null===(l=e.example)||void 0===l?void 0:l.header_handle)||void 0===t?void 0:t[0])&&void 0!==i?i:"")}))})),se(o),ce(!0)}}),[de]);const fe=r((()=>p(E)),[E]);return e(d.Provider,Object.assign({value:{template:re,setTemplate:ae,device:X,setDevice:Y,display_content:Z,setDisplayContent:ee,originalVariableList:ue,setOriginalVariableList:pe,isError:le,setIsError:oe,channel:b,globalNormalizedPlaceholders:fe,templateSelectionTriggered:me,setTemplateSelectionTriggered:ve,enabledCustomText:V,disableEditVariable:D,pod:k,extras:F,isWhatsappCarousel:K,selectedCarouselIndex:he,setSelectedCarouselIndex:Ce,isProductCarouselType:Q,cardCount:K?null===(q=null===(_=v.components)||void 0===_?void 0:_[1].cards)||void 0===q?void 0:q.length:void 0,errorIndexes:te,setErrorIndexes:ie,pickerConf:O,carouselProducts:be,setCarouselProducts:ge,disableEditExpiry:N,cardWidth:H,cardImages:ne,onDeleteSelectedProducts:z}},{children:P?e(u,{channel:s.EMAIL,hideHeader:!0}):l(n,Object.assign({zIndex:I,centralContainerStyles:{width:K?900:b===s.EMAIL&&C?1e3:800},open:!0,onClose:()=>{null==h||h()},headingTitle:null==re?void 0:re.label,headingSubtitle:b===s.WHATSAPP?`${a.capitaliseFirstLetterOfString(null!==(G=null==re?void 0:re.category)&&void 0!==G?G:"")} • ${null!==(J=null==re?void 0:re.templateCategory)&&void 0!==J?J:""}`:"",onBackPress:()=>{null==L||L()}},{children:[e(u,{showSampleValues:A,showVariableMapping:C,channel:b,whatsappSpecificPickerMeta:S,showVariableModal:T,variableList:y,discountCode:w,setDiscountCode:M,variableListForImage:j&&(null==j?void 0:j.length)>0?j:y,fileName:B,setFileName:e=>{null==R||R(e)}}),x?e(c,{isWhatsappCarousel:null!=K&&K,onSelect:function(){if((null==be?void 0:be.length)<1&&Q)return void oe(!0);const e=null==x?void 0:x(re,ue,null!=Z?Z:"",be);(null==e?void 0:e.errorIndexes)||(null==e?void 0:e.error)?((null==e?void 0:e.errorIndexes)&&ie(e.errorIndexes),(null==e?void 0:e.error)&&oe(!!(null==e?void 0:e.error))):ve(!0)}}):e(o,{})]}))}))};export{m as TemplateContextMapper};
1
+ import{jsx as e,jsxs as l,Fragment as o}from"react/jsx-runtime";import{useEffect as t,useState as i,useMemo as r}from"react";import a from"../../utils/StringUtils.js";import{StyledModal as n}from"../modals/styledModal.js";import{CHANNEL_TYPE as s}from"../template-preview/models/Channels.js";import{TemplateModalContext as d}from"./context/templateModalContext.js";import c from"./modalElements/Footer.js";import u from"./modalElements/TemplateSelectModalContent.js";import{convertPlaceholdersToBikDropdown as p}from"./utils/convertPlaceholdersToBikDropdown.js";import{validateInputName as m}from"./utils/validateName.js";const v=v=>{let{selectedTemplate:h,closeDialog:C,showVariableMapping:b,channel:g,htmlContent:f,templateVariables:x,onTemplateSelect:E,globalPlaceholders:P,showOnlyContent:S,whatsappSpecificPickerMeta:I,zIndex:T,showVariableModal:y,variableList:w,discountCode:M,setDiscountCode:j,onBackPress:L,enabledCustomText:V,variableListForImage:A,showSampleValues:D,disableEditVariable:k,pod:F,extras:N,pickerConf:O,selectedCarouselProducts:W,disableEditExpiry:H,cardWidth:z,onDeleteSelectedProducts:B,fileName:R,setFileName:U}=v;var $,_,q,G,J,K;t((()=>{le(f)}),[f]);const Q=g===s.WHATSAPP&&"CAROUSEL"===(null===(_=null===($=null==h?void 0:h.components)||void 0===$?void 0:$[1])||void 0===_?void 0:_.type),X=null==h?void 0:h.isProductCarouselType,[Y,Z]=i(g===s.EMAIL||Q?"desktop":"mobile"),[ee,le]=i(f),[oe,te]=i(!1),[ie,re]=i([]),[ae,ne]=i(h),[se,de]=i([]),[ce,ue]=i(!1),[pe,me]=i(null!=x?x:[]),[ve,he]=i(!1),[Ce,be]=i(-1),[ge,fe]=i([]),[xe,Ee]=i(R);t((()=>{W?fe(W):X&&fe([])}),[W]),t((()=>{var e;if(!ce&&X&&(!W||0===fe.length)){const l=null===(e=null==ae?void 0:ae.components)||void 0===e?void 0:e[1].cards,o=[];null==l||l.forEach((e=>{var l;null===(l=null==e?void 0:e.components)||void 0===l||l.forEach((e=>{var l,t,i;"HEADER"===e.type&&o.push(null!==(i=null===(t=null===(l=e.example)||void 0===l?void 0:l.header_handle)||void 0===t?void 0:t[0])&&void 0!==i?i:"")}))})),de(o),ue(!0)}}),[ce]);const Pe=r((()=>p(P)),[P]);return e(d.Provider,Object.assign({value:{template:ae,setTemplate:ne,device:Y,setDevice:Z,display_content:ee,setDisplayContent:le,originalVariableList:pe,setOriginalVariableList:me,isError:oe,setIsError:te,channel:g,globalNormalizedPlaceholders:Pe,templateSelectionTriggered:ve,setTemplateSelectionTriggered:he,enabledCustomText:V,disableEditVariable:k,pod:F,extras:N,isWhatsappCarousel:Q,selectedCarouselIndex:Ce,setSelectedCarouselIndex:be,isProductCarouselType:X,cardCount:Q?null===(G=null===(q=h.components)||void 0===q?void 0:q[1].cards)||void 0===G?void 0:G.length:void 0,errorIndexes:ie,setErrorIndexes:re,pickerConf:O,carouselProducts:ge,setCarouselProducts:fe,disableEditExpiry:H,cardWidth:z,cardImages:se,onDeleteSelectedProducts:B}},{children:S?e(u,{channel:s.EMAIL,hideHeader:!0}):l(n,Object.assign({zIndex:T,centralContainerStyles:{width:Q?900:g===s.EMAIL&&b?1e3:800},open:!0,onClose:()=>{null==C||C()},headingTitle:null==ae?void 0:ae.label,headingSubtitle:g===s.WHATSAPP?`${a.capitaliseFirstLetterOfString(null!==(J=null==ae?void 0:ae.category)&&void 0!==J?J:"")} • ${null!==(K=null==ae?void 0:ae.templateCategory)&&void 0!==K?K:""}`:"",onBackPress:()=>{null==L||L()}},{children:[e(u,{showSampleValues:D,showVariableMapping:b,channel:g,whatsappSpecificPickerMeta:I,showVariableModal:y,variableList:w,discountCode:M,setDiscountCode:j,variableListForImage:A&&(null==A?void 0:A.length)>0?A:w,fileName:R,setFileName:e=>{null==U||U(e),Ee(e)}}),E?e(c,{isWhatsappCarousel:null!=Q&&Q,onSelect:function(){if((null==ge?void 0:ge.length)<1&&X)return void te(!0);if(!xe)return void te(!0);if(!xe||m(xe))return void te(!0);const e=null==E?void 0:E(ae,pe,null!=ee?ee:"",ge);(null==e?void 0:e.errorIndexes)||(null==e?void 0:e.error)?((null==e?void 0:e.errorIndexes)&&re(e.errorIndexes),(null==e?void 0:e.error)&&te(!!(null==e?void 0:e.error))):he(!0)}}):e(o,{})]}))}))};export{v as TemplateContextMapper};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.508-9-beta",
3
+ "version": "0.0.508",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",