1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3229],{13229:function(e,t,n){n.r(t),n.d(t,{default:function(){return E}});var i=n(47568),o=n(26042),s=n(69396),a=n(97582),r=n(85893),d=n(4298),c=n.n(d),u=n(31814),l=n(67294),h=n(21744);function f(e){return window.fcWidget.init(e)}function _(){return(_=(0,i.Z)((function(){return(0,a.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,window.fcWidget.user.clear()];case 1:return e.sent(),[3,3];case 2:return e.sent(),[3,3];case 3:return[2]}}))}))).apply(this,arguments)}var p={agent:{hideBio:!1,hideName:!1,hidePic:!1},content:{actions:{csat_no:"No",csat_submit:"\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19",csat_yes:"Yes",push_notify_no:"No",push_notify_yes:"Yes",tab_chat:"\u0e1e\u0e39\u0e14\u0e04\u0e38\u0e22\u0e01\u0e31\u0e1a\u0e40\u0e23\u0e32",tab_faq:"\u0e04\u0e33\u0e16\u0e32\u0e21\u0e17\u0e35\u0e48\u0e1e\u0e1a\u0e1a\u0e48\u0e2d\u0e22"},headers:{chat:"\u0e1e\u0e39\u0e14\u0e04\u0e38\u0e22\u0e01\u0e31\u0e1a\u0e40\u0e1f\u0e23\u0e0a\u0e40\u0e01\u0e47\u0e15",chat_help:"",csat_no_question:"\u0e42\u0e1b\u0e23\u0e14\u0e43\u0e2b\u0e49\u0e04\u0e33\u0e41\u0e19\u0e30\u0e19\u0e33\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e31\u0e1a\u0e1b\u0e23\u0e38\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23",csat_question:"\u0e04\u0e38\u0e13\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e15\u0e23\u0e07\u0e08\u0e38\u0e14\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48?",csat_rate_here:"\u0e43\u0e2b\u0e49\u0e04\u0e30\u0e41\u0e19\u0e19",csat_thankyou:"",csat_yes_question:"\u0e04\u0e38\u0e13\u0e1e\u0e36\u0e07\u0e1e\u0e2d\u0e43\u0e08\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e04\u0e23\u0e31\u0e49\u0e07\u0e19\u0e35\u0e49\u0e21\u0e32\u0e01\u0e19\u0e49\u0e2d\u0e22\u0e41\u0e04\u0e48\u0e44\u0e2b\u0e19\u0e04\u0e30",faq:"\u0e04\u0e33\u0e16\u0e32\u0e21\u0e17\u0e35\u0e48\u0e1e\u0e1a\u0e1a\u0e48\u0e2d\u0e22",faq_help:"",faq_message_us:"\u0e1e\u0e39\u0e14\u0e04\u0e38\u0e22\u0e01\u0e31\u0e1a\u0e40\u0e23\u0e32",faq_not_available:"No Articles Found",faq_thankyou:"\u0e02\u0e2d\u0e1a\u0e04\u0e38\u0e13\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e41\u0e19\u0e30\u0e19\u0e33\u0e19\u0e30\u0e04\u0e30",faq_useful:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e14\u0e31\u0e07\u0e01\u0e25\u0e48\u0e32\u0e27\u0e0a\u0e48\u0e27\u0e22\u0e04\u0e38\u0e13\u0e41\u0e01\u0e49\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e44\u0e14\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48\u0e04\u0e30",push_notification:"\u0e40\u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e15\u0e37\u0e2d\u0e19? \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e04\u0e38\u0e13\u0e44\u0e21\u0e48\u0e1e\u0e25\u0e32\u0e14\u0e17\u0e38\u0e01\u0e01\u0e32\u0e23\u0e2a\u0e19\u0e17\u0e19\u0e32"},placeholders:{csat_reply:"\u0e43\u0e2b\u0e49\u0e04\u0e33\u0e41\u0e19\u0e30\u0e19\u0e33\u0e40\u0e1e\u0e34\u0e48\u0e21",reply_field:"\u0e15\u0e2d\u0e1a\u0e01\u0e25\u0e31\u0e1a",search_field:"\u0e04\u0e49\u0e19\u0e2b\u0e32"}},headerProperty:{hideChatButton:!0},hideFAQ:!1,showFAQOnOpen:!1},g={actions:{csat_no:"No",csat_submit:"Submit",csat_yes:"Yes",push_notify_no:"No",push_notify_yes:"Yes",tab_chat:"Chat",tab_faq:"Solutions"},headers:{chat:"Chat with Freshket",chat_help:"Reach out to us if you have any questions",csat_no_question:"How could we have helped better?",csat_question:"Did we address your concerns?",csat_rate_here:"Submit your rating here",csat_thankyou:"Thanks for the response",csat_yes_question:"How would you rate this interaction?",faq:"Solution Articles",faq_help:"Browse our articles",faq_message_us:"Message Us",faq_not_available:"No Articles Found",faq_thankyou:"Thank you for your feedback",faq_useful:"Was this article helpful?",push_notification:"Don't miss out on any replies! Allow push notifications?"},placeholders:{csat_reply:"Add your comments here",reply_field:"Reply",search_field:"Search"}}
1,m=n(14924),v=n(41120),w=n(35117),y=n(86010),b=n(87515),k=185,q=185,N=130,I=(0,v.Z)((function(e){var t,n;return(0,w.Z)({root:(t={position:"fixed",bottom:135,right:24,zIndex:1e3,width:40,height:40,borderRadius:"50%",border:"none",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",cursor:"pointer"},(0,m.Z)(t,e.breakpoints.up("sm"),{width:80,height:80,bottom:130}),(0,m.Z)(t,e.breakpoints.up("md"),{bottom:100}),t),raised:(n={bottom:k},(0,m.Z)(n,e.breakpoints.up("sm"),{bottom:q}),(0,m.Z)(n,e.breakpoints.up("md"),{bottom:N}),n),icon:{cursor:"pointer"},image:(0,m.Z)({width:"55px",height:"55px"},e.breakpoints.up("sm"),{width:"80px",height:"80px"})})})),W=function(e){var t=e.onClick,n=I(),i=(0,b.F$)((function(e){return e.isVisible}));return(0,r.jsx)("div",{id:"custom_fc_button",className:(0,y.Z)(n.root,(0,m.Z)({},n.raised,i)),children:(0,r.jsx)("a",{id:"open_fc_widget",onClick:t,className:n.icon,children:(0,r.jsx)("img",{src:"/images/freshchat-icon.png",alt:"Chat",className:n.image})})})},x=n(79342),C=n(90823),A=n(45568),E=function(){var e=(0,u.$G)().i18n,t=(0,l.useState)(!1),n=t[0],d=t[1],m=(0,A.iQ)(),v=m.data,w=m.status,y=(0,x.J)(),b=y.setFreshchatLoaded,k=y.setFreshchatError,q={agent:{hideBio:!1,hideName:!1,hidePic:!1},config:{cssNames:{widget:"custom_freshchat_frame"}},content:"en"===e.language?g:p,headerProperty:{hideChatButton:!0},hideFAQ:!1,locale:e.language,showFAQOnOpen:!1,host:C.eg.host,token:C.eg.token};return(0,l.useEffect)((function(){if(n){if("success"===w){var e=function(e){var t,n;return{userId:String(null===e||void 0===e?void 0:e.user_id),status:"Active",isEnduser:null===e||void 0===e?void 0:e.is_end_user,creditTerm:String(null===e||void 0===e?void 0:e.credit_term),grade:null===e||void 0===e?void 0:e.grading,isKeyAccount:(null===e||void 0===e?void 0:e.is_key_account)?"true":"false",restoreId:null!==(n=null===e||void 0===e?void 0:e.restore_id)&&void 0!==n?n:null,storeName:(null===e||void 0===e?void 0:e.shop_name)||"",email:null===e||void 0===e?void 0:e.email,gradingName:null===e||void 0===e||null===(t=e.grading)||void 0===t?void 0:t.grading_name,accessToken:null===e||void 0===e?void 0:e.token,partner:null===e||void 0===e?void 0:e.partner,consent:null===e||void 0===e?void 0:e.consent_policy_status,consentDate:null===e||void 0===e?void 0:e.consent_policy_date}}(v),t=e.isEnduser?"end-user":"restaurant";f((0,s.Z)((0,o.Z)({},q),{externalId:null===e||void 0===e?void 0:e.userId,restoreId:null===e||void 0===e?void 0:e.restoreId,tags:[t]})),d=e.storeName,window.fcWidget.user.setFirstName(d),r=e.email,window.fcWidget.user.setEmail(r),window.fcWidget.user.get((function(t){var n=t&&t.status;window.fcWidget.user.setProperties({creditTerm:e.creditTerm,grade:e.gradingName,isEndUser:e.isEnduser,isKeyAccount:e.isKeyAccount,partner:e.partner,restaurantId:e.userId,restoreId:e.restoreId,marketingConsent:e.consent,marketingConsentDate:e.consentDate,platform:"WEB"}),200!==n&&window.fcWidget.on("user:created",function(){var t=(0,i.Z)((function(t){var n,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=t&&t.status,i=t&&t.data,200!==n?[3,2]:i.restoreId?[4,h.default.post("".concat(C.__.api_host,"/baseApi/Users/SaveRestoreId"),{restore_id:i.restoreId},{headers:(0,s.Z)((0,o.Z)({},h.default.defaults.headers),{Authorization:e.accessToken,"Content-Type":"application/json"})})]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}
1))}));return function(e){return t.apply(this,arguments)}}())}))}else!function(){_.apply(this,arguments)}(),f(q);b(!0)}var r,d}),[n,w]),(0,l.useEffect)((function(){window.fcWidgetMessengerConfig={config:{headerProperty:{hideChatButton:!0}}};window.openWidget=function(){var e=document.getElementById("fc_frame");e&&(e.style.visibility="visible"),window.fcWidget&&(window.fcWidget.open(),window.fcWidget&&(window.fcWidget.on("widget:opened",(function(){var e=document.getElementById("custom_fc_button");e&&(e.style.visibility="hidden")})),window.fcWidget.on("widget:closed",(function(){var e=document.getElementById("custom_fc_button");e&&(e.style.visibility="visible")}))))}}),[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c(),{id:"freshchat",src:"https://wchat.freshchat.com/js/widget.js",strategy:"lazyOnload",onLoad:function(){d(!0)},onError:function(){k(!0)}}),(0,r.jsx)(W,{onClick:function(){return window.openWidget&&window.openWidget()}})]})}}}]);
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.