PageSourceSearch

https://my.phorest.com/on-demand/b8990d88fab1f78db579.js

js phorest.com collected 2026-09-24 08:43:13 UTC 30,200 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmy_phorest=self.webpackChunkmy_phorest||[]).push([[4049],{54049(e,t,n){var i=n.cw(function(e,t){k();const i=(0,k().X)({id:"NDj1lKNp",block:'[[[8,[32,0],[[16,3,[30,0,["name"]]],[16,"aria-label",[28,[32,1],["accessibility.enter-amount"],null]]],[["@amount","@allowNull","@onInput"],[[30,0,["amount"]],true,[30,0,["onAmountInput"]]]],null]],[],[]]',moduleName:"my-phorest/components/stock-transfers/items/editable-quantity-cell/index.hbs",scope:()=>[K.A,P.A],isStrictMode:!1});n.d(t,["A",0,i])}),a=n.cw(function(e,t){b(),h(),k();const i=(0,k().X)({id:"yuVl5Vm5",block:'[[[8,[32,0],[[24,3,"stock-transfer-items"]],[["@onSubmit","@onDiscard","@hasChanges","@auto","@resetChanges","@applyAndExit"],[[28,[32,1],[[30,0,["saveChangesTask"]]],null],[30,0,["discardChanges"]],[30,0,["hasChanges"]],[28,[32,2],[[30,1],[28,[32,3],[[30,0,["disableLocalAuto"]]],null]],null],[30,0,["discardChanges"]],[28,[32,1],[[30,0,["applyAndExitTask"]]],null]]],[["default"],[[[[1,"\\n  "],[8,[32,4],[[24,0,"mt-6"]],[["@queryTask","@modifyVariables","@queryParamContext","@dataFetchCounter"],[[30,0,["queryStockTransferItemsTask"]],[30,0,["modifyVariables"]],[30,2],[30,0,["dataFetchManager","counters","stockTransferItems"]]]],[["default"],[[[[1,"\\n    "],[8,[30,3,["FiltersBar"]],null,null,[["default"],[[[[1,"\\n      "],[8,[30,4,["SearchFilter"]],[[24,0,"flex-1"]],[["@name","@queryVariable","@placeholder"],["product-name-filter","nameOrBarcode",[28,[32,5],["products.filters.product-name-placeholder"],null]]],null],[1,"\\n      "],[8,[30,4,["CheckboxFilter"]],null,[["@queryVariable","@label","@disabled"],["isCounted",[28,[32,5],["products.filters.updated-quantity-only"],null],[30,0,["hasChanges"]]]],null],[1,"\\n      "],[8,[30,4,["StockTypeFilter"]],null,[["@queryVariable"],["stockType"]],null],[1,"\\n      "],[8,[30,4,["BrandFilter"]],null,[["@queryVariable"],["brandId"]],null],[1,"\\n      "],[8,[30,4,["SupplierFilter"]],null,[["@queryVariable"],["supplierId"]],null],[1,"\\n      "],[8,[30,4,["ProductCategoryFilter"]],null,[["@queryVariable"],["categoryId"]],null],[1,"\\n      "],[8,[30,4,["CheckboxFilter"]],null,[["@queryVariable","@label"],["lowStock",[28,[32,5],["products.filters.low-stock"],null]]],null],[1,"\\n      "],[8,[30,4,["CheckboxFilter"]],null,[["@queryVariable","@label"],["outOfStock",[28,[32,5],["products.filters.out-of-stock"],null]]],null],[1,"\\n    "]],[4]]]]],[1,"\\n\\n    "],[10,0],[12],[1,"\\n      "],[8,[32,6],[[24,3,"auto-switch"],[24,0,"mb-2"]],[["@checked","@onChange"],[[30,1],[30,5]]],[["default"],[[[[1,"\\n        "],[10,0],[14,0,"flex"],[12],[1,"\\n          "],[8,[30,6,["Button"]],null,null,null],[1,"\\n          "],[8,[30,6,["Label"]],[[24,0,"ml-2"]],null,[["default"],[[[[1,"\\n            "],[10,1],[14,0,"text-sm text-primary-light"],[12],[1,[28,[32,7],["stock-transfer.items.auto-filter"],null]],[13],[1,"\\n          "]],[]]]]],[1,"\\n        "],[13],[1,"\\n      "]],[6]]]]],[1,"\\n    "],[13],[1,"\\n\\n    "],[8,[30,3,["UiTable"]],null,null,[["default"],[[[[1,"\\n      "],[8,[30,7,["Columns"]],null,null,[["default"],[[[[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component"],[[28,[32,5],["stock-transfer.items.table-headers.brand"],null],[50,[32,8],0,null,[["textField"],["fromProduct.brand.name"]]]]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.category"],null],[50,[32,8],0,null,[["textField"],["fromProduct.category.name"]]],1]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component"],[[28,[32,5],["stock-transfer.items.table-headers.name"],null],[50,[32,8],0,null,[["textField"],["fromProduct.name"]]]]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.volume"],null],[50,[32,8],0,null,[["textField"],["fromProduct.measurement"]]],1]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.from-stock"],null],[50,[32,9],0,null,[["integerField"],["fromProduct.inventory.stockAmountDecimal"]]],1]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.from-min"],null],[50,[32,9],0,null,[["integerField"],["fromProduct.minQuantity"]]],1]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.from-max"],null],[50,[32,9],0,null,[["integerField"],["fromProduct.maxQuantity"]]],1]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.to-stock"],null],[50,[32,9],0,null,[["integerField","defaultValue"],["toProduct.inventory.stockAmountDecimal",0]]],1]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.to-min"],null],[50,[32,9],0,null,[["integerField","defaultValue"],["toProduct.minQuantity",0]]],1]],null],[1,"\\n        "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.to-max"],null],[50,[32,9],0,null,[["integerField","defaultValue"],["toProduct.maxQuantity",0]]],1]],null],[1,"\\n"],[41,[30,9,["appliedAt"]],[[[1,"          "],[8,[30,8,["Column"]],null,[["@name","@component","@width"],[[28,[32,5],["stock-transfer.items.table-headers.quantity"],null],[50,[32,9],0,null,[["integerField"],["quantity"]]],1]],null],[1,"\\n"]],[]],[[[1,"          "],[8,[30,8,["Column"]],null,[["@name","@width","@component"],[[28,[32,5],["stock-transfer.items.table-headers.quantity"],null],75,[50,[32,10],0,null,[["auto"],[[28,[32,2],[[30,1],[28,[32,3],[[30,0,["disableLocalAuto"]]],null]],null]]]]]],null],[1,"\\n"]],[]]],[1,"      "]],[8]]]]],[1,"\\n    "]],[7]]]]],[1,"\\n    "],[8,[30,3,["PaginationBar"]],null,null,null],[1,"\\n  "]],[3]]]]],[1,"\\n"]],[]]]]]],["@auto","@queryParamContext","PageTable","bar","@toggleAuto","Switch","T","TC","@stockTransfer"],["div","span","component","if"]]',moduleName:"my-phorest/components/stock-transfers/items/index.hbs",scope:()=>[b().A,L.A,M.A,j.A,X.A,P.A,Q.A,P.A,W.A,J.A,h().A],isStrictMode:!1});n.d(t,["A",0,i])}),l=n.cw(function(e,t){d(),k();const i=(0,k().X)({id:"OMYMidZt",block:'[[[8,[32,0],[[17,1]],[["@onSubmit","@validationModel","@validationSchema"],[[30,2],[30,3],[30,4]]],[["default"],[[[[1,"\\n  "],[8,[32,1],null,[["@show","@label","@bgColor"],[true,[28,[32,2],["stock-transfer.items.actions-bar.label"],null],"bg-theme"]],[["default","secondary"],[[[[1,"\\n      "],[10,0],[14,0,"flex gap-2"],[12],[1,"\\n        "],[8,[30,5,["Button"]],[[24,3,"actions-bar-save-draft-button"],[24,4,"submit"],[4,[32,6],["click",[30,5,["submit"]]],null]],[["@variant","@disabled","@showLoading"],[[28,[32,3],[[30,6],"tertiary"],null],[28,[32,4],[[28,[32,5],[[30,7]],null],[28,[32,5],[[30,8]],null]],null],[30,5,["isSubmitting"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[32,7],["stock-transfer.items.actions-bar.save-draft"],null]],[1,"\\n        "]],[]]]]],[1,"\\n        "],[8,[30,5,["Button"]],[[24,3,"actions-bar-save-and-apply-button"],[24,4,"submit"],[4,[32,6],["click",[28,[32,8],[[30,0,["saveAndApplyTask"]],[30,5]],null]],null]],[["@variant","@disabled","@showLoading"],["primary",[28,[32,4],[[28,[32,5],[[30,7]],null],[28,[32,5],[[30,8]],null]],null],[30,5,["isSubmitting"]]]],[["default"],[[[[1,"\\n          "],[1,[28,[32,7],["stock-transfer.items.actions-bar.save-and-apply"],null]],[1,"\\n        "]],[]]]]],[1,"\\n      "],[13],[1,"\\n    "]],[]],[[[1,"\\n      "],[8,[30,5,["Button"]],[[24,3,"actions-bar-discard-button"],[24,4,"reset"],[4,[32,6],["click",[28,[32,9],[[30,5,["clearValidationMessages"]],[30,0,["discardChanges"]]],null]],null]],[["@variant","@disabled"],["tertiary",[28,[32,3],[[30,5,["isSubmitting"]],[28,[32,5],[[30,8]],null]],null]]],[["default"],[[[[1,"\\n        "],[1,[28,[32,7],["global.discard"],null]],[1,"\\n      "]],[]]]]],[1,"\\n    "]],[]]]]],[1,"\\n\\n  "],[18,9,[[30,5]]],[1,"\\n\\n"]],[5]]]]]],["&attrs","@onSubmit","@validationModel","@validationSchema","form","@saveButtonType","@auto","@hasChanges","&default"],[":default","div",":secondary","yield"]]',moduleName:"my-phorest/components/stock-transfers/items/save-form/index.hbs",scope:()=>[z.A,O.A,P.A,B.A,M.A,j.A,d().on,P.A,L.A,R.A],isStrictMode:!1});n.d(t,["A",0,i])}),r=n.cw(function(e,t){n.r(t),y(),k();const i=(0,k().X)({id:"5wFFJiqG",block:'[[[1,[28,[32,0],[[30,0,["model","data","description"]]],null]],[1,"\\n\\n"],[8,[32,1],null,[["@variant","@title","@backLink","@backText"],["default",[28,[32,2],["stock-transfers.page-title"],null],"accounts.account.stock-transfers.outgoing",[28,[32,2],["stock-transfer.page-header.header-edit-stock-transfer"],null]]],[["content"],[[[[1,"\\n    "],[8,[32,3],null,[["@auto","@stockTransfer","@queryParamContext","@toggleAuto"],[[30,0,["auto"]],[30,1,["data"]],[30,0],[28,[32,4],[[30,0],"auto",[28,[32,5],[[30,0,["auto"]]],null]],null]]],null],[1,"\\n  "]],[]]]]]],["@model"],[":content"]]',moduleName:"my-phorest/templates/accounts/account/stock-transfer.hbs",scope:()=>[V.A,D.A,P.A,y().A,U.A,j.A],isStrictMode:!1});n.d(t,["default",0,i])}),s=()=>n(47903),o=()=>n(20107),u=()=>n(69120),d=()=>n(76753),c=()=>n(99675),m=()=>n(65015),p=()=>n(86407),k=()=>n(87589),f=()=>n(20049),h=n.cw(function(e,t){var a,l,r;n.d(t,{A:()=>u}),s(),p(),c(),i(),o();let u=(r=new WeakSet,a=class extends s().A{constructor(...e){var t,n;super(...e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t=this,n=r),n.add(t),(0,C().A)(this,"tableEditing",l,this)}get name(){return`quantity-input-${this.tableEditing.getKey(this.args.row)}`}get amount(){return this.args.auto&&null==this.tableEditing.fieldValue(this.args.row,"quantity")?d(function(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}(r,this)):this.tableEditing.fieldValue(this.args.row,"quantity")}onAmountInput(e){this.tableEditing.setFieldValue(this.args.row,"quantity",e)}},l=(0,x().A)(a.prototype,"tableEditing",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,x().A)(a.prototype,"onAmountInput",[c().XI],Object.getOwnPropertyDescriptor(a.prototype,"onAmountInput"),a.prototype),a);function d(e){const t=e.args.row.fromProduct?.inventory?.stockAmountDecimal??0,n=e.args.row.fromProduct?.minQuantity??0,i=e.args.row.toProduct?.inventory?.stockAmountDecimal??0;let a=t-n;a<0&&(a=0);let l=(e.args.row.toProduct?.maxQuantity??0)-i;l<0&&(l=0);let r=a;return a>l&&(r=l),0===r?null:r}(0,o().Et)(i().A,u)}),y=n.cw(function(e,t){var i,l,r,u,d,m,k,h,y,b,v;function g(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{A:()=>S}),s(),p(),c(),f(),a(),o();let S=(v=new WeakSet,i=class extends s().A{constructor(){var e,t;super(...arguments),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e=this,t=v),t.add(e),(0,C().A)(this,"apollo",l,this),(0,C().A)(this,"session",r,this),(0,C().A)(this,"router",u,this),(0,C().A)(this,"routeHistory",d,this),(0,C().A)(this,"tableEditing",m,this),(0,C().A)(this,"dataFetchManager",k,this),(0,C().A)(this,"intl",h,this),(0,C().A)(this,"notifications",y,this),(0,C().A)(this,"disableLocalAuto",b,this),g(v,this,T).call(this)}get hasChanges(){return this.tableEditing.hasChanges}modifyVariables(e){return{...e,stockTransferId:this.args.stockTransfer.id}}
1*queryStockTransferItemsTask(e={}){return yield this.apollo.query({query:N().A,variables:e,fetchPolicy:"network-only"},"stockTransferItems")}*saveChangesTask(){const e=this.tableEditing.itemsForCreateOrUpdate.map(e=>{const{id:t,quantity:n,fromProduct:i}=e;return{stockTransferItemId:t,fromProductId:i.id,quantity:n}});let t={filterBy:JSON.parse(this.args.queryParamContext?.filters||"{}")};t=this.modifyVariables(t),yield this.apollo.mutate({mutation:w().A,variables:{input:{stockTransferId:this.args.stockTransfer.id,stockTransferPolicy:this.args.auto?"UP_TO_MAX":"DEFAULT",items:e,filterBy:t.filterBy}}}),this.dataFetchManager.refetchDataFor("stockTransferItems"),yield(0,E.ur)(this,"queryStockTransferItemsTask.isRunning"),yield(0,E.ur)(this,"queryStockTransferItemsTask.isIdle"),g(v,this,T).call(this),this.disableLocalAuto=!0,this.notifications.success(this.intl.t("global.saved-notification-title"),this.intl.t("stock-transfer.items.saved-notification-description"))}discardChanges(){g(v,this,T).call(this)}*applyAndExitTask(){yield this.apollo.mutate({mutation:A().A,variables:{input:{stockTransferId:this.args.stockTransfer.id}}}),this.routeHistory.goToPreviousRoute()}},l=(0,x().A)(i.prototype,"apollo",[q.mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=(0,x().A)(i.prototype,"session",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,x().A)(i.prototype,"router",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,x().A)(i.prototype,"routeHistory",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,x().A)(i.prototype,"tableEditing",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),k=(0,x().A)(i.prototype,"dataFetchManager",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),h=(0,x().A)(i.prototype,"intl",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),y=(0,x().A)(i.prototype,"notifications",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b=(0,x().A)(i.prototype,"disableLocalAuto",[f().r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),(0,x().A)(i.prototype,"modifyVariables",[c().XI],Object.getOwnPropertyDescriptor(i.prototype,"modifyVariables"),i.prototype),(0,x().A)(i.prototype,"queryStockTransferItemsTask",[E.KB],Object.getOwnPropertyDescriptor(i.prototype,"queryStockTransferItemsTask"),i.prototype),(0,x().A)(i.prototype,"saveChangesTask",[E.Fs],Object.getOwnPropertyDescriptor(i.prototype,"saveChangesTask"),i.prototype),(0,x().A)(i.prototype,"discardChanges",[c().XI],Object.getOwnPropertyDescriptor(i.prototype,"discardChanges"),i.prototype),(0,x().A)(i.prototype,"applyAndExitTask",[E.Fs],Object.getOwnPropertyDescriptor(i.prototype,"applyAndExitTask"),i.prototype),i);function T(){this.tableEditing.initialize(["fromProduct","id"])}(0,o().Et)(a().A,S)}),b=n.cw(function(e,t){var i,a,r,u,d,m;n.d(t,{A:()=>k}),s(),c(),p(),F(),g(),l(),o();let k=(i=(0,p().eu)("discardChanges"),a=(0,g().permission)("stock-transfers.apply"),r=class extends s().A{constructor(){super(...arguments),(0,C().A)(this,"discardChangesService",u,this),(0,C().A)(this,"confirmDialog",d,this),(0,C().A)(this,"intl",m,this),(0,F().abortRouteChange)({when:()=>this.args.hasChanges,onConfirm:()=>this.args.onDiscard?.()},this)}async discardChanges(){"discard"===await this.discardChangesService.ask()&&await(this.args.onDiscard?.())}*saveAndApplyTask(e){(yield this.confirmDialog.ask({title:this.intl.t("apply-stock-transfer-confirmation-modal.title"),message:this.intl.t("apply-stock-transfer-confirmation-modal.message"),continue:this.intl.t("global.yes"),cancel:this.intl.t("global.no"),leadingIcon:"question-mark-circle"}))&&(yield e.submit(),yield this.args.applyAndExit())}},u=(0,x().A)(r.prototype,"discardChangesService",[i],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,x().A)(r.prototype,"confirmDialog",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,x().A)(r.prototype,"intl",[p().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,x().A)(r.prototype,"discardChanges",[c().XI],Object.getOwnPropertyDescriptor(r.prototype,"discardChanges"),r.prototype),(0,x().A)(r.prototype,"saveAndApplyTask",[E.Fs,a],Object.getOwnPropertyDescriptor(r.prototype,"saveAndApplyTask"),r.prototype),r);(0,o().Et)(l().A,k)}),v=n.cw(function(e,t){var i,a,l,r,s;n.r(t),n.d(t,{default:()=>o}),u(),f();let o=(i=class extends u().Ay{constructor(...e){super(...e),(0,Z.A)(this,"queryParams",["pageCursor","order","filters","auto"]),(0,C().A)(this,"pageCursor",a,this),(0,C().A)(this,"order",l,this),(0,C().A)(this,"filters",r,this),(0,C().A)(this,"auto",s,this)}},a=(0,x().A)(i.prototype,"pageCursor",[f().r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,x().A)(i.prototype,"order",[f().r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=(0,x().A)(i.prototype,"filters",[f().r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,x().A)(i.prototype,"auto",[f().r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),i)}),g=()=>n(32628),A=()=>n(22515),w=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"EditStockTransferItems"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"EditStockTransferItemsInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"editStockTransferItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[]}]}}],loc:{start:0,end:114}}])}),N=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StockTransferItems"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"stockTransferId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filterBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"StockTransferItemsFilterBy"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stockTransferItems"},arguments:[{kind:"Argument",name:{kind:"Name",value:"stockTransferId"},value:{kind:"Variable",name:{kind:"Name",value:"stockTransferId"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filterBy"},value:{kind:"Variable",name:{kind:"Name",value:"filterBy"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"totalCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pageInfo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasNextPage"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"quantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fromProduct"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"brand"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"category"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"measurement"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inventory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stockAmountDecimal"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"toProduct"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxQuantity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"inventory"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"stockAmountDecimal"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:834}}])}),S=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StockTransfer"}
1,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:"stockTransfer"},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:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"appliedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fromBranch"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shortName"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"toBranch"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shortName"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:196}}])}),T=n.cw(function(e,t){var i,a,l;n.r(t),n.d(t,{default:()=>r}),m(),g();let r=(0,g().guardWithPermission)("stock-transfers.edit")((a=class extends m().Ay{constructor(...e){super(...e),(0,C().A)(this,"apollo",l,this)}async model(e){const t={id:e.id};return{data:await this.apollo.query({query:S().A,variables:t},"stockTransfer")}}resetController(e,t){t&&e.set("auto",!1)}},l=(0,x().A)(a.prototype,"apollo",[q.mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i=a))||i}),F=()=>n(24589),x=()=>n(1808),C=()=>n(30376),I=n(89878),V=n(15182),D=n(59421),P=n(43087),q=n(12871),E=n(6845),z=n(96953),O=n(67846),B=n(12455),M=n(6770),j=n(65530),L=n(4454),R=n(74219),X=n(15476),Q=n(40917),W=n(80791),J=n(12471),K=n(42043),U=n(77323),Z=n(52874);let _=window.define;_("my-phorest/templates/accounts/account/stock-transfer",function(){return(0,I.A)(r())}),_("my-phorest/controllers/accounts/account/stock-transfer",function(){return(0,I.A)(v())}),_("my-phorest/routes/accounts/account/stock-transfer",function(){return(0,I.A)(T())})},67846(e,t,n){n.d(t,{A:()=>u});var i=n(47903),a=n(80442),l=n(65530),r=n(4198);
1const s=(0,n(87589).X)({id:"e6z6lZoM",block:'[[[40,[[[1,"  "],[8,[32,0],null,[["@show","@enter","@enterFrom","@enterTo","@leave","@leaveFrom","@leaveTo"],[[30,1],[52,[28,[32,1],[[30,2]],null],"transition ease duration-300 lg:transform"],"opacity-0 lg:translate-y-full","opacity-100 lg:translate-y-0",[52,[28,[32,1],[[30,2]],null],"transition duration-300"],"opacity-100 lg:translate-y-0","opacity-0 lg:translate-y-full"]],[["default"],[[[[1,"\\n    "],[11,0],[24,0,"z-10"],[17,3],[12],[1,"\\n      "],[10,0],[14,0,"pr-4 pl-4"],[12],[1,"\\n        "],[10,0],[14,0,"flex items-center justify-between flex-wrap h-14"],[12],[1,"\\n          "],[10,0],[15,0,[29,["sm:w-full sm:flex-1 sm:flex items-center\\n              ",[52,[48,[30,6]],"hidden w-0","w-2/3 sm:w-0"]]]],[12],[1,"\\n"],[41,[30,4],[[[1,"              "],[8,[32,2],[[24,0,"shrink-0 hidden"]],[["@name","@variant"],[[30,4],"outline"]],null],[1,"\\n"]],[]],null],[41,[30,5],[[[1,"              "],[10,2],[15,0,[29,[[52,[30,4],"sm:ml-3"]," text-sm sm:text-base font-medium"]]],[12],[1,[30,5]],[13],[1,"\\n"]],[]],null],[41,[48,[30,7]],[[[1,"              "],[18,7,null],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n          "],[10,0],[15,0,[29,["flex\\n              ",[52,[48,[30,6]],"justify-between w-full","justify-end w-1/3"],"\\n              shrink-0 sm:w-auto sm:ml-3"]]],[12],[1,"\\n"],[41,[48,[30,6]],[[[1,"              "],[18,6,null],[1,"\\n"]],[]],null],[1,"            "],[10,1],[14,0,"ml-2 inline-flex"],[12],[18,8,null],[13],[1,"\\n          "],[13],[1,"\\n        "],[13],[1,"\\n      "],[13],[1,"\\n    "],[13],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],"%cursor:0%",[28,[37,1],[[30,0,["actionsBarContainer"]]],null],null]],["@show","@avoidTransition","&attrs","@icon","@label","&secondary","&secondaryActions","&default"],["in-element","-in-el-null","if","div","has-block","p","yield","span"]]',moduleName:"my-phorest/components/page/actions-bar/index.hbs",scope:()=>[a.A,l.A,r.A],isStrictMode:!1});var o=n(20107);class u extends i.A{get actionsBarContainer(){return this.args.customContainerToRender?this.args.customContainerToRender:document.getElementById("actions-bar-container")}}(0,o.Et)(s,u)},12471(e,t,n){n.d(t,{A:()=>s});var i=n(86500),a=n(36760),l=n(53157);const r=(0,n(87589).X)({id:"RwBg7A0k",block:'[[[10,0],[15,0,[29,["text-primary text-sm truncate\\n    ",[52,[28,[32,0],[[30,1],[30,2]],null],"line-through"]]]],[12],[1,"\\n  "],[1,[52,[28,[32,1],[[28,[32,0],[[30,1],[30,3]],null]],null],[30,4],[28,[32,0],[[30,1],[30,3]],null]]],[1,"\\n"],[13]],["@row","@deletedField","@integerField","@defaultValue"],["div","if"]]',moduleName:"my-phorest/components/page/table/cells/-integer-cell/index.hbs",scope:()=>[a.Jt,l.A],isStrictMode:!1}),s=(0,n(20107).Et)(r,(0,i.A)(void 0,"-integer-cell"))},80791(e,t,n){n.d(t,{A:()=>u});var i=n(47903),a=n(62354),l=n(43489),r=n(36760);const s=(0,n(87589).X)({id:"1rdKLZ9T",block:'[[[41,[30,0,["value"]],[[[1,"  "],[8,[32,0],[[16,0,[29,[[52,[28,[32,1],[[30,1],[30,2]],null],"line-through"]]]]],[["@text"],[[30,0,["value"]]]],[["default"],[[[[1,"\\n    "],[1,[30,0,["value"]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[]],[[[41,[30,3],[[[1,"  "],[10,0],[14,0,"text-primary text-sm text-left"],[12],[1,[30,3]],[13],[1,"\\n"]],[]],[[[1,"  "],[10,0],[14,0,"text-primary text-sm text-left"],[12],[1,"-"],[13],[1,"\\n"]],[]]]],[]]]],["@row","@deletedField","@placeholder"],["if","div"]]',moduleName:"my-phorest/components/page/table/cells/-text-or-dash-cell/index.hbs",scope:()=>[l.A,r.Jt],isStrictMode:!1});var o=n(20107);class u extends i.A{get value(){if(this.args.value)return this.args.value;const e=typeof this.args.textField;return"function"===e?this.args.textField(this.args.row):"string"===e?(0,a.valueFromPath)(this.args.row,this.args.textField):null}}(0,o.Et)(s,u)},43489(e,t,n){n.d(t,{A:()=>f});var i=n(30376),a=n(52874),l=n(1808),r=n(47903),s=n(20049),o=n(37150),u=n(55058),d=n(35618);const c=(0,n(87589).X)({id:"/LZTsamV",block:'[[[11,0],[24,0,"text-primary text-sm truncate text-left"],[17,1],[4,[30,0,["addTextResizeListener"]],null,null],[4,[32,0],null,[["text","openDelayMs","disabled","placement"],[[30,2],500,[30,0,["textIsFullyVisible"]],[30,3]]]],[12],[1,"\\n  "],[18,4,null],[1,"\\n"],[13]],["&attrs","@text","@tooltipPlacement","&default"],["div","yield"]]',moduleName:"my-phorest/components/truncated-to-full-text-tooltip/index.hbs",scope:()=>[d.A],isStrictMode:!1});var m,p,k=n(20107);let f=(m=class extends r.A{constructor(...e){super(...e),(0,i.A)(this,"textIsFullyVisible",p,this),(0,a.A)(this,"addTextResizeListener",(0,o.W)(e=>{this.textIsFullyVisible=this.calculateTextIsFullyVisible(e),window.ResizeObserver&&(this.textResizeObserver=new ResizeObserver(()=>{this.textIsFullyVisible=this.calculateTextIsFullyVisible(e)}),this.textResizeObserver.observe(e),(0,u.JF)(this,()=>{this.textResizeObserver.unobserve(e)}))},{eager:!1}))}calculateTextIsFullyVisible(e){let t=this.lastElementWithTruncateClass(e)??e;return t.scrollWidth<=t.clientWidth}lastElementWithTruncateClass(e){let t=e.querySelectorAll(".truncate");return t?t[t.length-1]:null}},p=(0,l.A)(m.prototype,"textIsFullyVisible",[s.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),m);(0,k.Et)(c,f)},22515(e,t,n){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ApplyStockTransferToInventory"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ApplyStockTransferToInventoryInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"applyStockTransferToInventory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[]}]}}],loc:{start:0,end:139}}])},53157(e,t,n){const i=(0,n(27583).d)(function([e]){return null==e});n.d(t,["A",0,i])}}]);
2//# sourceMappingURL=b8990d88fab1f78db579.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.