PageSourceSearch

https://www.pizzeriastuzzicadenti.it/wp-content/plugins/wp-cafe/as…/chunks/js/common-b1893266.5c960744.js

js pizzeriastuzzicadenti.it collected 2026-10-06 12:22:23 UTC 161,537 bytes, 3 lines download raw bytes

1"use strict";(globalThis.webpackChunkwp_cafe||=[]).push([[9912],{99225(e,t,n){n(51609),n.d(t,["A",0,"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMCAyLjM5NTk5QzguNjE1MjUgMi4zOTU5OSA3LjQ2MTY4IDMuNDM4NDggNy4zNDY2OCA0Ljc5MzhMNy4yMTMxOSA2LjM2NzA5QzcuMTc2NzEgNi43OTcwNiA2Ljc5MjIzIDcuMTE2NTkgNi4zNTQ0MyA3LjA4MDc1QzUuOTE2NjMgNy4wNDQ5MiA1LjU5MTMxIDYuNjY3MyA1LjYyNzc5IDYuMjM3MzNMNS43NjEyOCA0LjY2NDA1QzUuOTQ0OTkgMi40OTg5IDcuNzg3ODUgMC44MzM0OTYgMTAgMC44MzM0OTZDMTIuMjEyMiAwLjgzMzQ5NiAxNC4wNTUgMi40OTg5IDE0LjIzODggNC42NjQwNUwxNC4zNzIyIDYuMjM3MzNDMTQuNDA4NyA2LjY2NzMgMTQuMDgzMyA3LjA0NDkyIDEzLjY0NTYgNy4wODA3NUMxMy4yMDc4IDcuMTE2NTkgMTIuODIzMyA2Ljc5NzA2IDEyLjc4NjggNi4zNjcwOUwxMi42NTMzIDQuNzkzOEMxMi41MzgzIDMuNDM4NDggMTEuMzg0OCAyLjM5NTk5IDEwIDIuMzk1OTlaIiBmaWxsPSIjMTQxQjM0Ii8+CjxwYXRoIGZpbGwtcnVsZ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b981",warningColor:"#f59e0b",errorColor:"#ef4444"},helpDocUrl:"https://support.themewinter.com/docs/plugins/plugin-docs/email-settings-wp-cafe/how-to-automatate-reservation/",helpVideoUrl:"https://www.youtube.com/embed/9gV6MZeT164?si=tK8gw9fJzZxvtRWR",translationDomain:"wp-cafe"}:null},79905(e,t,n){n.d(t,{b:()=>s});var o=n(74848),r=n(27723),i=n(86087);if(2343!=n.j)var a=n(84976);if(2343!=n.j)var l=n(97213);var c=n(42713),u=n(38802),s=function(e){var t=e.config,n=e.dataState,s=e.dataFetcher,d=e.onRowClick,g=t.title,M=t.columns,f=t.rowKey,p=t.viewAll,v=t.emptyState,m=t.loadingSkeleton,j=void 0===m?{rows:6,columns:5}:m,N=t.tooltip,y=t.className,w=void 0===y?"":y,h=n.data,b=n.isLoading,_=n.error;return(0,i.useEffect)(function(){s()},[s]),(0,o.jsxs)("div",{className:"bg-white rounded-lg border border-black/15 w-full h-full min-w-0 ".concat(w),children:[(0,o.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-black/10",children:[(0,o.jsxs)("div",{className:"flex justify-start gap-1.5",children:[(0,o.jsx)("h3",{className:"text-lg! font-semibold text-black! my-0!",children:g}),(0,o.jsx)(u.W5,{icon:(0,o.jsx)(l.A,{className:"h-4 w-4"}),tooltip:N||"",variant:"icon",size:"iconCircle",tooltipAppendPos:"top",buttonClassName:"!text-sm rounded-sm p-0! h-auto! w-auto! bg-transparent! text-black/70!"})]}),function(){if(!(null==p?void 0:p.show))return null;var e=p.text||(0,r.__)("View All","wp-cafe"),t="!text-sm text-primary! !hover:text-orange-600 font-semibold";return p.onClick?(0,o.jsx)("button",{className:"".concat(t," cursor-pointer"),onClick:p.onClick,children:e}):p.href?p.href.startsWith("http")||p.href.startsWith("/wp-admin")?(0,o.jsx)("a",{href:p.href,target:p.target||"_blank",className:t,children:e}):(0,o.jsx)(a.N_,{to:p.href,className:t,children:e}):null}()]}),(0,o.jsx)("div",{className:"overflow-x-auto max-h-[400px]",children:(0,o.jsx)(c.XI,{dataSource:h,columns:M,rowKey:f,loading:b,error:_||void 0,pagination:!1,rowSelection:!1,className:"rounded-t-none border-t-0",loadingSkeleton:j,emptyScreen:v,onRow:d?function(e){return{onClick:function(){return d(e)}}}:void 0})})]})}},3712(e,t,n){n.d(t,{R:()=>i,z:()=>r});var o=n(27723),r=function(e){return{"on-hold":{label:(0,o.__)("Pending","wp-cafe"),color:"bg-yellow-500"},"pending-payment":{label:(0,o.__)("Pending","wp-cafe"),color:"bg-yellow-500"},pending:{label:(0,o.__)("Pending","wp-cafe"),color:"bg-yellow-500"},processing:{label:(0,o.__)("Pending","wp-cafe"),color:"bg-yellow-500"},"checkout-draft":{label:(0,o.__)("Pending","wp-cafe"),color:"bg-yellow-500"},confirmed:{label:(0,o.__)("Confirmed","wp-cafe"),color:"bg-green-500"},completed:{label:(0,o.__)("Confirmed","wp-cafe"),color:"bg-green-500"},cancelled:{label:(0,o.__)("Cancelled","wp-cafe"),color:"bg-red-500"},failed:{label:(0,o.__)("Cancelled","wp-cafe"),color:"bg-red-500"},refunded:{label:(0,o.__)("Cancelled","wp-cafe"),color:"bg-red-500"},rejected:{label:(0,o.__)("Cancelled","wp-cafe"),color:"bg-red-500"}}[e]||{label:e||(0,o.__)("Unknown","wp-cafe"),color:"bg-gray-400"}},i=function(e){return{pending:{label:(0,o.__)("Pending","wp-cafe"),color:"bg-yellow-500"},processing:{label:(0,o.__)("Processing","wp-cafe"),color:"bg-blue-500"},completed:{label:(0,o.__)("Completed","wp-cafe"),color:"bg-green-500"},cancelled:{label:(0,o.__)("Cancelled","wp-cafe"),color:"bg-red-500"},refunded:{label:(0,o.__)("Refunded","wp-cafe"),color:"bg-purple-500"},delivered:{label:(0,o.__)("Delivered","wp-cafe"),color:"bg-teal-500"},"on-hold":{label:(0,o.__)("On Hold","wp-cafe"),color:"bg-orange-500"},failed:{label:(0,o.__)("Failed","wp-cafe"),color:"bg-red-600"}}[e]||{label:e||(0,o.__)("Unknown","wp-cafe"),color:"bg-gray-400"}}},99622(e,t,n){var o=n(47143),r=n(27723),i=n(88687),a=n(93428),l=n(19402);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function u(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return s(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");
1for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function d(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(s(t={},o,function(){return this}),t),M=d.prototype=l.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return c.prototype=d,s(M,"constructor",d),s(d,"constructor",c),c.displayName="GeneratorFunction",s(d,r,"GeneratorFunction"),s(M),s(M,r,"Generator"),s(M,o,function(){return this}),s(M,"toString",function(){return"[object Generator]"}),(u=function(){return{w:i,m:f}})()}function s(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}s=function(e,t,n,o){function i(t,n){s(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},s(e,t,n,o)}var d=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})};const g=2343!=n.j?function(){var e,t,n,s,g,M,f,p,v,m,j,N,y,w,h,b,_,D,z=(0,o.useDispatch)(null===l.zQ||void 0===l.zQ?void 0:l.zQ.dashboard).setDashboardState,x=(0,o.useSelect)(function(e){return e(null===l.zQ||void 0===l.zQ?void 0:l.zQ.dashboard).getDashboardState()},[]),I=x.overview,T=x.dateRange,A=x.selectedBranch,S=x.isLoading,O=x.reservations,E=x.orders,L=x.topSales,k=(0,o.useSelect)(function(e){return e(null===l.zQ||void 0===l.zQ?void 0:l.zQ.modules).getModulesState()},[]),C=k.data,Q=k.loading,U=[{title:(0,r.__)("Total Revenue","wp-cafe"),module:"",value:null===(e=null==I?void 0:I.total_revenue)||void 0===e?void 0:e.total,breakdown:{orders:null===(t=null==I?void 0:I.total_revenue)||void 0===t?void 0:t.orders_revenue,reservations:null===(n=null==I?void 0:I.total_revenue)||void 0===n?void 0:n.reservations_revenue},change:{value:"".concat((null===(s=null==I?void 0:I.total_revenue)||void 0===s?void 0:s.change_percentage)||0,"%"),label:(0,r.__)("since last period","wp-cafe"),isPositive:"up"===(null===(g=null==I?void 0:I.total_revenue)||void 0===g?void 0:g.change_direction)},iconComponent:i.Q2,iconBgColor:"bg-[#FF5D87]",tooltipContent:(0,r.__)("Total revenue generated from all orders including food orders and reservations during the selected time period.","wp-cafe")},{title:(0,r.__)("Total Customers","wp-cafe"),module:"",value:(null===(f=null===(M=null==I?void 0:I.total_customers)||void 0===M?void 0:M.total)||void 0===f?void 0:f.toString())||"0",change:{value:"".concat((null===(p=null==I?void 0:I.total_customers)||void 0===p?void 0:p.change_percentage)||0,"%"),label:(0,r.__)("since last period","wp-cafe"),isPositive:"up"===(null===(v=null==I?void 0:I.total_customers)||void 0===v?void 0:v.change_direction)},iconComponent:i.Tw,iconBgColor:"bg-[#9333E9]",tooltipContent:(0,r.__)("The total number of unique customers who placed food orders or made table reservations.","wp-cafe")}],Y=[{title:(0,r.__)("Total Online Orders","wp-cafe"),module:"food_ordering",value:(null===(j=null===(m=null==I?void 0:I.total_orders)||void 0===m?void 0:m.total)||void 0===j?void 0:j.toString())||"0",change:{value:"".concat((null===(N=null==I?void 0:I.total_orders)||void 0===N?void 0:N.change_percentage)||0,"%"),label:(0,r.__)("since last period","wp-cafe"),isPositive:"up"===(null===(y=null==I?void 0:I.total_orders)||void 0===y?void 0:y.change_direction)},iconComponent:i.fB,iconBgColor:"bg-[#FF9900]",tooltipContent:(0,r.__)("The total number of food orders, including pickup, delivery, and food ordered during reservations.","wp-cafe")},{title:(0,r.__)("Total Reservations","wp-cafe"),module:"reservation",value:(null===(h=null===(w=null==I?void 0:I.total_reservations)||void 0===w?void 0:w.total)||void 0===h?void 0:h.toString())||"0",change:{value:"".concat((null===(b=null==I?void 0:I.total_reservations)||void 0===b?void 0:b.change_percentage)||0,"%"),label:(0,r.__)("since last period","wp-cafe"),isPositive:"up"===(null===(_=null==I?void 0:I.total_reservations)||void 0===_?void 0:_.change_direction)},iconComponent:i.QS,iconBgColor:"bg-[#417DFF]",tooltipContent:(0,r.__)("The total count of table reservations, excluding pickup and delivery orders.","wp-cafe")}].filter(function(e){var t;return"on"===(null===(t=null==C?void 0:C[e.module])||void 0===t?void 0:t.status)});return{overview:I,dateRange:T,selectedBranch:A,isLoading:S||Q||!1,reservations:O,orders:E,topSales:L,metricsConfig:[].concat(U,(D=Y,function(e){if(Array.isArray(e))return c(e)}(D)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(D)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(D)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),updateDateRange:function(e,t){z({dateRange:e,compareRange:t||null})},updateBranch:function(e){z({selectedBranch:e})},getOverviewData:function(e,t,n){return d(void 0,void 0,void 0,u().m(function o(){var r,i,l;return u().w(function(o){for(;;)switch(o.p=o.n){case 0:if(!S){o.n=1;break}return o.a(2);case 1:return o.p=1,z({isLoading:!0}),r={},e&&(r.start_date=e),t&&(r.end_date=t),n&&(r.branch=n),o.n=2,a.A.dashboard.getDashboardOverviewData(r);case 2:return(i=o.v).success&&z({overview:i.data,isLoading:!1}),o.a(2,i);case 3:o.p=3,l=o.v,console.error("Error fetching dashboard overview:",l);case 4:return o.a(2)}},o,null,[[1,3]])}
1))},getReservationsData:function(){return d(void 0,void 0,void 0,u().m(function e(){var t,n;return u().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!O.isLoading){e.n=1;break}return e.a(2);case 1:return e.p=1,z({reservations:Object.assign(Object.assign({},O),{isLoading:!0,error:null})}),e.n=2,a.A.dashboard.getReservations({paged:1,per_page:(null===l.X$||void 0===l.X$?void 0:l.X$.per_page)||10});case 2:return(t=e.v).success?z({reservations:{data:t.data,isLoading:!1,error:null}}):z({reservations:{data:[],isLoading:!1,error:t.message||"Failed to fetch reservations"}}),e.a(2,t);case 3:e.p=3,n=e.v,console.error("Error fetching reservations:",n);case 4:return e.a(2)}},e,null,[[1,3]])}))},getFoodOrdersData:function(){return d(void 0,void 0,void 0,u().m(function e(){var t,n,o;return u().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!E.isLoading){e.n=1;break}return e.a(2);case 1:return e.p=1,z({orders:Object.assign(Object.assign({},E),{isLoading:!0,error:null})}),e.n=2,a.A.dashboard.getFoodOrders({paged:1,per_page:(null===l.X$||void 0===l.X$?void 0:l.X$.per_page)||10});case 2:return(n=e.v).success&&z({orders:{data:(null===(t=n.data)||void 0===t?void 0:t.orders)||[],isLoading:!1,error:null}}),e.a(2,n);case 3:e.p=3,o=e.v,console.error("Error fetching food orders:",o);case 4:return e.a(2)}},e,null,[[1,3]])}))},getTopSalesData:function(){return d(void 0,void 0,void 0,u().m(function e(){var t,n,o;return u().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!L.isLoading){e.n=1;break}return e.a(2);case 1:return e.p=1,z({topSales:Object.assign(Object.assign({},L),{isLoading:!0})}),e.n=2,a.A.dashboard.getTopSales({paged:1,per_page:(null===l.X$||void 0===l.X$?void 0:l.X$.per_page)||10});case 2:return(n=e.v).success&&z({topSales:{data:(null===(t=n.data)||void 0===t?void 0:t.top_sales)||[],isLoading:!1,error:null}}),e.a(2,n);case 3:e.p=3,o=e.v,console.error("Error fetching top sales:",o),z({topSales:{data:[],error:(0,r.__)("Failed to fetch top sales","wp-cafe"),isLoading:!1}});case 4:return e.a(2)}},e,null,[[1,3]])}))}}}:null;n.d(t,["A",0,g])},12036(e,t,n){n.d(t,{r:()=>s});var o=n(47143),r=n(93428),i=n(19402);function a(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var a=o&&o.prototype instanceof u?o:u,s=Object.create(a.prototype);return l(s,"_invoke",function(n,o,r){var i,a,l,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,a=0,l=e,g.n=n,c}};function M(n,o){for(a=n,l=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(a=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,a=0))}if(r||n>1)return c;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&M(s,f),a=s,l=f;(t=a<2?e:l)||!d;){i||(a?a<3?(a>1&&(g.n=-1),M(a,l)):g.n=l:g.v=l);try{if(u=2,i){if(a||(r="next"),t=i[r]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=e}else if((t=(d=g.n<0)?l:n.call(o,g))!==c)break}catch(t){i=e,a=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var c={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(l(t={},o,function(){return this}),t),M=d.prototype=u.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return s.prototype=d,l(M,"constructor",d),l(d,"constructor",s),s.displayName="GeneratorFunction",l(d,r,"GeneratorFunction"),l(M),l(M,r,"Generator"),l(M,o,function(){return this}),l(M,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:f}})()}function l(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}l=function(e,t,n,o){function i(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},l(e,t,n,o)}
1var c=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},u=null,s=function(){var e=(0,o.useDispatch)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.integrations).setIntegrationsState,t=(0,o.useSelect)(function(e){return e(null===i.zQ||void 0===i.zQ?void 0:i.zQ.integrations).getIntegrationsState()},[]),n=t.integrations,l=t.loading;return{getIntegrations:function(){return c(void 0,void 0,void 0,a().m(function t(){return a().w(function(t){for(;;)switch(t.n){case 0:if(!n&&!l){t.n=1;break}return t.a(2);case 1:if(!u){t.n=2;break}return t.a(2,u);case 2:return u=function(){return c(void 0,void 0,void 0,a().m(function t(){var n,o;return a().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,e({loading:!0}),t.n=1,r.A.integrations.getIntegrations();case 1:return(n=t.v).success&&e({integrations:n.data,loading:!1}),t.a(2,n);case 2:t.p=2,o=t.v,console.log("Error fetching integrations:",o),e({loading:!1});case 3:return t.p=3,u=null,t.f(3);case 4:return t.a(2)}},t,null,[[0,2,3,4]])}))}(),t.a(2,u)}},t)}))},updateIntegrationStatus:function(t,n){return c(void 0,void 0,void 0,a().m(function o(){var i,l;return a().w(function(o){for(;;)switch(o.p=o.n){case 0:return e({updatingIntegration:t}),o.p=1,o.n=2,r.A.integrations.updateIntegrationStatus({name:t,status:n});case 2:return(i=o.v).success&&e({integrations:null==i?void 0:i.data}),o.a(2,i);case 3:throw o.p=3,l=o.v,console.log("Error updating integration status:",l),l;case 4:return o.p=4,e({updatingIntegration:null}),o.f(4);case 5:return o.a(2)}},o,null,[[1,3,4,5]])}))}}}},25380(e,t,n){var o=n(47143),r=n(93428),i=n(19402),a=n(33779),l=n(28268);function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function s(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return d(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(d(t={},o,function(){return this}),t),M=u.prototype=l.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,d(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return c.prototype=u,d(M,"constructor",u),d(u,"constructor",c),c.displayName="GeneratorFunction",d(u,r,"GeneratorFunction"),d(M),d(M,r,"Generator"),d(M,o,function(){return this}),d(M,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:f}})()}function d(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}d=function(e,t,n,o){function i(t,n){d(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},d(e,t,n,o)}
1var g=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})};const M=2343!=n.j?function(){var e,t,n=this,u=null===(t=null===(e=null===window||void 0===window?void 0:window.wpCafe)||void 0===e?void 0:e.router)||void 0===t?void 0:t.useNavigate(),d=(0,o.useSelect)(function(e){return e(null===i.zQ||void 0===i.zQ?void 0:i.zQ.location).getLocationState()},[]),M=(0,o.useDispatch)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.location).setLocationState,f=d.searchQuery,p=d.total,v=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return g(n,[].concat(t),void 0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s().m(function t(){var n,o,a,l,c,u,d;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return c=(null==e?void 0:e.resetFilter)?{paged:1,per_page:(null===i.X$||void 0===i.X$?void 0:i.X$.per_page)||10}:Object.assign(Object.assign({},f),e),M({isFiltering:!0,error:null}),t.p=1,t.n=2,null===(n=null===r.A||void 0===r.A?void 0:r.A.location)||void 0===n?void 0:n.getLocations(c);case 2:(null==(u=t.v)?void 0:u.success)&&M({locationList:(null===(o=null==u?void 0:u.data)||void 0===o?void 0:o.items)||[],total:(null===(a=null==u?void 0:u.data)||void 0===a?void 0:a.total)||0,searchQuery:Object.assign(Object.assign({},c),{paged:(null===(l=null==u?void 0:u.data)||void 0===l?void 0:l.current_page)||c.paged||1})}),t.n=4;break;case 3:t.p=3,d=t.v,console.error("Error fetching locations:",d),M({error:"Failed to fetch locations",isFiltering:!1});case 4:return t.p=4,M({isFiltering:!1}),t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])})()})};return{getLocations:v,getSingleLocation:function(e){return g(n,void 0,void 0,s().m(function t(){var n,o,i;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,M({isFiltering:!0,error:null}),t.n=1,null===(n=null===r.A||void 0===r.A?void 0:r.A.location)||void 0===n?void 0:n.getSingleLocation(e);case 1:if(!(null==(o=t.v)?void 0:o.success)){t.n=2;break}return M({singleLocation:null==o?void 0:o.data,isFiltering:!1}),t.a(2,null==o?void 0:o.data);case 2:t.n=4;break;case 3:t.p=3,i=t.v,console.error("Error fetching single location:",i),M({error:"Failed to fetch location",isFiltering:!1});case 4:return t.p=4,M({isFiltering:!1}),t.f(4);case 5:return t.a(2)}},t,null,[[0,3,4,5]])}))},createLocation:function(e){return g(n,void 0,void 0,s().m(function t(){var n,d,g,f,v,m,j;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,M({isFiltering:!0,error:null}),g=(0,l.r4)(e),t.n=1,null===(n=null===r.A||void 0===r.A?void 0:r.A.location)||void 0===n?void 0:n.createLocation(g);case 1:if(!(null==(f=t.v)?void 0:f.success)){t.n=2;break}return v=(0,o.select)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.location).getLocationState(),m=v.locationList,M({locationList:[null==f?void 0:f.data].concat(c(m||[])),total:p+1,singleLocation:null==f?void 0:f.data,isFiltering:!1}),u("".concat(a.oj,"/update/").concat(null===(d=null==f?void 0:f.data)||void 0===d?void 0:d.term_id)),t.a(2,f);case 2:return t.a(2,f);case 3:throw t.p=3,j=t.v,console.error("Error creating location:",j),M({error:"Failed to create location",isFiltering:!1}),j;case 4:return t.a(2)}},t,null,[[0,3]])}))},updateLocation:function(e,t){return g(n,void 0,void 0,s().m(function n(){var a,c,u,d,g,f,p;return s().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,M({isFiltering:!0,updatingLocationId:e,error:null}),c=(0,l.r4)(t),n.n=1,null===(a=null===r.A||void 0===r.A?void 0:r.A.location)||void 0===a?void 0:a.updateLocation(e,c);case 1:if(!(null==(u=n.v)?void 0:u.success)){n.n=2;break}return d=(0,o.select)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.location).getLocationState(),g=d.locationList,f=null==g?void 0:g.map(function(e){var t;return e.term_id===(null===(t=null==u?void 0:u.data)||void 0===t?void 0:t.term_id)?null==u?void 0:u.data:e}),M({locationList:f}),n.a(2,u);case 2:return n.a(2,u);case 3:throw n.p=3,p=n.v,console.error("Error updating location:",p),M({error:"Failed to update location",isFiltering:!1}),p;case 4:return n.p=4,M({isFiltering:!1,updatingLocationId:null}),n.f(4);case 5:return n.a(2)}},n,null,[[0,3,4,5]])}))},deleteLocation:function(e){return g(n,void 0,void 0,s().m(function t(){var n,a,l,c,u,d,g;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,null===(n=null===r.A||void 0===r.A?void 0:r.A.location)||void 0===n?void 0:n.deleteLocation(e);case 1:return(null==(a=t.v)?void 0:a.success)&&(l=(0,o.select)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.location).getLocationState(),c=l.locationList,u=l.total,d=null==c?void 0:c.filter(function(t){return t.term_id!==e}),M({locationList:d,total:u-1})),t.a(2,a);case 2:throw t.p=2,g=t.v,console.error("Error deleting location:",g),M({error:"Failed to delete location"}),g;case 3:return t.a(2)}},t,null,[[0,2]])}))},bulkDeleteLocations:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return g(n,[].concat(t),void 0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return s().m(function t(){var n,a,l,c,u,d,g;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,null===(n=null===r.A||void 0===r.A?void 0:r.A.location)||void 0===n?void 0:n.bulkDeleteLocations(e);case 1:return(null==(a=t.v)?void 0:a.success)&&(l=(0,o.select)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.location).getLocationState(),c=l.locationList,u=l.total,d=c.filter(function(t){return!e.includes(t.term_id)}),M({locationList:d,total:u-e.length})),t.a(2,a);case 2:throw t.p=2,g=t.v,console.error("Error bulk deleting locations:",g),M({error:"Failed to delete locations"}),g;case 3:return t.a(2)}},t,null,[[0,2]])})()})},onPaginationChange:function(e,t){M({searchQuery:Object.assign(Object.assign({},f),{paged:e,per_page:t})}),v({paged:e,per_page:t})},clearSingleLocation:function(){M({singleLocation:null})}}}:null;n.d(t,["A",0,M])},28268(e,t,n){n.d(t,{T3:()=>l,r4:()=>c});var o=n(27723);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var i={Mon:(0,o.__)("Mon","wp-cafe"),Tue:(0,o.__)("Tue","wp-cafe"),Wed:(0,o.__)("Wed","wp-cafe"),Thu:(0,o.__)("Thu","wp-cafe"),Fri:(0,o.__)("Fri","wp-cafe"),Sat:(0,o.__)("Sat","wp-cafe"),Sun:(0,o.__)("Sun","wp-cafe")},a=function(e){var t=[];return Object.entries(e).forEach(function(e){var n,o,a=(o=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}
1finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(n,o)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(n,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0];"off"===a[1].status&&t.push(i[l])}),t},l=function(e,t){var n=[];return"1"===e.override_restaurant_schedule&&!1===Array.isArray(e.restaurant_schedule)?n=a(e.restaurant_schedule):t&&(n=a(t)),0===n.length?(0,o.__)("None","wp-cafe"):n.join(", ")},c=function(e){var t=Object.assign({},e);return t.restaurant_type=function(e){var t=[];return"1"===e.override_online_ordering&&t.push("food_ordering"),"1"===e.override_reservation&&t.push("reservation"),t}(e),t}},93800(e,t,n){var o=n(74848),r=n(27723);if(2343!=n.j)var i=n(56808);if(2343!=n.j)var a=n(80827);if(2343!=n.j)var l=n(67378);var c=n(78971),u=n(79085),s=n(62468),d=n(19025),g=n(68602);const M=2343!=n.j?function(e){var t=e.name,n=e.title,M=e.description,f=e.status,p=e.is_pro,v=e.doc_link,m=e.demo_link,j=e.settings_link,N=e.icon,y=e.loading,w=e.iconClassName,h=void 0===w?"w-12 h-12":w,b=e.onAction,_=(0,u.M)(),D=p&&!_,z=(0,g.Z)().handleAddonStatus,x=d.P1[f]||(0,r.__)("Install Now","wp-cafe");return(0,o.jsxs)(s.Card,{className:"relative bg-white rounded-lg border border-neutral-300 shadow-none p-0 ".concat(D?"opacity-60":""),children:[p&&!_&&(0,o.jsxs)("div",{className:"absolute top-0 right-0 w-12.5 h-12.5 overflow-hidden rounded-tr-lg",children:[(0,o.jsx)("div",{className:"absolute top-0 right-0 w-0 h-0 border-l-50 border-l-transparent border-t-50 border-primary"}),(0,o.jsx)("div",{className:"absolute top-2 right-2",children:(0,o.jsx)(l.A,{size:14,className:"text-white"})})]}),(0,o.jsxs)("div",{className:"space-y-3 p-5",children:[(0,o.jsx)("div",{className:"flex items-center justify-between",children:(0,o.jsx)("div",{className:"wpc-plugin-icon flex items-center justify-center ".concat(h," bg-card rounded-lg"),children:N?(0,o.jsx)("div",{className:"".concat(h," rounded-lg flex items-center justify-center"),dangerouslySetInnerHTML:{__html:N}}):(0,o.jsx)(a.A,{className:"w-6 h-6 text-black/60"})})}),(0,o.jsx)("div",{children:(0,o.jsx)("h4",{className:"font-semibold text-black text-base! leading-tight my-0!",children:n})}),(0,o.jsx)("p",{className:"text-sm leading-relaxed my-0! text-black/60",children:M}),(0,o.jsxs)("div",{className:"flex items-center gap-4 mt-2",children:[v&&(0,o.jsxs)(c.$,{variant:"link",onClick:function(){v&&window.open(v,"_blank")},className:"flex items-center gap-1.5 text-sm text-neutral-500 hover:text-primary transition-colors pl-0!",children:[(0,o.jsx)(a.A,{size:14}),(0,r.__)("Read More","wp-cafe")]}),m&&(0,o.jsxs)(c.$,{variant:"link",onClick:function(){m&&window.open(m,"_blank")},className:"flex items-center gap-1.5 text-sm text-neutral-500 hover:text-primary transition-colors pl-0!",children:[(0,o.jsx)(i.A,{size:14}),(0,r.__)("Tutorial","wp-cafe")]})]})]}),(0,o.jsx)("div",{className:"mt-auto p-4 border-t border-border",children:(0,o.jsx)("div",{className:"flex items-center justify-end gap-2",children:p&&!_?(0,o.jsxs)(c.$,{disabled:!0,className:"flex items-center gap-2 text-sm h-9 px-4",children:[(0,o.jsx)(l.A,{size:16}),(0,r.__)("Pro Required","wp-cafe")]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(c.$,{onClick:function(){return e=t,n=f,void(b?b(e,n):z(e,n));var e,n},disabled:y,className:"text-sm h-9 px-4",loading:y,variant:"deactivate"===f?"outline":"default",children:x}),j&&"deactivate"===f&&(0,o.jsx)(c.$,{variant:"softSecondary",onClick:function(){var e;if(j){var t=(null===(e=window.wpCafe)||void 0===e?void 0:e.admin_url)||"/wp-admin/";window.open("".concat(t).concat(j),"_blank")}},className:"text-sm h-9 px-4",children:(0,r.__)("Configure","wp-cafe")})]})})})]})}:null;n.d(t,["A",0,M])},43554(e,t,n){n.d(t,{L:()=>l});var o=n(74848),r=n(47143),i=n(93800),a=n(19402),l=function(e){var t=e.addons;if(0===t.length)return null;var n=(0,r.useSelect)(function(e){return e(null===a.zQ||void 0===a.zQ?void 0:a.zQ.modules).getModulesState()},[]).updatingModules;return(0,o.jsx)("div",{className:"bg-white rounded-lg border border-neutral-300 rounded-t-none",children:(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4 p-6",children:t.map(function(e){return(0,o.jsx)(i.A,{name:e.name,title:e.title,de
1scription:e.description,status:e.status,is_pro:e.is_pro,doc_link:e.doc_link,demo_link:e.demo_link,settings_link:e.settings_link,icon:e.icon,loading:null==n?void 0:n.includes(e.name)},e.name)})})})}},27613(e,t,n){n.d(t,{E:()=>c});var o=n(74848),r=n(47143),i=n(6155),a=n(62468),l=n(19402),c=function(e){var t=e.module,n=e.isEnabled,c=e.onToggle,u=e.className,s=void 0===u?"":u,d=e.showToggle,g=void 0===d||d;if(!t)return null;var M=(0,r.useSelect)(function(e){return e(null===l.zQ||void 0===l.zQ?void 0:l.zQ.modules).getModulesState()},[]).updatingModules,f=null==M?void 0:M.includes(t.name);return(0,o.jsxs)(a.Card,{className:"flex flex-row items-center justify-between p-4 rounded-md rounded-b-none ".concat(s),children:[(0,o.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,o.jsx)("h3",{className:"text-base! my-0! font-semibold text-black!",children:t.title}),(0,o.jsx)("p",{className:"text-sm text-black/60! my-0!",children:t.description})]}),g&&(0,o.jsx)(i.d,{checked:n,onCheckedChange:function(e){return null==c?void 0:c(t.slug,e?"on":"off")},loading:f})]})}},91390(e,t,n){n.d(t,{V:()=>l,s:()=>c});var o=n(74848),r=n(27723),i=n(62468),a=n(38802),l=function(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.CI,{title:(0,r.__)("Modules","wp-cafe")}),(0,o.jsx)(a.mc,{children:(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsx)(i.Skeleton,{className:"h-6 w-80"}),(0,o.jsx)("div",{className:"space-y-4",children:(0,o.jsxs)("div",{className:"bg-white rounded-lg border border-muted p-6",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(i.Skeleton,{className:"h-6 w-48"}),(0,o.jsx)(i.Skeleton,{className:"h-4 w-72"})]}),(0,o.jsx)(i.Skeleton,{className:"h-6 w-12"})]}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[1,2,3].map(function(e){return(0,o.jsx)("div",{className:"bg-white border border-muted rounded-lg p-4",children:(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(i.Skeleton,{className:"h-5 w-32"}),(0,o.jsx)(i.Skeleton,{className:"h-4 w-full"}),(0,o.jsx)(i.Skeleton,{className:"h-4 w-3/4"}),(0,o.jsxs)("div",{className:"flex justify-between items-center pt-2",children:[(0,o.jsx)(i.Skeleton,{className:"h-4 w-12"}),(0,o.jsx)(i.Skeleton,{className:"h-5 w-10"})]})]})},e)})})]})})]})})]})},c=function(){return(0,o.jsx)("div",{className:"bg-white border border-muted rounded-lg p-4",children:(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsx)(i.Skeleton,{className:"h-5 w-32"}),(0,o.jsx)(i.Skeleton,{className:"h-4 w-full"}),(0,o.jsx)(i.Skeleton,{className:"h-4 w-3/4"}),(0,o.jsxs)("div",{className:"flex justify-between items-center pt-2",children:[(0,o.jsx)(i.Skeleton,{className:"h-4 w-12"}),(0,o.jsx)(i.Skeleton,{className:"h-5 w-10"})]})]})})}},81212(e,t,n){n.d(t,{v:()=>u});var o=n(74848),r=n(21688),i=n(47143),a=n(19402);const l=function(e){var t=e.name,n=e.title,l=e.description,c=e.status,u=e.is_pro,s=e.doc_link,d=e.onToggle,g=e.icon,M=e.settings_link,f=(0,i.useSelect)(function(e){return e(null===a.zQ||void 0===a.zQ?void 0:a.zQ.modules).getModulesState()},[]).updatingModules,p=null==f?void 0:f.includes(t);return(0,o.jsx)(r.A,{name:t,title:n,description:l,status:c,is_pro:u,loading:p,doc_link:s,onToggle:d,icon:g,showConfigureButton:Boolean(M),settings_link:M,iconClassName:"wcf-feature-icon"},t)};var c=n(62468),u=function(e){var t=e.className,n=void 0===t?"":t,r=e.subModules,i=e.onToggle;return 0===r.length?null:(0,o.jsx)(c.Card,{className:"rounded-b-sm rounded-t-none border-t-0 bg-white ".concat(n),children:(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4",children:r.map(function(e){return(0,o.jsx)(l,{name:e.name,title:e.title,description:e.description,status:e.status,is_pro:e.is_pro,doc_link:e.doc_link,onToggle:i,icon:e.icon,settings_link:e.settings_link,showConfigureButton:!0},e.slug)})})})}},19025(e,t,n){n.d(t,{Gq:()=>s,Mj:()=>c,P1:()=>u,Q9:()=>l});var o=n(74848),r=n(27723),i=n(44853),a=n(88687),l=[{id:"all",label:(0,r.__)("All","wp-cafe"),icon:(0,o.jsx)(a.Vq,{})},{id:"food_ordering",label:(0,r.__)("Online Food Order","wp-cafe"),icon:(0,o.jsx)(i.A,{size:18})},{id:"reservation",label:(0,r.__)("Restaurant Reservation","wp-cafe"),icon:(0,o.jsx)(a.zs,{})},{id:"general",label:(0,r.__)("General","wp-cafe"),icon:(0,o.jsx)(a.Vv,{})},{id:"addons",label:(0,r.__)("Addons","wp-cafe"),icon:(0,o.jsx)(a.ek,{})}],c=2343!=n.j?{all:[],food_ordering:["food_ordering"],reservation:["reservation"],general:[""],addons:["woocommerce","wpcafe-multivendor","wpcafe-ad
1don-for-wcfm","wpcafe-oxygen-addon","optiontics","aisentic","deposet","wpcafe-elementor-addons","wpcafe-bricks-builder-addon"]}:null,u={deactivate:(0,r.__)("Deactivate","wp-cafe"),activate:(0,r.__)("Activate","wp-cafe"),install:(0,r.__)("Install","wp-cafe"),upgrade:(0,r.__)("Upgrade","wp-cafe")},s=2343!=n.j?["food_ordering","reservation","woocommerce","wpcafe-multivendor","wpcafe-addon-for-wcfm","wpcafe-oxygen-addon","optiontics","aisentic","deposet","wpcafe-elementor-addons","wpcafe-bricks-builder-addon"]:null},68602(e,t,n){n.d(t,{Z:()=>d});var o=n(86087),r=n(82464),i=n(39992),a=n(20269);function l(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(c(t={},o,function(){return this}),t),M=d.prototype=u.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return s.prototype=d,c(M,"constructor",d),c(d,"constructor",s),s.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(M),c(M,r,"Generator"),c(M,o,function(){return this}),c(M,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:f}})()}function c(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}c=function(e,t,n,o){function i(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},c(e,t,n,o)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var s=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},d=function(){var e,t,n=(0,i.zm)(),c=n.setParams,d=n.getParams,g=(e=(0,o.useState)(function(){return d("all")}),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),M=g[0],f=g[1],p=(0,r.J)().updateModuleStatus,v=(0,a.A)().updatePluginStatus;return{activeTab:M,handleTabChange:function(e){f(e),c(e)},handleModuleToggle:function(e,t){return s(void 0,void 0,void 0,l().m(function n(){var o;return l().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,p(e,t);case 1:n.n=3;break;case 2:n.p=2,o=n.v,console.error("Failed to update module:",o);case 3:return n.a(2)}},n,null,[[0,2]])}))},handleAddonStatus:function(e,t){return s(void 0,void 0,void 0,l().m(function n(){var o;return l().w(function(n){for(;;)switch(n.p=n.n){case 0:return n.p=0,n.n=1,v(e,t);case 1:n.n=3;break;case 2:n.p=2,o=n.v,console.error("Failed to update addon:",o);case 3:return n.a(2)}},n,null,[[0,2]])}))}}}},82464(e,t,n){n.d(t,{J:()=>N});var o=n(47143),r=n(93428),i=n(19402);function a(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return u(s,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");
1for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function s(){}function d(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(u(t={},o,function(){return this}),t),M=d.prototype=l.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return s.prototype=d,u(M,"constructor",d),u(d,"constructor",s),s.displayName="GeneratorFunction",u(d,r,"GeneratorFunction"),u(M),u(M,r,"Generator"),u(M,o,function(){return this}),u(M,"toString",function(){return"[object Generator]"}),(c=function(){return{w:i,m:f}})()}function u(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}u=function(e,t,n,o){function i(t,n){u(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},u(e,t,n,o)}var s,d,g,M,f,p,v=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},m=null,j=[],N=function(){var e=(0,o.useDispatch)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.modules).setModulesState,t=(0,o.useSelect)(function(e){return e(null===i.zQ||void 0===i.zQ?void 0:i.zQ.modules).getModulesState()},[]),n=t.data,l=t.loading,u=function(t,n){return v(void 0,void 0,void 0,c().m(function o(){var i,l;return c().w(function(o){for(;;)switch(o.p=o.n){case 0:return o.p=0,o.n=1,r.A.modules.updateModuleStatus({name:t,status:n});case 1:return(i=o.v).success&&e({data:null==i?void 0:i.data}),o.a(2,i);case 2:o.p=2,l=o.v,console.log("Error updating module status:",l);case 3:return o.p=3,j=j.filter(function(e){return e!==t}),e({updatingModules:j.length>0?a(j):null}),0===j.length&&(m=null),o.f(3);case 4:return o.a(2)}},o,null,[[0,2,3,4]])}))};return{getModules:function(){return v(void 0,void 0,void 0,c().m(function t(){var o,i;return c().w(function(t){for(;;)switch(t.p=t.n){case 0:if(!n&&!l){t.n=1;break}return t.a(2);case 1:return t.p=1,e({loading:!0}),t.n=2,r.A.modules.getModules();case 2:return(o=t.v).success&&e({data:o.data,loading:!1}),t.a(2,o);case 3:t.p=3,i=t.v,console.log(" Error fetching modules:",i);case 4:return t.a(2)}},t,null,[[1,3]])}))},updateModuleStatus:function(t,n){return v(void 0,void 0,void 0,c().m(function o(){return c().w(function(o){for(;;)if(0===o.n)return j.push(t),e({updatingModules:a(j)}),m=m?m.then(function(){return u(t,n)}).catch(function(e){return console.error("Error in module update chain:",e),Promise.resolve()}):u(t,n).catch(function(e){return console.error("Error in module update:",e),Promise.resolve()}),o.a(2,m)},o)}))}}};null===(g=null===(d=null===(s=null===window||void 0===window?void 0:window.wp)||void 0===s?void 0:s.hooks)||void 0===d?void 0:d.removeFilter)||void 0===g||g.call(d,"wpcafe_use_modules_api","wpcafe"),null===(p=null===(f=null===(M=null===window||void 0===window?void 0:window.wp)||void 0===M?void 0:M.hooks)||void 0===f?void 0:f.addFilter)||void 0===p||p.call(f,"wpcafe_use_modules_api","wpcafe",function(){return N},10)},48014(e,t,n){n.d(t,{Bd:()=>N,NV:()=>h,cX:()=>y});var o=n(74848),r=n(27723),i=n(10404),a=n(38802),l=n(77283);var c=n(16029);var u=n(86087),s=n(47143),d=n(39766),g=n(24748),M=n(19402),f=n(62468);function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var v=[{name:"optiontics",title:(0,r.__)("Optiontics","wp-cafe"),description:(0,r.__)("Add extra options to food items-toppings, sizes, and paid add-ons, so customers can customize their orders.","wp-cafe"),icon:function(){return(0,o.jsxs)("svg",{width:"33",height:"36",viewBox:"0 0 32 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,o.jsx)("rect",{width:"32",height:"36",rx:"5",fill:"#F6F3FF"}),(0,o.jsx)("rect",{x:"3",y:"3",width:"26",height:"9",rx:"4.5",fill:"#4A3BD6"}),(0,o.jsx)("rect",{x:"3",y:"13.5",width:"26",height:"9",rx:"4.5",fill:"#6F33EC"}),(0,o.jsx)("rect",{x:"3",y:"24",width:"26",height:"9",rx:"4.5",fill:"#1AB89C"}),(0,o.jsx)("circle",{cx:"7.5",cy:"7.5",r:"2.125",stroke:"white",strokeWidth:"0.75"}),(0,o.jsx)("circle",{cx:"7.5",cy:"28.5",r:"2.5",fill:"white"}),(0,o.jsx)("circle",{cx:"7.5",cy:"18",r:"2.5",fill:"white"}),(0,o.jsx)("path",{d:"M6.5 18.125L7.125 18.75L8.5 17.25",stroke:"#6F33EC",strokeWidth:"0.375",strokeLinecap:"round",strokeLinejoin:"round"})]})}},{name:"aisentic",title:(0,r.__)("Aisentic","wp-cafe"),description:(0,r.__)("Add an AI chatbot so visitors can search your site and navigate features just by asking questions.","wp-cafe"),icon:a.Qd}];var m,j=n(88687),N=[{key:"module_selection",title:(0,r.__)("Set Up Your Restaurant","
1wp-cafe"),description:(0,r.__)("Let’s start with the basics. Fill in your restaurant info to get started.","wp-cafe"),fields:(0,o.jsx)(function(){var e=(0,i.useFormContext)().control,t=(0,l.default)().handleModuleSelection;return(0,o.jsxs)("div",{className:"space-y-5",children:[(0,o.jsx)(a.ZQ,{control:e,name:"restaurant_type",label:(0,r.__)("Restaurant Type","wp-cafe"),tooltip:(0,r.__)("Select how your restaurant serves customers. Choose one or both options: 'Food Ordering' for online orders or 'Reservation' for table booking.","wp-cafe"),required:!0,inputField:function(e){var n=e.value,r=void 0===n?[]:n,i=e.onChange;return(0,o.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 w-full",children:y.map(function(e){return(0,o.jsx)(a.YW,{title:e.title,description:e.description,icon:e.icon,value:e.value,selected:r.includes(e.value),onToggle:function(){return t({selectedValue:e.value,value:r,onChange:i})}},e.value)})})}}),(0,o.jsx)(a.ks,{control:e,name:"restaurant_name",label:(0,r.__)("Restaurant Name","wp-cafe"),tooltip:(0,r.__)("Enter your restaurant's name as you'd like it to appear to customers (e.g., Café Aroma).","wp-cafe"),placeholder:(0,r.__)("e.g. Café Aroma","wp-cafe"),required:!0}),(0,o.jsx)(a.YI,{control:e,name:"restaurant_location",label:(0,r.__)("Location","wp-cafe"),tooltip:(0,r.__)("Provide your restaurant’s physical location or city so customers can find and order from you.","wp-cafe"),placeholder:(0,r.__)("Search or enter address (choose from suggestions if available)","wp-cafe"),required:!0}),(0,o.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 items-start gap-4",children:[(0,o.jsx)(a.ks,{control:e,name:"restaurant_email",label:(0,r.__)("Email Address","wp-cafe"),placeholder:(0,r.__)("[email protected]","wp-cafe")}),(0,o.jsx)(a.ks,{control:e,name:"restaurant_phone",label:(0,r.__)("Contact Number","wp-cafe"),placeholder:(0,r.__)("123 456 7890","wp-cafe")})]}),(0,o.jsx)(a.Oc,{inlineLabel:(0,r.__)("Yes, I want helpful updates (no spam, ever!)","wp-cafe"),control:e,name:"terms_agreed",required:!1})]})},{})},{key:"schedule",title:(0,r.__)("Set Your Weekly Schedule","wp-cafe"),description:(0,r.__)("Tell us when your restaurant is open and when you take breaks.","wp-cafe"),fields:(0,o.jsx)(function(){var e=(0,i.useFormContext)(),t=e.watch("restaurant_schedule")||c.no;return(0,o.jsx)(a.D8,{value:t,onChange:function(t){e.setValue("restaurant_schedule",t,{shouldValidate:!0,shouldDirty:!0})},name:"restaurant_schedule",className:"w-full",showMaxOrders:!0})},{})},{key:"food_ordering",title:(0,r.__)("Set Up Online Food Ordering","wp-cafe"),description:(0,r.__)("Let customers order for pickup or delivery — and choose if you want to accept tips.","wp-cafe"),get fields(){var e,t,n;return null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===t?void 0:t.applyFilters)||void 0===n?void 0:n.call(t,"wpcafe_food_order_onboard",null)}},{key:"reservation",title:(0,r.__)("Set Up Reservations","wp-cafe"),description:(0,r.__)("Let customers book tables online. Customize guest limits, time slots, and more.","wp-cafe"),get fields(){var e,t,n;return null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===t?void 0:t.applyFilters)||void 0===n?void 0:n.call(t,"wpcafe_reservation_onboard",null)}},{key:"woocommerce",title:(0,r.__)("Connect with WooCommerce","wp-cafe"),description:(0,r.__)("Sync your food menu with WooCommerce to manage orders, payments, and categories easily.","wp-cafe"),fields:(0,o.jsx)(function(){var e,t,n,i=(t=(0,u.useState)(!0),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}
1(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=i[0],c=i[1],m=(0,s.useSelect)(function(e){return e(null===M.zQ||void 0===M.zQ?void 0:M.zQ.settings).getSettingsState()},[]).data,j=null===(e=null===window||void 0===window?void 0:window.wpCafe)||void 0===e?void 0:e.aisentic,N="active"===(null==m?void 0:m.aisentic_status),y=!(null==j?void 0:j.active)||!!(null==j?void 0:j.supports_registration);return(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsx)(f.Card,{className:"border rounded-lg p-4",children:(0,o.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,o.jsxs)("div",{className:"min-w-0 space-y-2",children:[(0,o.jsx)("div",{className:"text-neutral-light text-base font-medium leading-none tracking-tight",children:(0,r.__)("Woocommerce","wp-cafe")}),(0,o.jsx)(a.VY,{children:(0,r.__)("To use this plugin, You must need to install and activate WooCommerce.","wp-cafe")})]}),(0,o.jsx)("div",{className:"shrink-0",children:(0,o.jsx)(d.n,{})})]})}),(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsx)("div",{className:"text-sm font-medium text-black/80",children:(0,r.__)("Recommended plugins","wp-cafe")}),v.map(function(e){var t,n=e.name,i=e.title,u=e.description,s=e.icon;return(0,o.jsxs)(f.Card,{className:"border rounded-lg p-4",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,o.jsxs)("div",{className:"flex min-w-0 items-center gap-4",children:[(0,o.jsx)("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center",children:(0,o.jsx)(s,{})}),(0,o.jsxs)("div",{className:"min-w-0 space-y-1",children:[(0,o.jsx)("div",{className:"text-base font-medium text-black/90",children:i}),(0,o.jsx)(a.VY,{children:u})]})]}),(0,o.jsx)("div",{className:"shrink-0",children:(0,o.jsx)(d.A,{name:n,extraPayload:"aisentic"===n?{consent:l}:void 0})})]}),"aisentic"===n&&!N&&y&&(0,o.jsxs)("div",{className:"mt-4 flex items-start gap-2.5 border-t pt-3 border-black/10",children:[(0,o.jsx)(g.S,{id:"wpcafe-aisentic-consent",checked:l,onCheckedChange:function(e){return c(!0===e)},className:"mt-0.5"}),(0,o.jsxs)("label",{htmlFor:"wpcafe-aisentic-consent",className:"cursor-pointer space-y-0.5",children:[(0,o.jsx)("div",{className:"text-sm font-medium text-black/80",children:(0,r.__)("Connect my site and get 150K free AI tokens","wp-cafe")}),(0,o.jsxs)("div",{className:"text-xs text-black/50",children:[(0,r.sprintf)(/* translators: %s: email address the Aisentic account is created for. */ /* translators: %s: email address the Aisentic account is created for. */
2(0,r.__)("Shares your name, email (%s) and site with Aisentic.","wp-cafe"),null!==(t=null==j?void 0:j.email)&&void 0!==t?t:"")," ",(0,o.jsx)("a",{href:null==j?void 0:j.terms_url,target:"_blank",rel:"noopener noreferrer",className:"underline",children:(0,r.__)("Terms","wp-cafe")})]})]})]})]},n)})]})]})},{})}],y=[{value:"food_ordering",title:(0,r.__)("Food Ordering","wp-cafe"),description:(0,r.__)("Take online orders for delivery or pickup","wp-cafe"),icon:(0,o.jsx)(j.oG,{})},{value:"reservation",title:(0,r.__)("Reservation","wp-cafe"),description:(0,r.__)("Let customers book a table online","wp-cafe"),icon:(0,o.jsx)(j.Al,{})}],w=(null===(m=null===window||void 0===window?void 0:window.wpCafe)||void 0===m?void 0:m.adminUrl)||"",h={food_ordering:{title:(0,r.__)("🍽️ Next Steps to Get Started","wp-cafe"),content:[{title:(0,r.__)("Add Food Items (WooCommerce products shown as food menu)","wp-cafe"),action:{label:(0,r.__)("Add Food Menu","wp-cafe"),link:"".concat(w,"edit.php?post_type=product&wpcafe=true")},links:{video:"#",doc:"https://support.themewinter.com/docs/plugins/plugin-docs/food-ordering/add-new-food-item/"}},{title:(0,r.__)("Create Food product categories and labels (e.g., Pizza, Pasta)","wp-cafe"),action:{label:(0,r.__)("Add Category","wp-cafe"),link:"".concat(w,"edit-tags.php?taxonomy=product_cat&post_type=product&wpcafe=true")},links:{video:"https://youtu.be/aVaopHF8Qpk",doc:"https://support.themewinter.com/docs/plugins/plugin-docs/food-ordering/how-to-use-product-labels-in-wpcafe/"}},{title:(0,r.__)("How to use shortcodes to display food menu on your site","wp-cafe"),action:{label:(0,r.__)("Available Shortcodes","wp-cafe"),link:"".concat(w,"admin.php?page=wpcafe#/shortcodes"),target:"_self"},links:{video:"https://www.youtube.com/watch?v=zORxmnxVJd8&list=PLW54c-mt4ObB2k9t8A5ALlwKGjeWxB8zQ",doc:"https://support.themewinter.com/docs/plugins/plugin-docs/wpcafe-version-3/how-to-use-shortocde-on-wpcafe/"}}]},reservation:{title:(0,r.__)("Reservations","wp-cafe"),content:[{title:(0,r.__)("How to Configure Reservations in WP Cafe","wp-cafe"),action:{label:(0,r.__)("Configure","wp-cafe"),link:"".concat(w,"admin.php?page=wpcafe#/settings?tab=reservation-rules"),target:"_self"},links:{video:"https://www.youtube.com/watch?v=zORxmnxVJd8&list=PLW54c-mt4ObB2k9t8A5ALlwKGjeWxB8zQ",doc:"https://support.themewinter.com/docs/plugins/plugin-docs/reservation/general-sett
2ings-4/"}},{title:(0,r.__)("How to Configure Reservations form for your restaurant","wp-cafe"),action:{label:(0,r.__)("Configure","wp-cafe"),link:"".concat(w,"admin.php?page=wpcafe#/settings?tab=customization"),target:"_self"},links:{video:"https://www.youtube.com/watch?v=zORxmnxVJd8&list=PLW54c-mt4ObB2k9t8A5ALlwKGjeWxB8zQ",doc:"https://support.themewinter.com/docs/plugins/plugin-docs/reservation/form-customization/"}}]}}},77283(e,t,n){n.r(t),n.d(t,{default:()=>u,processModuleSelection:()=>c});var o=n(47143),r=n(48014),i=n(19402),a=n(68602);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var c=function(e){var t,n=e.selectedValue,o=e.value,i=void 0===o?[]:o,a=e.onChange,c=e.setOnboardState,u=e.onModuleToggle,s=i;if(n){var d=i.includes(n);s=d?i.filter(function(e){return e!==n}):[].concat(function(e){if(Array.isArray(e))return l(e)}(t=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[n]),null==a||a(s),null==u||u(n,d?"off":"on")}var g=["food_ordering","reservation"].filter(function(e){return!s.includes(e)}),M=r.Bd.filter(function(e){return!g.includes(e.key)});return null==c||c({steps:M,totalSteps:M.length}),{finalValue:s,updatedSteps:M}};const u=function(){var e=(0,o.useDispatch)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.onboard).setOnboardState,t=(0,a.Z)().handleModuleToggle;return{handleModuleSelection:function(n){var o=n.selectedValue,r=n.value,i=void 0===r?[]:r,a=n.onChange;return c({selectedValue:o,value:i,onChange:a,setOnboardState:e,onModuleToggle:t})}}}},22705(e,t,n){n.d(t,{N:()=>c});var o=n(47169),r=n(27723),i=n(57937);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var l=i.z.object({address:i.z.string(),lat:i.z.number(),lng:i.z.number()}),c=o.dP.safeExtend({restaurant_type:i.z.preprocess(function(e){return void 0===e?[]:e},i.z.array(i.z.enum(["food_ordering","reservation"])).min(1,{message:(0,r.__)("Select at least one restaurant type","wp-cafe")})),restaurant_name:i.z.string().trim().min(1,(0,r.__)("Restaurant name is required","wp-cafe")),restaurant_location:i.z.union([i.z.string().trim().min(1,(0,r.__)("Restaurant location is required","wp-cafe")),l,i.z.null()]).refine(function(e){return!!e&&("string"==typeof e?e.trim().length>0:!("object"!==a(e)||!e.address)&&e.address.trim().length>0)},{message:(0,r.__)("Restaurant location is required","wp-cafe")}),terms_agreed:i.z.boolean().optional()})},20269(e,t,n){n.d(t,{w:()=>w});var o=n(86087),r=n(27723),i=n(47143),a=n(64721),l=n(93428),c=n(19402);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t,n){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return g(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");
2for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(g(t={},o,function(){return this}),t),M=u.prototype=l.prototype=Object.create(s);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,g(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return c.prototype=u,g(M,"constructor",u),g(u,"constructor",c),c.displayName="GeneratorFunction",g(u,r,"GeneratorFunction"),g(M),g(M,r,"Generator"),g(M,o,function(){return this}),g(M,"toString",function(){return"[object Generator]"}),(d=function(){return{w:i,m:f}})()}function g(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}g=function(e,t,n,o){function i(t,n){g(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},g(e,t,n,o)}function M(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var v=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},m=null,j=[],N={"dokan-lite":"Dokan","wc-frontend-manager":"WCFM","wc-multivendor-marketplace":"WCFM Marketplace"},y=function(e){var t;return null!==(t=N[e])&&void 0!==t?t:e.replace(/-/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()})},w=function(e){switch(e){case"install":case"deactivate":return"activate";case"activate":case"upgrade":return"deactivate";default:return e}};n.d(t,["A",0,function(){var e,t,n=(e=(0,o.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=n[0],g=n[1],p=(0,i.useDispatch)(null===c.zQ||void 0===c.zQ?void 0:c.zQ.settings).setSettingsState,N=(0,i.useDispatch)(null===c.zQ||void 0===c.zQ?void 0:c.zQ.modules).setModulesState,h=(0,i.useSelect)(function(e){return e(null===c.zQ||void 0===c.zQ?void 0:c.zQ.settings).getSettingsState()},[]).data,b=(0,i.useSelect)(function(e){return e(null===c.zQ||void 0===c.zQ?void 0:c.zQ.modules).getModulesState()},[]).updatingModules,_=function(e,t,n,o){return v(void 0,void 0,void 0,d().m(function u(){var f,v,b,_,D,z,x,I,T,A,S,O,E;return d().w(function(u){for(;;)switch(u.p=u.n){case 0:return u.p=0,g(!0),b=(0,i.select)(null===c.zQ||void 0===c.zQ?void 0:c.zQ.modules).getModulesState(),_=b.data,D="install"===t&&null!==(v=null===(f=null==_?void 0:_[e])||void 0===f?void 0:f.missing_deps)&&void 0!==v?v:[],z=l.A.plugins.pluginUpdate(Object.assign({name:e,status:t},null!=o?o:{}),0===D.length),D.length>0&&(x=D.map(y).join(", "),a.oR.promise(z,{loading:(0,r.sprintf)((0,r.__)("%s is not installed. Installing it for you...","wp-cafe"),x),success:function(e){var t;return null!==(t=null==e?void 0:e.message)&&void 0!==t?t:(0,r.__)("Successfully updated","wp-cafe")},error:function(e){var t;return null!==(t=null==e?void 0:e.message)&&void 0!==t?t:(0,r.__)("Something went wrong","wp-cafe")}})),u.n=1,z;case 1:(null==(I=u.v)?void 0:I.success)&&(T=null!=n?n:"".concat(e,"_status"),h&&Object.prototype.hasOwnProperty.call(h,T)&&p({data:Object.assign(Object.assign({},h),s({},T,"active"))}),A=(0,i.select)(null===c.zQ||void 0===c.zQ?void 0:c.zQ.modules).getModulesState(),S=A.data,O=Object.assign(Object.assign({},S),s({},e,Object.assign(Object.assign({},null==S?void 0:S[e]),{status:w(t)}))),N({data:O})),u.n=3;break;case 2:u.p=2,E=u.v,console.error(E);case 3:return u.p=3,g(!1),j=j.filter(function(t){return t!==e}),N({updatingModules:j.length>0?M(j):null}),0===j.length&&(m=null),u.f(3);case 4:return u.a(2)}},u,null,[[0,2,3,4]])}))};return{updatePluginStatus:function(e,t,n,o){return v(void 0,void 0,void 0,d().m(function r(){return d().w(function(r){for(;;)if(0===r.n)return j.push(e),N({updatingModules:M(j)}),m=m?m.then(function(){return _(e,t,n,o)}).catch(function(e){return console.error("Error in plugin update chain:",e),Promise.resolve()}):_(e,t,n,o).catch(function(e){return console.error("Error in plugin update:",e),Promise.resolve()}),r.a(2,m)}
2,r)}))},loading:u,isPluginLoading:function(e){var t;return null!==(t=null==b?void 0:b.includes(e))&&void 0!==t&&t}}}])},39766(e,t,n){n.d(t,{A:()=>s,n:()=>d});var o=n(74848),r=n(47143),i=n(27723),a=n(79804),l=n(20269),c=n(19402),u=n(62468),s=function(e){var t,n=e.name,s=e.statusKey,d=e.extraPayload,g=(0,l.A)(),M=g.updatePluginStatus,f=g.isPluginLoading,p=(0,r.useSelect)(function(e){return e(null===c.zQ||void 0===c.zQ?void 0:c.zQ.settings).getSettingsState()},[]).data,v=null!=s?s:"".concat(n,"_status"),m=null!==(t=null==p?void 0:p[v])&&void 0!==t?t:"not-installed",j=f(n);return"active"===m?(0,o.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm font-medium text-success whitespace-nowrap",children:[(0,o.jsx)(a.A,{className:"w-5 h-5 fill-success stroke-white"}),(0,i.__)("Activated","wp-cafe")]}):(0,o.jsx)(u.Button,{variant:"infoOutline",onClick:function(){return M(n,"activate",v,d)},loading:j,children:(0,i.__)("not-installed"===m?"Install and activate":"Activate","wp-cafe")})},d=function(){return(0,o.jsx)(s,{name:"woocommerce",statusKey:"wc_status"})}},32487(e,t,n){var o=n(47143),r=n(86087),i=n(93428),a=n(19402),l=n(33779);function c(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function s(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return d(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(d(t={},o,function(){return this}),t),M=u.prototype=l.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,d(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return c.prototype=u,d(M,"constructor",u),d(u,"constructor",c),c.displayName="GeneratorFunction",d(u,r,"GeneratorFunction"),d(M),d(M,r,"Generator"),d(M,o,function(){return this}),d(M,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:f}})()}function d(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}d=function(e,t,n,o){function i(t,n){d(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},d(e,t,n,o)}var g=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})};const M=2343!=n.j?function(){var e,t,n=(0,o.useDispatch)(null===a.zQ||void 0===a.zQ?void 0:a.zQ.qrCode).setQrCodeState,u=(0,o.useSelect)(function(e){return e(null===a.zQ||void 0===a.zQ?void 0:a.zQ.qrCode).getQrCodeState()},[]),d=null===(t=null===(e=null===window||void 0===window?void 0:window.wpCafe)||void 0===e?void 0:e.router)||void 0===t?void 0:t.useNavigate(),M=u.isLoading,f
2=u.selected,p=u.total,v=(0,r.useCallback)(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return g(void 0,[].concat(t),void 0,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;return s().m(function o(){var r,a,l,c,d,g,f,p,v,m;return s().w(function(o){for(;;)switch(o.p=o.n){case 0:if(!M){o.n=1;break}return o.a(2);case 1:return o.p=1,n({isLoading:!0,error:null}),g={paged:e,per_page:t},o.n=2,i.A.qrCode.getQrCodes(g);case 2:(null==(f=o.v)?void 0:f.success)&&(p=f.data||{},v=p.pagination||{current_page:null!==(r=p.current_page)&&void 0!==r?r:e,per_page:null!==(a=p.per_page)&&void 0!==a?a:t,total_count:null!==(d=null!==(l=p.total)&&void 0!==l?l:null===(c=p.items)||void 0===c?void 0:c.length)&&void 0!==d?d:0,total_pages:p.total?Math.max(1,p.last_page||Math.ceil((p.total||0)/(p.per_page||t||10))):1},n({qrCodeList:p.items,pagination:v,total:v.total_count,searchQuery:Object.assign(Object.assign({},u.searchQuery),{paged:e,per_page:t})})),o.n=4;break;case 3:o.p=3,m=o.v,console.error("Error fetching QR codes:",m),n({isLoading:!1,error:"Failed to fetch QR codes"});case 4:return o.p=4,n({isLoading:!1}),o.f(4);case 5:return o.a(2)}},o,null,[[1,3,4,5]])})()})},[M,n,u.searchQuery]);return Object.assign(Object.assign({},u),{fetchQrCodes:v,createQrCode:function(e){return g(void 0,void 0,void 0,s().m(function t(){var r,u,g,M,f;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,n({isLoading:!0,error:null}),t.n=1,i.A.qrCode.createQrCode(e);case 1:if(!(u=t.v).success){t.n=2;break}return g=(0,o.select)(null===a.zQ||void 0===a.zQ?void 0:a.zQ.qrCode).getQrCodeState(),M=g.qrCodeList,n({qrCodeList:[u.data].concat(c(M||[])),singleQrCode:u.data,isLoading:!1,total:(p||0)+1}),null==d||d("".concat(l.aI,"/update/").concat(null===(r=u.data)||void 0===r?void 0:r.id)),t.a(2,u);case 2:return t.a(2,u);case 3:t.p=3,f=t.v,console.error("Error creating QR code:",f);case 4:return t.a(2)}},t,null,[[0,3]])}))},updateQrCode:function(e,t){return g(void 0,void 0,void 0,s().m(function r(){var l,c,u,d,g;return s().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,n({isLoading:!0,error:null}),r.n=1,i.A.qrCode.updateQrCode(e,t);case 1:if(!(l=r.v).success){r.n=2;break}return c=(0,o.select)(null===a.zQ||void 0===a.zQ?void 0:a.zQ.qrCode).getQrCodeState(),u=c.qrCodeList,d=null==u?void 0:u.map(function(t){return t.id===e?l.data:t}),n({qrCodeList:d,isLoading:!1}),r.a(2,l);case 2:return r.a(2,l);case 3:r.p=3,g=r.v,console.error("Error updating QR code:",g);case 4:return r.a(2)}},r,null,[[0,3]])}))},deleteQrCode:function(e){return g(void 0,void 0,void 0,s().m(function t(){var r,l,c,u,d;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,i.A.qrCode.deleteQrCode(e);case 1:return(r=t.v).success&&(l=(0,o.select)(null===a.zQ||void 0===a.zQ?void 0:a.zQ.qrCode).getQrCodeState(),c=l.qrCodeList,u=null==c?void 0:c.filter(function(t){return t.id!==e}),n({qrCodeList:u,total:(p||0)-1})),t.a(2,r);case 2:t.p=2,d=t.v,console.error("Error deleting QR code:",d);case 3:return t.a(2)}},t,null,[[0,2]])}))},bulkDeleteQrCodes:function(){return g(void 0,void 0,void 0,s().m(function e(){var t,r,l,c,u;return s().w(function(e){for(;;)switch(e.p=e.n){case 0:if(f.length){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,i.A.qrCode.bulkDeleteQrCodes(f);case 2:return(null==(t=e.v)?void 0:t.success)&&(r=(0,o.select)(null===a.zQ||void 0===a.zQ?void 0:a.zQ.qrCode).getQrCodeState(),l=r.qrCodeList,c=null==l?void 0:l.filter(function(e){return!f.includes(e.id)}),n({qrCodeList:c,isLoading:!1,selected:[],total:(p||0)-f.length})),e.a(2,t);case 3:e.p=3,u=e.v,console.error("Error bulk deleting QR codes:",u);case 4:return e.a(2)}},e,null,[[1,3]])}))},onPaginationChange:function(e,t){n({searchQuery:Object.assign(Object.assign({},u.searchQuery),{paged:e,per_page:t})}),v(e,t)},getQrCodeById:function(e){return g(void 0,void 0,void 0,s().m(function t(){var o,r;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,n({isLoading:!0,error:null}),t.n=1,i.A.qrCode.getQrCode(e);case 1:if(!(null==(o=t.v)?void 0:o.success)){t.n=2;break}return n({singleQrCode:null==o?void 0:o.data,isLoading:!1}),t.a(2,o.data);case 2:t.n=4;break;case 3:t.p=3,r=t.v,console.error("Error fetching QR code:",r);case 4:return t.p=4,n({isLoading:!1}),t.f(4);case 5:return t.a(2)}},t,null,[[0,3,4,5]])}))}})}:null;n.d(t,["A",0,M])},26891(e,t,n){n.d(t,{i:()=>s});var o=n(86087),r=n(32487),i=n(33779);function a(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var a=o&&o.prototype instanceof u?o:u,s=Object.create(a.prototype);return l(s,"_invoke",function(n,o,r){var i,a,l,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,a=0,l=e,g.n=n,c}};function M(n,o){for(a=n,l=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(l=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(a=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,a=0))}if(r||n>1)return c;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&M(s,f),a=s,l=f;(t=a<2?e:l)||!d;){i||(a?a<3?(a>
21&&(g.n=-1),M(a,l)):g.n=l:g.v=l);try{if(u=2,i){if(a||(r="next"),t=i[r]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(l=TypeError("The iterator does not provide a '"+r+"' method"),a=1);i=e}else if((t=(d=g.n<0)?l:n.call(o,g))!==c)break}catch(t){i=e,a=1,l=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var c={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(l(t={},o,function(){return this}),t),M=d.prototype=u.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,l(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return s.prototype=d,l(M,"constructor",d),l(d,"constructor",s),s.displayName="GeneratorFunction",l(d,r,"GeneratorFunction"),l(M),l(M,r,"Generator"),l(M,o,function(){return this}),l(M,"toString",function(){return"[object Generator]"}),(a=function(){return{w:i,m:f}})()}function l(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}l=function(e,t,n,o){function i(t,n){l(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},l(e,t,n,o)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var s=function(e){var t,n,l=e.isEditMode,u=e.qrCodeId,s=e.singleQrCode,d=(0,r.A)(),g=d.createQrCode,M=d.updateQrCode,f=null===(n=null===(t=null===window||void 0===window?void 0:window.wpCafe)||void 0===t?void 0:t.router)||void 0===n?void 0:n.useNavigate(),p=c((0,o.useState)(!1),2),v=p[0],m=p[1],j=c((0,o.useState)(""),2),N=j[0],y=j[1];(0,o.useEffect)(function(){if(l&&s){var e=s.page_url||"";y(e),m(!0)}},[l,s]);var w=(0,o.useCallback)(function(e,t){if(e&&t){var n="".concat(t);y(n),m(!0)}},[l]),h=(0,o.useCallback)(function(e){var t="string"==typeof e?{table_id:e}:e,n=t.table_id,o=t.id?"qr-code-".concat(t.id):"generated-qr-code",r=document.getElementById(o);if(r){var i=(new XMLSerializer).serializeToString(r),a=document.createElement("canvas"),l=a.getContext("2d"),c=new Image;c.onload=function(){a.width=c.width,a.height=c.height,null==l||l.drawImage(c,0,0);var e=a.toDataURL("image/png"),t=document.createElement("a");t.download="QR-Code-".concat(n||"table",".png"),t.href=e,t.click()},c.src="data:image/svg+xml;base64,".concat(btoa(i))}else console.warn("QR code SVG not found with ID: ".concat(o))},[]),b=(0,o.useCallback)(function(e){return t=void 0,n=void 0,o=void 0,r=a().m(function t(){var n,o;return a().w(function(t){for(;;)switch(t.p=t.n){case 0:if(t.p=0,n={table_id:e.table_id,page_url:N||"".concat(e.page_url)},!l||!u){t.n=2;break}return t.n=1,M(u,n);case 1:t.n=3;break;case 2:return t.n=3,g(n);case 3:t.n=5;break;case 4:t.p=4,o=t.v,console.error("Error saving QR code:",o);case 5:return t.a(2)}},t,null,[[0,4]])}),new(o||(o=Promise))(function(e,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function l(e){try{c(r.throw(e))}catch(e){i(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o(function(e){e(n)})).then(a,l)}c((r=r.apply(t,n||[])).next())});var t,n,o,r},[N,l,u,M,g,f]),_=(0,o.useCallback)(function(){null==f||f(i.aI)},[]);return{qrCodeGenerated:v,qrCodeValue:N,handlePageUrlFocusChange:w,handleDownloadQrCode:h,onSubmit:b,handleCancel:_,handlePrintQrCode:function(e){var t,n,o=e.id?"qr-code-".concat(e.id):"generated-qr-code",r=document.getElementById(o);if(r){var i=(new XMLSerializer).serializeToString(r),a="data:image/svg+xml;base64,".concat(btoa(i)),l=document.createElement("iframe");
2l.style.position="absolute",l.style.left="-9999px",l.style.top="-9999px",document.body.appendChild(l);var c=l.contentDocument||(null===(t=l.contentWindow)||void 0===t?void 0:t.document);if(c){c.open(),c.write("\n                <html>\n                <head>\n                    <title>Print QR Code - Table ".concat(e.table_id,'</title>\n                    <style>\n                        body { \n                            font-family: Arial, sans-serif; \n                            text-align: center; \n                            padding: 20px; \n                            margin: 0;\n                        }\n                        .qr-container { \n                            margin: 20px auto; \n                            max-width: 300px; \n                        }\n                        .qr-image { \n                            max-width: 100%; \n                            height: 300px;\n                            width: 100%;\n                        }\n                        .table-info { \n                            margin: 20px 0; \n                            font-size: 18px; \n                            font-weight: bold; \n                        }\n                        @media print {\n                            body { margin: 0; }\n                        }\n                    </style>\n                </head>\n                <body>\n                    <div class="qr-container">\n                        <div class="table-info">Table: ').concat(e.table_id,'</div>\n                        <img src="').concat(a,'" alt="QR Code for ').concat(e.table_id,'" class="qr-image" />\n                        <div style="font-size: 16px; margin-top: 24px; color: #666;">\n                            Scan to order from this table\n                        </div>\n                    </div>\n                </body>\n                </html>\n            ')),c.close();var u=c.querySelector("img");u?(u.onload=function(){var e;null===(e=l.contentWindow)||void 0===e||e.print(),setTimeout(function(){document.body.removeChild(l)},1e3)},u.onerror=function(){console.error("Failed to load QR code image for printing"),document.body.removeChild(l)}):(null===(n=l.contentWindow)||void 0===n||n.print(),setTimeout(function(){document.body.removeChild(l)},1e3))}}else console.warn("QR code SVG not found with ID: ".concat(o))}}}},14267(e,t,n){n.d(t,{oS:()=>de,bg:()=>ue,MK:()=>ce,gM:()=>se});var o=n(74848),r=n(27723),i=n(44853),a=n(54687),l=n(80964),c=n(32307),u=n(86589),s=n(49436),d=n(34846),g=n(47767),M=n(10404),f=n(38802),p=n(62468),v=n(90008),m=n(86087),j=n(71112),N=n(99693),y=n(62680);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var h=[{value:"light",label:"Light"},{value:"dark",label:"Dark"},{value:"system",label:"System"}];function b(e){var t,n,r=e.className,i=e.disabled,a=void 0!==i&&i,l=(0,N.D)(),c=l.theme,u=l.setTheme,s=(t=(0,m.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=s[0],g=s[1];(0,m.useEffect)(function(){g(!0)},[]);var M=c||"system",f=function(e){a||u(e)};return d?(0,o.jsxs)("div",{children:[(0,o.jsx)(p.Label,{className:"mb-2",children:"Theme Preference"}),(0,o.jsx)(y.z,{value:M,onValueChange:f,className:(0,j.cn)("flex gap-5 md:gap-10",r),disabled:a,children:h.map(function(e){var t=M===e.value,n="system"===e.value;return(0,o.jsxs)("div",{className:(0,j.cn)("flex flex-col gap-2 items-center rounded-lg transition-all cursor-pointer",a&&"cursor-not-allowed opacity-50"),onClick:function(){return!a&&f(e.value)},children:[(0,o.jsx)("div",{className:(0,j.cn)("relative h-20 w-20  rounded-lg border-2 transition-all overflow-hidden",t?"border-primary shadow-lg":"border-border hover:border-primary/50","bg-card"),children:n?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"absolute left-0 top-0 w-1/2 h-full bg-white dark:bg-[#efefef]"}),(0,o.jsx)("div",{className:"absolute right-0 top-0 w-1/2 h-full bg-gray-900"}),(0,o.jsx)("div",{className:"absolute left-1/2 top-0 w-px h-full bg-border"})]}):(0,o.jsx)("div",{className:(0,j.cn)("w-full h-full","light"===e.value?"bg-white dark:bg-[#efefef]":"bg-gray-900")})}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(y.C,{value:e.value,id:"theme-".concat(e.value),disabled:a}),(0,o.jsx)("span",{className:(0,j.cn)("text-sm font-medium transition-colors",t?"text-primary":"text-muted-foreground"),children:e.label})]})]},e.value)})})]}):(0,o.jsx)("div",{className:(0,j.cn)("flex gap-4",r),children:h.map(function(e){return(0,o.jsx)("div",{className:"h-20 w-20 rounded-lg border border-border bg-card animate-pulse"},e.value)})})}
2const _=function(){var e=(0,M.useFormContext)().control;return(0,o.jsx)(f.bg,{title:(0,r.__)("Appearance & Localization Settings","wp-cafe"),description:(0,r.__)("Customize the colors and language preferences for your reservation forms, calendar, mini-cart, and other UI elements.","wp-cafe"),children:(0,o.jsxs)("div",{className:"space-y-5",children:[(0,o.jsx)(p.Card,{className:"space-y-5",children:(0,o.jsx)(b,{})}),(0,o.jsxs)(p.Card,{className:"space-y-5",children:[(0,o.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,o.jsx)(f.AN,{control:e,label:(0,r.__)("Primary Color","wp-cafe"),name:"primary_color"}),(0,o.jsx)(f.AN,{control:e,label:(0,r.__)("Secondary Color","wp-cafe"),name:"secondary_color"})]}),(0,o.jsx)(f.pp,{control:e,name:"calendar_language",label:(0,r.__)("Calendar Language","wp-cafe"),tooltip:(0,r.__)("Select the language for your calendar.","wp-cafe"),placeholder:(0,r.__)("Choose a language","wp-cafe"),options:v.tu})]})]})})},D=function(){var e=(0,M.useFormContext)(),t=e.control,n=e.watch;return(0,o.jsx)(f.bg,{title:(0,r.__)("Location Settings","wp-cafe"),description:(0,r.__)("Enable this for location-based services to enhance user experience during food ordering and reservations.","wp-cafe"),children:(0,o.jsxs)(p.Card,{className:"space-y-5",children:[(0,o.jsx)(f.q5,{title:(0,r.__)("Require Location","wp-cafe"),description:(0,r.__)("Enable this to require users to select a location before they can proceed with food ordering or reservations.","wp-cafe"),name:"require_location"}),(0,o.jsx)(f.pp,{control:t,name:"display_location_selector",label:(0,r.__)("Display location selector on","wp-cafe"),tooltip:(0,r.__)("Automatically show the location selector popup when the location is not set.","wp-cafe"),placeholder:(0,r.__)("Select an option","wp-cafe"),options:ue}),"specific_pages"===n("display_location_selector")?(0,o.jsx)(f.pp,{control:t,name:"location_selector_pages",label:(0,r.__)("Location Selector Pages","wp-cafe"),tooltip:(0,r.__)("Select the pages where the location selector should appear.","wp-cafe"),placeholder:(0,r.__)("Select an option","wp-cafe"),options:se,isMulti:!0}):null,(0,o.jsx)(f.q5,{title:(0,r.__)("Floating Location Widget","wp-cafe"),description:(0,r.__)("Show a persistent floating badge with the selected location on the frontend. Visitors can click it to switch locations. Honors the same page rules as the location selector above.","wp-cafe"),name:"enable_floating_location_widget"})]})})},z=function(){return(0,o.jsxs)("div",{className:"space-y-5",children:[(0,o.jsx)(_,{}),(0,o.jsx)(D,{})]})};var x=n(39992);const I=function(){var e,t,n,i=(0,M.useFormContext)(),a=i.control,l=i.getValues,c=i.setValue,u=(0,x.q7)().modulesData,s=(0,x.Mm)(),d=function(e){var t;return"on"===(null===(t=null==u?void 0:u[e])||void 0===t?void 0:t.status)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(f.bg,{title:(0,r.__)("Notification Settings","wp-cafe"),description:(0,r.__)("Choose which new events show the alert box, play the sound and add a bell item.","wp-cafe"),children:(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[d("food_ordering")&&(0,o.jsx)(f.q5,{title:(0,r.__)("Food Ordering Notifications","wp-cafe"),name:"enable_order_notification",description:(0,r.__)("Alert staff when a new order is placed.","wp-cafe")}),d("reservation")&&(!s||d("notifications")?(0,o.jsx)(f.q5,{title:(0,r.__)("Reservation Notifications","wp-cafe"),name:"enable_reservation_notification",description:(0,r.__)("Alert staff when a new reservation is placed.","wp-cafe"),isPro:!0}):(0,o.jsx)(f.VY,{children:(0,r.__)("Turn on the Notifications module to get reservation alerts.","wp-cafe")}))]})}),(0,o.jsx)(f.bg,{title:(0,r.__)("Sound Notification Settings","wp-cafe"),description:(0,r.__)("Enable to customize sound alerts for new orders and reservations in the admin dashboard.","wp-cafe"),children:(0,o.jsx)(f.X,{title:(0,r.__)("Enable Custom Sound Notification","wp-cafe"),switchable:!0,defaultEnabled:l("enable_sound_notification"),onToggle:function(e){return c("enable_sound_notification",e)},isPro:!0,children:null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===t?void 0:t.applyFilters)||void 0===n?void 0:n.call(t,"wpcafe_repeated_sound_option",null,{control:a,SelectInput:f.pp,FormInput:f.ZQ,getValues:l})})})]})};var T=n(47143),A=n(58877),S=n(93428),O=n(19402);function E(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,u=Object.create(c.prototype);return L(u,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");
2for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function l(){}function c(){}function u(){}t=Object.getPrototypeOf;var s=[][o]?t(t([][o]())):(L(t={},o,function(){return this}),t),d=u.prototype=l.prototype=Object.create(s);function g(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,L(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=u,L(d,"constructor",u),L(u,"constructor",c),c.displayName="GeneratorFunction",L(u,r,"GeneratorFunction"),L(d),L(d,r,"Generator"),L(d,o,function(){return this}),L(d,"toString",function(){return"[object Generator]"}),(E=function(){return{w:i,m:g}})()}function L(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}L=function(e,t,n,o){function i(t,n){L(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},L(e,t,n,o)}var k=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})};const C=function(){var e=(0,M.useFormContext)(),t=e.control,n=e.watch,i=e.setValue,a=function(){var e=(0,T.useDispatch)(null===O.zQ||void 0===O.zQ?void 0:O.zQ.settings).setSettingsState,t=(0,T.useSelect)(function(e){return e(null===O.zQ||void 0===O.zQ?void 0:O.zQ.settings).getSettingsState()},[]).versions;return{getVersions:function(){return k(void 0,void 0,void 0,E().m(function n(){var o,r,i,a,l,c;return E().w(function(n){for(;;)switch(n.p=n.n){case 0:if(!t){n.n=1;break}return n.a(2);case 1:return a=[],n.p=2,n.n=3,S.A.versions.getVersions();case 3:(null==(l=n.v)?void 0:l.success)&&Array.isArray(null===(o=null==l?void 0:l.data)||void 0===o?void 0:o.versions)?(a=null===(r=null==l?void 0:l.data)||void 0===r?void 0:r.versions.map(function(e){return{label:e,value:e}})).sort(function(e,t){for(var n=e.value.split(".").map(Number),o=t.value.split(".").map(Number),r=0;r<Math.max(n.length,o.length);r++){var i=n[r]||0,a=o[r]||0;if(i!==a)return a-i}return 0}):a=[],e({versions:a,currentVersion:null===(i=null==l?void 0:l.data)||void 0===i?void 0:i.current_version}),n.n=5;break;case 4:n.p=4,c=n.v,console.error(c),e({versions:[]});case 5:return n.a(2)}},n,null,[[2,4]])}))},reinstallVersion:function(t){return k(void 0,void 0,void 0,E().m(function n(){var o,r,i;return E().w(function(n){for(;;)switch(n.p=n.n){case 0:if(t){n.n=1;break}return n.a(2);case 1:return n.p=1,e({reinstallLoading:!0}),n.n=2,S.A.versions.getRollbackUrl({version:t});case 2:(null==(r=n.v)?void 0:r.success)&&(null===(o=null==r?void 0:r.data)||void 0===o?void 0:o.rollback_url)?window.location.replace(r.data.rollback_url):e({reinstallLoading:!1}),n.n=4;break;case 3:n.p=3,i=n.v,console.error(i),e({reinstallLoading:!1});case 4:return n.a(2)}},n,null,[[1,3]])}))}}}(),l=a.getVersions,c=a.reinstallVersion,u=(0,T.useSelect)(function(e){return e(null===O.zQ||void 0===O.zQ?void 0:O.zQ.settings).getSettingsState()},[]),s=u.versions,d=u.reinstallLoading,g=u.currentVersion;(0,m.useEffect)(function(){l()},[]),(0,m.useEffect)(function(){g&&!n("rollback_version")&&i("rollback_version",g)},[g,i]);var v=n("rollback_version");return(0,o.jsx)(f.bg,{title:(0,r.__)("Version Control Settings","wp-cafe"),description:(0,r.__)("Manage and control different versions of your plugin or application, allowing you to rollback to previous versions if needed.","wp-cafe"),children:(0,o.jsxs)(p.Card,{className:"space-y-3",children:[(0,o.jsxs)("div",{className:"grid gap-4 grid-cols-1 sm:grid-cols-[7fr_3fr] items-end",children:[(0,o.jsx)(f.pp,{control:t,name:"rollback_version",label:(0,r.__)("Rollback Version","wp-cafe"),tooltip:(0,r.__)("Select the version to which you want to rollback.","wp-cafe"),placeholder:(0,r.__)("Choose a version","wp-cafe"),options:s}),(0,o.jsx)(f.Po,{onConfirm:function(){v&&c(v)},title:(0,r.__)("Reinstall Version","wp-cafe"),description:(0,r.__)("Are you sure you want to reinstall version ".concat(v,"? This action cannot be undone."),"wp-cafe"),trigger:(0,o.jsxs)(p.Button,{variant:"outlineDark",disabled:!v||d,children:[(0,o.jsx)(A.A,{className:d?"animate-bounce":""}),(0,o.jsx)("span",{children:(0,r.__)("Reinstall","wp-cafe")}),(0,o.jsx)("span",{children:v})]}),deleteBtnText:(0,r.__)("Reinstall","wp-cafe")})]}),(0,o.jsx)(f.VY,{className:"text-danger",children:(0,r.__)("Warning: Please backup your database before making the rollback.","wp-cafe")})]})})};var Q=n(22175);const U=function(){return(0,o.jsx)(f.Yg,{title:(0,r.__)("Presence Widgets is a Pro feature","wp-cafe"),description:(0,r.__)("Add a welcome video and a quick contact c
2ard that float over your site. Available in WP Cafe Pro.","wp-cafe"),learnMoreUrl:O.tl.wcf_pro_url})};var Y=n(88217),P=n(50525),G=n(33663),F=n(16029),Z=(0,m.lazy)(function(){return Promise.resolve().then(n.bind(n,81648))});const R=function(){var e,t,n,i=(0,M.useFormContext)(),a=i.setValue,l=(0,i.getValues)("restaurant_schedule")||F.no;return(0,o.jsx)(f.bg,{title:(0,r.__)("Set Your Weekly Global Schedule","wp-cafe"),description:(0,r.__)("Configure your restaurant's weekly operating hours, including multiple time slots in each day for flexibility.","wp-cafe"),children:(0,o.jsxs)("div",{className:"space-y-5",children:[(0,o.jsx)(f.Ni,{}),(0,o.jsx)(m.Suspense,{fallback:(0,o.jsx)(p.Skeleton,{className:"h-[300px] w-full"}),children:(0,o.jsx)(Z,{value:l,onChange:function(e){a("restaurant_schedule",e,{shouldDirty:!0,shouldTouch:!0})},showMaxOrders:!0})}),(0,o.jsx)(f.X,{title:(0,r.__)("Order Limit — Count Orders With Status","wp-cafe"),description:(0,r.__)("Choose which order statuses count toward each day's order limit above.","wp-cafe"),isPro:!0,children:null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===t?void 0:t.applyFilters)||void 0===n?void 0:n.call(t,"wpcafe_schedule_order_limit_settings",(0,o.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,r.__)("Requires a newer version of WP Cafe Pro.","wp-cafe")}),{control:i.control,SelectInput:f.pp})}),(0,o.jsx)(P.A,{formMethods:i}),(0,o.jsx)(Y.A,{formMethods:i}),(0,o.jsx)(G.A,{formMethods:i})]})})};var W=n(3777),V=n(37164),B=function(){var e,t,n,i=(0,M.useFormContext)();return(0,o.jsx)(V.b,{title:(0,r.__)("Holidays & Days Off","wp-cafe"),description:(0,r.__)("Add specific dates when your restaurant will be closed or unavailable for online orders or reservations.","wp-cafe"),className:"rounded-md",children:null===(n=null===(t=null===(e=null===window||void 0===window?void 0:window.wp)||void 0===e?void 0:e.hooks)||void 0===t?void 0:t.applyFilters)||void 0===n?void 0:n.call(t,"wpc_cafe_custom_holiday_schedule",(0,o.jsx)(W.q,{title:(0,r.__)("Add custom Holiday","wp-cafe"),name:"enable_custom_holiday",description:(0,r.__)("Enable custom holiday schedule","wp-cafe"),isPro:!0}),{formMethods:i})})},H=n(12541);function J(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var X={date:(0,H.GP)(new Date,"yyyy-MM-dd"),time:{start:"9:00 AM",end:"5:00 PM"}},$=n(97213),K=n(80697),ee=n(1839);const te=function(e){var t,n,i,a,l=e.schedule,c=e.index,u=e.onScheduleChange,s=e.onDeleteSchedule,d=new Date(l.date),g=null===(t=(0,M.useFormContext)().formState.errors)||void 0===t?void 0:t.custom_schedules,v=null===(n=null==g?void 0:g[c])||void 0===n?void 0:n.time,m=null===(i=null==v?void 0:v.end)||void 0===i?void 0:i.message,j=null===(a=null==v?void 0:v.start)||void 0===a?void 0:a.message,N=j||m;return(0,o.jsxs)("div",{className:"space-y-1.5",children:[(0,o.jsxs)("div",{className:"group flex items-center gap-3",children:[(0,o.jsx)("div",{className:"shrink-0",children:(0,o.jsx)(f.lr,{value:d,onChange:function(e){if(e){var t=(0,H.GP)(e,"yyyy-MM-dd");u(c,{date:t})}}})}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("div",{className:"space-y-1",children:(0,o.jsx)(f.Aj,{value:l.time.start,onChange:function(e){u(c,{time:Object.assign(Object.assign({},l.time),{start:e})})},placeholder:(0,r.__)("Start time","wp-cafe"),className:j?"border-red-500 focus-visible:ring-red-500":""})}),(0,o.jsx)("span",{className:"text-sm text-gray-500",children:"to"}),(0,o.jsx)("div",{className:"space-y-1",children:(0,o.jsx)(f.Aj,{value:l.time.end,onChange:function(e){u(c,{time:Object.assign(Object.assign({},l.time),{end:e})})},placeholder:(0,r.__)("End time","wp-cafe"),className:m?"border-red-500 focus-visible:ring-red-500":""})})]}),(0,o.jsx)(f.uW,{onConfirm:function(){return s(c)},trigger:(0,o.jsx)(p.Button,{variant:"ghost",size:"icon",className:"h-8 w-8 text-red-500 hover:bg-danger/5 shrink-0",title:(0,r.__)("Delete schedule","
2wp-cafe"),children:(0,o.jsx)(ee.A,{className:"h-4 w-4"})})})]}),N&&(0,o.jsx)("div",{className:"text-[13px] text-red-600",children:j||m})]})},ne=function(e){var t=e.schedules,n=e.onScheduleChange,i=e.onAddSchedule,a=e.onDeleteSchedule;return(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("h4",{className:"text-[15px]! font-medium text-black/85 my-0!",children:(0,r.__)("Set custom schedule","wp-cafe")}),(0,o.jsx)(p.TooltipProvider,{children:(0,o.jsxs)(p.Tooltip,{children:[(0,o.jsx)(p.TooltipTrigger,{children:(0,o.jsx)($.A,{className:"h-4 w-4 text-gray-400"})}),(0,o.jsx)(p.TooltipContent,{children:(0,o.jsx)("div",{className:"max-w-xs text-sm",children:(0,r.__)("Add specific dates with custom time slots for your restaurant operations. These schedules will override the regular schedule.","wp-cafe")})})]})})]}),(0,o.jsx)("div",{className:"space-y-3 max-w-1/3",children:t.map(function(e,t){return(0,o.jsx)(te,{schedule:e,index:t,onScheduleChange:n,onDeleteSchedule:a},t)})}),(0,o.jsx)("div",{className:"mt-4",children:(0,o.jsxs)(p.Button,{type:"button",variant:"outlinePrimary",size:"sm",onClick:i,className:"flex items-center gap-2",children:[(0,o.jsx)(K.A,{className:"w-4 h-4"}),(0,r.__)("Add new","wp-cafe")]})})]})},oe=function(){var e=function(){var e,t=(0,M.useFormContext)(),n=t.setValue,o=t.watch,r={shouldDirty:!0,shouldTouch:!0},i=o("custom_schedules")||[],a=null!==(e=o("enable_custom_schedule"))&&void 0!==e&&e,l=i.map(function(e){return Object.assign(Object.assign({},e),{time:{start:(0,F.kB)(e.time.start),end:(0,F.kB)(e.time.end)}})});return{customSchedules:l,isCustomScheduleEnabled:a,handleToggleChange:function(e){n("enable_custom_schedule",e,{shouldDirty:!0,shouldTouch:!0}),!e||i&&0!==i.length||n("custom_schedules",[X],r)},handleAddSchedule:function(){var e=[].concat(J(i),[X]);n("custom_schedules",e,r)},handleScheduleChange:function(e,t){var o=J(i),a=o[e];a&&(void 0!==t.date&&(a.date=t.date),void 0!==t.time&&(a.time=Object.assign(Object.assign({},a.time),{start:(0,F.QI)(t.time.start),end:(0,F.QI)(t.time.end)})),o[e]=a,n("custom_schedules",o,r))},handleDeleteSchedule:function(e){var t=i.filter(function(t,n){return n!==e});n("custom_schedules",t,r)}}}(),t=e.customSchedules,n=e.isCustomScheduleEnabled,i=e.handleToggleChange,a=e.handleAddSchedule,l=e.handleScheduleChange,c=e.handleDeleteSchedule;return(0,o.jsx)(f.bg,{title:(0,r.__)("Days With Custom Schedules","wp-cafe"),description:(0,r.__)("Set specific time slots for certain dates that differ from your regular schedule.","wp-cafe"),className:"rounded-md",children:(0,o.jsx)(f.X,{title:(0,r.__)("Days With Custom Schedules","wp-cafe"),switchable:!0,defaultEnabled:n||!1,onToggle:i,children:(0,o.jsx)(ne,{schedules:t,onScheduleChange:l,onAddSchedule:a,onDeleteSchedule:c})})})},re=function(){return(0,o.jsxs)("div",{className:"space-y-6",children:[(0,o.jsx)(R,{}),(0,o.jsx)(B,{}),(0,o.jsx)(oe,{})]})};function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}var ae,le,ce=function(e){var t,n,M,p,v,m,j,N,y,w,h,b,_,D,T,A,S,O,E,L,k,_x,Y,P,G,F,Z,R,W,V,B,H,J,q,X,$,K,ee=(0,x.q7)().modulesData,te=(0,g.Zp)(),ne=function(e){te("/modules?tab=".concat(e))},oe={label:(0,r.__)("Food Ordering","wp-cafe"),icon:i.A,tab:"food-ordering",children:[{label:(0,r.__)("Food Menu","wp-cafe"),tab:"food-menu",content:"on"===(null===(t=null==ee?void 0:ee.food_ordering)||void 0===t?void 0:t.status)?null===(p=null===(M=null===(n=null===window||void 0===window?void 0:window.wp)||void 0===n?void 0:n.hooks)||void 0===M?void 0:M.applyFilters)||void 0===p?void 0:p.call(M,"wpcafe_food_order_food_menu_settings",null):null},{label:(0,r.__)("Pickup","wp-cafe"),tab:"pickup",content:null===(j=null===(m=null===(v=null===window||void 0===window?void 0:window.wp)||void 0===v?void 0:v.hooks)||void 0===m?void 0:m.applyFilters)||void 0===j?void 0:j.call(m,"wpcafe_food_order_pickup_settings",null,{control:e.control,InputWithAddonInput:f.bz,SingleSwitchBox:f.q5,MessageBox:f.pu,enabled:"on"===(null===(N=null==ee?void 0:ee.pickup)||void 0===N?void 0:N.status),handleNavigate:ne})},{label:(0,r.__)("Delivery","wp-cafe"),tab:"delivery",content:null===(h=null===(w=null===(y=null===window||void 0===window?void 0:window.wp)||void 0===y?void 0:y.hooks)||void 0===w?void 0:w.applyFilters)||void 0===h?void 0:h.call(w,"wpcafe_food_order_delivery_settings",null,{control:e.control,InputWithAddonInput:f.bz,SingleSwitchBox:f.q5,MessageBox:f.pu,enabled:"on"===(null===(b=null==ee?void 0:ee.delivery)||void 0===b?void 0:b.status),handleNavigate:ne})},{label:(0,r.__)("Mini Cart","wp-cafe"),tab:"mini-cart",content:null===(T=null===(D=null===(_=null===window||void 0===window?void 0:window.wp)||void 0===_?void 0:_.hooks)||void 0===D?void 0:D.applyFilters)||void 0===T?void 0:T.call(D,"wpcafe_food_order_mini_cart_settings",null,{enabled:"on"===(null===(A=null==ee?void 0:ee.mini_cart)||void 0===A?void 0:A.status),handleNavigate:ne})},{label:(0,r.__)("Tipping","wp-cafe"),tab:"tipping",content:null===(E=null===(O=null===(S=null===window||void 0===window?void 0:window.wp)||void 0===S?void 0:S.hooks)||void 0===O?void 0:O.applyFilters)||void 0===E?void 0:E.
2call(O,"wpcafe_food_order_tipping_settings",null,{enabled:"on"===(null===(L=null==ee?void 0:ee.tipping)||void 0===L?void 0:L.status),handleNavigate:ne})}],content:(0,o.jsx)(f.Yg,{title:(0,r.__)("Enable Online Food Order Module","wp-cafe"),description:(0,r.__)("This module allows customers to place food orders online. Enable it to start accepting online orders.","wp-cafe"),onAddButtonClick:function(){return ne("food_ordering")},learnMoreUrl:"https://support.themewinter.com/docs/plugins/plugin-docs/wpcafe-version-3/add-and-manage-product-in-wpcafe/"})},ie={label:(0,r.__)("Reservation","wp-cafe"),icon:Q.C,tab:"reservation",children:[{label:(0,r.__)("Reservation Rules","wp-cafe"),tab:"reservation-rules",content:"on"===(null===(k=null==ee?void 0:ee.reservation)||void 0===k?void 0:k.status)?null===(P=null===(Y=null===(_x=null===window||void 0===window?void 0:window.wp)||void 0===_x?void 0:_x.hooks)||void 0===Y?void 0:Y.applyFilters)||void 0===P?void 0:P.call(Y,"wpcafe_reservation_rules_settings",null):(0,o.jsx)(f.Yg,{title:(0,r.__)("Enable Online Reservation Module","wp-cafe"),description:(0,r.__)("Enable the reservation module to configure reservation rules and settings.","wp-cafe"),onAddButtonClick:function(){return ne("reservation")},learnMoreUrl:"https://support.themewinter.com/docs/plugins/plugin-docs/wpcafe-version-3/how-to-configure-reservation-settings-in-wpcafe/"})},{label:(0,r.__)("Customization","wp-cafe"),tab:"customization",content:"on"===(null===(G=null==ee?void 0:ee.reservation)||void 0===G?void 0:G.status)?null===(R=null===(Z=null===(F=null===window||void 0===window?void 0:window.wp)||void 0===F?void 0:F.hooks)||void 0===Z?void 0:Z.applyFilters)||void 0===R?void 0:R.call(Z,"wpcafe_reservation_customization_settings",null):(0,o.jsx)(f.Yg,{title:(0,r.__)("Enable Online Reservation Module","wp-cafe"),description:(0,r.__)("Enable the reservation module to customize reservation form fields and appearance.","wp-cafe"),onAddButtonClick:function(){return ne("reservation")},learnMoreUrl:"https://support.themewinter.com/docs/plugins/plugin-docs/wpcafe-version-3/how-to-customize-the-reservation-form-in-wpcafe/"})},{label:(0,r.__)("Message","wp-cafe"),tab:"reservation-message",content:null===(B=null===(V=null===(W=null===window||void 0===window?void 0:window.wp)||void 0===W?void 0:W.hooks)||void 0===V?void 0:V.applyFilters)||void 0===B?void 0:B.call(V,"wpcafe_reservation_message_settings",null)}],content:(0,o.jsx)(f.Yg,{title:(0,r.__)("Enable Online Reservation Module","wp-cafe"),description:(0,r.__)("This module allows customers to place reservations online. Enable it to start accepting online reservations.","wp-cafe"),onAddButtonClick:function(){return ne("reservation")},learnMoreUrl:"https://support.themewinter.com/docs/plugins/plugin-docs/wpcafe-version-3/how-to-configure-reservation-settings-in-wpcafe/"})},ae=function(t){var n,r,i,a;return null!==(a=null===(i=null===(r=null===(n=null===window||void 0===window?void 0:window.wp)||void 0===n?void 0:n.hooks)||void 0===r?void 0:r.applyFilters)||void 0===i?void 0:i.call(r,t,null,{control:e.control,form:e,SettingsItem:f.bg,SingleSwitchBox:f.q5}))&&void 0!==a?a:(0,o.jsx)(U,{})},le={label:(0,r.__)("Presence Widgets","wp-cafe"),icon:a.A,tab:"presence-widgets",children:[{label:(0,r.__)("Video Popup","wp-cafe"),tab:"presence-video",content:ae("wpcafe_presence_video_settings")},{label:(0,r.__)("Contact Card","wp-cafe"),tab:"presence-contact",content:ae("wpcafe_presence_contact_settings")}],content:ae("wpcafe_presence_video_settings")};return[{label:(0,r.__)("General","wp-cafe"),icon:l.A,tab:"general",content:(0,o.jsx)(z,{})},{label:(0,r.__)("Schedule","wp-cafe"),icon:c.A,tab:"schedule",content:(0,o.jsx)(re,{})},oe,ie,le,{label:(0,r.__)("Payment Settings","wp-cafe"),icon:u.A,tab:"payment-settings",content:"on"===(null===(H=null==ee?void 0:ee.reservation)||void 0===H?void 0:H.status)?null===(X=null===(q=null===(J=null===window||void 0===window?void 0:window.wp)||void 0===J?void 0:J.hooks)||void 0===q?void 0:q.applyFilters)||void 0===X?void 0:X.call(q,"wpcafe_payment_settings",null):(0,o.jsx)(f.Yg,{title:(0,r.__)("Enable Online Reservation Module","wp-cafe"),description:(0,r.__)("Enable the reservation module to configure reservation rules and settings.","wp-cafe"),onAddButtonClick:function(){return ne("reservation")},learnMoreUrl:"https://support.themewinter.com/docs/plugins/plugin-docs/wpcafe-version-3/how-to-configure-reservation-settings-in-wpcafe/"})},{label:(0,r.__)("Live Notifications","wp-cafe"),icon:s.A,tab:"notifications",content:"on"===(null===($=null==ee?void 0:ee.food_ordering)||void 0===$?void 0:$.status)||"on"===(null===(K=null==ee?void 0:ee.reservation)||void 0===K?void 0:K.status)?(0,o.jsx)(I,{}):(0,o.jsx)(f.Yg,{title:(0,r.__)("Enable Food Ordering or Reservation Module","wp-cafe"),description:(0,r.__)("Live notifications alert you about new orders and reservations. Enable one of these modules to set them up.","wp-cafe"),onAddButtonClick:function(){return ne("food_ordering")}})},{label:(0,r.__)("Version Control","wp-cafe"),icon:d.A,tab:"version-control",content:(0,o.jsx)(C,{})}]},ue=[{label:(0,r.__)("On all pages","wp-cafe"),value:"all_pages"},{label:(0,r.__)("On specific pages","wp-cafe"),value:"specific_pages"},{label:(0,r.__)("Don't show","wp-cafe"),value:"dont_show"}],se=(null===(le=null===(ae=null===window||void 0===window?void 0:window.wpCafe)||void 0===ae?void 0:ae.pages)||void 0===le?void 0:le.map(function(e){return{value:e.id,label:e.title}}
2))||[],de=function(e){if(!e)return null;if(e.message&&"string"==typeof e.message)return e.message;for(var t in e)if("object"===ie(e[t])){var n=de(e[t]);if(n)return n}return null}},92060(e,t,n){var o=n(47143),r=n(93428),i=n(19402),a=n(33779);function l(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var l=o&&o.prototype instanceof u?o:u,s=Object.create(l.prototype);return c(s,"_invoke",function(n,o,r){var i,l,c,u=0,s=r||[],d=!1,g={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(t,n){return i=t,l=0,c=e,g.n=n,a}};function M(n,o){for(l=n,c=o,t=0;!d&&u&&!r&&t<s.length;t++){var r,i=s[t],M=g.p,f=i[2];n>3?(r=f===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=M&&((r=n<2&&M<i[1])?(l=0,g.v=o,g.n=i[1]):M<f&&(r=n<3||i[0]>o||o>f)&&(i[4]=n,i[5]=o,g.n=f,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,s,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===s&&M(s,f),l=s,c=f;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(g.n=-1),M(l,c)):g.n=c:g.v=c);try{if(u=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=g.n<0)?c:n.call(o,g))!==a)break}catch(t){i=e,l=1,c=t}finally{u=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function u(){}function s(){}function d(){}t=Object.getPrototypeOf;var g=[][o]?t(t([][o]())):(c(t={},o,function(){return this}),t),M=d.prototype=u.prototype=Object.create(g);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,r,"GeneratorFunction")),e.prototype=Object.create(M),e}return s.prototype=d,c(M,"constructor",d),c(d,"constructor",s),s.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(M),c(M,r,"Generator"),c(M,o,function(){return this}),c(M,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:f}})()}function c(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}c=function(e,t,n,o){function i(t,n){c(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},c(e,t,n,o)}var u,s,d,g,M,f,p=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function l(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})},v=function(){var e=(0,o.useDispatch)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.settings).setSettingsState,t=((0,o.useDispatch)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.onboard)||{}).setOnboardState,c=(0,o.useSelect)(function(e){return e(null===i.zQ||void 0===i.zQ?void 0:i.zQ.settings).getSettingsState()},[]).data;return{getSettings:function(){return p(void 0,void 0,void 0,l().m(function o(){var a,c,u,s,d,g,M;return l().w(function(o){for(;;)switch(o.p=o.n){case 0:return o.p=0,o.n=1,r.A.settings.getSettings();case 1:if(s=o.v,d=null===window||void 0===window?void 0:window.wpCafePro,!s.success){o.n=3;break}if(g=(null==s?void 0:s.data)?Object.assign(Object.assign({},i.L6),null==s?void 0:s.data):i.L6,e({data:g,isProActivated:d,activeStep:null!==(u=null===(c=null===(a=null==g?void 0:g.reservation_form_customization)||void 0===a?void 0:a[0])||void 0===c?void 0:c.id)&&void 0!==u?u:""}),!g.restaurant_type||!t){o.n=3;break}return o.n=2,Promise.all([n.e(9912),n.e(4999),n.e(1733),n.e(2400),n.e(886),n.e(4698),n.e(1563)]).then(n.bind(n,77283));case 2:(0,o.v.processModuleSelection)({value:(null==g?void 0:g.restaurant_type)||[],setOnboardState:t});case 3:o.n=5;break;case 4:o.p=4,M=o.v,console.log(M);case 5:return o.a(2)}},o,null,[[0,4]])}))},editSettings:function(t){return p(void 0,void 0,void 0,l().m(function n(){var o,i,u,s;return l().w(function(n){for(;;)switch(n.p=n.n){case 0:if(0!==Object.keys(t).length){n.n=1;break}return n.a(2,!1);case 1:return n.p=1,e({editLoading:!0}),o=!window.location.hash.includes(a.S5),i=Object.assign(Object.assign({},c),t),n.n=2,r.A.settings.editSettings(i,o);case 2:if(!(null==(u=n.v)?void 0:u.success)){n.n=3;break}return e({data:Object.assign(Object.assign({},c),u.data)}),n.a(2,!0);case 3:return n.a(2,!1);case 4:return n.p=4,s=n.v,console.error(s),n.a(2,!1);case 5:return n.p=5,e({editLoading:!1}),n.f(5);case 6:return n.a(2)}},n,null,[[1,4,5,6]])}))}}};const m=2343!=n.j?v:null;null===(d=null===(s=null===(u=null===window||void 0===window?void 0:window.wp)||void 0===u?void 0:u.hooks)||void 0===s?void 0:s.removeFilter)||void 0===d||d.call(s,"wpcafe_use_settings_api","wpcafe"),null===(f=null===(M=null===(g=null===window||void 0===window?void 0:window.wp)||void 0===g?void 0:g.hooks)||void 0===M?void 0:M.addFilter)||void 0===f||f.call(M,"wpcafe_use_settings_api","wpcafe",function(){return v},10),n.d(t,["A",0,m])},30342(e,t,n){n.d(t,{n:()=>c});var o=n(74848),r=n(10404),i=n(64239),a=n(6999),l=2343!=n.j?["reservation_form_customization","setup_progress_widget_visited"]:null,c=function(e){var t=e.children,n=e.defaultValues,c=void 0===n?{}:n,u=Object.assign({},c);l.forEach(function(e){return delete u[e]});var s=(0,r.useForm)({resolver:(0,i.zodResolver)(a.dP),mode:"onChange",defaultValues:u});return(0,o.jsx)(r.FormProvider,Object.assign({},s,{children:t}))}},10410(e,t,n){n.d(t,{IV:()=>s,Mj:()=>c,Sp:()=>v,Ww:()=>a,bk:()=>m,g9:()=>d,uy:()=>l,y_:()=>i,yo:()=>u});var o=n(27723),r=n(57937),i=function(e){return r.z.number({message:(0,o.__)("".concat(e," must be a valid number"),"wp-cafe")}).nonnegative({message:(0,o.__)("".concat(e," must be a non-negative number"),"wp-cafe")}).nullable().optional()},a=function(e){return r.z.number({message:(0,o.__)("".concat(e," must be a valid number"),"wp-cafe")}).nonnegative({message:(0,o.__)("".concat(e," must be a non-negative number"),"wp-cafe")}).nullable().optional()},l=function(e){return r.z.enum(["0","1"],{message:(0,o.__)("".concat(e," must be either enabled (1) or disabled (0)"),"wp-cafe")})},c=function(e){return r.z.object({value:r.z.number({message:(0,o.__)("".concat(e," value must be a valid number"),"wp-cafe")}).nonnegative({message:(0,o.__)("".concat(e," value must be a non-negative number"),"wp-cafe")}).nullable().optional(),unit:r.z.string().min(1,{message:(0,o.__)("".concat(e," unit is required"),"wp-cafe")})},{message:(0,o.__)("".concat(e," must have value and unit"),"wp-cafe")})},u=r.z.enum(["0","1"],{message:(0,o.__)("Value must be either enabled (1) or disabled (0)","wp-cafe")}),s=r.z.string().optional().refine(function(e){return!e||""===e.trim()||/^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/.test(e)},{message:(0,o.__)("Invalid color format. Use #RGB or #RRGGBB.","
2wp-cafe")}),d=r.z.object({type:r.z.enum(["predefined","custom"],{message:(0,o.__)("Icon type must be either 'predefined' or 'custom'","wp-cafe")}),value:r.z.string({message:(0,o.__)("Icon value must be a valid string","wp-cafe")})},{message:(0,o.__)("Icon must have type and value","wp-cafe")}),g=function(e,t){var n=t?"".concat(e," (").concat(t,")"):e;return r.z.object({start:r.z.string({message:(0,o.__)("".concat(n,": Start time must be a valid string"),"wp-cafe")}).min(1,{message:(0,o.__)("".concat(n,": Start time cannot be empty"),"wp-cafe")}).refine(function(e){var t=/^\d{1,2}:\d{2}\s?(AM|PM|am|pm)$/i.test(e),n=/^([01]?\d|2[0-3]):[0-5]\d$/.test(e);return t||n},{message:(0,o.__)("".concat(n,": Start time must be in valid time format"),"wp-cafe")}),end:r.z.string({message:(0,o.__)("".concat(n,": End time must be a valid string"),"wp-cafe")}).min(1,{message:(0,o.__)("".concat(n,": End time cannot be empty"),"wp-cafe")}).refine(function(e){var t=/^\d{1,2}:\d{2}\s?(AM|PM|am|pm)$/i.test(e),n=/^([01]?\d|2[0-3]):[0-5]\d$/.test(e);return t||n},{message:(0,o.__)("".concat(n,": End time must be in valid time format"),"wp-cafe")})},{message:(0,o.__)("".concat(n,": Slot must have start and end times"),"wp-cafe")}).describe("Time slot for ".concat(e))},M=function(e,t){return r.z.object({status:r.z.enum(["on","off"],{message:(0,o.__)("".concat(e," schedule (").concat(t,"): Status must be either 'on' or 'off'"),"wp-cafe")}).describe("Whether the day is active (on) or inactive (off)"),slots:r.z.array(g("".concat(e," schedule"),t),{message:(0,o.__)("".concat(e," schedule (").concat(t,"): Slots must be an array of time slot objects"),"wp-cafe")}).min(0,{message:(0,o.__)("".concat(e," schedule (").concat(t,"): Slots array cannot be null"),"wp-cafe")}).describe("Array of time slots for this day"),max_orders:r.z.number({message:(0,o.__)("".concat(e," schedule (").concat(t,"): Max orders must be a valid number"),"wp-cafe")}).nonnegative({message:(0,o.__)("".concat(e," schedule (").concat(t,"): Max orders must be a non-negative number"),"wp-cafe")}).int({message:(0,o.__)("".concat(e," schedule (").concat(t,"): Max orders must be a whole number"),"wp-cafe")}).nullable().optional().describe("Maximum orders allowed for this day, or null for unlimited")},{message:(0,o.__)("".concat(e," schedule (").concat(t,"): Must have status and slots"),"wp-cafe")}).describe("Schedule configuration for ".concat(t," in ").concat(e," schedule"))},f=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],p={Mon:"Monday",Tue:"Tuesday",Wed:"Wednesday",Thu:"Thursday",Fri:"Friday",Sat:"Saturday",Sun:"Sunday"},v=function(e,t){var n=null==e?void 0:e.restaurant_schedule;n&&[{key:"pickup",label:(0,o.__)("Pickup","wp-cafe")},{key:"delivery",label:(0,o.__)("Delivery","wp-cafe")}].forEach(function(i){var a=i.key,l=i.label,c=e["override_".concat(a,"_schedule")];if(c&&"0"!==c){var u=e["".concat(a,"_schedule")];u&&f.forEach(function(e){var i,c,s=null===(i=n[e])||void 0===i?void 0:i.max_orders,d=null===(c=u[e])||void 0===c?void 0:c.max_orders;"number"!=typeof s||"number"!=typeof d||d<=s||t.addIssue({code:r.z.ZodIssueCode.custom,message:(0,o.sprintf)(/* translators: 1: Pickup or Delivery, 2: day name, 3: the day limit number */ /* translators: 1: Pickup or Delivery, 2: day name, 3: the day limit number */
3(0,o.__)("%1$s max orders for %2$s cannot be more than the day limit of %3$d.","wp-cafe"),l,p[e],s),path:["".concat(a,"_schedule"),e,"max_orders"]})})}})},m=function(e){return r.z.object(Object.fromEntries(f.map(function(t){return[t,M(e,p[t])]})),{message:(0,o.__)("".concat(e," schedule must have all days (Mon-Sun)"),"wp-cafe")}).strict().refine(function(e){return 0===f.filter(function(t){return!(t in e)}).length},{message:(0,o.__)("".concat(e," schedule is incomplete. Some days are missing"),"wp-cafe"),path:["schedule"]}).describe("Complete weekly ".concat(e.toLowerCase()," schedule with all 7 days (Mon-Sun)"))}},6999(e,t,n){n.d(t,{dP:()=>o.dP,yo:()=>r.yo});var o=n(47169),r=n(10410)},47169(e,t,n){n.d(t,{GD:()=>d,ZO:()=>l,c4:()=>u,dP:()=>b,oU:()=>s,uM:()=>c});var o=n(38802),r=n(27723),i=n(57937),a=n(10410),l=i.z.object({restaurant_type:i.z.array(i.z.enum(["food_ordering","reservation"],{message:(0,r.__)("Restaurant type must be either 'food_ordering' or 'reservation'","wp-cafe")}),{message:(0,r.__)("Restaurant type must be an array of valid options","wp-cafe")}),restaurant_name:i.z.string().trim().min(1,(0,r.__)("Restaurant name is required","wp-cafe")),restaurant_email:i.z.string().optional().refine(function(e){return!e||e.trim().length>0&&i.z.string().email().safeParse(e).success},(0,r.__)("Invalid email address","wp-cafe")),restaurant_phone:i.z.string().optional().refine(function(e){return!e||e.trim().length>=6&&e.trim().length<=15&&/^[\d+\-\s()]+$/.test(e.trim())},(0,r.__)("Contact number must be 6-15 digits with valid format","wp-cafe"))}),c=i.z.object({restaurant_schedule:(0,a.bk)("Restaurant"),slot_interval:(0,a.Ww)("Restaurant slot interval")}),u=i.z.object({override_pickup_schedule:(0,a.uy)("Override pickup schedule").optional(),pickup_schedule:(0,a.bk)("Pickup").optional(),pickup_slot_interval:(0,a.Ww)("Pickup slot interval"),pickup_minimum_order_amount:(0,a.y_)("Pickup minimum order amount"),pickup_prepare_time:(0,a.y_)("Pickup prepare time"),pickup_show_date_in_checkout_page:i.z.boolean(),pickup_show_time_in_checkout_page:i.z.boolean(),pickup_enable_asap:i.z.boolean().optional(),enable_pickup_message:i.z.boolean(),pickup_message:i.z.string()}),s=i.z.object({override_delivery_schedule:(0,a.uy)("Override delivery schedule").optional(),delivery_schedule:(0,a.bk)("Delivery").optional(),delivery_slot_interval:(0,a.Ww)("Delivery slot interval"),delivery_minimum_order_amount:(0,a.y_)("Delivery minimum order amount"),delivery_prepare_time:(0,a.y_)("Delivery prepare time"),delivery_show_date_in_checkout_page:i.z.boolean(),delivery_show_time_in_checkout_page:i.z.boolean(),delivery_enable_asap:i.z.boolean().optional(),enable_delivery_message:i.z.boolean(),delivery_message:i.z.string()}),d=i.z.object({override_reservation_schedule:(0,a.uy)("Override reservation schedule").optional(),reservation_schedule:(0,a.bk)("Reservation").optional(),reservation_slot_interval:(0,a.Ww)("Reservation slot interval"),reservation_minimum_guest:(0,a.y_)("Minimum guests"),reservation_maximum_guest:(0,a.y_)("Maximum guests"),reservation_advanced:(0,a.Mj)("Reservation advanced booking"),reservation_total_seat_capacity:(0,a.y_)("Total seat capacity"),reservation_booking_amount:(0,a.y_)("Booking amount"),reservation_status:i.z.enum(["pending","confirmed","cancelled"],{message:(0,r.__)("Reservation status must be 'pending', 'confirmed', or 'cancelled'","wp-cafe")}),block_timeslot_statuses:i.z.array(i.z.enum(["pending","confirmed","cancelled"],{message:(0,r.__)("Block timeslot status must be 'pending', 'confirmed', or 'cancelled'","wp-cafe")}),{message:(0,r.__)("Block timeslot statuses must be an array of valid statuses","wp-cafe")}),multiply_booking_amount_with_guests:i.z.boolean(),reservation_partial_payment:i.z.boolean(),reservation_early_booking_time:i.z.union([i.z.literal("any_time"),i.z.object({value:i.z.number({message:(0,r.__)("Reservation early booking time must be a valid number.","wp-cafe")}).nonnegative((0,r.__)("Reservation early booking time must be a non-negative number.","wp-cafe")).nullable().optional(),unit:i.z.enum(["days","weeks","months"],{message:(0,r.__)("Reservation early booking unit must be 'days', 'weeks', or 'months'","wp-cafe")})})]),enable_reservation_pending_message:i.z.boolean(),reservation_pending_message:i.z.string(),enable_reservation_confirmed_message:i.z.boolean(),reservation_confirmed_message:i.z.string(),enable_local_payment:i.z.boolean(),enable_woocommerce_payments:i.z.boolean(),reservation_form_button_text:i.z.string(),reservation_confirmation_button_text:i.z.string(),reservation_cancellation_button_text:i.z.string(),reservation_close_state:i.z.string(),reservation_business_hour_label:i.z.string()}),g=i.z.object({tipping_calculation_method:i.z.enum(["fixed_amount","percentage_amount"]).optional(),tip_options:i.z.array((0,a.y_)("Tip option")).optional(),enable_custom_tipping:i.z.boolean().optional(),custom_tipping_label:i.z.string().optional(),order_type:i.z.string(),enable_order_tip:i.z.string()}),M=i.z.enum(["bottom-right","bottom-left","top-right","top-left"]),f=i.z.enum(["all_pages","specific_pages","dont_show"]),p=i.z.enum(["load","delay","scroll"]),v=i.z.object({label:i.z.string(),url:i.z.string()}).partial(),m=i.z.object({icon:i.z.string(),icon_id:i.z.number(),text:i.z.string(),url:i.z.string()}).partial(),j=i.z.object({enabled:i.z.boolean(),source_type:i.z.enum(["upload","url"]),video_id:i.z.number(),video_url:i.z.string(),show_controls:i.z.boolean(),start_muted:i.z.boolean(),allow_unmute:i.z.boolean(),autoplay:i.z.boolean(),start_minimized:i.z.boolean(),position:M,offset_x:i.z.number(),offset_y:i.z.number(),display:f,display_pages:i.z.array(i.z.number()),cta_label:i.z.string(),cta_link_type:i.z.enum(["page","url"]),cta_page_id:i.z.number(),trigger:p,trigger_delay:i.z.number(),trigger_scroll:i.z.number(),cta_url:i.z.string()}).partial(),N=i.z.object({enabled:i.z.boolean(),remember_close:i.z.boolean(),title:i.z.string(),subtitle:i.z.string(),items:i.z.array(m),primary:v,secondary:v,position:M,offset_x:i.z.number(),offset_y:i.z.number(),display:f,display_pages:i.z.array(i.z.number()),trigger:p,trigger_delay:i.z.number(),trigger_scroll:i.z.number()}).partial(),y=i.z.object({presence_widgets:i.z.object({video:j.optional(),contact:N.optional()}).optional()}),w=i.z.object({primary_color:a.IV,secondary_color:a.IV,calendar_language:i.z.string(),require_location:i.z.boolean(),display_location_selector:i.z.enum(["all_pages","specific_pages","dont_show"],{message:(0,r.__)("Display location selector must be 'all_pages', 'specific_pages', or 'dont_show'","wp-cafe")}),location_selector_pages:i.z.array((0,a.y_)("Location selector page")),enable_floating_location_widget:i.z.boolean(),mini_cart_style:i.z.enum(["style-1","style-2"],{message:(0,r.__)("Mini cart style must be either 'style-1' or 'style-2'","wp-cafe")}),mini_cart_icon:a.g9,mini_cart_empty_button_link:i.z.string(),mini_cart_show_per_item_tax:i.z.boolean().optional(),qr_show_pickup_delivery:i.z.boolean().optional(),cart_icon:a.g9,menu_popup_icon:a.g9}),h=i.z.object({enable_order_notification:i.z.boolean(),enable_reservation_notification:i.z.boolean(),enable_sound_notification:i.z.boolean(),custom_notification_sound:i.z.string(),repeated_sound_minute:i.z.number({message:(0,r.__)("Repeated sound minute must be a valid number","wp-cafe")}).min(0,{message:(0,r.__)("Repeated sound minute must be a non-negative number","wp-cafe")}),table_layout_configuaration:i.z.string(),enable_custom_holiday:i.z.boolean(),custom_holidays:i.z.array(i.z.string({message:(0,r.__)("Holiday date must be a valid string","wp-cafe")}),{message:(0,r.__)("Custom holidays must be an array of date strings","wp-cafe")}).refine(function(e){return!e||0===e.length||new Set(e).size===e.length},{message:(0,r.__)("Duplicate holiday dates are not allowed. Please remove duplicate entries.","wp-cafe")}),enable_custom_schedule:i.z.boolean(),custom_schedules:i.z.array(i.z.object({date:i.z.string({message:(0,r.__)("Custom schedule date must be a valid string","wp-cafe")}),time:i.z.object({start:i.z.string({message:(0,r.__)("Custom schedule start time must be a valid string","wp-cafe")}),end:i.z.string({message:(0,r.__)("Custom schedule end time must be a valid string","wp-cafe")})}).superRefine(function(e,t){var n=(0,o.eQ)(e.start,e.end);n.isValid||t.addIssue({code:i.z.ZodIssueCode.custom,message:n.error||(0,r.__)("Invalid time range","wp-cafe"),path:["end"]})})})).refine(function(e){if(!e||0===e.length)return!0;var t=e.map(function(e){return e.date});return new Set(t).size===t.length},{message:(0,r.__)("Duplicate schedule dates are not allowed. Please remove duplicate entries.","wp-cafe")}),override_product_variation_list_layout:i.z.boolean(),override_woocommerce_default_layout:i.z.boolean(),setup_progress_widget_visited:i.z.boolean().optional(),fluentcrm_webhook_url:i.z.string().optional(),funnelkit_webhook_url:i.z.string().optional(),uncanny_automator_webhook_url:i.z.string().optional(),mailmint_webhook_url:i.z.string().optional(),zoho_flow_webhook_url:i.z.string().optional(),flowmattic_webhook_url:i.z.string().optional(),whatsapp_token:i.z.string().optional(),whatsapp_from_number_id:i.z.string().optional(),whatsapp_business_account_id:i.z.string().optional(),whatsapp_admin_number:i.z.string().optional(),mailpoet_list_ids:i.z.array(i.z.string()).optional(),rollback_version:i.z.string().optional(),default_receipt_layout_id:i.z.number().nullable().optional()}
3),b=l.merge(c).merge(u).merge(s).merge(d).merge(g).merge(w).merge(y).merge(h).partial().loose().superRefine(function(e,t){(0,a.Sp)(e,t);var n=e.reservation_minimum_guest,o=e.reservation_maximum_guest,l=e.reservation_total_seat_capacity;null!=n&&n<=0&&t.addIssue({code:i.z.ZodIssueCode.custom,message:(0,r.__)("Minimum guest number must be at least 1","wp-cafe"),path:["reservation_minimum_guest"]}),void 0!==o&&n&&(null===o||o<n)&&t.addIssue({code:i.z.ZodIssueCode.custom,message:(0,r.__)("Maximum guest number must be greater than minimum guest number","wp-cafe"),path:["reservation_maximum_guest"]}),void 0!==l&&o&&(null===l||o>l)&&t.addIssue({code:i.z.ZodIssueCode.custom,message:(0,r.__)("Seat capacity must be greater than or equal to maximum guest number","wp-cafe"),path:["reservation_total_seat_capacity"]})})},88217(e,t,n){var o=n(74848),r=n(27723),i=n(86087),a=n(38802),l=(0,i.lazy)(function(){return Promise.resolve().then(n.bind(n,81648))});const c=2343!=n.j?function(e){var t,n,i,c=e.formMethods;return(0,o.jsx)(a.H,{moduleName:"delivery",children:null===(i=null===(n=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===n?void 0:n.applyFilters)||void 0===i?void 0:i.call(n,"wpcafe_override_delivery_schedule",(0,o.jsx)(a.q5,{title:(0,r.__)("Override Delivery Schedule","wp-cafe"),name:"override_delivery_schedule",description:(0,r.__)("Override resturant schedule for delivery","wp-cafe"),isPro:!0}
3),{formMethods:c,ScheduleManagement:l,scheduleManagementClassName:"border-none !p-0"})})}:null;n.d(t,["A",0,c])},50525(e,t,n){var o=n(74848),r=n(27723),i=n(86087),a=n(38802),l=(0,i.lazy)(function(){return Promise.resolve().then(n.bind(n,81648))});const c=2343!=n.j?function(e){var t,n,i,c=e.formMethods;return(0,o.jsx)(a.H,{moduleName:"pickup",children:null===(i=null===(n=null===(t=null===window||void 0===window?void 0:window.wp)||void 0===t?void 0:t.hooks)||void 0===n?void 0:n.applyFilters)||void 0===i?void 0:i.call(n,"wpcafe_override_pickup_schedule",(0,o.jsx)(a.q5,{title:(0,r.__)("Override Pickup Schedule","wp-cafe"),name:"override_pickup_schedule",description:(0,r.__)("Override resturant schedule for pickup","wp-cafe"),isPro:!0}),{formMethods:c,ScheduleManagement:l,scheduleManagementClassName:"border-none !p-0"})})}:null;n.d(t,["A",0,c])},33663(e,t,n){var o=n(74848),r=n(27723),i=n(86087),a=n(38802),l=n(62468),c=n(16029),u=(0,i.lazy)(function(){return Promise.resolve().then(n.bind(n,81648))});const s=2343!=n.j?function(e){var t=e.formMethods;if(!t)return null;var n=t.setValue,s=t.watch,d=t.getValues,g="1"===s("override_reservation_schedule"),M=d("reservation_schedule")||d("restaurant_schedule")||c.no;return(0,o.jsx)(a.H,{moduleName:"reservation",children:(0,o.jsx)(a.X,{title:(0,r.__)("Override Schedule for Reservation","wp-cafe"),description:(0,r.__)("If enabled then it will follow below schedule for reservation instead of global","wp-cafe"),switchable:!0,defaultEnabled:g,onToggle:function(e){if(n("override_reservation_schedule",e?"1":"0",{shouldDirty:!0,shouldTouch:!0}),e){var t=d("restaurant_schedule");d("reservation_schedule")||n("reservation_schedule",t||c.no,{shouldDirty:!0,shouldTouch:!0});var o=d("reservation_slot_interval"),r=d("slot_interval");o||n("reservation_slot_interval",r||30,{shouldDirty:!0,shouldTouch:!0})}},isPro:!0,children:(0,o.jsx)(i.Suspense,{fallback:(0,o.jsx)(l.Skeleton,{className:"h-[300px] w-full"}),children:(0,o.jsx)(u,{value:M,onChange:function(e){n("reservation_schedule",e,{shouldDirty:!0,shouldTouch:!0})},slotIntervalName:"reservation_slot_interval",slotIntervalLabel:(0,r.__)("Reservation Time Intervals","wp-cafe"),slotIntervalTooltip:(0,r.__)("The interval between reservation slots. This is used to generate the slots for reservation booking.","wp-cafe"),slotIntervalHelperText:(0,r.__)("This affects reservation booking slots","wp-cafe"),className:"border-none !p-0"})})})})}:null;n.d(t,["A",0,s])},55634(e,t,n){var o=n(74848),r=n(47143),i=n(27723),a=n(38802),l=n(62468),c=n(19402),u=n(39992);const s=945==n.j?function(e){var t=e.shortcode,n=(0,r.useDispatch)(null===c.zQ||void 0===c.zQ?void 0:c.zQ.shortcodes).setShortcodeState,s=(0,u.Mm)();return(0,o.jsx)(l.Card,{className:"rounded-sm p-4",children:(0,o.jsxs)("div",{className:"flex justify-between items-center flex-wrap sm:flex-nowrap gap-3",children:[(0,o.jsxs)("div",{className:"space-y-1",children:[(0,o.jsx)("div",{className:"text-base font-medium",children:t.label}),(0,o.jsx)(a.VY,{children:t.description})]}),t.isPro&&!s?(0,o.jsx)(a.s9,{}):(0,o.jsx)(l.Button,{variant:"outlinePrimary",onClick:function(){n({modalOpen:!0,selectedShortcode:t})},children:(0,i.__)("Generate Shortcode","wp-cafe")})]})})}:null;n.d(t,["A",0,s])},19102(e,t,n){n.d(t,{w:()=>d});var o=n(47143),r=n(86087),i=n(19402),a=n(68473),l=n(17639);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var s=["settings_tools_group"],d=function(){var e,t,n=(e=(0,l.M)("wpcafe_sidebar_collapsed_groups",{settings_tools_group:!0}),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){u=!0,r=e}
3finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=n[0],g=n[1],M=(0,o.useSelect)(function(e){return e(null===i.zQ||void 0===i.zQ?void 0:i.zQ.sidebar).getSidebarState()},[]),f=M.isExpanded,p=M.collapsedGroups,v=M.selectedPrimaryGroup,m=(0,o.useDispatch)(null===i.zQ||void 0===i.zQ?void 0:i.zQ.sidebar).setSidebarState,j=(0,r.useRef)(!1);(0,r.useEffect)(function(){if(!j.current&&d){var e=Object.assign(Object.assign({},p),d);m({collapsedGroups:e}),j.current=!0}},[d,m]);var N=function(e){return m({isExpanded:e})},y=(0,a.a)();return(0,r.useEffect)(function(){var e=document.getElementById("wpadminbar");if(e){var t=function(e){var t=e.target;t&&t.closest(["#wp-admin-bar-menu-toggle","#wp-admin-bar-menu","#wpadminbar .ab-top-menu > li#wp-admin-bar-menu-toggle > a.ab-item",'#wpadminbar .ab-top-menu > li > a.ab-item[aria-label="Main menu"]','#wpadminbar .ab-top-menu > li > a.ab-item[aria-label="Menu"]'].join(", "))&&N(!f)};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}},[f]),{isExpanded:f,setIsExpanded:N,selectedPrimaryGroup:v,setSelectedPrimaryGroup:function(e){return m({selectedPrimaryGroup:e})},collapsedGroups:p,toggleGroup:function(e){var t=Object.assign(Object.assign({},p),function(e,t,n){return(t=function(e){var t=function(e){if("object"!=c(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,!(null==p?void 0:p[e])));if(m({collapsedGroups:t}),s.includes(e)){var n={};s.forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),g(n)}},isMobile:y}}},80352(e,t,n){e.exports=n.p+"chunks/images/style-1-minicart.png"},95797(e,t,n){e.exports=n.p+"chunks/images/style-2-minicart.png"},12163(e,t,n){e.exports=n.p+"chunks/images/video-thumbnail.jpg"}}]);

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.