PageSourceSearch

https://app.paa.ge/static/js/7801.bba07bf9.chunk.js

js paa.ge collected 2026-10-02 02:32:46 UTC 13,804 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklamaco=self.webpackChunklamaco||[]).push([[7801],{8821:(e,t,n)=>{n.d(t,{F0:()=>h,pe:()=>s});var r=n(28487);const{Axios:a,AxiosError:s,CanceledError:o,isCancel:i,CancelToken:u,VERSION:l,all:c,Cancel:d,isAxiosError:h,spread:v,toFormData:m,AxiosHeaders:y,HttpStatusCode:f,formToJSON:p,getAdapter:g,mergeConfig:b}=r.A},20314:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l});var r=n(96810),a=n(74117),s=n(89673),o=n(68262),i=n(67815),u=n(70579);const l=()=>{var e;const{t:t}=(0,a.Bd)("store/settings/header"),{store:n}=(0,o.gbT)(),l=!(null===n||void 0===n||null===(e=n.integrations)||void 0===e||!e.find(e=>e.provider===i.Mu&&"active"===e.status));return(0,u.jsxs)(r.oC,{children:[(0,u.jsx)("div",{className:"text-2xl",children:t("partner_api")}),(0,u.jsx)(s.R,{active:l,fetchEnabled:l,variant:"page"})]})}},67815:(e,t,n)=>{n.d(t,{CS:()=>m,Go:()=>q,K7:()=>b,Mm:()=>f,Mu:()=>j,Q2:()=>h,RO:()=>C,U_:()=>w,VF:()=>k,Zl:()=>p,cy:()=>F,dI:()=>x,hg:()=>v,hn:()=>M,hz:()=>Y,ij:()=>y,ob:()=>I,of:()=>E,tD:()=>L,tk:()=>K,vj:()=>Q,vs:()=>P,xA:()=>S,yT:()=>O,z$:()=>g});var r=n(96460),a=n(203),s=n(59781),o=n(12836),i=n(96444),u=n(68262),l=n(65043);const c=["partner-api-keys"],d=["partner-webhook"],h=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["delete-store-integration"],mutationFn:async e=>(0,i.default)("/admin/store-integrations/".concat(e),{method:"DELETE"}),onSuccess:async()=>{await e.invalidateQueries(u.fdI.all),await e.invalidateQueries(c),await e.invalidateQueries(d)}})},v=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["disable-store-integration"],mutationFn:async e=>(0,i.default)("/admin/store-integrations/disable/".concat(e),{method:"POST"}),onSuccess:async()=>{await e.invalidateQueries(u.fdI.all)}})},m=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["connect-hive"],mutationFn:async e=>(0,i.default)("/admin/store-integrations/hive/connect",{method:"POST",data:e}),onSuccess:async()=>{e.invalidateQueries(u.fdI.all)}})},y=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["connect-zelty"],mutationFn:async e=>(0,i.default)("/admin/store-integrations/zelty/connect",{method:"POST",data:e}),onSuccess:async()=>{e.invalidateQueries(u.fdI.all)}})},f=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["connect-laddition"],mutationFn:async e=>(0,i.default)("/admin/store-integrations/laddition/connect",{method:"POST",data:e}),onSuccess:async()=>{e.invalidateQueries(u.fdI.all)}})},p=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["request-covermanager"],mutationFn:async e=>(0,i.default)("/admin/store-integrations/covermanager/request",{method:"POST",data:e}),onSuccess:async()=>{e.invalidateQueries(u.fdI.all)}})},g=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["connect-printiverse"],mutationFn:async()=>(0,i.default)("/admin/store-integrations/printiverse/connect",{method:"POST"}),onSuccess:async()=>{e.invalidateQueries(u.fdI.all)}})},b=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["connect-printiverse"],mutationFn:async e=>(0,i.default)("/admin/store-integrations/printiverse",{method:"POST",data:e}),onSuccess:async()=>{e.invalidateQueries(u.fdI.all)}})},k=()=>{const{store:e}=(0,u.gbT)();return(0,l.useMemo)(()=>{var t,n;return null===e||void 0===e||null===(t=e.integrations)||void 0===t||null===(n=t.find(e=>"printiverse"===e.provider))||void 0===n?void 0:n.provider_settings},[null===e||void 0===e?void 0:e.integrations])},w=()=>{const{store:e}=(0,u.gbT)();return(0,l.useMemo)(()=>{var t;const n=null===e||void 0===e||null===(t=e.integrations)||void 0===t?void 0:t.find(e=>"zelty"===e.provider&&"active"===e.status);return null!==n&&void 0!==n?n:null},[null===e||void 0===e?void 0:e.integrations])},E=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(0,a.I)({queryKey:["zelty-dishes"],queryFn:async()=>(0,i.default)("/admin/zelty/dishes",{method:"GET"}),select:e=>e.data.dishes,enabled:e,staleTime:3e5})},O=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return(0,a.I)({queryKey:["covermanager-restaurants"],queryFn:async()=>(0,i.default)("/admin/store-integrations/covermanager/restaurants",{method:"GET"}),select:e=>{var t,n;return null!==(t=null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.restaurants)&&void 0!==t?t:[]},enabled:e,staleTime:3e5})},S=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,a.I)({queryKey:["covermanager-zones",e],queryFn:async()=>(0,i.default)("/admin/store-integrations/covermanager/zones",{method:"POST",data:{restaurant:e}}),select:e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.data)&&void 0!==t?t:{zones:[]}},enabled:t&&!!e,staleTime:3e5,retry:!1})},Q=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,a.I)({queryKey:["covermanager-availability",null===e||void 0===e?void 0:e.restaurant,null===e||void 0===e?void 0:e.date,null===e||void 0===e?void 0:e.hour,null===e||void 0===e?void 0:e.people],queryFn:async()=>(0,i.default)("/admin/store-integrations/covermanager/check-availability",{method:"POST",data:e}),select:e=>null===e||void 0===e?void 0:e.data,enabled:t&&!(null===e||void 0===e||!e.restaurant)&&!(null===e||void 0===e||!e.date)&&!(null===e||void 0===e||!e.hour),staleTime:6e4,retry:!1})},x=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,r.E)({queries:e.map(e=>({queryKey:["covermanager-availability",e.restaurant,e.date,e.hour,e.people],queryFn:async()=>(0,i.default)("/admin/store-integrations/covermanager/check-availability",{method:"POST",data:e}),select:e=>null===e||void 0===e?void 0:e.data,enabled:t&&!!e.restaurant&&!!e.date&&!!e.hour,staleTime:6e4,retry:!1}))})},C=3,j="partner_api",T="/admin/store-integrations/partner-api",q=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["connect-partner-api"],mutationFn:async()=>(0,i.default)("".concat(T,"/connect"),{method:"POST"}),onSuccess:async()=>
1{await e.invalidateQueries(u.fdI.all),await e.invalidateQueries(c),await e.invalidateQueries(d)}})},F=e=>(0,a.I)({queryKey:c,queryFn:async()=>{var e;const t=await(0,i.default)("".concat(T,"/keys"),{method:"GET"});return null!==(e=null===t||void 0===t?void 0:t.api_keys)&&void 0!==e?e:[]},enabled:e}),K=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["create-partner-api-key"],mutationFn:async()=>(0,i.default)("".concat(T,"/keys"),{method:"POST",data:{}}),onSuccess:async()=>{await e.invalidateQueries(c)}})},L=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["revoke-partner-api-key"],mutationFn:async e=>(0,i.default)("".concat(T,"/keys/").concat(e),{method:"DELETE"}),onSuccess:async()=>{await e.invalidateQueries(c)}})},M=e=>(0,a.I)({queryKey:d,queryFn:async()=>(0,i.default)("".concat(T,"/webhook"),{method:"GET"}),enabled:e}),Y=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["set-partner-webhook"],mutationFn:async e=>(0,i.default)("".concat(T,"/webhook"),{method:"PUT",data:e}),onSuccess:async()=>{await e.invalidateQueries(d)}})},I=()=>{const e=(0,s.jE)();return(0,o.n)({mutationKey:["rotate-partner-webhook-secret"],mutationFn:async()=>(0,i.default)("".concat(T,"/webhook/secret"),{method:"POST"}),onSuccess:async()=>{await e.invalidateQueries(d)}})},P=()=>(0,o.n)({mutationKey:["test-partner-webhook"],mutationFn:async()=>(0,i.default)("".concat(T,"/webhook/test"),{method:"POST"})})},74648:(e,t,n)=>{n.d(t,{A:()=>d});var r,a=n(89379),s=n(57528),o=n(77720),i=(n(65043),n(2826)),u=n(70579);const l=i.Ay.div(r||(r=(0,s.A)(["\n  perspective: 400px;\n\n  @keyframes openLock {\n    0% {\n      transform: rotateY(0deg);\n    }\n    100% {\n      transform: rotateY(-40deg);\n    }\n  }\n\n  @keyframes closeLock {\n    0% {\n      transform: rotateY(-40deg);\n    }\n    100% {\n      transform: rotateY(0deg);\n    }\n  }\n\n  @keyframes openLockShackle {\n    0% {\n      transform: translateY(0) rotateY(0deg);\n    }\n    40% {\n      transform: translateY(-3px) rotateY(0deg);\n    }\n    100% {\n      transform: translateY(-3px) rotateY(-40deg);\n    }\n  }\n\n  @keyframes closeLockShackle {\n    0% {\n      transform: translateY(-3px) rotateY(-40deg);\n    }\n    60% {\n      transform: translateY(-3px) rotateY(0deg);\n    }\n    100% {\n      transform: translateY(0) rotateY(0deg);\n    }\n  }\n\n  .anticon {\n    display: inline-block;\n\n    .lock-shackle {\n      transform-origin: 7.5px 9px;\n      transform: translateY(0) rotateY(0deg);\n      animation-fill-mode: forwards;\n      will-change: transform;\n    }\n\n    .lock-connector {\n      transform-origin: 7.5px 9px;\n      transform: rotateY(0deg);\n      animation-fill-mode: forwards;\n      will-change: transform;\n    }\n  }\n\n  button:hover & .anticon {\n    .lock-shackle {\n      animation: openLockShackle 0.6s cubic-bezier(0.17, 0.67, 0.29, 0.98)\n        forwards;\n    }\n    .lock-connector {\n      animation: openLock 0.6s cubic-bezier(0.17, 0.67, 0.29, 0.98) forwards;\n    }\n  }\n\n  button:not(:hover) & .anticon {\n    .lock-shackle {\n      animation: closeLockShackle 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;\n    }\n    .lock-connector {\n      animation: closeLock 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;\n    }\n  }\n"]))),c=()=>(0,u.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsxs)("g",{transform:"translate(0, 2)",children:[(0,u.jsx)("path",{d:"M6.26781 17.0947C6.49269 18.315 7.87613 19.2735 9.55966 19.3409C10.9763 19.396 12.4153 19.425 14 19.425C15.5847 19.425 17.0237 19.396 18.4403 19.3409C20.1239 19.2735 21.5073 18.315 21.7322 17.0947C21.879 16.1547 22 15.1876 22 14.25C22 13.3124 21.879 12.3453 21.7322 11.4053C21.5073 10.185 20.1239 9.22649 18.4403 9.15909C17.0237 9.10397 15.5847 9.075 14 9.075C12.4153 9.075 10.9763 9.10397 9.55966 9.15909C7.87613 9.22649 6.49269 10.185 6.26781 11.4053C6.12104 12.3453 6 13.3124 6 14.25C6 15.1876 6.12104 16.1547 6.26781 17.0947Z",stroke:"currentColor",strokeWidth:"2"}),(0,u.jsx)("path",{className:"lock-connector",d:"M9.5 9.075V5.75",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{className:"lock-shackle",d:"M9.5 7.25C9.5 5.01472 11.51472 3.575 14 3.575C16.4853 3.575 18.5 5.01472 18.5 7.5V9.075",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,u.jsx)("path",{d:"M13.9961 14.25H14.0051",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}),d=e=>(0,u.jsx)(l,{children:(0,u.jsx)(o.A,(0,a.A)({component:c},e))})},96460:(e,t,n)=>{n.d(t,{E:()=>y});var r=n(65043),a=n(68664),s=n(49939),o=n(10765),i=n(62078);class u extends i.Q{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}
1onSubscribe(){1===this.listeners.size&&this.observers.forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(e=>{e.destroy()})}setQueries(e,t){this.queries=e,s.j.batch(()=>{const e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,t));const r=n.map(e=>e.observer),s=Object.fromEntries(r.map(e=>[e.options.queryHash,e])),o=r.map(e=>e.getCurrentResult()),i=r.some((t,n)=>t!==e[n]);(e.length!==r.length||i)&&(this.observers=r,this.observersMap=s,this.result=o,this.hasListeners()&&((0,a.iv)(e,r).forEach(e=>{e.destroy()}),(0,a.iv)(r,e).forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(e=>e.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions))}
1findMatchingObservers(e){const t=this.observers,n=new Map(t.map(e=>[e.options.queryHash,e])),r=e.map(e=>this.client.defaultQueryOptions(e)),a=r.flatMap(e=>{const t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]}),s=new Set(a.map(e=>e.defaultedQueryOptions.queryHash)),i=r.filter(e=>!s.has(e.queryHash)),u=new Set(a.map(e=>e.observer)),l=t.filter(e=>!u.has(e)),c=e=>{const t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new o.$(this.client,t)},d=i.map((e,t)=>{if(e.keepPreviousData){const n=l[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:c(e)}});return a.concat(d).sort((e,t)=>r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions))}onUpdate(e,t){const n=this.observers.indexOf(e);-1!==n&&(this.result=(0,a._D)(this.result,n,t),this.notify())}notify(){s.j.batch(()=>{this.listeners.forEach(e=>{let{listener:t}=e;t(this.result)})})}}var l=n(28873),c=n(59781),d=n(1968),h=n(82670),v=n(74098),m=n(33729);function y(e){let{queries:t,context:n}=e;const a=(0,c.jE)({context:n}),o=(0,d.w)(),i=(0,h.h)(),y=r.useMemo(()=>t.map(e=>{const t=a.defaultQueryOptions(e);return t._optimisticResults=o?"isRestoring":"optimistic",t}),[t,a,o]);y.forEach(e=>{(0,m.tu)(e),(0,v.LJ)(e,i)}),(0,v.wZ)(i);const[f]=r.useState(()=>new u(a,y)),p=f.getOptimisticResult(y);(0,l.r)(r.useCallback(e=>o?()=>{}:f.subscribe(s.j.batchCalls(e)),[f,o]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),r.useEffect(()=>{f.setQueries(y,{listeners:!1})},[y,f]);const g=p.some((e,t)=>(0,m.EU)(y[t],e,o))?p.flatMap((e,t)=>{const n=y[t],r=f.getObservers()[t];if(n&&r){if((0,m.EU)(n,e,o))return(0,m.iL)(n,r,i);(0,m.nE)(e,o)&&(0,m.iL)(n,r,i)}return[]}):[];if(g.length>0)throw Promise.all(g);const b=f.getQueries(),k=p.find((e,t)=>{var n,r;return(0,v.$1)({result:e,errorResetBoundary:i,useErrorBoundary:null!=(n=null==(r=y[t])?void 0:r.useErrorBoundary)&&n,query:b[t]})});if(null!=k&&k.error)throw k.error;return p}}}]);

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.