1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4875],{32387:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/partner/[partner_id]/settings",function(){return t(251)}])},251:function(e,n,t){"use strict";t.r(n);var l=t(34051),i=t.n(l),s=t(85893),r=t(91798),d=t(67294),a=t(12461),c=t(59652),o=t(71577),x=t(40410),u=t(58843),v=t(85071),p=t(27484),f=t.n(p),h=t(11163);function m(e,n,t,l,i,s,r){try{var d=e[s](r),a=d.value}catch(c){return void t(c)}d.done?n(a):Promise.resolve(a).then(l,i)}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}n.default=function(){var e=(0,d.useState)(!1),n=e[0],t=e[1],l=(0,h.useRouter)().query.partner_id,p=(0,d.useState)(null),N=p[0],b=p[1],w=(0,d.useState)("A4"),_=w[0],g=w[1],y=(0,d.useState)(!0),O=y[0],S=y[1],k=(0,d.useState)(!0),E=k[0],P=k[1];(0,d.useEffect)((function(){!N&&l&&A(l)}),[N,l]);var Z,C,J,A=function(e){if(e){if(n)return;t(!0),r.x4.get(e).then((function(e){var n,l,i,s,r,d,a,c,o;b(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},l=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),l.forEach((function(n){j(e,n,t[n])}))}return e}({},null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.data,{printer_conf:JSON.parse(null===e||void 0===e||null===(l=e.data)||void 0===l||null===(i=l.data)||void 0===i?void 0:i.printer_conf)})),g(JSON.parse(null===e||void 0===e||null===(s=e.data)||void 0===s||null===(r=s.data)||void 0===r?void 0:r.printer_conf).default_printer),S(JSON.parse(null===e||void 0===e||null===(d=e.data)||void 0===d||null===(a=d.data)||void 0===a?void 0:a.printer_conf).page_break),P(JSON.parse(null===e||void 0===e||null===(c=e.data)||void 0===c||null===(o=c.data)||void 0===o?void 0:o.printer_conf).qr_code),t(!1)})).catch((function(){t(!1)}))}},D=function(){var e,n=(e=i().mark((function e(){var n,l,s,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t(!0),n={merchant_id:null===N||void 0===N?void 0:N.merchant_id,branch_id:null===N||void 0===N?void 0:N.branch_id,printer_conf:JSON.stringify({default_printer:_,page_break:O,qr_code:E})},e.prev=2,e.next=6,r.x4.printerConBranch(n);case 6:s=e.sent,console.log(null===s||void 0===s?void 0:s.data),"Success"===(null===s||void 0===s||null===(l=s.data)||void 0===l?void 0:l.status)?(a.ZP.success("\u0410\u043c\u0436\u0438\u043b\u0442\u0442\u0430\u0439"),A(null===N||void 0===N?void 0:N.branch_id)):null===s||void 0===s||null===(d=s.errors)||void 0===d||d.forEach((function(e){a.ZP.error(e.message)})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.error("Error occurred:",e.t0);case 14:return e.prev=14,t(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])})),function(){var n=this,t=arguments;return new Promise((function(l,i){var s=e.apply(n,t);function r(e){m(s,l,i,r,d,"next",e)}function d(e){m(s,l,i,r,d,"throw",e)}r(void 0)}))});return function(){return n.apply(this,arguments)}}();return(0,s.jsxs)(s.Fragment,{children:[N&&(0,s.jsx)(c.Z,{className:"mb-5",title:(0,s.jsx)("div",{className:"flex justify-between items-center",children:(0,s.jsx)("h1",{className:"text-2xl font-bold text-gray-900",children:"\u0425\u0430\u0440\u0438\u043b\u0446\u0430\u0433\u0447\u0438\u0439\u043d \u043c\u044d\u0434\u044d\u044d\u043b\u044d\u043b"})}),children:(0,s.jsx)("div",{className:"bg-[#fff] rounded-[16px]",children:(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"flex justify-center items-center",children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0425\u0430\u0440\u0438\u043b\u0446\u0430\u0433\u0447\u0438\u0439\u043d \u043d\u044d\u0440"}),(0,s.jsx)("p",{className:"text-sm ",children:null!==(Z=null===N||void 0===N?void 0:N.branch_name)&&void 0!==Z?Z:""})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0425\u0430\u0440\u0438\u043b\u0446\u0430\u0433\u0447\u0438\u0439\u043d \u0442\u04e9\u043b\u04e9\u0432"}),(0,s.jsx)("p",{className:"text-sm ",children:"ACTIVE"===(null===N||void 0===N?void 0:N.branch_status)?"\u0418\u0414\u042d\u0412\u0425\u0422\u042d\u0419":""})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0411\u0430\u0439\u0433\u0443\u0443\u043b\u043b\u0430\u0433\u0430 \u044d\u0441\u044d\u0445"}),(0,s.jsx)("p",{className:"text-sm ",children:(null===N||void 0===N?void 0:N.is_organization)?"\u0411\u0430\u0439\u0433\u0443\u0443\u043b\u043b\u0430\u0433\u0430":"\u0425\u0443\u0432\u044c \u0445\u04af\u043d"})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0411\u04af\u0440\u0442\u0433\u04af\u04af\u043b\u0441\u044d\u043d \u043e\u0433\u043d\u043e\u043e"}),(0,s.jsx)("p",{className:"text-sm ",children:(null===N||void 0===N?void 0:N.created_at)?f()(null===N||void 0===N?void 0:N.created_at).format(" YYYY-MM-DD HH:mm"):""})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0423\u0442\u0430\u0441\u043d\u044b \u0434\u0443\u0433\u0430\u0430\u0440"}),(0,s.jsx)("p",{className:"text-sm",children:null===N||void 0===N?void 0:N.phone})]}),(0,s.jsxs)("div",{className:"flex justify-between md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0418\u043c\u044d\u0439\u043b \u0445\u0430\u044f\u0433"}),(0,s.jsx)("p",{className:"text-sm",children:null===N||void 0===N?void 0:N.email})]}),(0,s.jsxs)("div",{className:"flex justify-between md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0422\u043e\u043e\u0446\u043e\u043e \u043d\u0438\u0439\u043b\u044d\u0445 \u0434\u04af\u043d"}),(0,s.jsxs)("p",{className:"text-sm",children:[" ",(new Intl.NumberFormat).format(null!==(C=null===N||void 0===N?void 0:N.calc_price)&&void 0!==C?C:0),"\u20ae"]})]}),(0,s.jsxs)("div",{className:"flex justify-between md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0417\u0430\u0445\u0438\u0430\u043b\u0433\u044b\u043d \u0448\u0438\u043c\u0442\u0433\u044d\u043b"}),(0,s.jsxs)("p",{className:"text-sm",children:[" ",(new Intl.NumberFormat).format(null!==(J=null===N||void 0===N?void 0:N.delivery_fee)&&void 0!==J?J:0),"\u20ae"]})]})]})})})})}),(0,s.jsx)(c.Z,{className:"mb-5",title:"\u041f\u0440\u0438\u043d\u0442\u0435\u0440 \u0442\u043e\u0445\u0438\u0440\u0433\u043e\u043e",extra:(0,s.jsx)(o.Z,{type:"primary",loading:n,onClick:D,children:"\u0425\u0430\u0434\u0433\u0430\u043b\u0430\u0445"}),children:(0,s.jsxs)("div",{className:"grid w-1/2",children:[(0,s.jsx)(x.De,{className:"w-[200px]",list:[{value:"A4",title:"A4"},{value:"80x100",title:"80x100"},{value:"60x80",title:"60x80"},{value:"60x40",title:"60x40"}],label:"\u0426\u0430\u0430\u0441\u043d\u044b \u0445\u044d\u043c\u0436\u044d\u044d",value:_,onCh
1ange:function(e){g(e.target.value)}}),(0,s.jsx)(u.Z,{control:(0,s.jsx)(v.Z,{checked:O,onChange:function(){S((function(e){return!e}))}}),label:"\u0422\u0430\u0441\u043b\u0430\u0432\u0447\u0442\u0430\u0439 \u0446\u0430\u0430\u0441"}),(0,s.jsx)(u.Z,{control:(0,s.jsx)(v.Z,{checked:E,onChange:function(){P((function(e){return!e}))}}),label:"QR Code"})]})}),(0,s.jsx)(c.Z,{className:"mb-5",title:"\u0417\u0430\u0445\u0438\u0430\u043b\u0433\u044b\u043d \u0442\u043e\u0445\u0438\u0440\u0433\u043e\u043e",children:(0,s.jsx)("div",{className:"bg-[#fff] rounded-[16px]",children:(0,s.jsx)("div",{className:"",children:(0,s.jsx)("div",{className:"flex justify-center items-center",children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsxs)("div",{className:"flex justify-between md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0413\u0430\u0437\u0440\u044b\u043d \u0437\u0443\u0440\u0430\u0433 \u0445\u0430\u0440\u0443\u0443\u043b\u0430\u0445:"}),(0,s.jsx)("p",{className:"text-s",children:(null===N||void 0===N?void 0:N.is_map_web)?"\u0422\u0438\u0439\u043c":"\u04ae\u0433\u04af\u0439"})]}),(0,s.jsxs)("div",{className:"flex justify-between md:px-[10px] lg:px-[14px] mt-5 overflow-hidden text-[12px]",children:[(0,s.jsx)("h3",{children:"\u0425\u0430\u044f\u0433 \u0437\u0430\u0430\u0432\u0430\u043b \u0431\u04e9\u0433\u043b\u04e9\u0445:"}),(0,s.jsx)("p",{className:"text-s",children:(null===N||void 0===N?void 0:N.is_address_fill_web)?"\u0422\u0438\u0439\u043c":"\u04ae\u0433\u04af\u0439"})]})]})})})})})]})}}},function(e){e.O(0,[3662,280,9411,2658,2277,9652,6131,410,9774,2888,179],(function(){return n=32387,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
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.