PageSourceSearch

https://www.jovapos.com/_next/static/chunks/pages/setting/tax-setting/form-63357690b02f4a71.js

js jovapos.com collected 2026-10-02 00:55:12 UTC 16,268 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4e4a1653-1af1-489f-9dd7-f3c7a77fdc90",e._sentryDebugIdIdentifier="sentry-dbid-4e4a1653-1af1-489f-9dd7-f3c7a77fdc90")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8818,9037],{27323:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/setting/tax-setting/form",function(){return n(50692)}])},4340:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var a=n(74848),l=n(13368),i=n.n(l);let r=e=>{let{title:t}=e,n=e.description||"Jova POS merupakan sistem kasir yang mampu memudahkan anda dalam melakukan transaksi, pembayaran, manajemen data produk, manajemen stock hingga pembelian ke supplier.",l=e.canonical||"https://www.jovapos.com/";return(0,a.jsxs)(i(),{children:[(0,a.jsx)("title",{children:t||"Aplikasi Kasir Bisnis Anda - Jova POS"}),(0,a.jsx)("meta",{name:"description",content:n}),(0,a.jsx)("link",{rel:"canonical",href:l}),(0,a.jsx)("link",{rel:"icon",href:"/jovapos.svg"}),(0,a.jsx)("script",{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=G-G226FWSEEJ"}),(0,a.jsx)("script",{dangerouslySetInnerHTML:{__html:"\n            window.dataLayer = window.dataLayer || [];\n            function gtag(){dataLayer.push(arguments);}\n            gtag('js', new Date());\n            gtag('config', 'G-G226FWSEEJ');\n            "}})]})}},39088:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(74848),l=n(59037),i=n(52177),r=n(64847),s=n(32578);let o=e=>{let{isSubmiting:t=!1,page:n,type:o="Edit"}=e,[{dataMe:d}]=(0,i.w)(),u=(0,r.F)(d,n,o),c=(0,s.useTranslations)("GeneralTranslate");return u&&(0,a.jsx)("button",{type:"submit",disabled:t,className:"bg-primary text-white px-12 py-2 rounded-lg text-sm justify-center items-center text-center",children:t?(0,a.jsx)(l.default,{}):(0,a.jsx)("span",{children:c("Save")})})}},10452:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(74848);let l=e=>{let{children:t,className:n}=e;return(0,a.jsx)("div",{className:"bg-white w-full rounded-2xl shadow border py-5 px-10 ".concat(n),children:t})}},7242:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a=n(74848);let l=e=>{let{name:t}=e;return(0,a.jsx)("div",{className:"text-primary font-bold text-xl font-default",children:t})}},59037:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var a=n(74848);let l=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("svg",{role:"status",className:"w-6 h-6 text-white animate-spin dark:text-white dark:text-xl fill-primary mx-auto",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,a.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})},5912:(e,t,n)=>{"use strict";n.d(t,{$h:()=>_,Bh:()=>f,Gz:()=>g,Ss:()=>b,U$:()=>p,ev:()=>x,rF:()=>m});var a=n(84577),l=n(2135);function i(){let e=(0,a._)(["\n  mutation($input:InputOutletTaxConfig!){\n  outlet_tax_config{\n    create(\n      input:$input\n    ){\n      id\n      project_tax_account_id\n      outlet_id\n      tax_name\n      tax_label\n      tax_type\n      tax_rate\n      status\n      created_at\n    }\n  }\n}\n"]);return i=function(){return e},e}function r(){let e=(0,a._)(["\n  mutation updateTaxConfig($id:Int!, $input: InputOutletTaxConfig!){\n    outlet_tax_config{\n      update(id:$id, input:$input){\n        id\n        project_tax_account_id\n        outlet_id\n        tax_name\n        tax_label\n        tax_type\n        tax_rate\n        status\n        created_at\n      }\n    }\n  }\n\n"]);return r=function(){return e},e}function s(){let e=(0,a._)(["\n  query getTaxConfig($filter: FilterOutletTaxConfigInput, $limit: Int, $page: Int){\n    outlet_tax_config{\n      outlet_tax_configs(filter:$filter, limit:$limit, page:$page){\n        page\n        limit\n        total\n        nodes{\n          id\n          project_tax_account_id\n          outlet{\n            id\n            name\n          }\n          outlet_id\n          tax_name\n          tax_label\n          tax_type\n          tax_rate\n          status\n          created_at\n        }\n      }\n    }\n  }\n"]);return s=function(){return e},e}function o(){let e=(0,a._)(["\n  query getDetailTaxConfig($id:ID!){\n    outlet_tax_config{\n      outlet_tax_config(\n        id:$id\n      ){\n        id\n          outlet{\n            id\n            name\n          }\n          project_tax_account_id\n          outlet_id\n          tax_name\n          tax_label\n          tax_type\n          tax_rate\n          status\n          created_at\n      }\n    }\n  }\n"]);return o=function(){return e},e}function d(){let e=(0,a._)(["\nquery getProjectTax{\n  project_tax_account{\n    projectTaxAccount{\n      id\n      project_id\n      npwp\n      pkp_name\n      pkp_address\n      created_at\n    }\n  }\n}\n"]);return d=function(){return e},e}
1function u(){let e=(0,a._)(["\nmutation createProjectTax($input: InputProjectTaxAccount!){\n  project_tax_account{\n    create(input:$input){\n      id\n      project_id\n      npwp\n      pkp_name\n      pkp_address\n      created_at\n    }\n  }\n}\n"]);return u=function(){return e},e}function c(){let e=(0,a._)(["\nmutation updateProjectTax($id: Int!, $input: InputProjectTaxAccount!){\n  project_tax_account{\n    update(id:$id, input:$input){\n      id\n      project_id\n      npwp\n      pkp_name\n      pkp_address\n      created_at\n    }\n  }\n}\n"]);return c=function(){return e},e}let x=(0,l.J1)(i()),m=(0,l.J1)(r()),p=(0,l.J1)(s()),g=(0,l.J1)(o()),f=(0,l.J1)(d()),_=(0,l.J1)(u()),b=(0,l.J1)(c())},50692:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>j,default:()=>y});var a=n(74848),l=n(4340),i=n(69621),r=n(39088),s=n(10452),o=n(7242),d=n(86715),u=n(96540),c=n(49785),x=n(32434),m=n(51697),p=n(26485),g=n(79328),f=n(95420),_=n(5912),b=n(75249),v=n(59e3);let h=e=>{var t,n,l,i,h,C,j,y,w,N,T,k,I,S,E,A;let{detailData:$,statusView:V,loadingDetail:q}=e,J=(0,m.useTranslations)("GeneralTranslate"),L=(0,d.useRouter)(),P=new v.A().get("outlet_id"),{control:D,watch:R,handleSubmit:G,formState:{errors:M},setValue:F}=(0,c.mN)({mode:"onChange",reValidateMode:"onChange"}),[O,Z]=(0,u.useState)(!1),B=[{label:J("Exclusive"),value:"EXCLUSIVE"},{label:J("Inclusive"),value:"INCLUSIVE"}];(0,u.useEffect)(()=>{$&&(F("tax_label",null==$?void 0:$.tax_label),F("tax_name",null==$?void 0:$.tax_name),F("tax_rate",null==$?void 0:$.tax_rate),F("tax_type",null==$?void 0:$.tax_type),Z((null==$?void 0:$.status)=="ACTIVE"))},[$]);let[U,{loading:X,error:H}]=(0,f.n)(_.ev,{onCompleted:e=>{null!=e?(b.oR.success(J("Success")),L.push({pathname:"/setting/tax-setting",query:{tab:"1"}})):b.oR.error(e)},onError:e=>{b.oR.error(e.message)}}),[W,{loading:z,error:K}]=(0,f.n)(_.rF,{onCompleted:e=>{null!=e?(b.oR.success(J("Success")),L.push({pathname:"/setting/tax-setting",query:{tab:"1"}})):b.oR.error(e)},onError:e=>{b.oR.error(e.message)}});return(0,a.jsx)("div",{children:(0,a.jsxs)("form",{onSubmit:G(function(e){$?W({variables:{id:$.id,input:{...e,status:!0===O?"ACTIVE":"INACTIVE",outlet_id:P}}}):U({variables:{input:{...e,status:!0===O?"ACTIVE":"INACTIVE",outlet_id:P}}})}),children:[(0,a.jsx)(s.A,{className:"my-5",children:(0,a.jsxs)("div",{className:"pb-5",children:[(0,a.jsx)(o.A,{name:J("Tax Detail")}),(0,a.jsxs)("div",{className:"mt-[30px]",children:[(0,a.jsx)("label",{className:"block text-sm font-semibold leading-6 text-gray-900",children:J("Tax Name")}),(0,a.jsx)(c.xI,{name:"tax_name",control:D,rules:{required:"".concat(J("Name")," ").concat(J("cannot be empty"))},render:e=>{let{field:{onChange:t,ref:n,value:l,...i}}=e;return(0,a.jsx)("input",{disabled:$&&1==V,className:"form-control block w-full disabled:bg-[#f2f2f2] px-4 py-2 text-sm font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-[#CCCCCC] rounded-lg transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",value:R("tax_name"),onChange:e=>{t(e.target.value)}})}}),(null==M?void 0:null===(n=M.tax_name)||void 0===n?void 0:null===(t=n.message)||void 0===t?void 0:t.toString())&&(0,a.jsx)("p",{className:"text-red-500 text-sm",children:null==M?void 0:null===(i=M.tax_name)||void 0===i?void 0:null===(l=i.message)||void 0===l?void 0:l.toString()})]}),(0,a.jsxs)("div",{className:"mt-[30px]",children:[(0,a.jsx)("label",{className:"block text-sm font-semibold leading-6 text-gray-900",children:J("Tax Label")}),(0,a.jsx)(c.xI,{name:"tax_label",control:D,rules:{required:"".concat(J("Tax Label")," ").concat(J("cannot be empty"))},render:e=>{let{field:{onChange:t,ref:n,value:l,...i}}=e;return(0,a.jsx)("input",{disabled:$&&1==V,className:"form-control block w-full disabled:bg-[#f2f2f2] px-4 py-2 text-sm font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-[#CCCCCC] rounded-lg transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",value:R("tax_label"),onChange:e=>{t(e.target.value)}})}}),(null==M?void 0:null===(C=M.tax_label)||void 0===C?void 0:null===(h=C.message)||void 0===h?void 0:h.toString())&&
1(0,a.jsx)("p",{className:"text-red-500 text-sm",children:null==M?void 0:null===(y=M.tax_label)||void 0===y?void 0:null===(j=y.message)||void 0===j?void 0:j.toString()})]}),(0,a.jsxs)("div",{className:"my-5",children:[(0,a.jsx)("div",{className:"mb-2 text-secondary font-semibold text-sm",children:J("Tax Type")}),(0,a.jsx)(c.xI,{name:"tax_type",control:D,rules:{required:"Select Type"},defaultValue:"EXCLUSIVE",render:e=>{let{field:{onChange:t,ref:n,value:l,...i}}=e;return(0,a.jsx)(p.Ay,{isSearchable:!1,styles:{control:(e,t)=>({...e,padding:"2px 0",borderRadius:"8px"})},defaultValue:B.find(e=>{let{value:t}=e;return"EXCLUSIVE"===t}),isDisabled:!0,className:"flex-1 h-full form-control w-full font-normal text-gray-700 bg-white rounded-lg text-sm",options:B,placeholder:J("Select an option"),value:B.find(e=>{let{value:t}=e;return t===R("tax_type")}),onChange:e=>{t(e.value)}})}}),(null==M?void 0:null===(N=M.tax_type)||void 0===N?void 0:null===(w=N.message)||void 0===w?void 0:w.toString())&&(0,a.jsx)("p",{className:"text-red-500 text-xs",children:null==M?void 0:null===(k=M.tax_type)||void 0===k?void 0:null===(T=k.message)||void 0===T?void 0:T.toString()})]}),(0,a.jsxs)("div",{className:"mt-[30px]",children:[(0,a.jsx)("label",{className:"block text-sm font-semibold leading-6 text-gray-900 text-[15px]",children:J("Tax Value")}),(0,a.jsx)(c.xI,{name:"tax_rate",control:D,rules:{required:"".concat(J("Tax Rate")," ").concat(J("cannot be empty"))},render:e=>{let{field:{onChange:t,ref:n,value:l,...i}}=e;return(0,a.jsx)(x.HG,{disabled:$&&1==V,className:"form-control disabled:bg-[#f2f2f2] block w-full px-4 py-2 text-sm font-normal text-gray-700 bg-white bg-clip-padding border border-solid border-[#CCCCCC] rounded-lg transition ease-in-out m-0 focus:text-gray-700 focus:bg-white focus:border-blue-600 focus:outline-none",value:null==R?void 0:R("tax_rate"),allowLeadingZeros:!0,allowNegative:!1,isAllowed:e=>{let{floatValue:t}=e;return void 0===t||t<=100},maxLength:3,onValueChange:e=>{t(e.value)}})}}),(null==M?void 0:null===(S=M.tax_rate)||void 0===S?void 0:null===(I=S.message)||void 0===I?void 0:I.toString())&&(0,a.jsx)("p",{className:"text-red-500 text-sm",children:null==M?void 0:null===(A=M.tax_rate)||void 0===A?void 0:null===(E=A.message)||void 0===E?void 0:E.toString()})]}),(0,a.jsxs)("div",{className:"mt-[30px]",children:[(0,a.jsx)("label",{className:"block text-sm font-semibold leading-6 text-gray-900 text-[15px]",children:"Status"}),(0,a.jsx)(g.d,{checked:O,disabled:$&&1==V,onChange:Z,className:"".concat(O?"bg-[#519259]":"bg-gray-300"," relative focus:outline-none inline-flex h-6 w-11 items-center rounded-full"),children:(0,a.jsx)("span",{className:"".concat(O?"translate-x-6":"translate-x-1"," inline-block h-4 w-4 transform rounded-full bg-white transition")})})]})]})}),(0,a.jsxs)("div",{className:"flex gap-6 justify-between py-4",children:[(0,a.jsxs)("div",{className:"rounded-lg flex gap-3 border-l-4 bg-white border-[#1565C0] shadow p-4 w-5/12",children:[(0,a.jsx)("span",{className:"pt-1",children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M9 15H11V9H9V15ZM10 7C10.2833 7 10.5208 6.90417 10.7125 6.7125C10.9042 6.52083 11 6.28333 11 6C11 5.71667 10.9042 5.47917 10.7125 5.2875C10.5208 5.09583 10.2833 5 10 5C9.71667 5 9.47917 5.09583 9.2875 5.2875C9.09583 5.47917 9 5.71667 9 6C9 6.28333 9.09583 6.52083 9.2875 6.7125C9.47917 6.90417 9.71667 7 10 7ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z",fill:"#1565C0"})})}),(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("p",{className:" text-[#1565C0]",children:J("Requirement Checklist")}),(0,a.jsxs)("ul",{className:"text-sm text-[#52525B] list-disc ml-5",children:[(0,a.jsx)("li",{children:"".concat(J("Make sure the NPWP Outlet has been validated"),".")}),(0,a.jsx)("li",{children:"".concat(J("The tax label will be printed directly on the receipt"),".")}),(0,a.jsx)("li",{children:"".concat(J("The 12% rate is effective from Jan 2025"),".")})]})]})]}),(0,a.jsx)("div",{children:(0,a.jsxs)("div",{className:"flex gap-4 justify-end",children:[(0,a.jsx)("button",{onClick:()=>{L.back()},type:"button",className:" text-primary shadow bg-white px-12 py-2 rounded-lg text-sm  font-semibold justify-center items-center text-center",children:J("Cancel")}),$&&1==V?null:(0,a.jsx)(r.A,{page:["tax-setting"],isSubmiting:X||z})]})})]})]})})};
1var C=n(77969),j=!0;let y=()=>{var e;let t=(0,m.useTranslations)("GeneralTranslate"),n=(0,d.useRouter)(),r=n.query.id,s=n.query.status,[o,{data:c,loading:x,error:p}]=(0,C._)(_.Gz,{variables:{id:r}});return(0,u.useEffect)(()=>{r&&s&&o()},[r,s]),(0,a.jsxs)("div",{className:"h-full w-full absolute",children:[(0,a.jsx)(l.A,{title:t("Tax Setting")}),(0,a.jsx)(i.A,{children:(0,a.jsx)(h,{detailData:null==c?void 0:null===(e=c.outlet_tax_config)||void 0===e?void 0:e.outlet_tax_config,statusView:s,loadingDetail:x})})]})}},64847:(e,t,n)=>{"use strict";function a(e,t,n){var a;let l=t[t.length-1],i="type"===l?"member-type":l,r=(null===(a=(null==e?void 0:e.filter(e=>(null==e?void 0:e.module_route)===i))[0])||void 0===a?void 0:a.type)||null;if(r)return!!r[n]}n.d(t,{F:()=>a})}},e=>{var t=t=>e(e.s=t);e.O(0,[9965,9190,1106,1348,4967,6485,9785,2434,6815,9621,636,6593,8792],()=>t(27323)),_N_E=e.O()}]);

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.