https://sellematics.com/_next/static/chunks/pages/business/unit-economics/[mall]-4bf84350b1d0a7d7.js
1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5719],{3717:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8013:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})},14615:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))})},18058:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(28888),i=n(37876),o=n(27929),l=n(619),s=n(29053),a=n(89099),c=n(54567),u=n(14232);function d(){let e=(0,r._)(["flex flex-col gap-4 mb-4 w-full ",""]);return d=function(){return e},e}let m=e=>{let{className:t}=e,n=(0,s.u)(),{lang:r}=(0,l.t)(),m=(0,a.useRouter)(),[f,p]=(0,u.useState)(null);(0,u.useEffect)(()=>{n.getAlerts("ru").then(p)},[]);let x=(0,u.useMemo)(()=>{var e;return null!=(e=null==f?void 0:f.filter(e=>{var t;let{urls:n}=e;return null==(t=null==n?void 0:n.some(e=>m.asPath.includes(e)))||t}))?e:[]},[f]);return x.length?(0,i.jsx)("div",{className:(0,o.c)(d(),t),children:x.map(e=>{let{id:t,type:n,header:r,text:o}=e;return(0,i.jsx)(c.A,{type:n,header:r,children:(0,i.jsx)("p",{className:"text-balance whitespace-pre-line",children:o})},t)})}):null}},19688:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,e:()=>o});var r=n(39746),i=n(14232);function o(e){var t=(0,i.useState)(function(){return(0,r.CN)("function"==typeof e?e():e,!0)}),n=t[1];return[t[0],(0,i.useCallback)(function(e){n("function"==typeof e?(0,r.Ay)(e):(0,r.CN)(e))},[])]}function l(e,t,n){var o=(0,i.useMemo)(function(){return(0,r.Ay)(e)},[e]);return(0,i.useReducer)(o,t,n)}},21612:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"}))})},24480:(e,t,n)=>{"use strict";n.d(t,{M:()=>r});let r=(e,t)=>{var n;let r=new URL(t,e);return r.search="",r.hash="",r.pathname||(r.pathname="/"),(null!=(n=r.pathname.split("/").filter(Boolean).at(-1))?n:"").includes(".")||r.pathname.endsWith("/")||(r.pathname="".concat(r.pathname,"/")),r.toString()}},26210:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})},31583:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))})},32938:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/business/unit-economics/[mall]",function(){return n(80618)}])},34568:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))})},34780:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(28888),i=n(37876),o=n(28491),l=n(27929),s=n(34110),a=n(14232);function c(){let e=(0,r._)(["inline-flex items-center font-medium bg-gray-200/60 border border-gray-200/60 rounded-lg p-[2px] space-x-[2px] ",""]);return c=function(){return e},e}function u(){let e=(0,r._)(["hide-separators outline-none focus-visible:ring-2 focus-visible:ring-primary-500 relative first-of-type:before:hidden w-max transition-colors duration-300 py-0.5 px-3 hover:bg-gray-50 block cursor-pointer rounded-md before:absolute before:top-[calc((2*2px+7px)/2)] before:left-0 before:-translate-x-px before:w-px before:h-[calc(100%-2*2px-7px)] before:bg-gray-300 "," text-black bg-white shadow-sm hover:bg-white | text-gray-500"]);return u=function(){return e},e}let d=e=>{let{options:t,selected:n,setSelected:r,disabled:d,onDisabledClick:m,optionKey:f,display:p,compareBy:x,className:h}=e;return(0,i.jsx)(o.z6,{by:x,value:n,onChange:r,className:(0,l.c)(c(),h),children:t.map(e=>(0,i.jsx)(o.z6.Option,{as:a.Fragment,value:e,children:t=>{let{checked:n}=t;return(0,i.jsx)("span",{onClick:t=>{(null==d?void 0:d.includes(e))&&(t.preventDefault(),null==m||m(e))},className:(0,l.c)(u(),n),children:(0,s.o)(e,p)})}},(0,s.o)(e,f)))})}},38175:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(28888),i=n(37876),o=n(27929),l=n(29053),s=n(85278),a=n(49788),c=n(3629);function u(){let e=(0,r._)([""," ",""]);return u=function(){return e},e}function d(){let e=(0,r._)(["w-full px-4 pb-16 sm:px-6 lg:px-8 grow shrink-0 h-fit ",""]);return d=function(){return e},e}function m(){let e=(0,r._)(["flex relative space-x-6 "," "," ",""]);return m=function(){return e},e}let f={left:"mr-auto",center:"m-auto"},p={small:"max-w-7xl",full:"w-full"},x={gray:"bg-gray-100",white:"bg-white"},h=e=>{let{pageName:t,align:n,size:r,background:h="gray",responsive:g,topBar:v,leftPanel:b,rightPanel:y,meta:w,children:j,className:N}=e,A=(0,l.u)(),C=(0,s.md)(a.R5),P=A.isAuthorized?C?"14rem":"3rem":"0";return(0,i.jsxs)(i.Fragment,{children:[v&&(0,i.jsx)("div",{className:"sticky top-0 z-20 px-8 py-3 w-full ring-1 ring-gray-200 backdrop-blur-md backdrop-saturate-200 bg-white/80",children:(0,i.jsx)("div",{className:(0,o.c)(u(),f[n],p[r]),children:v})}),(0,i.jsx)(c.A,{title:"".concat(t," | ").concat(A.theme.title),...w,image:null}),(0,i.jsx)("div",{style:{maxWidth:"calc(100vw - ".concat(P,")"),minWidth:g?void 0:"calc(1170px - ".concat(P,")")},className:(0,o.c)(d(),x[h]),children:(0,i.jsxs)("div",{className:(0,o.c)(m(),f[n],p[r],N),children:[b&&(0,i.jsx)("div",{className:"sticky
1shrink-0 overflow-y-auto overscroll-contain h-min max-h-[calc(100vh-4rem)] top-16",children:b}),(0,i.jsx)("div",{className:"min-w-0 flex-1 pt-8 max-w-full",children:j}),y&&(0,i.jsx)("div",{className:"sticky shrink-0 overflow-y-auto overscroll-contain h-min max-h-[calc(100vh-4rem)] top-16",children:y})]})})]})}},38652:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(37876),i=n(619);let o=e=>{let{dateTime:t,options:n,fallback:o,...l}=e,{format:s}=(0,i.t)();return null!=t?(0,r.jsx)("time",{dateTime:t.toString(),...l,suppressHydrationWarning:!0,children:s.date(t,n)}):null!=o?o:null}},40929:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"}))})},54567:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(28888),i=n(37876),o=n(29641),l=n.n(o),s=n(16690),a=n.n(s),c=n(27929);function u(){let e=(0,r._)(["p-4 rounded-md ring-1 not-prose "," "," ",""]);return u=function(){return e},e}function d(){let e=(0,r._)(["w-5 h-5 ",""]);return d=function(){return e},e}function m(){let e=(0,r._)(["text-sm font-medium ",""]);return m=function(){return e},e}function f(){let e=(0,r._)(["text-sm ",""]);return f=function(){return e},e}function p(){let e=(0,r._)(["text-sm ",""]);return p=function(){return e},e}let x={error:{icon:l(),bgColor:"bg-red-100 dark:bg-red-50",ringColor:"ring-red-200 dark:ring-red-100",iconColor:"text-red-400",headerColor:"text-red-800",textColor:"text-red-700"},warning:{icon:l(),bgColor:"bg-yellow-100 dark:bg-yellow-50",ringColor:"ring-yellow-200 dark:ring-yellow-100",iconColor:"text-yellow-400",headerColor:"text-yellow-800",textColor:"text-yellow-700"},"warning-white":{icon:l(),bgColor:"bg-white",ringColor:"ring-gray-200 dark:ring-gray-300",iconColor:"text-yellow-400",headerColor:"text-gray-800",textColor:"text-gray-700"},info:{icon:a(),bgColor:"bg-white",ringColor:"ring-gray-200 dark:ring-gray-300",iconColor:"text-blue-400",headerColor:"text-gray-800",textColor:"text-gray-700"}},h=e=>{let{type:t,header:n,text:r,className:o,children:l}=e,s=x[t],a=s.icon;return(0,i.jsx)("div",{className:(0,c.c)(u(),s.bgColor,s.ringColor,o),children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"flex-shrink-0",children:(0,i.jsx)(a,{className:(0,c.c)(d(),s.iconColor),"aria-hidden":"true"})}),(0,i.jsxs)("div",{className:"ml-3 space-y-1",children:[n&&(0,i.jsx)("h3",{className:(0,c.c)(m(),s.headerColor),children:n}),r&&(0,i.jsx)("div",{className:(0,c.c)(f(),s.textColor),children:r}),l&&(0,i.jsx)("div",{className:(0,c.c)(p(),s.textColor),children:l})]})]})})}},74554:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(28888),i=n(37876),o=n(27929);function l(){let e=(0,r._)(["flex items-center "," mb-4 "," px-2.5"]);return l=function(){return e},e}function s(){let e=(0,r._)(["text-3xl font-semibold ",""]);return s=function(){return e},e}let a=e=>{let{pageName:t,noBottomMargin:n=!1,noLeftMargin:r=!1,className:a,children:c}=e;return(0,i.jsxs)("div",{className:(0,o.c)(l(),!n,!r),children:[(0,i.jsx)("h1",{className:(0,o.c)(s(),a),children:t}),c]})}},76924:(e,t,n)=>{"use strict";n.d(t,{b:()=>c});var r=n(14232),i=n(66326),o=n(37876),l="horizontal",s=["horizontal","vertical"],a=r.forwardRef((e,t)=>{var n;let{decorative:r,orientation:a=l,...c}=e,u=(n=a,s.includes(n))?a:l;return(0,o.jsx)(i.sG.div,{"data-orientation":u,...r?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...c,ref:t})});a.displayName="Separator";var c=a},77559:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(28888),i=n(37876),o=n(27929),l=n(14232),s=n(69271),a=n(1247),c=n(51164),u=n.n(c),d=n(4989),m=n.n(d),f=n(99465),p=n(34110);function x(){let e=(0,r._)(["relative ",""]);return x=function(){return e},e}function h(){let e=(0,r._)(["overflow-auto absolute z-20 mt-1 w-48 min-w-full max-h-64 text-base bg-white rounded-md ring-1 ring-black ring-opacity-5 shadow-lg focus:outline-none sm:text-sm ",""]);return h=function(){return e},e}function g(){let e=(0,r._)(["block font-medium truncate"]);return g=function(){return e},e}
1function v(){let e=(0,r._)(["cursor-pointer select-none relative py-2.5 pl-8 pr-4 hover:bg-gray-100 text-left text-gray-900 "," !text-black"]);return v=function(){return e},e}function b(){let e=(0,r._)(["absolute inset-y-0 left-0 flex items-center pl-3 z-10 text-primary-500 "," !text-primary-600"]);return b=function(){return e},e}let y=e=>{let{selected:t,setSelected:n,onChange:r,options:c,className:d,dropdownClassName:y,placeholder:w,label:j,display:N,dropdownDisplay:A,optionKey:C,showSearchIcon:P=!0,showSelected:k=!0,maxDisplayedResults:_=100}=e,[R,E]=(0,l.useState)(""),S=c.filter(e=>{var t;return null==(t=(0,p.o)(e,N))?void 0:t.toLocaleString().toLowerCase().trim().includes(R.toLowerCase().trim())});return(0,i.jsx)(s.G3,{value:t,onChange:n,nullable:!0,children:e=>{let{open:n}=e;return(0,i.jsxs)("div",{className:(0,o.c)(x(),d),children:[j&&(0,i.jsx)(s.G3.Label,{className:"inline-block mb-1 w-full text-sm font-medium text-black",children:j}),(0,i.jsx)("div",{className:"relative w-full",children:(0,i.jsx)(s.G3.Input,{as:f.A,displayValue:()=>{var e,n;return null!==t&&null!=(n=null==(e=(0,p.o)(t,N))?void 0:e.toLocaleString())?n:""},onChange:e=>{E(e.target.value),null==r||r(e.target.value)},placeholder:w||"",placeLeft:P?(0,i.jsx)(m(),{className:"w-4 h-4"}):void 0})}),(0,i.jsx)(a.e,{show:n&&!!R.length,as:l.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",afterLeave:()=>E(""),children:(0,i.jsx)(s.G3.Options,{className:(0,o.c)(h(),y),children:S.length>0&&!!R.length&&S.filter((e,t)=>t<_).map(e=>k?(0,i.jsx)(s.G3.Option,{className:e=>{let{active:t}=e;return(0,o.c)(v(),t)},value:e,children:t=>{let{selected:n,active:r}=t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"block font-medium truncate",children:A?(0,p.o)(e,A):(0,p.o)(e,N)}),(0,i.jsx)("span",{className:"absolute inset-0 z-[-1]"}),n&&(0,i.jsx)("span",{className:(0,o.c)(b(),r),children:(0,i.jsx)(u(),{className:"w-4 h-4","aria-hidden":"true"})})]})}},(0,p.o)(e,C)):(0,i.jsx)(s.G3.Option,{className:"cursor-pointer select-none relative py-2.5 px-4 text-left hover:bg-gray-100",value:e,children:(0,i.jsx)("span",{className:(0,o.c)(g()),children:A?(0,p.o)(e,A):(0,p.o)(e,N)})},(0,p.o)(e,C)))})})]})}})}},79706:(e,t,n)=>{"use strict";var r=n(3717);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,l){if(l!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
1;return n.PropTypes=n,n}},79925:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))})},80549:(e,t,n)=>{"use strict";n.d(t,{A:()=>f});var r=n(28888),i=n(37876),o=n(619),l=n(14232),s=n(43235),a=n(3604),c=n(99465),u=n(20673);function d(){let e=(0,r._)(["cancel"]);return d=function(){return e},e}function m(){let e=(0,r._)(["save"]);return m=function(){return e},e}let f=e=>{let{defaultValue:t,onSubmit:n,label:r,closeOnChange:f=!1,additionalFields:p,secondaryButton:x,...h}=e,{t:g}=(0,o.t)(),[v,b]=(0,l.useState)(null!=t?t:""),y=(0,u.tk)();return(0,i.jsxs)("form",{onSubmit:e=>{e.preventDefault(),v.length>0&&n(v),f&&y()},style:{width:"".concat(v.length,"ch")},className:"px-6 py-6 max-w-prose min-w-[40ch]",children:[(0,i.jsxs)("div",{className:"space-y-4",children:[(0,i.jsx)(a.A,{label:r,children:(0,i.jsx)(c.A,{autoFocus:!0,value:v,onChange:e=>b(e.target.value),...h})}),p]}),(0,i.jsxs)("div",{className:"mt-4 ml-auto space-x-2 w-max",children:[x||(0,i.jsx)(s.A,{theme:"gray",onClick:y,children:g(d())}),(0,i.jsx)(s.A,{theme:"primary",type:"submit",disabled:0===v.length,children:g(m())})]})]})}},80618:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>to,default:()=>ti});var r=n(28888),i=n(37876),o=n(14232),l=n(6099),s=n(89099),a=n(619),c=n(29591),u=n(19688);let d={discountAmount:0,discountPrice:0,maxDiscountBeforeZeroProfit:0,commissionPercent:0,commissionAmount:0,promotionExpensesAmount:0,storing:0,expectedReverseLogisticsCost:0,delivery:0,processing:0,logistics:0,lastMile:0,grossProfit:0,vatAmount:0,taxAmount:0,profitPerGoodPercent:0,profitPerGoodAmount:0,profitPerGoodsAmount:0,revenuePerShipment:0,volume:0},m={price:0,fullPrice:0,discount:0,quantity:0,priceOfDelivery:0,processingOfGoods:0,length:0,width:0,height:0,conversion:0,promotionExpensesPercent:0,additionalExpensesPerUnit:0,additionalExpenses:0,taxScheme:"revenue",taxPercent:6,vatPercent:0,name:"",category:null,warehouse:null,departureRegion:null,destinationRegion:null,stock:"fbw"},f=["discountPrice","grossProfit","profitPerGoodPercent","profitPerGoodAmount","profitPerGoodsAmount"],p=[{name:"price",type:"price"},{name:"quantity",type:"count"},{name:"priceOfDelivery",type:"price"},{name:"processingOfGoods",type:"price"},{name:"fullPrice",type:"price"},{name:"discount",type:"percent"},{name:"discountAmount",type:"price"},{name:"discountPrice",type:"price"},{name:"maxDiscountBeforeZeroProfit",type:"percent"}],x=[{name:"commissionPercent",type:"percent"},{name:"commissionAmount",type:"price"},{name:"promotionExpensesPercent",type:"percent"},{name:"promotionExpensesAmount",type:"price"},{name:"additionalExpensesPerUnit",type:"price"},{name:"additionalExpenses",type:"price"},{name:"conversion",type:"percent"},{name:"expectedReverseLogisticsCost",type:"price"},{name:"volume",type:"liters"},{name:"storing",type:"price",malls:["wb"]},{name:"processing",type:"price",malls:["ozon"]},{name:"logistics",type:"price",malls:["ozon"]},{name:"lastMile",type:"price",malls:["ozon"]},{name:"delivery",type:"price"},{name:"grossProfit",type:"price"}],h=[{name:"taxPercent",type:"percent"},{name:"taxAmount",type:"price"},{name:"vatPercent",type:"percent"},{name:"vatAmount",type:"price"},{name:"profitPerGoodAmount",type:"price"},{name:"profitPerGoodPercent",type:"percent"},{name:"profitPerGoodsAmount",type:"price"},{name:"revenuePerShipment",type:"price"}];var g=n(43235),v=n(24997),b=n(3604),y=n(99465),w=n(34780),j=n(77559),N=n(51843),A=n(29053),C=n(27929),P=n(9825),k=n(38652),_=n(31583),R=n.n(_),E=n(20673),S=n(85278);let M=(0,n(36773).E)([]);var L=n(74668),z=n(96717),O=n(71939);function B(){let e=(0,r._)(["business.unit-economics.calculation.toast_error"]);return B=function(){return e},e}function T(){let e=(0,r._)(["flex justify-between items-center px-4 py-2 space-x-4 h-16 rounded-lg "," cursor-pointer hover:bg-gray-100 | cursor-not-allowed opacity-60"]);return T=function(){return e},e}let D=e=>{let{setSelectedCalculation:t,calculationListState:n,isCalculationListReady:r,storedCalculationList:l,setStoredCalculationList:s,isCalculationListSaving:c,startCalculationListSaving:u,finishCalculationListSaving:d,onCalculationDeleted:m}=e,f=(0,A.u)(),{t:p}=(0,a.t)(),[x]=(0,S.fp)(M),h=(0,E.tk)(),v=(0,O.dj)(),b=(0,o.useMemo)(()=>l.filter(e=>e.mall===f.currentMall.code),[f.currentMall.code,l]),y=async e=>{if("loaded"===n&&u())try{let t=await f.getStorage("unitEconomics");if(!Array.isArray(t))throw Error("Invalid unit economics storage");let n=t.filter(t=>{let{id:n}=t;return n!==e});await f.setStorage("unitEconomics",n),s(n),m(e)}catch(e){v("error",p(B()))}finally{d()}};return(0,i.jsx)(P.A,{title:p("business.unit-economics.calculation.list_modal_title"),children:(0,i.jsx)("div",{className:"w-[420px] px-4 py-4",children:0===b.length?(0,i.jsx)("div",{className:"px-4 py-2",children:(0,i.jsx)(z.A,{title:p("business.unit-economics.calculation.empty_list.t
1itle"),description:p("business.unit-economics.calculation.empty_list.description")})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("ul",{children:b.map(e=>{var n,o,l,s;let{id:a,createdAt:u}=e,d=null!=(s=null!=(l=null==(n=e.form)?void 0:n.name)?l:null==(o=e.calculation)?void 0:o.name)?s:"";return(0,i.jsxs)("li",{className:(0,C.c)(T(),r&&!c),onClick:()=>{if(!r||c)return;let e=x.find(e=>e.id===a);e&&(t(e),h())},children:[(0,i.jsxs)("span",{className:"flex flex-col items-start",children:[(0,i.jsx)("span",{className:"max-w-[18rem] truncate text-base font-medium text-black",children:d}),(0,i.jsx)("p",{className:"mt-1 text-xs text-gray-600",children:(0,i.jsx)(k.A,{dateTime:u,options:{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}})})]}),(0,i.jsx)(L.A,{content:p("delete"),children:(0,i.jsx)(g.A,{theme:"dangerGhost",className:"px-2 py-1",disabled:c,onClick:e=>{e.preventDefault(),e.stopPropagation(),y(a)},children:(0,i.jsx)(R(),{className:"w-4 h-4","aria-hidden":"true"})})})]},a)})})})})})};var W=n(48449),F=n(80549);function G(e,t){if(!Number.isFinite(e))throw Error(t)}let U=(e,t)=>{let n=e.toSorted((e,t)=>{var n,r;return(null!=(n=e.volumeTo)?n:1/0)-(null!=(r=t.volumeTo)?r:1/0)});return n.find((e,r)=>{var i,o,l;let s=0===r?0:null!=(o=null==(i=n[r-1])?void 0:i.volumeTo)?o:0,a=null!=(l=e.volumeTo)?l:1/0;return t>=s&&t<=a})};var q=n(52737),V=n.n(q),I=n(21612),H=n.n(I),K=n(49206),Y=n.n(K),X=n(29358),Z=n(54567),J=n(74417),Q=n(6739),$=n.n(Q),ee=n(8013),et=n.n(ee);function en(){let e=(0,r._)(["relative pl-3 pr-10 py-2 text-left text-black bg-white border border-gray-300 hover:border-gray-400 rounded-md focus:outline-none focus-visible:ring-1 focus-visible:ring-primary-500 focus-visible:border-primary-500 sm:text-sm min-w-[220px]"]);return en=function(){return e},e}function er(){let e=(0,r._)(["business.unit-economics.form.departureRegion.label"]);return er=function(){return e},e}function ei(){let e=(0,r._)(["loading"]);return ei=function(){return e},e}function eo(){let e=(0,r._)(["business.unit-economics.form.destinationRegion.label"]);return eo=function(){return e},e}function el(){let e=(0,r._)(["loading"]);return el=function(){return e},e}let es=e=>{var t;return e?null!=(t=e.name.split(/[,\s]+/).filter(Boolean)[0])?t:e.name:"..."},ea=e=>{var t,n;let{departureRegion:r,destinationRegion:l,departureRegions:s,destinationRegions:c,onDepartureRegionChange:u,onDestinationRegionChange:d}=e,{t:m}=(0,a.t)(),[f,p]=(0,o.useState)(!1),x=null!=(t=null!=r?r:s[0])?t:null,h=null!=(n=null!=l?l:c[0])?n:null;return(0,i.jsxs)(J.AM,{open:f,onOpenChange:p,children:[(0,i.jsx)(J.Wv,{asChild:!0,children:(0,i.jsxs)("button",{type:"button",className:(0,C.c)(en()),children:[(0,i.jsxs)("span",{className:"inline-flex items-center gap-1.5 max-w-full",children:[(0,i.jsx)("span",{className:"truncate",children:es(r)}),(0,i.jsx)(et(),{className:"w-4 h-4 text-gray-600 shrink-0"}),(0,i.jsx)("span",{className:"truncate",children:es(l)})]}),(0,i.jsx)("span",{className:"absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none",children:(0,i.jsx)($(),{className:"w-4 h-4 text-gray-400","aria-hidden":"true"})})]})}),(0,i.jsx)(J.i0,{children:(0,i.jsx)(J.hl,{sideOffset:8,align:"start",className:"z-[30] w-[34rem] max-w-[calc(100vw-32px)]",children:(0,i.jsx)(v.A,{className:"p-4 !shadow-lg",children:(0,i.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,i.jsx)(b.A,{label:m(er()),children:(0,i.jsx)(N.A,{selected:x,setSelected:u,options:s,display:e=>{var t;return null!=(t=null==e?void 0:e.name)?t:m(ei())+"..."},optionKey:e=>{var t;return null!=(t=null==e?void 0:e.id)?t:"null"}})}),(0,i.jsx)(b.A,{label:m(eo()),children:(0,i.jsx)(N.A,{selected:h,setSelected:d,options:c,display:e=>{var t;return null!=(t=null==e?void 0:e.name)?t:m(el())+"..."},optionKey:e=>{var t;return null!=(t=null==e?void 0:e.id)?t:"null"}})})]})})})})]})},ec=e=>({subject:e.subject,category:e.category,fboPercent:e.fboPercent,fbsPercent:e.fbsPercent}),eu=(e,t)=>{var n;return t&&null!=(n=null==e?void 0:e.find(e=>e.name===t||e.id===t))?n:null};function ed(e){var t,n,r,i,o,l;return{...e,category:e.category?ec(e.category):null,warehouseName:null!=(i=null==(t=e.warehouse)?void 0:t.warehouseName)?i:null,departureRegionName:null!=(o=null==(n=e.departureRegion)?void 0:n.name)?o:null,destinationRegionName:null!=(l=null==(r=e.destinationRegion)?void 0:r.name)?l:null}}
1function em(e){var t,n,r,i,o,l,s,a,c,u,d;let{form:m,mall:f,warehouses:p,marketplaceCommission:x,departureRegions:h,getDestinationRegions:g}=e,{warehouseName:v,departureRegionName:b,destinationRegionName:y,...w}=m,j=m.warehouse,N=null!=(o=null!=v?v:null==j?void 0:j.warehouseName)?o:null,A=null!=(s=null!=(l=null!=b?b:null==(t=m.departureRegion)?void 0:t.name)?l:null==(n=m.departureRegion)?void 0:n.id)?s:null,C=null!=(c=null!=(a=null!=y?y:null==(r=m.destinationRegion)?void 0:r.name)?a:null==(i=m.destinationRegion)?void 0:i.id)?c:null,P=eu(h,A),k=eu("ozon"===f?null==g?void 0:g(null!=(u=null==P?void 0:P.name)?u:A):[],C);return{...w,category:((e,t)=>{var n;let r;if(null==e)return null;let i=null!=(r=e)&&"clickAndCollectPercent"in r&&"dbsPercent"in r?ec(e):e;return null!=(n=t.valuesByCategories.find(e=>e.subject===i.subject&&e.category===i.category&&e.fboPercent===i.fboPercent&&e.fbsPercent===i.fbsPercent))?n:null})(m.category,x),warehouse:"wb"===f&&null!=(d=null==p?void 0:p.find(e=>e.warehouseName===N))?d:null,departureRegion:"ozon"===f?P:null,destinationRegion:"ozon"===f?k:null}}function ef(){let e=(0,r._)(["business.unit-economics.calculation.toast_error"]);return ef=function(){return e},e}function ep(){let e=(0,r._)(["business.unit-economics.calculation.toast_success"]);return ep=function(){return e},e}function ex(){let e=(0,r._)(["business.unit-economics.calculation.toast_success"]);return ex=function(){return e},e}function eh(){let e=(0,r._)(["business.unit-economics.form.category.label"]);return eh=function(){return e},e}function eg(){let e=(0,r._)(["business.unit-economics.form.product.placeholder"]);return eg=function(){return e},e}function ev(){let e=(0,r._)(["business.unit-economics.form.stock.label"]);return ev=function(){return e},e}function eb(){let e=(0,r._)(["business.unit-economics.form.route.label"]);return eb=function(){return e},e}function ey(){let e=(0,r._)(["business.unit-economics.form.warehouse.label"]);return ey=function(){return e},e}function ew(){let e=(0,r._)(["business.unit-economics.form.warehouse.label"]);return ew=function(){return e},e}function ej(){let e=(0,r._)(["business.unit-economics.form.taxScheme.label"]);return ej=function(){return e},e}function eN(){let e=(0,r._)(["business.unit-economics.form.taxPercent.label"]);return eN=function(){return e},e}function eA(){let e=(0,r._)(["business.unit-economics.form.vatPercent.label"]);return eA=function(){return e},e}function eC(){let e=(0,r._)(["business.unit-economics.form.price.label"]);return eC=function(){return e},e}function eP(){let e=(0,r._)(["business.unit-economics.form.fullPrice.label"]);return eP=function(){return e},e}function ek(){let e=(0,r._)(["price"]);return ek=function(){return e},e}function e_(){let e=(0,r._)(["business.unit-economics.form.quantity.label"]);return e_=function(){return e},e}function eR(){let e=(0,r._)(["business.unit-economics.form.priceOfDelivery.label"]);return eR=function(){return e},e}function eE(){let e=(0,r._)(["business.unit-economics.form.processingOfGoods.label"]);return eE=function(){return e},e}function eS(){let e=(0,r._)(["shipment"]);return eS=function(){return e},e}function eM(){let e=(0,r._)(["business.unit-economics.form.length.label"]);return eM=function(){return e},e}function eL(){let e=(0,r._)(["business.unit-economics.form.width.label"]);return eL=function(){return e},e}function ez(){let e=(0,r._)(["business.unit-economics.form.height.label"]);return ez=function(){return e},e}function eO(){let e=(0,r._)(["packaging"]);return eO=function(){return e},e}function eB(){let e=(0,r._)(["business.unit_economics.wb_additional_commission"]);return eB=function(){return e},e}function eT(){let e=(0,r._)(["business.unit-economics.form.additionalExpensesPerUnit.label"]);return eT=function(){return e},e}function eD(){let e=(0,r._)(["business.unit-economics.form.additionalExpenses.label"]);return eD=function(){return e},e}function eW(){let e=(0,r._)(["other_expenses"]);return eW=function(){return e},e}function eF(){let e=(0,r._)(["save"]);return eF=function(){return e},e}function eG(){let e=(0,r._)(["save_as"]);return eG=function(){return e},e}function eU(){let e=(0,r._)(["product_page.load_preset"]);return eU=function(){return e},e}function eq(){let e=(0,r._)(["reset_form"]);return eq=function(){return e},e}let eV=(e,t)=>{var n;return null==e||null==(n=e.toSorted((e,t)=>{var n,r;return(null!=(n=e.priceTo)?n:1/0)-(null!=(r=t.priceTo)?r:1/0)}).find((e,n,r)=>{var i,o,l;let s=0===n?0:null!=(o=null==(i=r[n-1])?void 0:i.priceTo)?o:0,a=null!=(l=e.priceTo)?l:1/0;return t>=s&&t<=a}))?void 0:n.value},eI=e=>{var t;let{updateCalc:n,calcForm:r,updateCalcForm:s,marketplaceCommission:c,tariffCoefficient:u,ozonDepartureRegions:f,ozonDestinationRegions:p,isDefaultOzonRegionMissing:x,setShowNotAuthorizedAlert:h,wbAdditionalCommissionPercent:C,setWbAdditionalCommissionPercent:P,calculationListState:k,isCalculationListReady:_,storedCalculationList:R,setStoredCalculationList:S,isCalculationListSaving:M,startCalculationListSaving:z,finishCalculationListSaving:B}=e,T=(0,A.u)(),{t:q}=(0,a.t)(),[I,K]=(0,o.useState)(null),[J,Q]=(0,o.useState)([]),[$,ee]=(0,o.useState)(null),et=(0,O.dj)();(0,o.useEffect)(()=>{let e=null;n(t=>{t.discountAmount=r.fullPrice*r.discount/100,t.discountPrice=r.fullPrice-t.discountAmount;let n=r.category;t.commissionPercent=null!==n?(0,X.YW)(r.stock).when(()=>"fbw"===r.stock&&"ozon"===T.currentMall.code,()=>{var e;return null!=(e=eV(n.fboPercentByPrices,t.discountPrice))?e:n.fboPercent}).when(()=>"fbs"===r.stock&&"ozon"===T.currentMall.code,()=>{var e;return null!=(e=eV(n.fbsPercentByPrices,t.discountPrice))?e:n.fbsPercent}).when(()=>"fbw"===r.stock&&"wb"===T.currentMall.code,()=>n.fboPercent).when(()=>"fbs"===r.stock&&"wb"===T.currentMall.code,()=>n.fbsPercent).run():0,"wb"===T.currentMall.code&&(t.commissionPercent+=C),t.volume=r.length*r.width*r.height*.001;let i=u.logisticCoefficients;if("ozon"===T.currentMall.code){if(x)e="defaultRegionMissing",t.processing=NaN,t.logistics=NaN,t.lastMile=NaN,t.delivery=NaN,t.expectedReverseLogisticsCost=NaN;else if(null!==i&&null!==r.departureRegion&&null!==r.destinationRegion){let n=(e=>
1{var t,n,r,i,o,l,s,a,c;let{logistics:u,price:d,volume:m,departureRegion:f,destinationRegion:p}=e;if(!u)return{status:"error"};let x=d<=300?null==(t=U(null!=(l=u.cheapProductTariffsByVolume)?l:[],m))?void 0:t.cost:null==(n=U(null!=(a=null==(i=(null!=(s=u.normalProductTariffsByRouteAndVolume)?s:[]).find(e=>e.departureRegion===f.name))||null==(r=i.destinationRegions.find(e=>e.destinationRegion===p.name))?void 0:r.volumes)?a:[],m))?void 0:n.cost;if(!Number.isFinite(x))return{status:"error"};let h=f.id!==p.id?null==(o=(null!=(c=u.nonLocalMarkupByDestination)?c:[]).find(e=>e.destinationRegion===p.name))?void 0:o.nonLocalMarkupPercent:0;if(f.id!==p.id&&!Number.isFinite(h))return{status:"error"};let g=f.id!==p.id?x*(null!=h?h:0)/100:0;return{status:"success",baseCost:x,logisticsToClient:x+(null!=g?g:0)}})({logistics:(e=>{var t;return null!=(t=e.commonCoefficients.logistics)?t:null})(u),price:t.discountPrice,volume:t.volume,departureRegion:r.departureRegion,destinationRegion:r.destinationRegion});if("error"===n.status)e="tariffNotFound",t.processing=NaN,t.logistics=NaN,t.lastMile=NaN,t.delivery=NaN,t.expectedReverseLogisticsCost=NaN;else{let e="fbw"===r.stock,o=e?i.fbo.deliveryToPickUpPointCost:i.fbs.deliveryToPickUpPointCost,l=e?0:i.fbs.postingProcessing.dropOffScCost;t.processing=l,t.logistics=n.logisticsToClient,t.lastMile=o,t.delivery=n.logisticsToClient+o+l,t.expectedReverseLogisticsCost=(r.conversion?(1-r.conversion/100)/(r.conversion/100):0)*n.baseCost}}}let o=r.warehouse;if("wb"===T.currentMall.code&&null!==o){t.storing="fbw"===r.stock&&null!==o.storage.costPerUnit&&null!==o.storage.costPerExtraUnit&&t.volume>0?(o.storage.costPerUnit+(t.volume>1?(t.volume-1)*o.storage.costPerExtraUnit:0))*30:0;let e="fbw"===r.stock?o.fboLogistics:o.fbsLogistics,n=(e=>{let t=e.commonCoefficients.logistics;return(null==t?void 0:t.costByVolume)&&t.costByVolume.length>0?t:void 0})(u);if(n&&Number.isFinite(e.coefficientPercent)){let{baseCost:i,directCost:o}=function(e,t,n){if(e<=0)return{baseCost:0,directCost:0};if(!t)throw Error("WB logistics config is required");let r=t.costByVolume;if(!r)throw Error("WB logistic costByVolume is required");let i=function(e,t){var n,r;let i=e.toSorted((e,t)=>{var n,r;return(null!=(n=e.volumeTo)?n:1/0)-(null!=(r=t.volumeTo)?r:1/0)});return null!=(r=null==(n=i.find((e,n)=>{var r,o,l;let s=0===n?0:null!=(o=null==(r=i[n-1])?void 0:r.volumeTo)?o:0,a=null!=(l=e.volumeTo)?l:1/0;return t>=s&&t<=a}))?void 0:n.cost)?r:null}(r,e);G(i,"WB logistic cost by volume is missing for volume ".concat(e)),G(t.extraLiterCost,"WB logistic extraLiterCost is required"),G(n,"WB warehouse logistic coefficient is required");let o=i+Math.max(e-1,0)*t.extraLiterCost;return{baseCost:o,directCost:n/100*o}}(t.volume,n,e.coefficientPercent);t.delivery=o,t.expectedReverseLogisticsCost=(r.conversion?(1-r.conversion/100)/(r.conversion/100):0)*i}else n?(t.delivery=NaN,t.expectedReverseLogisticsCost=NaN):(t.delivery=0,t.expectedReverseLogisticsCost=0)}t.commissionAmount=t.discountPrice*t.commissionPercent/100,t.promotionExpensesAmount=t.discountPrice*r.promotionExpensesPercent/100,t.grossProfit=t.discountPrice-r.processingOfGoods-t.storing-t.delivery-t.expectedReverseLogisticsCost-t.commissionAmount-r.price-r.priceOfDelivery/r.quantity-t.promotionExpensesAmount-r.additionalExpensesPerUnit-r.additionalExpenses/r.quantity;let l="revenue"===r.taxScheme?t.discountPrice*r.taxPercent/100:(t.discountPrice-r.price-t.commissionAmount-r.processingOfGoods-t.delivery-t.expectedReverseLogisticsCost-t.storing-r.additionalExpensesPerUnit-r.additionalExpenses/r.quantity)*r.taxPercent/100;t.vatAmount=r.vatPercent>0?t.discountPrice*r.vatPercent/(100+r.vatPercent):0,t.taxAmount=l,t.profitPerGoodAmount=t.grossProfit-t.taxAmount-t.vatAmount;let s=t.discountPrice-t.profitPerGoodAmount;t.profitPerGoodPercent=t.profitPerGoodAmount/s*100,t.profitPerGoodsAmount=t.profitPerGoodAmount*r.quantity,t.revenuePerShipment=t.discountPrice*r.quantity,t.maxDiscountBeforeZeroProfit=function(){let e=0,n=100,i=0,o=(e,n)=>{let i=e*(1-n/100),o=r.category,l=null!==o?(0,X.YW)(r.stock).when(()=>"fbw"===r.stock&&"ozon"===T.currentMall.code,()=>{var e;return null!=(e=eV(o.fboPercentByPrices,i))?e:o.fboPercent}).when(()=>"fbs"===r.stock&&"ozon"===T.currentMall.code,()=>{var e;return null!=(e=eV(o.fbsPercentByPrices,i))?e:o.fbsPercent}).when(()=>"fbw"===r.stock&&"wb"===T.currentMall.code,()=>o.fboPercent).when(()=>"fbs"===r.stock&&"wb"===T.currentMall.code,()=>o.fbsPercent).run():0;"wb"===T.currentMall.code&&(l+=C);let s=i*l/100,a=i*r.promotionExpensesPercent/100,c=i-r.processingOfGoods-t.storing-t.delivery-t.expectedReverseLogisticsCost-s-r.price-r.priceOfDelivery/r.quantity-a-r.additionalExpensesPerUnit-r.additionalExpenses/r.quantity,u="revenue"===r.taxScheme?i*r.taxPercent/100:(i-r.price-s-r.processingOfGoods-t.delivery-t.expectedReverseLogisticsCost-t.storing-r.additionalExpensesPerUnit-r.additionalExpenses/r.quantity)*r.taxPercent/100;return c-u-(r.vatPercent>
10?i*r.vatPercent/(100+r.vatPercent):0)};for(;n-e>.01;){let t=(e+n)/2;o(r.fullPrice,t)>=0?(i=t,e=t+.01):n=t-.01}return Math.floor(i)}()}),ee(e)},[r,x,c,u,C]),(0,o.useEffect)(()=>{if("wb"===T.currentMall.code){var e,t,n;let i=null!=(t=null==u||null==(e=u.coefficientsByWarehouses)?void 0:e.filter(e=>e.supportedSellerWorkSchemes.includes("fbw"===r.stock?"fbo":r.stock)))?t:[];i.length>0&&((null==(n=r.warehouse)?void 0:n.supportedSellerWorkSchemes.includes("fbw"===r.stock?"fbo":r.stock))||s(e=>{e.warehouse=i[0]}),Q(i))}},[T.currentMall.code,u,r.stock,r.warehouse]);let en=()=>{n(()=>d),s(()=>m),K(null)},er=async e=>{if("loading"===k||!z())return!1;try{let r=[];try{let e=await T.getStorage("unitEconomics");if(null!=e&&""!==e){if(!Array.isArray(e))throw Error("Invalid unit economics storage");r=e}}catch(e){var t,n;if(!l.A.isAxiosError(e)||(null==(t=e.response)?void 0:t.status)!==404||(null==(n=e.response.data)?void 0:n.error)!=="NotFound")throw e}if(!Array.isArray(r))throw Error("Invalid unit economics storage");let i=e(r);return await T.setStorage("unitEconomics",i),S(i),!0}catch(e){return et("error",q(ef())),!1}finally{B()}},ei=async()=>{if(!I)return;let e={...I,form:ed(r)};await er(t=>{if(!t.some(t=>t.id===e.id))throw Error("Calculation no longer exists");return t.map(t=>t.id===e.id?e:t)})&&(K({...I,form:r}),et("success",q(ep())))},eo=(0,E.hS)("new-calculation-name-modal",()=>(0,i.jsx)(F.A,{closeOnChange:!0,defaultValue:r.name,label:q("business.unit-economics.calculation.new_calculation_label"),onSubmit:async e=>{s(t=>{t.name=e});let t={id:(0,W.Ak)(),mall:T.currentMall.code,createdAt:new Date,form:{...r,name:e}},n={...t,form:ed(t.form)};await er(e=>[...e.filter(e=>e.id!==n.id),n])&&(K(t),et("success",q(ex())))}})),el=(0,E.hS)("calculation-change-name-modal",()=>(0,i.jsx)(F.A,{closeOnChange:!0,defaultValue:r.name,label:q("change_name"),onSubmit:e=>{s(t=>{t.name=e})}})),es=(0,E.hS)("calculation-list-modal",()=>(0,i.jsx)(D,{calculationListState:k,isCalculationListReady:_,storedCalculationList:R,setStoredCalculationList:S,isCalculationListSaving:M,startCalculationListSaving:z,finishCalculationListSaving:B,onCalculationDeleted:e=>{(null==I?void 0:I.id)===e&&K(null)},setSelectedCalculation:e=>{s(()=>e.form),K(e)}}),[k,_,R,M,I]);return(0,i.jsxs)(v.A,{className:"px-6 pt-5 pb-6 !overflow-visible col-span-2",children:[(0,i.jsx)("h2",{className:"mb-3 text-lg font-medium text-black",children:q("business.unit-economics.form.title")}),(0,i.jsxs)("form",{className:"flex flex-col items-start space-y-6 w-full",onSubmit:e=>e.preventDefault(),children:[(0,i.jsxs)("div",{className:"flex flex-col items-start space-y-8 w-full",children:[I&&(0,i.jsxs)("div",{className:"flex px-4 pt-3 gap-x-6 pb-2.5 -mb-1 w-fit bg-gray-100 rounded-md",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-y-0.5 w-full",children:[(0,i.jsx)("span",{className:"text-xs text-gray-600",children:q("business.unit-economics.calculation.calculation_label")}),(0,i.jsx)("span",{className:"text-base font-medium text-black",children:r.name})]}),(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(L.A,{content:q("change_name"),children:(0,i.jsx)(g.A,{theme:"gray",className:"!px-2 py-1",onClick:el,children:(0,i.jsx)("span",{className:"size-5",children:(0,i.jsx)(H(),{className:"size-5","aria-hidden":"true"})})})}),(0,i.jsx)(L.A,{content:q("close"),children:(0,i.jsx)(g.A,{theme:"gray",className:"!px-2 py-1",onClick:en,children:(0,i.jsx)("span",{className:"size-5",children:(0,i.jsx)(V(),{className:"size-5","aria-hidden":"true"})})})})]})]}),"ozon"===T.currentMall.code&&null!==$&&(0,i.jsx)(Z.A,{type:"error",header:q("business.unit-economics.form.errors.".concat($,".title")),text:q("business.unit-economics.form.errors.".concat($,".description")),className:"w-full"}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-4 gap-x-6 w-full sm:flex-row sm:items-end",children:[(0,i.jsx)(b.A,{label:q(eh()),className:"flex-[2_1_0%]",children:(0,i.jsx)(j.A,{placeholder:q(eg()),dropdownClassName:"!w-max !max-w-none",selected:r.category,setSelected:e=>{s(t=>{t.category=e})},options:null!=(t=null==c?void 0:c.valuesByCategories)?t:[],optionKey:e=>"".concat(e.subject,"-").concat(e.category),display:"subject",dropdownDisplay:e=>(0,i.jsxs)(i.Fragment,{children:["ozon"===T.currentMall.code&&null!==e.category&&(e.category.includes("Ozon Fresh")||e.category.includes("ÐлагоÑвоÑиÑелÑноÑÑÑ"))&&(0,i.jsxs)("span",{className:"inline-flex items-center text-xs opacity-50",children:[e.category,(0,i.jsx)(Y(),{className:"size-2.5 mx-0.5"})]}),e.subject]})})}),(0,i.jsx)(b.A,{label:q(ev()),children:(0,i.jsx)(w.A,{display:e=>"FBW"===e&&"ozon"===T.currentMall.code?"FBO":e,className:"text-sm leading-7",options:["fbw","fbs"].map(e=>q("business.unit-economics.form.stock.select.".concat(e))),selected:q("business.unit-economics.form.stock.select.".concat(r.stock)),setSelected:e=>{s(t=>{t.stock=["fbw","fbs"].filter(t=>q("business.unit-economics.form.stock.select.".concat(t))===e)[0]})}})}),"ozon"===T.currentMall.code&&(0,i.jsx)(b.A,{label:q(eb()),className:"w-fit",children:(0,i.jsx)(ea,{departureRegion:r.departureRegion,destinationRegion:r.destinationRegion,departureRegions:f,destinationRegions:p,onDepartureRegionChange:e=>{s(t=>{t.departureRegion=e})},onDestinationRegionChange:e=>{s(t=>{t.destinationRegion=e})}})}),"wb"===T.currentMall.code&&(0,i.jsx)(b.A,{label:q(ey()),className:"flex-1",children:(0,i.jsx)(N.A,{selected:r.warehouse,setSelected:e=>{s(t=>{t.warehouse=e})},options:J,display:e=>null==e?void 0:e.warehouseName,optionKey:e=>{var t;return null!=(t=null==e?void 0:e.warehouseName)?t:"null"},placeholder:q(ew())})}),(0,i.jsx)(b.A,{label:q(ej()),children:(0,i.jsx)(w.A,{className:"text-sm leading-7",options:["revenue","profit"].map(e=>q("business.unit-economics.form.tax.select.".concat(e))),selected:q("business.unit-economics.form.tax.select.".concat(r.taxScheme)),setSelected:e=>{s(t=>{t.taxScheme=["revenue","profit"].filter(t=>q("business.unit-economics.form.tax.select.".concat(t))===e)[0]})}})}),(0,i.jsx)(b.A,{label:q(eN()),children:(0,i.jsx)(y.A,{type:"number",className:"w-[60px]",value:r.taxPercent?r.taxPercent:"",onChange:e=>{let{target:t}=e;return s(e=>{e.taxPercent=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q(eA()),children:(0,i.jsx)(y.A,{type:"number",className:"w-[60px]",value:r.vatPercent?r.vatPercent:"",onChange:e=>{let{target:t}=e;return s(e=>{e.vatPercent=Number(t.value)})}})})]}),(0,i.jsxs)("div",{className:"grid gap-8 sm:grid-cols-4 w-full !mt-10",children:[(0,i.jsxs)("div",{className:"flex relative flex-col px-6 py-8 space-y-4 rounded-lg border border-gray-100 shadow-sm",children:[(0,i.jsx)(b.A,{label:q(eC()),children:(0,i.jsx)(y.A,{type:"number",value:r.price?r.price:"",onChange:e=>{let{target:t}=e;return s(e=>{e.price=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q(eP()),children:(0,i.jsx)(y.A,{type:"number",value:r.fullPrice?r.fullPrice:"",onChange:e=>{let{target:t}=e;return s(e=>{e.fullPrice=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q("business.unit-economics.form.discount.label"),children:(0,i.jsx)(y.A,{type:"number",value:r.discount?r.discount:"",onChange:e=>{let{target:t}=e;return s(e=>{e.discount=Number(t.value)})}})}),(0,i.jsx)("h3",{className:"absolute -top-3.5 left-5 !mt-0 px-1 text-base font-medium bg-white",children:q(ek())})]}),(0,i.jsxs)("div",{className:"flex relative flex-col px-6 py-8 space-y-4 rounded-lg border border-gray-100 shadow-sm",children:[(0,i.jsx)(b.A,{label:q(e_()),children:(0,i.jsx)(y.A,{type:"number",value:r.quantity?r.quantity:"",onCh
1ange:e=>{let{target:t}=e;return s(e=>{e.quantity=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q(eR()),children:(0,i.jsx)(y.A,{type:"number",value:r.priceOfDelivery?r.priceOfDelivery:"",onChange:e=>{let{target:t}=e;return s(e=>{e.priceOfDelivery=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q(eE()),children:(0,i.jsx)(y.A,{type:"number",value:r.processingOfGoods?r.processingOfGoods:"",onChange:e=>{let{target:t}=e;return s(e=>{e.processingOfGoods=Number(t.value)})}})}),(0,i.jsx)("h3",{className:"absolute -top-3.5 left-5 !mt-0 px-1 text-base font-medium bg-white",children:q(eS())})]}),(0,i.jsxs)("div",{className:"flex relative flex-col px-6 py-8 space-y-4 rounded-lg border border-gray-100 shadow-sm",children:[(0,i.jsx)(b.A,{label:q(eM()),children:(0,i.jsx)(y.A,{type:"number",value:r.length?r.length:"",onChange:e=>{let{target:t}=e;return s(e=>{e.length=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q(eL()),children:(0,i.jsx)(y.A,{type:"number",value:r.width?r.width:"",onChange:e=>{let{target:t}=e;return s(e=>{e.width=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q(ez()),children:(0,i.jsx)(y.A,{type:"number",value:r.height?r.height:"",onChange:e=>{let{target:t}=e;return s(e=>{e.height=Number(t.value)})}})}),(0,i.jsx)("h3",{className:"absolute -top-3.5 left-5 !mt-0 px-1 text-base font-medium bg-white",children:q(eO())})]}),(0,i.jsxs)("div",{className:"flex relative flex-col px-6 py-8 space-y-4 rounded-lg border border-gray-100 shadow-sm",children:[(0,i.jsx)(b.A,{label:"".concat(q("business.unit-economics.form.conversion.label"),", %"),children:(0,i.jsx)(y.A,{type:"number",value:r.conversion?r.conversion:"",onChange:e=>{let{target:t}=e;return s(e=>{e.conversion=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q("business.unit-economics.form.promotionExpensesPercent.label"),className:"whitespace-nowrap",children:(0,i.jsx)(y.A,{type:"number",value:r.promotionExpensesPercent?r.promotionExpensesPercent:"",onChange:e=>{let{target:t}=e;return s(e=>{e.promotionExpensesPercent=Number(t.value)})}})}),"wb"===T.currentMall.code&&(0,i.jsx)(b.A,{label:q(eB()),children:(0,i.jsx)(y.A,{type:"number",value:C||"",onChange:e=>{let{target:t}=e;return P(Number(t.value))}})}),(0,i.jsx)(b.A,{label:q(eT()),children:(0,i.jsx)(y.A,{type:"number",value:r.additionalExpensesPerUnit?r.additionalExpensesPerUnit:"",onChange:e=>{let{target:t}=e;return s(e=>{e.additionalExpensesPerUnit=Number(t.value)})}})}),(0,i.jsx)(b.A,{label:q(eD()),children:(0,i.jsx)(y.A,{type:"number",value:r.additionalExpenses?r.additionalExpenses:"",onChange:e=>{let{target:t}=e;return s(e=>{e.additionalExpenses=Number(t.value)})}})}),(0,i.jsx)("h3",{className:"absolute -top-3.5 left-5 !mt-0 px-1 text-base font-medium bg-white",children:q(eW())})]})]})]}),(0,i.jsxs)("div",{className:"inline-flex items-center space-x-4",children:[(0,i.jsx)(g.A,{theme:"grayFilled",disabled:T.isAuthorized&&("loading"===k||M),onClick:()=>T.isAuthorized?I?void ei():void eo():void h(!0),children:q(eF())}),I&&(0,i.jsx)(g.A,{theme:"grayFilled",disabled:"loading"===k||M,onClick:eo,children:q(eG())}),(0,i.jsx)(g.A,{theme:"grayFilled",disabled:T.isAuthorized&&("loaded"!==k||M),onClick:es,children:q(eU())}),(0,i.jsx)(g.A,{theme:"grayFilled",onClick:en,children:q(eq())})]})]})]})};function eH(){let e=(0,r._)(["text-sm text-gray-500 truncate "," !font-semibold !text-primary-500"]);return eH=function(){return e},e}function eK(){let e=(0,r._)(["flex-1 text-sm text-right text-black "," !font-semibold !text-primary-500"]);return eK=function(){return e},e}let eY=e=>{let{stat:t}=e,{t:n,format:r}=(0,a.t)();return(0,i.jsx)(v.A,{className:"pt-5 pb-6 !overflow-visible",children:(0,i.jsx)("div",{className:"flex flex-col",children:t.map(e=>{let t=f.includes(e.name);return(0,i.jsxs)("div",{className:"inline-flex px-6 py-2 space-x-2 even:bg-gray-50",children:[(0,i.jsx)("span",{className:(0,C.c)(eH(),t),children:n("business.unit-economics.form.".concat(e.name,".label"))}),(0,i.jsx)("span",{className:(0,C.c)(eK(),t),children:((e,t)=>Number.isFinite(e)?"price"===t?"".concat(r.price(e,{maximumFractionDigits:2})):"liters"===t?"".concat(r.number(e,{style:"unit",unit:"liter",unitDisplay:"short"})):"count"===t?"".concat(r.number(e,{maximumFractionDigits:0})," ").concat(n("pcs")):"percent"===t?"".concat(r.number(e/100,{style:"percent",maximumFractionDigits:2})):void 0:"â")(e.value,e.type)})]},e.name)})})})};var eX=n(38175),eZ=n(74554),eJ=n(66795),eQ=n(99627),e$=n(15842),e0=n(3422),e1=n(73123),e2=n(51754),e4=n(18058),e3=n(44615),e5=n(34969),e8=n(24480);
1function e7(){let e=(0,r._)(["business.unit_economics.signup_title"]);return e7=function(){return e},e}function e9(){let e=(0,r._)(["business.unit_economics.signup_save"]);return e9=function(){return e},e}function e6(){let e=(0,r._)(["business.unit_economics.signup_continue"]);return e6=function(){return e},e}let te="ÐоÑква, ÐРи ÐалÑние ÑегионÑ",tt=e=>{var t;return null!=(t=e.commonCoefficients.logistics)?t:null},tn=e=>{var t,n;return(null!=(n=null==(t=tt(e))?void 0:t.normalProductTariffsByRouteAndVolume)?n:[]).map(e=>({id:e.departureRegion,name:e.departureRegion,address:""}))},tr=(e,t)=>{var n,r,i,o;return t&&null!=(o=null==(i=tt(e))||null==(r=i.normalProductTariffsByRouteAndVolume)||null==(n=r.find(e=>e.departureRegion===t))?void 0:n.destinationRegions.map(e=>({id:e.destinationRegion,name:e.destinationRegion,address:""})))?o:[]};(0,c.ei)(async e=>{let{pageContext:t,userContext:n}=e,{mall:r}=t.query;return{props:{isResponsive:!0,key:r}}},{allowUnauthorizedUsers:!0});let ti=()=>{let e=(0,A.u)(),t=(0,s.useRouter)(),{t:n}=(0,a.t)(),[r,c]=(0,o.useState)(null),[f,b]=(0,o.useState)(!1),[y,w]=(0,o.useState)([]),[j,N]=(0,o.useState)([]),[C,P]=(0,o.useState)(null),[k,_]=(0,o.useState)(e.isAuthorized?"loading":"loaded"),[R,E]=(0,o.useState)(!1),[L,z]=(0,o.useState)(!1),O=(0,o.useRef)(!1),[B,T]=(0,o.useState)(!1),[D,W]=(0,o.useState)(!1),[F,G]=(0,o.useState)(!1),[U,q]=(0,o.useState)(!1),[I,H]=(0,u.e)({type:"signup",stage:"enteringData",data:null,codeType:"sms",phone:""}),K=(0,S.Xr)(M),Y=(0,o.useCallback)(()=>!O.current&&(O.current=!0,z(!0),!0),[]),Z=(0,o.useCallback)(()=>{O.current=!1,z(!1)},[]),[J,Q]=(0,u.e)({valuesByCategories:[]}),[$,ee]=(0,u.e)({coefficientsByWarehouses:null,logisticCoefficients:null,commonCoefficients:{logistics:{extraLiterCost:null,costByVolume:[],cheapProductTariffsByVolume:[],normalProductTariffsByRouteAndVolume:[],nonLocalMarkupByDestination:[]}}}),[et,en]=(0,o.useState)(!1),[er,ei]=(0,e$.Tx)("unitEconomicsCalc:timesUpdated",0),[eo,el]=(0,e$.Tx)("unitEconomicsCalc:wbAdditionalCommissionPercent",0),[es,ea]=(0,u.e)(m),[ec,eu]=(0,u.e)(d),ef=(0,o.useCallback)(e=>{eu(e),ei(e=>(null!=e?e:0)+1)},[ei,eu]),ep=(0,o.useCallback)(async()=>{let[t,n]=await Promise.allSettled([e.getMarketplaceCommissions(),e.getTariffCoefficients()]);"fulfilled"===t.status&&(Q(n=>{var r;n.valuesByCategories=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=new Map;return e.forEach(e=>{let r="ozon"===t&&null!==e.category&&(e.category.includes("Ozon Fresh")||e.category.includes("ÐлагоÑвоÑиÑелÑноÑÑÑ"))?"".concat(e.subject,"_").concat(e.category):"".concat(e.subject,"_").concat(e.fboPercent);n.has(r)||n.set(r,e)}),Array.from(n.values())}(null!=(r=t.value.valuesByCategories)?r:[],e.currentMall.code)}),T(!0)),"fulfilled"===n.status&&(ee(e=>{e.coefficientsByWarehouses=function(e){return(null!=e?e:[]).filter(e=>"box"===e.type).toSorted((e,t)=>{let n=["Ðоледино","ÐлекÑÑоÑÑалÑ"].toReversed(),r=n.indexOf(e.warehouseName),i=n.indexOf(t.warehouseName);return r===i?e.warehouseName.localeCompare(t.warehouseName):i-r})}(n.value.coefficientsByWarehouses),e.logisticCoefficients=n.value.logisticCoefficients,e.commonCoefficients=n.value.commonCoefficients}),"ozon"===e.currentMall.code&&w(tn(n.value)),W(!0))},[e,Q,ee]),ex=(0,o.useCallback)(e=>{E(!1),P(e),_("loaded")},[]),eh=(0,o.useCallback)(async()=>{if(e.isAuthorized){_("loading");try{let t=await e.getStorage("unitEconomics");if(null==t||""===t)ex([]);else if(Array.isArray(t))ex(t);else throw Error("Invalid unit economics storage");_("loaded")}catch(e){var t,n;if(l.A.isAxiosError(e)&&(null==(t=e.response)?void 0:t.status)===404&&(null==(n=e.response.data)?void 0:n.error)==="NotFound"){ex([]),_("loaded");return}_("error")}}},[e,ex]);(0,o.useEffect)(()=>{eJ.w.track("Unit Economics Page Visited",{mall:e.currentMall.code})},[e.currentMall]),(0,o.useEffect)(()=>{var t;if(!B||!D)return;let n=e5.I.get("unitEconomicsCalc:formByMall"),r=em({form:null!=(t=null==n?void 0:n[e.currentMall.code])?t:{},mall:e.currentMall.code,warehouses:$.coefficientsByWarehouses,marketplaceCommission:J,departureRegions:y,getDestinationRegions:e=>tr($,e)});ea(()=>({...m,...r})),G(!0)},[e.currentMall.code,J,B,D,y,$,$.coefficientsByWarehouses,ea]),(0,o.useEffect)(()=>{var t;F&&e5.I.set("unitEconomicsCalc:formByMall",{...null!=(t=e5.I.get("unitEconomicsCalc:formByMall"))?t:{},[e.currentMall.code]:ed(es)})},[es,e.currentMall.code,F]),(0,o.useEffect)(()=>
1{if(ep(),e.isAuthorized)return void eh();e.getDefaultTrialDaysSignup().then(c);let t=new URLSearchParams(window.location.search);["utm_source","utm_medium","utm_campaign","utm_term","utm_content","actionpay"].forEach(e=>{let n=t.get(e);null!==n&&(0,e0.setCookie)(null,e,n,{maxAge:2592e3,path:"/"})})},[]),(0,o.useEffect)(()=>{C&&B&&D&&F&&(K(C.map(e=>{var t;let n=e.hasOwnProperty("form")?e.form:{};return{id:e.id,mall:e.mall,createdAt:e.createdAt,form:{...m,...em({form:{...n,...void 0!==e.calculation&&Object.fromEntries(Object.keys(e.calculation).filter(e=>e in m).map(t=>[t,e.calculation[t]])),category:null!=e.product?e.product:n.category,warehouse:null!=e.warehouse?e.warehouse:void 0,stock:null!=e.stock?e.stock:null!=(t=n.stock)?t:m.stock},mall:e.mall,warehouses:$.coefficientsByWarehouses,marketplaceCommission:J,departureRegions:tn($),getDestinationRegions:e=>tr($,e)})}}})),E(!0))},[B,D,J,K,C,$,F]),(0,o.useEffect)(()=>{var t,n,r,i;if("ozon"!==e.currentMall.code||!F||0===y.length)return;let o=y.find(e=>e.name===te);if(!o)return void q(!0);q(!1);let l=es.departureRegion?null!=(r=y.find(e=>{var t;return e.id===(null==(t=es.departureRegion)?void 0:t.id)}))?r:es.departureRegion:o,s=tr($,l.name);N(s);let a=s.find(e=>e.name===te);if(!a)return void q(!0);let c=es.destinationRegion&&null!=(i=s.find(e=>{var t;return e.id===(null==(t=es.destinationRegion)?void 0:t.id)}))?i:a;(l.id!==(null==(t=es.departureRegion)?void 0:t.id)||c.id!==(null==(n=es.destinationRegion)?void 0:n.id))&&ea(e=>{e.departureRegion=l,e.destinationRegion=c})},[es.departureRegion,es.destinationRegion,e.currentMall.code,y,F,$,ea]);let eg={...ec,...es},ev=(0,e8.M)(e.theme.canonicalURL,t.asPath||"/business/unit-economics/".concat(e.currentMall.code,"/")),eb=(0,X.YW)(e.currentMall.code).with("wb",()=>"Wildberries").with("ozon",()=>"Ozon").otherwise(()=>null),ey=eb?n("pages.business.unit-economics-marketplace.title",{mall:eb}):n("pages.business.unit-economics");return(0,i.jsxs)(i.Fragment,{children:[!e.isAuthorized&&(0,i.jsx)(e3.A,{visible:f}),!e.isAuthorized&&(0,i.jsx)(eQ.A,{}),(0,i.jsxs)(eX.A,{align:e.isAuthorized?"left":"center",size:"small",pageName:ey,meta:{canonical:ev,description:eb?n("pages.business.unit-economics-marketplace.description",{mall:eb}):void 0},children:[(0,i.jsx)(eZ.A,{pageName:ey}),e.isAuthorized&&(0,i.jsx)(e4.A,{className:"mt-8"}),(0,i.jsxs)("div",{className:"flex flex-col gap-y-3 mt-8",children:[(0,i.jsxs)("div",{className:"grid order-last gap-4 sm:grid-cols-3 sm:order-first",children:[(0,i.jsx)(eY,{stat:p.map(e=>({name:e.name,type:e.type,value:eg[e.name]}))}),(0,i.jsx)(eY,{stat:x.filter(t=>!t.malls||t.malls.includes(e.currentMall.code)).map(e=>({name:e.name,type:e.type,value:eg[e.name]}))}),(0,i.jsx)(eY,{stat:h.map(e=>({name:e.name,type:e.type,value:eg[e.name]}))})]}),(0,i.jsx)(eI,{updateCalc:ef,calcForm:es,updateCalcForm:ea,marketplaceCommission:J,tariffCoefficient:$,ozonDepartureRegions:y,ozonDestinationRegions:j,isDefaultOzonRegionMissing:U,setShowNotAuthorizedAlert:en,wbAdditionalCommissionPercent:eo,setWbAdditionalCommissionPercent:el,calculationListState:k,isCalculationListReady:R,storedCalculationList:null!=C?C:[],setStoredCalculationList:ex,isCalculationListSaving:L,startCalculationListSaving:Y,finishCalculationListSaving:Z})]}),(er&&er>250||et)&&!e.isAuthorized&&(0,i.jsx)("div",{className:"absolute flex justify-center items-start inset-0 backdrop-blur-sm z-[1000]",children:(0,i.jsxs)(v.A,{className:"sticky top-32 mt-8 max-w-sm",onFocus:()=>b(!0),children:[et&&(0,i.jsx)(g.A,{theme:"gray",className:"!px-2 py-1 absolute top-0 right-0",onClick:()=>en(!1),children:(0,i.jsx)("span",{className:"size-5",children:(0,i.jsx)(V(),{className:"size-5","aria-hidden":"true"})})}),(0,i.jsxs)("div",{className:"px-6 py-4",children:[(0,i.jsx)("h3",{className:"text-lg font-medium",children:n(e7())}),(0,i.jsx)("p",{className:"mt-2 text-sm text-gray-600",children:n(et?e9():e6())})]}),(0,i.jsxs)("div",{className:"px-6 pb-4",children:["enteringData"===I.stage&&!e.hasAvailableAuthorization&&(0,i.jsx)(e1.A,{processState:I,setProcessState:H,defaultTrialDays:r,includeHeader:!1,redirect:"/seo-optimization/"}),"waitingForCode"===I.stage&&!e.hasAvailableAuthorization&&(0,i.jsx)(e2.A,{processState:I,setProcessState:H,redirect:"/seo-optimization/"})]})]})})]})]})};var to=!0},91715:(e,t,n)=>{let r=n(14232);e.exports=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z",clipRule:"evenodd"}))})}
1,95062:(e,t,n)=>{e.exports=n(79706)()},96717:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(28888),i=n(37876),o=n(27929);function l(){let e=(0,r._)(["flex flex-col items-center w-full p-4 space-y-5 ",""]);return l=function(){return e},e}let s=e=>{let{title:t,description:n,className:r,children:s}=e;return(0,i.jsxs)("div",{className:(0,o.c)(l(),r),children:[(0,i.jsxs)("div",{className:"flex flex-col items-center w-full space-y-1 text-center",children:[t&&(0,i.jsx)("h3",{className:"w-full text-lg font-medium text-gray-500",children:t}),n&&(0,i.jsx)("p",{className:"max-w-3xl text-sm font-normal text-gray-500",dangerouslySetInnerHTML:{__html:n}})]}),s&&(0,i.jsx)("div",{className:"mt-3",children:s})]})}}},e=>{e.O(0,[6701,2707,2711,2575,2299,4417,8992,5893,3251,5486,6242,9627,6026,3123,636,6593,8792],()=>e(e.s=32938)),_N_E=e.O()}]); 2//# sourceMappingURL=[mall]-4bf84350b1d0a7d7.js.map
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.