1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4309],{95872:function(e,t,n){"use strict";var i=n(92809),o=n(10219),a=n(85893),s=["placeholder","value","onChange","className"];function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.Z=function(e){var t=e.placeholder,n=void 0===t?"":t,i=e.value,l=e.onChange,c=e.className,u=void 0===c?"":c,f=(0,o.Z)(e,s);return f.textarea?(0,a.jsx)("textarea",r(r({},f),{},{placeholder:n,value:i,onChange:l,className:"w-full sm:max-w-96 h-20 pl-4 border-blue-dark focus:border-blue-faded border-[1px] outline-none italic text-blue-dark font-normal focus:border-2 rounded-md "+u})):(0,a.jsx)("input",r(r({},f),{},{placeholder:n,value:i,onChange:l,className:"w-full sm:max-w-96 h-10 pl-4 border-blue-dark focus:border-blue-faded border-[1px] rounded-full outline-none italic text-blue-dark font-normal focus:border-2 "+u}))}},55677:function(e,t,n){"use strict";var i=n(67294),o=n(54741),a=n(1866),s=n(72260),l=n(38109),r=n(20076),c=n(23157),u=n(85893);t.Z=function(e){var t,n=e.placeholder,f=e.label,d=e.value,b=e.multi,g=e.options,_=e.disabled,x=void 0!==_&&_,m=e.onStateChange,C=e.onSave,v=e.needTranslateLabels,E=void 0!==v&&v,p=e.isClearable,h=void 0!==p&&p,N=e.show_edit_button,S=void 0===N||N,O=(0,i.useState)(!1),w=O[0],j=O[1],T=(0,i.useState)(!1),A=T[0],P=T[1],L=(0,i.useState)(d),y=L[0],I=L[1],R=(0,i.useState)(""),B=R[0],M=R[1];return(0,i.useEffect)((function(){void 0!==m&&m(w)}),[w]),(0,i.useEffect)((function(){I(d),M("")}),[d,w]),(0,u.jsxs)("div",{className:x?"flex w-full flex-col opacity-20":"flex w-full flex-col",children:[(0,u.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,u.jsx)("div",{className:"mb-2 text-gray-blue",children:f}),S&&(0,u.jsx)("button",{disabled:x,onClick:function(){return j((function(e){return!e}))},className:"mb-2 text-gray-blue underline hover:no-underline disabled:underline",children:w?o.oc.t("GLOBAL_CANCEL"):y.length>0&&y[0]?o.oc.t("GLOBAL_UPDATE"):o.oc.t("GLOBAL_ADD")})]}),w?(0,u.jsxs)("div",{children:[(0,u.jsxs)("div",{className:"mb-4",children:[""!==B&&(0,u.jsx)("div",{className:"text-salmon text-sm italic mb-2",children:B}),"function"===typeof g?(0,u.jsx)(l.Z,{placeholder:n,styles:s.GD,noOptionsMessage:function(e){return o.oc.t("GLOBAL_NO_RESULT_FOR")+e.inputValue},isClearable:h,isMulti:b,cacheOptions:!0,defaultOptions:!0,loadOptions:g,value:y,onChange:function(e){I(b?e:[e])}}):(0,u.jsx)(c.ZP,{placeholder:n,styles:s.GD,noOptionsMessage:function(e){return o.oc.t("GLOBAL_NO_RESULT_FOR")+e.inputValue},isClearable:h,isMulti:b,options:E?(t=g,t.map((function(e){return{value:e.value,label:o.oc.t(e.label)}}))):g,value:y,onChange:function(e){I(b?e:[e])}})]}),(0,u.jsx)(a.Z,{title:o.oc.t("GLOBAL_SAVE"),loading:A,onPress:function(){void 0!==C&&(P(!0),C(y).then((function(e){P(!1),j(!1)})).catch((function(e){P(!1),M(o.oc.t("GLOBAL_UNKNOWN_ERROR"))})))},type:"blue",size:"normal"})]}):(0,u.jsx)("div",{className:"text-blue-light flex flex-wrap min-h-7",children:y.map((function(e){if(e)return(0,u.jsx)(r.Z,{text:e.label,color:e.color,size:"small"},e.label)}))})]})}},72150:function(e,t,n){"use strict";var i=n(67294),o=n(54741),a=n(1866),s=n(95872),l=n(97037),r=n(72260),c=n(85893);t.Z=function(e){var t=e.label,n=e.value,u=e.disabled,f=void 0!==u&&u,d=e.onStateChange,b=e.onSave,g=e.errorValue,_=e.inputBloc,x=e.inputClass,m=void 0===x?"":x,C=e.parseHtml,v=void 0!==C&&C,E=e.saveButtonLabel,p=void 0===E?o.oc.t("GLOBAL_SAVE"):E,h=e.textarea,N=void 0!==h&&h,S=(0,i.useState)(!1),O=S[0],w=S[1],j=(0,i.useState)(!1),T=j[0],A=j[1],P=(0,i.useState)(n),L=P[0],y=P[1],I=(0,i.useState)(""),R=I[0],B=I[1];return(0,i.useEffect)((function(){void 0!==d&&d(O)}),[O]),(0,i.useEffect)((function(){y(n),B("")}),[n,O]),(0,c.jsxs)("div",{className:f?"flex w-full flex-col opacity-20":"flex w-full flex-col",children:[(0,c.jsxs)("div",{className:"flex flex-row justify-between",children:[(0,c.jsx)("div",{className:"mb-2 text-gray-blue",children:t}),(0,c.jsx)("button",{disabled:f,onClick:function(){return w((function(e){return!e}))},className:"mb-2 text-gray-blue underline hover:no-underline disabled:underline",children:O?o.oc.t("GLOBAL_CANCEL"):n?o.oc.t("GLOBAL_UPDATE"):o.oc.t("GLOBAL_ADD")})]}),O?(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{className:"mb-4",children:[""!==R&&(0,c.jsx)("div",{className:"text-salmon text-sm italic mb-2",children:R}),_||(0,c.jsx)(s.Z,{onChange:function(e){return t=e.target.value,y(t),void(R.length>0&&g&&B(g(t)));var t},value:L,className:m,textarea:N})]}),(0,l.xb)(_)&&(0,c.jsx)(a.Z,{title:p,loading:T,onPress:function(){if(void 0!==g){var e=g(L);if(B(e),""!==e)return}void 0!==b&&(A(!0),b(L).then((function(e){A(!1),w(!1)})).catch((function(e){A(!1),B(o.oc.t("GLOBAL_UNKNOWN_ERROR"))})))},type:"blue",size:"normal"})]}):v?(0,c.jsx)("div",{className:"text-blue-light",dangerouslySetInnerHTML:{__html:(0,r.Vj)(n)}}):(0,c.jsx)("div",{className:"text-blue-light",children:n})]})}},20076:function(e,t,n){"use strict";var i=n(97037),o=n(85893);t.Z=function(e){var t=e.text,n=e.size,a=void 0===n?"normal":n,s=e.color;return(0,i.xb)(t)?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)("span",{className:function(){var e=s?"bg-["+s+"]":"bg-blue-xLight",t=s&&(0,i.DP)(s)?"text-white":"text-blue-dark";switch(a){case"normal":return"".concat(e," ").concat(t," font-bold px-5 py-2 rounded-3xl m-1.5");case"small":return"".concat(e," ").concat(t," text-sm font-bold px-4 py-2 rounded-3xl m-1");default:return""}}(),children:t})}},69009:function(e,t,n){"use strict";n.r(t),n.d(t,{visibilitySubMenu:function(){return b}});var i=n(22531),o=n(67294),a=n(54741),s=n(56834),l=n(7725),r=n(96486),c=n(50213),u=n(55678),f=n(11163),d=n(85893),b=[{name:"SEC_PRO_MENU_WEBSITE",link:"/my-account/pro/website"},{name:"SEC_PRO_MENU_INTEGRATION",link:"/my-account/pro/integration"},{name:"SEC_PRO_MENU_GOOGLE_BUSINESS",link:"/my-account/pro/google-mybusiness"}],g=function(e){var t=e.Component,n=e.text,i=e.handleClick,o=void 0===i?function(){}:i;return(0,d.jsx)("div",{className:"row-span-1 my-1",onClick:o,children:(0,d.jsx)("div",{className:"grid grid-cols-10 grid-flow-col items-start hover:text-blue-900 hover:cursor-pointer",children:(0,d.jsxs)("div",{className:"col-span-9 my-1 flex items-center",children:[(0,d.jsx)(t,{viewB
1ox:"0 0 24 24",className:"h-5 w-5 mr-1"}),(0,d.jsx)("span",{className:"ml-1",children:n})]})})})};t.default=function(){var e=(0,i.TL)(),t=(0,i.CG)((function(e){return e.professional.infos||{}})),n=(0,i.CG)((function(e){return e.professional.jwt})),_=(0,f.useRouter)(),x=(0,o.useState)(!1),m=x[0],C=x[1];(0,o.useEffect)((function(){C(t.websiteConfig.isWebsiteActive)}),[t]);return(0,d.jsx)(s.Z,{title:a.oc.t("SEC_PRO_MENU_VISIBILITY"),activePage:"/my-account/pro/website",subMenu:b,children:(0,d.jsx)("div",{className:"flex bg-white mt-3 rounded-2xl p-4",children:(0,d.jsxs)("div",{className:"flex-auto max-w w-1/2 grid grid-cols-1",children:[(0,d.jsx)("div",{className:"row-span-1 flex items-center my-3",children:(0,d.jsxs)("div",{className:"flex flex-row",children:[(0,d.jsx)("div",{className:"mr-3",children:a.oc.t("PRO_MENU_WEBSITE_DISABLED")}),(0,d.jsx)("div",{className:"mr-3",children:t.websiteConfig&&(0,d.jsxs)("label",{className:"relative inline-flex items-center cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",value:"",className:"sr-only peer",checked:m,onChange:function(){C((function(i){var o=(0,r.cloneDeep)(t.websiteConfig);return o.isWebsiteActive=!i,(0,c.iIC)("websiteConfig",o,n,e),!i}))}}),(0,d.jsx)("div",{className:"w-11 h-6 bg-gray-200 rounded-full peer peer-focus:ring-4 peer-focus:ring-blue-300 dark:peer-focus:ring-blue-800 dark:bg-gray-700 peer-checked:after:translate-x-full rtl:peer-checked:after:-translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-blue-600"})]})}),(0,d.jsx)("div",{children:a.oc.t("PRO_MENU_WEBSITE_ACTIVE")})]})}),(0,d.jsx)("a",{href:t.cfixe_website,target:"_blank",rel:"noopener noreferrer",onClick:function(e){m||(e.preventDefault(),u.Am.error(a.oc.t("PRO_MENU_NO_WEBSITE")))},children:(0,d.jsx)(g,{Component:l.h0n,text:a.oc.t("PRO_MENU_WEBSITE_SEE")})}),(0,d.jsx)(g,{Component:l.xPt,text:a.oc.t("PRO_MENU_WEBSITE_DNS"),handleClick:function(){_.push("/my-account/pro/website/dns")}}),(0,d.jsx)(g,{Component:l.WB6,text:a.oc.t("PRO_MENU_WEBSITE_TEMPLATE"),handleClick:function(){_.push("/my-account/pro/website/template")}}),(0,d.jsx)(g,{Component:l.XBm,text:a.oc.t("PRO_MENU_WEBSITE_LOGO"),handleClick:function(){_.push("/my-account/pro/website/logo")}}),(0,d.jsx)(g,{Component:l.Oqj,text:a.oc.t("PRO_MENU_WEBSITE_MENU"),handleClick:function(){_.push("/my-account/pro/website/menu")}}),(0,d.jsx)(g,{Component:l.tvw,text:a.oc.t("PRO_MENU_WEBSITE_HOME"),handleClick:function(){_.push("/my-account/pro/website/homepage")}}),(0,d.jsx)(g,{Component:l.ewm,text:a.oc.t("PRO_MENU_WEBSITE_SETTINGS"),handleClick:function(){_.push("/my-account/pro/website/settings")}})]})})})}},59369:function(e,t,n){"use strict";n.r(t);var i=n(67294),o=n(54741),a=n(22531),s=n(50213),l=n(56834),r=n(72150),c=n(55677),u=n(18746),f=n(96486),d=n(8918),b=n(69009),g=n(85893);t.default=function(){var e=(0,a.CG)((function(e){return e.professional.jwt})),t=(0,a.CG)((function(e){return e.professional.infos||{}})),n=(0,a.TL)(),_=(0,i.useState)(""),x=_[0],m=_[1],C=function(e,t){m(e?t:"")},v=function(e){return""!==x&&x!==e},E=function(e){return e?[{value:"true",label:o.oc.t("GLOBAL_YES")}]:[{value:"false",label:o.oc.t("GLOBAL_NO")}]};return(0,g.jsx)(l.Z,{title:o.oc.t("SEC_PRO_MENU_VISIBILITY"),activePage:"/my-account/pro/website",subMenu:b.visibilitySubMenu,children:t&&t.websiteConfig&&(0,g.jsxs)("div",{className:"flex flex-1 flex-col max-w-lg bg-white mt-3 rounded-2xl p-4",children:[(0,g.jsx)("h2",{className:"font-bold text-md text-gray-blue",children:o.oc.t("PRO_MENU_WEBSITE_PARAMS")}),(0,g.jsxs)("div",{className:"mt-5",children:[(0,g.jsx)(c.Z,{multi:!1,placeholder:o.oc.t("GLOBAL_CHOOSE"),label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_DISPLAY_SOCIALS"),value:E(t.websiteConfig.settings.displaySocials),onStateChange:function(e){return C(e,"displaySocials")},disabled:v("displaySocials"),options:u.pk,needTranslateLabels:!0,isClearable:!1,onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.displaySocials="true"===i[0].value,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(c.Z,{multi:!1,placeholder:o.oc.t("GLOBAL_CHOOSE"),label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_LAST_SHOW"),value:E(t.websiteConfig.settings.lastButtonCta),onStateChange:function(e){return C(e,"lastButtonCta")},disabled:v("lastButtonCta"),options:u.pk,needTranslateLabels:!0,isClearable:!1,onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.lastButtonCta="true"===i[0].value,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(c.Z,{multi:!1,placeholder:o.oc.t("GLOBAL_CHOOSE"),label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_CALL_CTA"),value:[{value:t.websiteConfig.settings.callCta,label:(0,f.isEmpty)(t.websiteConfig.settings.callCta)?o.oc.t("CALL_CTA_NONE"):o.oc.t("CALL_CTA_".concat(t.websiteConfig.settings.callCta))}],onStateChange:function(e){return C(e,"callCta")},disabled:v("callCta"),options:[{label:o.oc.t("CALL_CTA_NONE"),value:"NONE"},{label:o.oc.t("CALL_CTA_WHATSAPP"),value:"WHATSAPP"},{label:o.oc.t("CALL_CTA_PHONE"),value:"PHONE"}],needTranslateLabels:!1,isClearable:!1,onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.callCta=i[0].value,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_SLIDE_MS"),value:t.websiteConfig.settings.carouselDelay,onStateChange:function(e){return C(e,"carouselDelay")},disabled:v("carouselDelay"),errorValue:function(e){return(0,d.aP)(e)?+e<500?o.oc.t("FORM_NUMBER_INF_500_ERROR"):"":
1o.oc.t("FORM_NUMBER_ERROR")},onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.carouselDelay=Number(i),(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_TITLE"),value:t.websiteConfig.settings.title,onStateChange:function(e){return C(e,"title")},disabled:v("title"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.title=i,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_SUBTITLE"),value:t.websiteConfig.settings.subTitle,onStateChange:function(e){return C(e,"subTitle")},disabled:v("subTitle"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.subTitle=i,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_TITLE_CONTACT_PAGE"),value:t.websiteConfig.settings.contactTitle,onStateChange:function(e){return C(e,"contactTitle")},disabled:v("contactTitle"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.contactTitle=i,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_TEXT_CONTACT_PAGE"),value:t.websiteConfig.settings.contactText,onStateChange:function(e){return C(e,"contactText")},disabled:v("contactText"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.contactText=i,(0,s.iIC)("websiteConfig",o,e,n)},textarea:!0}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_TITLE_BOOKING_PAGE"),value:t.websiteConfig.settings.bookingTitle,onStateChange:function(e){return C(e,"bookingTitle")},disabled:v("bookingTitle"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.bookingTitle=i,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_TEXT_BOOKING_PAGE"),value:t.websiteConfig.settings.bookingContent,onStateChange:function(e){return C(e,"bookingContent")},disabled:v("bookingContent"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.bookingContent=i,(0,s.iIC)("websiteConfig",o,e,n)},textarea:!0}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_TITLE_GIFT_PAGE"),value:t.websiteConfig.settings.giftTitle,onStateChange:function(e){return C(e,"giftTitle")},disabled:v("giftTitle"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.giftTitle=i,(0,s.iIC)("websiteConfig",o,e,n)}}),(0,g.jsx)("hr",{className:"m-5"}),(0,g.jsx)(r.Z,{label:o.oc.t("PRO_MENU_WEBSITE_PARAMS_TEXT_GIFT_PAGE"),value:t.websiteConfig.settings.giftContent,onStateChange:function(e){return C(e,"giftContent")},disabled:v("giftContent"),onSave:function(i){var o=(0,f.cloneDeep)(t.websiteConfig);return o.settings.giftContent=i,(0,s.iIC)("websiteConfig",o,e,n)},textarea:!0})]})]})})}},8918:function(e,t,n){"use strict";n.d(t,{aP:function(){return i},AH:function(){return o}});var i=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(""===e)return!1;var n=Number(e);return Number.isInteger(n)&&(n>0||t&&n>=0)},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(""===e)return!1;var n=Number(e.replace(",","."));return!Number.isNaN(n)&&(n>0||t&&n>=0)}},76699:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/my-account/pro/website/settings",function(){return n(59369)}])},38109:function(e,t,n){"use strict";var i=n(87462),o=n(67294),a=n(33034),s=n(84766),l=n(84674),r=(n(73935),(0,o.forwardRef)((function(e,t){var n=(0,l.u)(e),r=(0,s.u)(n);return o.createElement(a.S,(0,i.Z)({ref:t},r))})));t.Z=r},10219:function(e,t,n){"use strict";function i(e,t){if(null==e)return{};var n,i,o=function(e,t){if(null==e)return{};var n,i,o={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return i}})}},function(e){e.O(0,[9774,3662,7856,7168,5015,9506,6185,2260,6834,2888,179],(function(){return t=76699,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.