PageSourceSearch

https://my.phorest.com/assets/-embroider-route-entrypoint.js_route_accounts.account.tax-rates-Cz9pLF9q.js

js phorest.com collected 2026-10-01 10:14:17 UTC 25,086 bytes, 2 lines download raw bytes

1import{r as e}from"./rolldown-runtime-C_JJxWoe.js";import{U as t,ci as a,ht as n,l as i,r as s}from"./service--Lqu_EMW.js";import{N as l,v as o}from"./component-Cv7T6pwJ.js";import{i as r,n as c,r as d,t as u}from"./runtime--fcdnjmJ-BipZYvmV.js";import{a as p,i as m,s as h}from"./dist-DRF4cd6a.js";import{F as y,i as f}from"./form-Cmp_Kcg4.js";import{p as v}from"./ember-apollo-client-By-dZFGb.js";import{n as b}from"./tracking-ByrDSfdj.js";import{t as x}from"./template-factory-4JBdU-3q.js";import{a as k,i as g,r as T}from"./helper-BybnoTgH.js";import{t as C}from"./dist-Dx9K8Dr1.js";import"./modifier-DugsK0v9.js";import{t as R}from"./template-only-lgzOy1tF.js";import{t as S}from"./eq-BGJUsiLx.js";import{t as N}from"./button-Clf1ALLn.js";import{t as V}from"./not-BOaWQ6bK.js";import{t as w}from"./perform-DAV8t_TK.js";import{t as F}from"./set-BfekzthS.js";import{n as I}from"./alert-CGOCTtRx.js";import{t as j}from"./badge-CY_HsHgK.js";import{Ma as M,Mn as D,P as A,Pn as B,ct as P,ja as O,w as E}from"./main-BKLggAK6.js";import{t as q}from"./actions-bar-SY7bYJgU.js";import{t as L}from"./save-changes-CK1QXJx7.js";import{t as z}from"./-select-checkbox-cell-BUGt9xhQ.js";import{i as H}from"./product-categories-BIquTqbG.js";import{t as U}from"./layout-CrteawhY.js";import{t as W}from"./table-BnXV8RUS.js";import{t as G}from"./service-categories-CxjhXN3s.js";import{t as K}from"./-text-or-dash-cell-4PIJxJnW.js";import{t as Y}from"./format-percentage-zHb5YsTO.js";import{t as J}from"./tax-rates-BG6xodDf.js";import{t as Q}from"./tax-rates-CreJ3951.js";var X=e({default:()=>Z}),Z=l({id:"xSqsNGGa",block:'[[[8,[32,0],null,[["@title","@backLink"],[[28,[32,1],["tax-rates.page-title"],null],"accounts.account.manager-business"]],[["actions","header","content"],[[[[1,"\\n    "],[10,0],[14,0,"flex"],[12],[1,"\\n"],[41,[30,0,["showEscapeHatch"]],[[[1,"        "],[8,[32,2],[[24,0,"mr-2"],[24,3,"back-to-swing-tax-rates"],[4,[32,3],["click",[28,[32,4],[[30,0,["swingBridge","navigateTo"]],"taxRates"],null]],null]],[["@variant"],["tertiary"]],[["default"],[[[[1,"\\n          "],[8,[30,1,["Icon"]],null,[["@name","@iconVariant"],["reply","outline"]],null],[1,"\\n          "],[1,[28,[32,5],["tax-rates.escape-hatch-text"],null]],[1,"\\n        "]],[1]]]]],[1,"\\n"]],[]],null],[1,"    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[32,6],[[24,0,"px-4 sm:pr-6 lg:pr-8"]],[["@srLabel"],[[28,[32,1],["tax-rates.tabs-sr"],null]]],[["default"],[[[[1,"\\n      "],[8,[30,2,["Tab"]],[[24,3,"tax-rates-service"],[24,0,"py-4 capitalize"]],[["@route"],["accounts.account.tax-rates.service"]],[["default"],[[[[1,"\\n        "],[1,[28,[32,5],["tax-rates.tabs.service"],null]],[1,"\\n      "]],[]]]]],[1,"\\n      "],[8,[30,2,["Tab"]],[[24,3,"tax-rates-product"],[24,0,"py-4 capitalize"]],[["@route"],["accounts.account.tax-rates.product"]],[["default"],[[[[1,"\\n        "],[1,[28,[32,5],["tax-rates.tabs.product"],null]],[1,"\\n      "]],[]]]]],[1,"\\n"],[41,[30,0,["showPrepaidTab"]],[[[1,"        "],[8,[30,2,["Tab"]],[[24,3,"tax-rates-prepaid"],[24,0,"py-4 capitalize"]],[["@route"],["accounts.account.tax-rates.prepaid"]],[["default"],[[[[1,"\\n          "],[1,[28,[32,5],["tax-rates.tabs.prepaid"],null]],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[2]]]]],[1,"\\n  "]],[]],[[[1,"\\n    "],[46,[28,[37,6],null,null],null,null,null],[1,"\\n  "]],[]]]]]],["b","tabstrip"],[":actions","div","if",":header",":content","component","-outlet"]]',moduleName:"/home/circleci/repo/app/templates/accounts/account/tax-rates.hbs",scope:()=>[U,x,N,o,g,x,A],isStrictMode:!1}),$=e({default:()=>_}),_=class extends t{static{c(this.prototype,"swingBridge",[s])}#e=void r(this,"swingBridge");static{c(this.prototype,"session",[s])}#t=void r(this,"session");get showEscapeHatch(){return this.swingBridge.shouldShowEscapeHatch("taxRates")}get showPrepaidTab(){return["GB","IE","FI"].includes(this.session.business.locale.countryCode)||this.session.business.useStrictPos}},ee=e({default:()=>te}),te=u(class extends i{},[M("manager.settings")]),ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateOrUpdateTaxRateList"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"TaxRateListInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createOrUpdateTaxRateList"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"list"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:141}},ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteTaxRate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteTaxRate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taxRate"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:97}},ie=a(l({id:"Yy2btKW0",block:'[[[44,[[28,[32,0],[[30,1],[30,2]],null]],[[[1,"  "],[10,0],[15,0,[29,["text-primary text-sm truncate\\n      ",[52,[28,[32,0],[[30,1],[30,4]],null],"line-through"]]]],[12],[1,"\\n    "],[1,[28,[32,1],[[30,3]],null]],[1,"\\n  "],[13],[1,"\\n"]],[3]]]],["@row","@percentField","percent","@deletedField"],["let","div","if"]]',moduleName:"/home/circleci/repo/app/components/page/table/cells/-percent-cell/index.hbs",scope:()=>[k,Y],isStrictMode:!1}),R()),se=a(l({id:"Q3KILyAq",block:'[[[41,[30,1,["selectedByDefault"]],[[[1,"  "],[8,[32,0],[[24,0,"bg-info-light text-info-darker"]],null,[["default"],[[[[1,"\\n    "],[1,[28,[32,1],["global.default"],null]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],null]],["@row"],["if"]]',moduleName:"/home/circleci/repo/app/components/tax-rates/list/cell-default/index.hbs",scope:()=>[j,x],isStrictMode:!1}),R()),le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApplyTaxRatesToServiceCategory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ApplyTaxRatesToServiceCategoryInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"applyTaxRatesToServiceCategory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[]}]}}],loc:{start:0,end:142}},oe={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApplyTaxRatesToProductBrand"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ApplyTaxRatesToProductBrandInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"applyTaxRatesToProductBrand"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[]}]}}],loc:{start:0,end:133}},re=l({id:"jTV5QH7F",block:'[[[8,[32,0],null,[["@title","@isOpen","@onClose"],[[28,[32,1],[[28,[32,2],["tax-rates.apply-to-category-modal.title-",[30,1]],null]],null],[30,2],[30,3]]],[["body","primaryButtons"],[[[[1,"\\n    "],[10,0],[14,0,"flex flex-col"],[12],[1,"\\n      "],[10,0],[14,0,"bg-gray-lighter border-t mt
1-4 mb-4"],[12],[13],[1,"\\n      "],[10,0],[14,0,"text-primary"],[12],[1,"\\n        "],[1,[28,[32,3],[[28,[32,2],["tax-rates.apply-to-category-modal.description-",[30,1]],null]],null]],[1,"\\n      "],[13],[1,"\\n\\n"],[41,[28,[32,4],[[30,1],"SERVICE"],null],[[[1,"        "],[8,[32,5],[[24,0,"mt-4"]],[["@name","@value","@onChange","@showAllCategoriesOption"],["service-categories",[30,0,["selectedCategoryId"]],[30,0,["handleSelectCategory"]],true]],null],[1,"\\n"]],[]],[[[1,"        "],[8,[32,6],[[24,0,"mt-4"]],[["@name","@value","@onChange","@showAllBrandsOption"],["brands",[30,0,["selectedCategoryId"]],[30,0,["handleSelectCategory"]],true]],null],[1,"\\n"]],[]]],[1,"      "],[8,[32,7],[[24,0,"mt-4"]],[["@type","@name","@selectedOptions","@onChange","@label"],[[30,1],"tax-rates",[30,0,["selectedTaxRates"]],[28,[32,8],[[30,0],"selectedTaxRates"],null],[28,[32,1],["tax-rates.apply-to-category-modal.tax-rates"],null]]],null],[1,"\\n    "],[13],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[30,4,["ConfirmButton"]],[[4,[32,9],["click",[28,[32,10],[[30,0,["performApplyToCategoryTask"]]],null]],null]],[["@showLoading"],[[30,0,["performApplyToCategoryTask","isRunning"]]]],[["default"],[[[[1,"\\n      "],[1,[28,[32,3],["tax-rates.apply-to-category-modal.apply"],null]],[1,"\\n    "]],[]]]]],[1,"\\n    "],[8,[30,4,["CancelButton"]],null,[["@name","@onClose"],["cancel",[30,3]]],null],[1,"\\n  "]],[4]]]]]],["@type","@isOpen","@onClose","buttons"],[":body","div","if",":primaryButtons"]]',moduleName:"/home/circleci/repo/app/components/tax-rates/list/apply-to-category-modal/index.hbs",scope:()=>[I,x,T,x,S,G,H,Q,F,o,w],isStrictMode:!1}),ce=class extends C{static{c(this.prototype,"apollo",[v])}#a=void r(this,"apollo");static{c(this.prototype,"notifications",[s])}#n=void r(this,"notifications");static{c(this.prototype,"intl",[s])}#i=void r(this,"intl");static{c(this.prototype,"selectedCategoryId",[b],function(){return null})}#s=void r(this,"selectedCategoryId");static{c(this.prototype,"selectedTaxRates",[b],function(){return null})}#l=void r(this,"selectedTaxRates");handleSelectCategory(e){this.selectedCategoryId=e.id}static{d(this.prototype,"handleSelectCategory",[n])}confirmApplyToCategory(){this.voidReason?this.performVoidTask.perform():this.voidReasonRequiredErrorVisible=!0}static{d(this.prototype,"confirmApplyToCategory",[n])}*performApplyToCategoryTask(){"SERVICE"===this.args.type?yield this.apollo.mutate({mutation:le,variables:{input:{serviceCategoryId:this.selectedCategoryId,taxRateIds:this.selectedTaxRates?.map(e=>e.id)||[]}}}):yield this.apollo.mutate({mutation:oe,variables:{input:{brandId:this.selectedCategoryId,taxRateIds:this.selectedTaxRates?.map(e=>e.id)||[]}}}),this.notifications.success(this.intl.t("tax-rates.apply-to-category-modal.success-message")),yield this.args.onClose()}static{d(this.prototype,"performApplyToCategoryTask",[p])}};a(re,ce);var de=l({id:"spw59A+/",block:'[[[8,[32,0],[[24,0,"mt-8"]],[["@onRowClick","@queryTask","@onReorderTask","@modifyVariables","@queryParamContext"],[[30,0,["handleRowClick"]],[30,0,["queryTaxRatesTask"]],[30,0,["reorderTaxRatesTask"]],[30,0,["modifyVariables"]],[30,1]]],[["default"],[[[[1,"\\n  "],[8,[30,2,["UiTable"]],null,null,[["default"],[[[[1,"\\n    "],[8,[30,3,["Columns"]],null,null,[["default"],[[[[1,"\\n      "],[8,[30,4,["Column"]],null,[["@srLabel","@bulkSelect","@component","@width","@minWidth","@cellClasses","@isResizable"],[[28,[32,1],["accessibility.select-row"],null],false,[50,[32,2],0,null,[["singleSelect"],[true]]],2,2,"px-2!",false]],null],[1,"\\n      "],[8,[30,4,["Column"]],null,[["@name","@component"],[[28,[32,1],["tax-rates.table-headers.name"],null],[50,[32,3],0,null,[["textField"],["name"]]]]],null],[1,"\\n      "],[8,[30,4,["Column"]],null,[["@name","@component"],[[28,[32,1],["tax-rates.table-headers.rate"],null],[50,[32,4],0,null,[["percentField"],["rate"]]]]],null],[1,"\\n      "],[8,[30,4,["Column"]],null,[["@name","@component","@width"],[[28,[32,1],["tax-rates.table-headers.default"],null],[50,[32,5],0,null,null],1]],null],[1,"\\n    "]],[4]]]]],[1,"\\n  "]],[3]]]]],[1,"\\n  "],[8,[30,2,["PaginationBar"]],null,null,null],[1,"\\n  "],[8,[30,2,["EmptyState"]],null,null,[["default"],[[[[1,"\\n    "],[8,[32,6],[[24,0,"absolute top-0 bottom-0 left-0 right-0"]],[["@title","@description"],[[28,[32,1],["filters.empty.title"],null],[28,[32,1],["tax-rates.filters.empty-description"],null]]],null],[1,"\\n  "]],[]]]]],[1,"\\n\\n  "],[8,[32,7],null,[["@show","@bgColor"],[true,"bg-theme"]],[["default","secondary","secondaryActions"],[[[[1,"\\n      "],[10,0],[14,0,"flex gap-2"],[12],[1,"\\n        "],[8,[32,8],[[24,3,"save-changes"],[4,[32,10],["click",[28,[32,11],[[30,2,["saveReorderedRows"]],[28,[32,12],[[30,0],"hasChanges",false],null]],null]],null]],[["@variant","@disabled"],["tertiary",[28,[32,9],[[30,2,["hasReorderedRows"]]],null]]],[["default"],[[[[1,"\\n          "],[1,[28,[32,13],["global.save"],null]],[1,"\\n        "]],[]]]]],[1,"\\n        "],[8,[32,8],[[24,3,"add"],[4,[32,10],["click",[30,0,["handleAddTaxRate"]]],null]],[["@variant"],["primary"]],[["default"],[[[[1,"\\n          "],[8,[30,5,["Icon"]],null,[["@name","@iconVariant"],["plus","solid"]],null],[1,"\\n"],[41,[28,[32,14],[[30,6],"SERVICE"],null],[[[1,"            "],[1,[28,[32,13],["tax-rates.actions-bar.new-service-tax-rate"],null]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[32,13],["tax-rates.actions-bar.new-product-tax-rate"],null]],[1,"\\n"]],[]]],[1,"        "]],[5]]]]],[1,"\\n      "],[13],[1,"\\n    "]],[]],[[[1,"\\n      "],[8,[32,8],[[24,3,"actions-bar-discard-button"],[4,[32,10],["click",[28,[32,11],[[30,2,["discardReorderedRows"]],[28,[32,12],[[30,0],"hasChanges",false],null]],null]],null]],[["@variant","@disabled"],["tertiary",[28,[32,9],[[30,2,["hasReorderedRows"]]],null]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"h-6"],[12],[1,"\\n          "],[1,[28,[32,13],["global.discard"],null]],[1,"\\n        "],[13],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]],[[[1,"\\n      "],[10,0],[14,0,"flex gap-2"],[12],[1,"\\n        "],[8,[32,8],[[24,3,"move-up"],[4,[32,10],["click",[28,[32,11],[[30,2,["moveSelectedRowU
1p"]],[28,[32,12],[[30,0],"hasChanges",true],null]],null]],null]],[["@variant","@disabled"],["tertiary",[30,0,["tableSelection","noneSelected"]]]],[["default"],[[[[1,"\\n          "],[8,[30,7,["Icon"]],null,[["@name","@iconVariant"],["arrow-sm-up","solid"]],null],[1,"\\n          "],[1,[28,[32,13],["global.move-up"],null]],[1,"\\n        "]],[7]]]]],[1,"\\n        "],[8,[32,8],[[24,3,"move-down"],[4,[32,10],["click",[28,[32,11],[[30,2,["moveSelectedRowDown"]],[28,[32,12],[[30,0],"hasChanges",true],null]],null]],null]],[["@variant","@disabled"],["tertiary",[30,0,["tableSelection","noneSelected"]]]],[["default"],[[[[1,"\\n          "],[8,[30,8,["Icon"]],null,[["@name","@iconVariant"],["arrow-sm-down","solid"]],null],[1,"\\n          "],[1,[28,[32,13],["global.move-down"],null]],[1,"\\n        "]],[8]]]]],[1,"\\n        "],[8,[32,8],[[24,3,"apply-to-category"],[4,[32,10],["click",[28,[32,12],[[30,0],"applyToCategoryModalOpen",true],null]],null]],[["@variant"],["tertiary"]],[["default"],[[[[1,"\\n          "],[8,[30,9,["Icon"]],null,[["@name","@iconVariant"],["check","solid"]],null],[1,"\\n"],[41,[28,[32,14],[[30,6],"SERVICE"],null],[[[1,"            "],[1,[28,[32,13],["tax-rates.actions-bar.apply-to-category"],null]],[1,"\\n"]],[]],[[[1,"            "],[1,[28,[32,13],["tax-rates.actions-bar.apply-to-brand"],null]],[1,"\\n"]],[]]],[1,"        "]],[9]]]]],[1,"\\n        "],[8,[32,8],[[24,3,"delete"],[4,[32,10],["click",[28,[32,15],[[30,0,["deleteTaxRateTask"]]],null]],null]],[["@variant","@disabled"],["tertiary",[30,0,["tableSelection","noneSelected"]]]],[["default"],[[[[1,"\\n          "],[8,[30,10,["Icon"]],null,[["@name","@iconVariant"],["trash","outline"]],null],[1,"\\n          "],[1,[28,[32,13],["global.delete"],null]],[1,"\\n        "]],[10]]]]],[1,"\\n      "],[13],[1,"\\n    "]],[]]]]],[1,"\\n"]],[2]]]]],[1,"\\n\\n"],[8,[32,16],null,[["@type","@isOpen","@onClose"],[[30,6],[30,0,["applyToCategoryModalOpen"]],[28,[32,12],[[30,0],"applyToCategoryModalOpen",false],null]]],null]],["@queryParamContext","PageTable","T","TC","b","@type","b","b","b","b"],["component",":default","div","if",":secondary",":secondaryActions"]]',moduleName:"/home/circleci/repo/app/components/tax-rates/list/index.hbs",scope:()=>[W,x,z,K,ie,se,E,q,N,V,o,y,F,x,S,w,ce],isStrictMode:!1}),ue=class extends C{static{c(this.prototype,"apollo",[v])}#a=void r(this,"apollo");static{c(this.prototype,"router",[s])}#o=void r(this,"router");static{c(this.prototype,"dataFetchManager",[s])}#r=void r(this,"dataFetchManager");static{c(this.prototype,"tableSelection",[s])}#c=void r(this,"tableSelection");static{c(this.prototype,"session",[s])}#t=void r(this,"session");static{c(this.prototype,"applyToCategoryModalOpen",[b],function(){return!1})}#d=void r(this,"applyToCategoryModalOpen");static{c(this.prototype,"hasChanges",[b],function(){return!1})}#u=void r(this,"hasChanges");constructor(){super(...arguments),B({when:()=>this.hasChanges,onConfirm:()=>this.hasChanges=!1},this)}handleAddTaxRate(){this.router.transitionTo("accounts.account.tax-rate.create",{type:this.args.type.toLowerCase()})}static{d(this.prototype,"handleAddTaxRate",[n])}handleRowClick(e){e.columnMeta.index>0&&this.router.transitionTo("accounts.account.tax-rate",e.rowValue.id)}static{d(this.prototype,"handleRowClick",[n])}modifyVariables(e){return D({...e,branchId:this.session.branchId,filterBy:{...e.filterBy,type:this.args.type}})}static{d(this.prototype,"modifyVariables",[n])}*queryTaxRatesTask(e={}){return yield this.apollo.query({query:J,variables:e,fetchPolicy:"no-cache"},"taxRates")}static{d(this.prototype,"queryTaxRatesTask",[h])}*reorderTaxRatesTask({reorderedRows:e}){const t=e.map(e=>{const{id:t,archived:a,name:n,rate:i}=e;return{id:t,archived:a,name:n,rate:i}});yield this.apollo.mutate({mutation:ae,variables:{input:{createList:[],updateList:t}}})}static{d(this.prototype,"reorderTaxRatesTask",[h])}*deleteTaxRateTask(){const e=this.tableSelection.selectedIds[0];e&&(yield this.apollo.mutate({mutation:ne,variables:{id:e}}),this.dataFetchManager.refetchDataFor("taxRates"))}static{d(this.prototype,"deleteTaxRateTask",[h])}};a(de,ue);var pe=e({default:()=>me}),me=l({id:"2/WtBSYh",block:'[[[8,[32,0],null,[["@queryParamContext","@type","@dataFetchCounter"],[[30,0],"PRODUCT",[30,0,["dataFetchManager","counters","productTaxRates"]]]],null]],[],[]]',moduleName:"/home/circleci/repo/app/templates/accounts/account/tax-rates/product.hbs",scope:()=>[ue],isStrictMode:!1}),he=e({default:()=>ye}),ye=class extends t{static{c(this.prototype,"dataFetchManager",[s])}#r=void r(this,"dataFetchManager");queryParams=["filters"];static{c(this.prototype,"filters",[b])}#p=void r(this,"filters")},fe=e({default:()=>ve}),ve=u(class extends i{},[M("manager.settings")]),be=e({default:()=>xe}),xe=l({id:"aEaJfhi3",block:'[[[8,[32,0],null,[["@queryParamContext","@type","@dataFetchCounter"],[[30,0],"SERVICE",[30,0,["dataFetchManager","counters","serviceTaxRates"]]]],null]],[],[]]',moduleName:"/home/circleci/repo/app/templates/accounts/account/tax-rates/service.hbs",scope:()=>[ue],isStrictMode:!1}),ke=e({default:()=>ge}),ge=class extends t{static{c(this.prototype,"dataFetchManager",[s])}#r=void r(this,"dataFetchManager");queryParams=["filters"];static{c(this.prototype,"filters",[b])}#p=void r(this,"filters")},Te=e({default:()=>Ce}),Ce=u(class extends i{},[M("manager.settings")]),Re=e({default:()=>Se}),Se=class extends i{static{c(this.prototype,"router",[s])}#o=void r(this,"router");redirect(){this.router.replaceWith("accounts.account.tax-rates.service")}},Ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateBusinessTaxR
1ate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BusinessTaxRateInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateBusinessTaxRate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"businessFields"},directives:[]}]}}]}}],loc:{start:0,end:182}};Ne.definitions=Ne.definitions.concat(O.definitions);var Ve=l({id:"MmdhE/+O",block:'[[[41,[30,0,["formValues"]],[[[1,"  "],[8,[32,0],[[24,3,"tax-rates-prepaid-tab"],[24,0,"mt-8"]],[["@bgColor","@onSubmit","@hasChanges","@onDiscard","@resetChanges"],["bg-theme",[28,[32,1],[[30,0,["submitFormTask"]]],null],[30,0,["formValues","hasChanges"]],[30,0,["resetFormValues"]],[30,0,["resetFormValues"]]]],[["default"],[[[[1,"\\n    "],[10,0],[14,0,"max-w-md mx-auto"],[12],[1,"\\n      "],[8,[32,2],null,
1null,[["default"],[[[[1,"\\n        "],[8,[30,2,["Panel"]],null,null,[["default"],[[[[1,"\\n          "],[8,[30,3,["Section"]],null,null,[["default"],[[[[1,"\\n            "],[8,[30,3,["Subsection"]],null,null,[["default"],[[[[1,"\\n              "],[8,[30,1,["InputGroup"]],null,[["@label"],[[28,[32,3],["tax-rates.prepaid-tab.fields.voucher-vat-rate"],null]]],[["default"],[[[[1,"\\n                "],[8,[30,4,["InputPercentWithKeypad"]],[[24,3,"voucher-vat-rate"],[16,"placeholder",[30,0,["placeHolder"]]]],[["@value","@onInput","@decimalPlaces"],[[30,0,["formValues","voucherTaxRate"]],[28,[32,4],[[30,0,["formValues"]],"voucherTaxRate"],null],"3"]],null],[1,"\\n              "]],[4]]]]],[1,"\\n            "]],[]]]]],[1,"\\n            "],[8,[30,3,["Subsection"]],null,null,[["default"],[[[[1,"\\n              "],[8,[30,1,["InputGroup"]],null,[["@label"],[[28,[32,3],["tax-rates.prepaid-tab.fields.deposit-vat-rate"],null]]],[["default"],[[[[1,"\\n                "],[8,[30,5,["InputPercentWithKeypad"]],[[24,3,"deposit-vat-rate"],[16,"placeholder",[30,0,["placeHolder"]]]],[["@value","@onInput","@decimalPlaces"],[[30,0,["formValues","accountTaxRate"]],[28,[32,4],[[30,0,["formValues"]],"accountTaxRate"],null],"3"]],null],[1,"\\n              "]],[5]]]]],[1,"\\n            "]],[]]]]],[1,"\\n          "]],[]]]]],[1,"\\n        "]],[3]]]]],[1,"\\n      "]],[2]]]]],[1,"\\n    "],[13],[1,"\\n  "]],[1]]]]],[1,"\\n"]],[]],null]],["form","layout","panel","c","c"],["if","div"]]',moduleName:"/home/circleci/repo/app/components/tax-rates/prepaid/index.hbs",scope:()=>[L,w,f,x,F],isStrictMode:!1}),we=class extends C{static{c(this.prototype,"apollo",[v])}#a=void r(this,"apollo");static{c(this.prototype,"session",[s])}#t=void r(this,"session");static{c(this.prototype,"intl",[s])}#i=void r(this,"intl");static{c(this.prototype,"notifications",[s])}#n=void r(this,"notifications");static{c(this.prototype,"formValues",[b],function(){return this.initializeFormValues()})}#m=void r(this,"formValues");initializeFormValues(){const{voucherTaxRate:e,accountTaxRate:t}=this.session.business;return P({voucherTaxRate:e,accountTaxRate:t})}get placeHolder(){return this.intl.formatNumber(0,{style:"percent"})}*submitFormTask(){const e=yield this.apollo.mutate({mutation:Ne,variables:{input:{...this.formValues}}},"updateBusinessTaxRate");this.session.currentUser.setBusiness(e),this.notifications.success(this.intl.t("global.saved-notification-title"),this.intl.t("tax-rates.prepaid-tab.saved-notification-description")),this.resetFormValues()}static{d(this.prototype,"submitFormTask",[m])}resetFormValues(){this.formValues=this.initializeFormValues()}static{d(this.prototype,"resetFormValues",[n])}};a(Ve,we);var Fe=e({default:()=>Ie}),Ie=l({id:"/vzMf3D6",block:"[[[8,[32,0],null,null,null]],[],[]]",moduleName:"/home/circleci/repo/app/templates/accounts/account/tax-rates/prepaid.hbs",scope:()=>[we],isStrictMode:!1}),je=e({default:()=>Me}),Me=u(class extends i{},[M("manager.settings")]),De={};De["my-phorest/templates/accounts/account/tax-rates"]=X,De["my-phorest/controllers/accounts/account/tax-rates"]=$,De["my-phorest/routes/accounts/account/tax-rates"]=ee,De["my-phorest/templates/accounts/account/tax-rates/product"]=pe,De["my-phorest/controllers/accounts/account/tax-rates/product"]=he,De["my-phorest/routes/accounts/account/tax-rates/product"]=fe,De["my-phorest/templates/accounts/account/tax-rates/service"]=be,De["my-phorest/controllers/accounts/account/tax-rates/service"]=ke,De["my-phorest/routes/accounts/account/tax-rates/service"]=Te,De["my-phorest/routes/accounts/account/tax-rates/index"]=Re,De["my-phorest/templates/accounts/account/tax-rates/prepaid"]=Fe,De["my-phorest/routes/accounts/account/tax-rates/prepaid"]=je;export{De as default};
2//# sourceMappingURL=-embroider-route-entrypoint.js_route_accounts.account.tax-rates-Cz9pLF9q.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.