@licklist/design 0.63.3-dev.4 → 0.65.0-dev.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.
@@ -1 +1 @@
1
- {"version":3,"file":"ProductSetControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetControl.tsx"],"names":[],"mappings":";AAKA,OAAO,EAOL,mBAAmB,EACnB,cAAc,EAEd,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAEtF,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAIL,4BAA4B,EAC7B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAgBhC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,GAAG,WAAW,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,mBAAmB,CAAC;IACrC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAClC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,GAAU,EACV,SAAc,EACd,cAAmB,EACnB,YAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,4BAAoC,EACpC,WAAmB,EACnB,oBAA4B,GAC7B,EAAE,sBAAsB,eAqTxB"}
1
+ {"version":3,"file":"ProductSetControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/control/ProductSetControl.tsx"],"names":[],"mappings":";AAKA,OAAO,EAOL,mBAAmB,EACnB,cAAc,EAEd,gBAAgB,EACjB,MAAM,6DAA6D,CAAC;AAErE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAC;AAGhG,OAAO,EAAE,QAAQ,EAAE,MAAM,4DAA4D,CAAC;AAEtF,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAIL,4BAA4B,EAC7B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAgBhC,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,aAAa,GAAG,WAAW,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAwB,SAAQ,4BAA4B;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,mBAAmB,CAAC;IACrC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,EAAE,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAClC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,WAAW,EACX,SAAS,EACT,GAAU,EACV,SAAc,EACd,cAAmB,EACnB,YAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,4BAAoC,EACpC,WAAmB,EACnB,oBAA4B,GAC7B,EAAE,sBAAsB,eA0TxB"}
@@ -1 +1 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=e(require("react")),a=require("react-i18next"),n=require("react-bootstrap"),o=require("react-hook-form"),i=e(require("@licklist/plugins/dist/services/Form/HookFormService")),l=require("@react-aria/utils"),s=e(require("clsx")),m=require("../../static/WarningMessage.js");require("../../static/index.js");var d,c,u=require("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper"),E=require("@licklist/plugins/dist/validation/Rules/urlRule"),p=(e(E),require("./DateAndRecurrenceInput.js")),v=require("./TutorialGifCard.js"),g=require("../form/StepsControl.js"),P=require("../../typeahead/Typeahead.js"),T=require("./DateInput.js"),O=((d={})[u.OPERATIONAL_COST_PROVIDER]="operationalCostProvider",d[u.OPERATIONAL_COST_CUSTOMER]="operationalCostCustomer",d),C=((c={})[u.RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY]="peopleProductCapacityQuantity",c[u.RELY_ON_PEOPLE_PRODUCT_QUANTITY]="peopleProductQuantity",c[u.RELY_ON_PEOPLE_QUANTITY]="peopleQuantity",c);exports.ProductSetControl=function(e){var d,c=e.companyName,_=e.isLoading,F=e.fee,f=void 0===F?"5%":F,I=e.fieldSets,y=void 0===I?[]:I,L=e.emailTemplates,b=void 0===L?[]:L,N=e.smsTemplates,S=void 0===N?[]:N,k=e.isEventEditProductSet,A=e.isCreateAction,h=e.showEmailTemplate,D=e.showSmsTemplate,R=e.workHours,Y=e.providerHasBookingManagement,q=void 0!==Y&&Y,U=e.isOverrides,M=void 0!==U&&U,j=e.isCreateNewOverrides,w=void 0!==j&&j,x=a.useTranslation(["Design","Validation","Notification"]).t,V=o.useFormContext(),G=V.register,H=V.control,Q=V.formState.errors,B=V.watch,W=V.setError,z=V.clearErrors,J=B("steps"),K=l.useId(),X=l.useId(),Z=l.useId(),$=D&&!M,ee=h&&!M,te=!k&&M;return r.createElement(n.Row,{className:"product-set-form ".concat(k&&"event-edit-product-set")},r.createElement(n.Col,{md:6,sm:12,className:"pr-5"},r.createElement(n.Form.Group,{controlId:K},r.createElement(n.Form.Label,null,x("Design:name"),"*"),r.createElement(n.Form.Control,t.__assign({},G("name",{required:x("Validation:fieldRequired",{attribute:x("name")}),maxLength:255,validate:function(){var e;return J.length?(null===(e=Q.steps)||void 0===e?void 0:e.type)===i.manualErrorType&&z("steps"):W("steps",{type:i.manualErrorType,message:x("Validation:fieldMinNumber",{attribute:x("steps"),min:1})}),!0}}),{placeholder:x("Design:placeholderProductSetName"),isInvalid:Boolean(Q.name)})),r.createElement(n.Form.Control.Feedback,{type:"invalid"},null===(d=Q.name)||void 0===d?void 0:d.message)),te?r.createElement(T.DateInput,{workHours:R,isLoading:_,providerHasBookingManagement:q}):r.createElement(r.Fragment,null,A&&r.createElement(p.DateAndRecurrenceInput,{isEventEditProductSet:k,workHours:R,isLoading:_,providerHasBookingManagement:q})),r.createElement("div",{className:"divider"}),r.createElement(v.default,{isOverrides:M}),r.createElement(g.StepsControl,{isLoading:_,isEventEditProductSet:k,isOverrides:M,isCreateNewOverrides:w})),r.createElement(n.Col,{md:6,sm:12},r.createElement("div",{className:"second-column"},r.createElement(n.Form.Group,null,r.createElement(n.Form.Label,{className:"mb-0"},x("Design:operationalCost")),r.createElement("div",{className:"d-flex"},r.createElement("span",{className:"booking-fee-text"},x("bookingFeePaid",{fee:f}))),r.createElement(n.Form.Control,t.__assign({},G("operationalCost",{required:!0}),{as:"select",defaultValue:u.OPERATIONAL_COST_PROVIDER,disabled:M,isInvalid:i.isInvalid("operationalCost",Q)}),Object.keys(u.OPERATIONAL_COST_TYPES).map((function(e){return r.createElement("option",{value:u.OPERATIONAL_COST_TYPES[e],key:u.OPERATIONAL_COST_TYPES[e]},x(O[u.OPERATIONAL_COST_TYPES[e]],{companyName:c}))}))),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("operationalCost",Q))),r.createElement(n.Form.Group,{controlId:Z},r.createElement(n.Form.Label,null,x("peopleQuantityType")),r.createElement(n.Form.Control,t.__assign({},G("relyOnPeopleType"),{as:"select",defaultValue:null,disabled:M,isInvalid:i.isInvalid("relyOnPeopleType",Q)}),r.createElement("option",{value:""},x("notRequired")," "),Object.keys(u.RELY_ON_PEOPLE_TYPES).map((function(e){return r.createElement("option",{value:u.RELY_ON_PEOPLE_TYPES[e],key:u.RELY_ON_PEOPLE_TYPES[e]},x(C[u.RELY_ON_PEOPLE_TYPES[e]]))}))),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("relyOnPeopleType",Q))),r.createElement(n.Form.Group,{controlId:X},r.createElement(n.Form.Label,null,x("Design:termsAndConditions")),r.createElement(n.Form.Control,t.__assign({},G("termsAndConditions"),{as:"textarea",rows:2,disabled:_||M,isInvalid:i.isInvalid("termsAndConditions",Q)})),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("termsAndConditions",Q))),r.createElement(n.Form.Group,null,r.createElement(n.Form.Label,{className:"mt-4"},x("Design:emailTemplate")),r.createElement(r.Fragment,null,ee?r.createElement(P.Typeahead,{name:"emailTemplates",options:b,isMultipleChoise:!0,placeholder:x("Design:choose"),noOptionsMessage:x("Design:noActiveTemplates",{notification:x("Design:email")})}):r.createElement(m.default,{message:x("Design:noActiveTemplates",{notification:x("Design:email")})})),r.createElement(n.Form.Label,{className:s(b.length>0?"mt-4":"mt-1")},x("Design:smsTemplate")),$?r.createElement(P.Typeahead,{name:"smsTemplates",options:S,isMultipleChoise:!0,placeholder:x("Design:choose"),noOptionsMessage:x("Design:noActiveTemplates",{notification:x("Design:sms")})}):r.createElement(m.default,{message:x("Design:noActiveTemplates",{notification:x("Design:sms")})})),r.createElement(n.Form.Group,null,r.createElement(o.Controller,{control:H,name:"fieldSetId",render:function(e){var t=e.field,a=Number(t.value);return r.createElement(r.Fragment,null,r.createElement(n.Form.Label,null,x("Design:customFields")),r.createElement(n.Form.Control,{onChange:t.onChange,value:a,as:"select",disabled:M,isInvalid:i.isInvalid("fieldSetId",Q)},r.createElement("option",{value:""},x("Design:choose")),null==y?void 0:y.map((function(e){return r.createElement("option",{value:e.id,key:e.id},e.name)}))),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("fieldSetId",Q)))}})),r.createElement(n.Form.Group,{controlId:"thankYouPageUrlId"},r.createElement(n.Form.Label,null,x("thankYouPageUrl")),r.createElement(n.Form.Control,t.__assign({},G("thankYouPageUrl",{validate:function(e){return!e||(!!E.ruleForUrlWithProtocol.test(e)||x("Validation:fieldValidWebURL",{attribute:x("thankYouPageUrl")}))}}),{disabled:M,isInvalid:i.isInvalid("thankYouPageUrl",Q)})),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("thankYouPageUrl",Q))))))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),r=e(require("react")),a=require("react-i18next"),n=require("react-bootstrap"),o=require("react-hook-form"),i=e(require("@licklist/plugins/dist/services/Form/HookFormService")),l=require("@react-aria/utils"),s=e(require("clsx")),m=require("../../static/WarningMessage.js");require("../../static/index.js");var d,c,u=require("@licklist/core/dist/DataMapper/Product/ProductSetDataMapper"),E=require("@licklist/plugins/dist/validation/Rules/urlRule"),p=(e(E),require("./DateAndRecurrenceInput.js")),v=require("./TutorialGifCard.js"),g=require("../form/StepsControl.js"),P=require("../../typeahead/Typeahead.js"),T=require("./DateInput.js"),O=((d={})[u.OPERATIONAL_COST_PROVIDER]="operationalCostProvider",d[u.OPERATIONAL_COST_CUSTOMER]="operationalCostCustomer",d),C=((c={})[u.RELY_ON_PEOPLE_PRODUCT_CAPACITY_QUANTITY]="peopleProductCapacityQuantity",c[u.RELY_ON_PEOPLE_PRODUCT_QUANTITY]="peopleProductQuantity",c[u.RELY_ON_PEOPLE_QUANTITY]="peopleQuantity",c);exports.ProductSetControl=function(e){var d,c=e.companyName,_=e.isLoading,F=e.fee,f=void 0===F?"5%":F,I=e.fieldSets,y=void 0===I?[]:I,L=e.emailTemplates,b=void 0===L?[]:L,N=e.smsTemplates,S=void 0===N?[]:N,k=e.isEventEditProductSet,A=e.isCreateAction,h=e.showEmailTemplate,D=e.showSmsTemplate,R=e.workHours,Y=e.providerHasBookingManagement,q=void 0!==Y&&Y,U=e.isOverrides,M=void 0!==U&&U,j=e.isCreateNewOverrides,w=void 0!==j&&j,x=a.useTranslation(["Design","Validation","Notification"]).t,V=o.useFormContext(),G=V.register,H=V.control,Q=V.formState.errors,B=V.watch,W=V.setError,z=V.clearErrors,J=B("steps"),K=l.useId(),X=l.useId(),Z=l.useId(),$=D&&!M,ee=h&&!M,te=!k&&M,re=J.some((function(e){return e.productCategories.some((function(e){return e.zoneId}))}));return r.createElement(n.Row,{className:"product-set-form ".concat(k&&"event-edit-product-set")},r.createElement(n.Col,{md:6,sm:12,className:"pr-5"},r.createElement(n.Form.Group,{controlId:K},r.createElement(n.Form.Label,null,x("Design:name"),"*"),r.createElement(n.Form.Control,t.__assign({},G("name",{required:x("Validation:fieldRequired",{attribute:x("name")}),maxLength:255,validate:function(){var e;return J.length?(null===(e=Q.steps)||void 0===e?void 0:e.type)===i.manualErrorType&&z("steps"):W("steps",{type:i.manualErrorType,message:x("Validation:fieldMinNumber",{attribute:x("steps"),min:1})}),!0}}),{placeholder:x("Design:placeholderProductSetName"),isInvalid:Boolean(Q.name)})),r.createElement(n.Form.Control.Feedback,{type:"invalid"},null===(d=Q.name)||void 0===d?void 0:d.message)),te?r.createElement(T.DateInput,{workHours:re?R:void 0,isLoading:_,providerHasBookingManagement:q}):r.createElement(r.Fragment,null,A&&r.createElement(p.DateAndRecurrenceInput,{isEventEditProductSet:k,workHours:re?R:void 0,isLoading:_,providerHasBookingManagement:q})),r.createElement("div",{className:"divider"}),r.createElement(v.default,{isOverrides:M}),r.createElement(g.StepsControl,{isLoading:_,isEventEditProductSet:k,isOverrides:M,isCreateNewOverrides:w})),r.createElement(n.Col,{md:6,sm:12},r.createElement("div",{className:"second-column"},r.createElement(n.Form.Group,null,r.createElement(n.Form.Label,{className:"mb-0"},x("Design:operationalCost")),r.createElement("div",{className:"d-flex"},r.createElement("span",{className:"booking-fee-text"},x("bookingFeePaid",{fee:f}))),r.createElement(n.Form.Control,t.__assign({},G("operationalCost",{required:!0}),{as:"select",defaultValue:u.OPERATIONAL_COST_PROVIDER,disabled:M,isInvalid:i.isInvalid("operationalCost",Q)}),Object.keys(u.OPERATIONAL_COST_TYPES).map((function(e){return r.createElement("option",{value:u.OPERATIONAL_COST_TYPES[e],key:u.OPERATIONAL_COST_TYPES[e]},x(O[u.OPERATIONAL_COST_TYPES[e]],{companyName:c}))}))),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("operationalCost",Q))),r.createElement(n.Form.Group,{controlId:Z},r.createElement(n.Form.Label,null,x("peopleQuantityType")),r.createElement(n.Form.Control,t.__assign({},G("relyOnPeopleType"),{as:"select",defaultValue:null,disabled:M,isInvalid:i.isInvalid("relyOnPeopleType",Q)}),r.createElement("option",{value:""},x("notRequired")," "),Object.keys(u.RELY_ON_PEOPLE_TYPES).map((function(e){return r.createElement("option",{value:u.RELY_ON_PEOPLE_TYPES[e],key:u.RELY_ON_PEOPLE_TYPES[e]},x(C[u.RELY_ON_PEOPLE_TYPES[e]]))}))),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("relyOnPeopleType",Q))),r.createElement(n.Form.Group,{controlId:X},r.createElement(n.Form.Label,null,x("Design:termsAndConditions")),r.createElement(n.Form.Control,t.__assign({},G("termsAndConditions"),{as:"textarea",rows:2,disabled:_||M,isInvalid:i.isInvalid("termsAndConditions",Q)})),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("termsAndConditions",Q))),r.createElement(n.Form.Group,null,r.createElement(n.Form.Label,{className:"mt-4"},x("Design:emailTemplate")),r.createElement(r.Fragment,null,ee?r.createElement(P.Typeahead,{name:"emailTemplates",options:b,isMultipleChoise:!0,placeholder:x("Design:choose"),noOptionsMessage:x("Design:noActiveTemplates",{notification:x("Design:email")})}):r.createElement(m.default,{message:x("Design:noActiveTemplates",{notification:x("Design:email")})})),r.createElement(n.Form.Label,{className:s(b.length>0?"mt-4":"mt-1")},x("Design:smsTemplate")),$?r.createElement(P.Typeahead,{name:"smsTemplates",options:S,isMultipleChoise:!0,placeholder:x("Design:choose"),noOptionsMessage:x("Design:noActiveTemplates",{notification:x("Design:sms")})}):r.createElement(m.default,{message:x("Design:noActiveTemplates",{notification:x("Design:sms")})})),r.createElement(n.Form.Group,null,r.createElement(o.Controller,{control:H,name:"fieldSetId",render:function(e){var t=e.field,a=Number(t.value);return r.createElement(r.Fragment,null,r.createElement(n.Form.Label,null,x("Design:customFields")),r.createElement(n.Form.Control,{onChange:t.onChange,value:a,as:"select",disabled:M,isInvalid:i.isInvalid("fieldSetId",Q)},r.createElement("option",{value:""},x("Design:choose")),null==y?void 0:y.map((function(e){return r.createElement("option",{value:e.id,key:e.id},e.name)}))),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("fieldSetId",Q)))}})),r.createElement(n.Form.Group,{controlId:"thankYouPageUrlId"},r.createElement(n.Form.Label,null,x("thankYouPageUrl")),r.createElement(n.Form.Control,t.__assign({},G("thankYouPageUrl",{validate:function(e){return!e||(!!E.ruleForUrlWithProtocol.test(e)||x("Validation:fieldValidWebURL",{attribute:x("thankYouPageUrl")}))}}),{disabled:M,isInvalid:i.isInvalid("thankYouPageUrl",Q)})),r.createElement(n.Form.Control.Feedback,{type:"invalid"},i.getErrors("thankYouPageUrl",Q))))))};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.63.3-dev.4",
3
+ "version": "0.65.0-dev.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -126,6 +126,11 @@ export function ProductSetControl({
126
126
  const showSmsTemplateSelector = showSmsTemplate && !isOverrides;
127
127
  const showEmailTemplateSelector = showEmailTemplate && !isOverrides;
128
128
  const showDateSelector = !isEventEditProductSet && isOverrides;
129
+
130
+ const isZoneAdded = steps.some(({ productCategories }) =>
131
+ productCategories.some(({ zoneId }) => zoneId)
132
+ );
133
+
129
134
  return (
130
135
  <Row
131
136
  className={`product-set-form ${
@@ -169,7 +174,7 @@ export function ProductSetControl({
169
174
 
170
175
  {showDateSelector ? (
171
176
  <DateInput
172
- workHours={workHours}
177
+ workHours={isZoneAdded ? workHours : undefined}
173
178
  isLoading={isLoading}
174
179
  providerHasBookingManagement={providerHasBookingManagement}
175
180
  />
@@ -178,7 +183,7 @@ export function ProductSetControl({
178
183
  {isCreateAction && (
179
184
  <DateAndRecurrenceInput
180
185
  isEventEditProductSet={isEventEditProductSet}
181
- workHours={workHours}
186
+ workHours={isZoneAdded ? workHours : undefined}
182
187
  isLoading={isLoading}
183
188
  providerHasBookingManagement={providerHasBookingManagement}
184
189
  />