PageSourceSearch

https://my.phorest.com/on-demand/282a09bc2de2eb74db35.js

js phorest.com collected 2026-09-24 08:45:05 UTC 33,481 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkmy_phorest=self.webpackChunkmy_phorest||[]).push([[8875],{11840(e,t,n){n.d(t,{A:()=>d});var a=n(27583),i=n(34637),l=n(35178);const{__loader:r}=l.A;let o={ACTION:null};r&&"ember-htmlbars/keywords/closure-action"in r.registry?o=r.require("ember-htmlbars/keywords/closure-action"):r&&"ember-routing-htmlbars/keywords/closure-action"in r.registry&&(o=r.require("ember-routing-htmlbars/keywords/closure-action"));var s=o.ACTION;const u=i.L;s&&(u[s]=!0);var d=(0,a.d)(u)},58875(e,t,n){var a=n.cw(function(e,t){b(),O(),f();const a=(0,f().X)({id:"Ji1W+ubp",block:'[[[44,[[28,[32,0],[[30,1],[30,2]],null]],[[[1,"  "],[8,[32,1],[[24,0,"flex items-center uppercase"]],[["@text"],[[30,3,["hex"]]]],[["default"],[[[[1,"\\n    "],[10,1],[14,0,"w-5 h-5 inline-block mr-2 rounded-xs"],[15,5,[28,[32,2],[[28,[32,3],["background: ",[30,3,["hex"]]],null]],null]],[12],[13],[1,"\\n    "],[1,[30,3,["hex"]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[3]]]],["@row","@colorField","colorField"],["let","span"]]',moduleName:"my-phorest/components/custom-breaks/list/cell-color/index.hbs",scope:()=>[b().Jt,K.A,O().A,b().xW],isStrictMode:!1});n.d(t,["A",0,a])}),i=n.cw(function(e,t){b(),f();const a=(0,f().X)({id:"1tCpWALn",block:'[[[44,[[28,[32,0],[[30,1],[30,2]],null]],[[[1,"  "],[8,[32,1],[[24,0,"flex items-center"]],[["@text"],[[28,[32,2],["global.minutes"],[["minutes"],[[30,3]]]]]],[["default"],[[[[1,"\\n    "],[1,[28,[32,3],["global.minutes"],[["minutes"],[[30,3]]]]],[1,"\\n  "]],[]]]]],[1,"\\n"]],[3]]]],["@row","@durationField","durationField"],["let"]]',moduleName:"my-phorest/components/custom-breaks/list/cell-duration/index.hbs",scope:()=>[b().Jt,K.A,L.A,L.A],isStrictMode:!1});n.d(t,["A",0,a])}),l=n.cw(function(e,t){b(),f();const a=(0,f().X)({id:"8wSaCXOX",block:'[[[44,[[28,[32,0],[[30,1],[30,2]],null]],[[[44,[[52,[30,3],[28,[32,1],["global.yes"],null],[28,[32,1],["global.no"],null]]],[[[1,"    "],[8,[32,2],null,[["@text"],[[30,4]]],[["default"],[[[[1,"\\n      "],[1,[30,4]],[1,"\\n    "]],[]]]]],[1,"\\n"]],[4]]]],[3]]]],["@row","@paidField","paidField","isPaid"],["let","if"]]',moduleName:"my-phorest/components/custom-breaks/list/cell-paid/index.hbs",scope:()=>[b().Jt,L.A,K.A],isStrictMode:!1});n.d(t,["A",0,a])}),r=n.cw(function(e,t){w(),N(),x(),v(),M(),f();const a=(0,f().X)({id:"Q7WAnw32",block:'[[[10,"h2"],[14,0,"text-lg mt-6"],[12],[1,"\\n  "],[1,[28,[32,0],["manager.custom-breaks.title"],null]],[1,"\\n"],[41,[30,0,["totalCount"]],[[[1,"    ("],[1,[30,0,["totalCount"]]],[1,")\\n"]],[]],null],[13],[1,"\\n\\n"],[8,[32,1],[[24,0,"mt-2"]],[["@onRowClick","@queryTask","@dataFetchCounter","@queryParamContext","@modifyVariables"],[[30,0,["handleRowClick"]],[30,0,["queryCustomBreaksTask"]],[30,0,["dataFetchManager","counters","customBreaks"]],[30,1],[30,0,["modifyVariables"]]]],[["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,[["@name","@component"],[[28,[32,2],["manager.custom-breaks.table-headers.name"],null],[50,[32,3],0,null,[["textField"],["name"]]]]],null],[1,"\\n      "],[8,[30,4,["Column"]],null,[["@name","@component"],[[28,[32,2],["manager.custom-breaks.table-headers.duration"],null],[50,[32,4],0,null,[["durationField"],["durationMins"]]]]],null],[1,"\\n      "],[8,[30,4,["Column"]],null,[["@name","@component"],[[28,[32,2],["manager.custom-breaks.table-headers.color"],null],[50,[32,5],0,null,[["colorField"],["color"]]]]],null],[1,"\\n      "],[8,[30,4,["Column"]],null,[["@name","@component"],[[28,[32,2],["manager.custom-breaks.table-headers.paid"],null],[50,[32,6],0,null,[["paidField"],["isPaid"]]]]],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,7],[[24,0,"absolute top-0 bottom-0 left-0 right-0"]],[["@icon","@title","@description"],["search",[28,[32,2],["manager.custom-breaks.empty-title"],null],[28,[32,2],["manager.custom-breaks.empty-description"],null]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[2]]]]],[1,"\\n\\n"],[8,[32,8],null,[["@show","@bgColor"],[true,"bg-theme"]],[["default"],[[[[1,"\\n    "],[8,[32,9],[[24,3,"new-break"],[4,[32,10],["click",[28,[32,11],["accounts.account.custom-breaks.create"],null]],null]],[["@variant"],["primary"]],[["default"],[[[[1,"\\n      "],[8,[30,5,["Icon"]],null,[["@name","@iconVariant"],["plus","solid"]],null],[1,"\\n      "],[1,[28,[32,0],["manager.custom-breaks.create-break"],null]],[1,"\\n    "]],[5]]]]],[1,"\\n  "]],[]]]]]],["@queryParamContext","PageTable","T","TC","b"],["h2","if","component",":default"]]',moduleName:"my-phorest/components/custom-breaks/list/index.hbs",scope:()=>
1[L.A,U.A,L.A,G.A,w().A,N().A,x().A,Y.A,Q.A,Z.A,v().on,M().A],isStrictMode:!1});n.d(t,["A",0,a])}),o=n.cw(function(e,t){R(),v(),f();const a=(0,f().X)({id:"kKKJOPI4",block:'[[[8,[32,0],null,[["@isOpen","@onClose"],[[30,1],[30,2]]],[["default"],[[[[1,"\\n  "],[10,0],[14,0,"w-screen flex flex-col grow overflow-auto"],[12],[1,"\\n    "],[10,0],[14,0,"flex flex-col grow h-0 bg-gray-lighter"],[12],[1,"\\n      "],[10,0],[14,0,"p-4 bg-white sm:px-6"],[12],[1,"\\n        "],[8,[32,1],[[24,0,"flex-row-reverse justify-between -mr-4"]],[["@onBackButtonClick","@iconName"],[[30,2],"x"]],[["label"],[[[[1,"\\n"],[41,[30,0,["isNewCustomBreak"]],[[[1,"              "],[1,[28,[32,2],["manager.custom-breaks.new-custom-break"],null]],[1,"\\n"]],[]],[[[1,"              "],[1,[28,[32,2],["manager.custom-breaks.edit-custom-break"],null]],[1,"\\n"]],[]]],[1,"          "]],[]]]]],[1,"\\n      "],[13],[1,"\\n\\n      "],[8,[32,3],[[24,0,"flex grow flex-col"],[24,3,"custom-break-form"]],[["@onSubmit","@validationModel","@validationSchema"],[[30,0,["save"]],[30,0,["customBreak"]],[30,0,["validationSchema"]]]],[["default"],[[[[1,"\\n        "],[8,[30,3,["ErrorPropagator"]],null,null,[["default"],[[[[1,"\\n          "],[10,0],[14,0,"flex grow flex-col bg-gray-lighter"],[12],[1,"\\n            "],[8,[32,4],[[24,0,"px-4"]],null,[["default"],[[[[1,"\\n              "],[8,[30,5,["Panel"]],[[24,0,"rounded-lg border-gray!"]],null,[["default"],[[[[1,"\\n                "],[8,[30,6,["Section"]],null,null,[["default"],[[[[1,"\\n                  "],[8,[30,6,["Subsection"]],null,null,[["default"],[[[[1,"\\n                    "],[8,[30,3,["InputGroup"]],null,[["@label","@error"],[[28,[32,5],["manager.custom-breaks.form.name"],null],[30,4,["errors","name"]]]],[["default"],[[[[1,"\\n                      "],[8,[30,7,["Input"]],[[24,3,"custom-break-name"],[16,"placeholder",[28,[32,5],["manager.custom-breaks.form.name-placeholder"],null]],[4,[32,9],null,null]],[["@type","@onInput","@value"],["text",[28,[32,6],[[28,[32,7],["target.value",[28,[32,8],[[30,0],"customBreak.name"],null]],null],[30,3,["validate"]]],null],[30,0,["customBreak","name"]]]],null],[1,"\\n                    "]],[7]]]]],[1,"\\n                  "]],[]]]]],[1,"\\n\\n                  "],[8,[30,6,["Subsection"]],[[24,0,"flex gap-4"]],null,[["default"],[[[[1,"\\n                    "],[8,[30,3,["InputGroup"]],[[24,0,"w-1/2"]],[["@label","@error"],[[28,[32,5],["manager.custom-breaks.form.duration"],null],[30,4,["errors","durationMins"]]]],[["default"],[[[[1,"\\n                      "],[8,[30,8,["Input"]],[[24,3,"custom-break-duration"],[24,"inputmode","numeric"],[24,"min","1"],[24,"max","1440"]],[["@type","@trailingAddon","@onInput","@value"],["number",[28,[32,5],["global.minutes-abbreviation"],null],[28,[32,6],[[28,[32,7],["target.value",[28,[32,8],[[30,0],"customBreak.durationMins"],null]],null],[30,3,["validate"]]],null],[28,[32,10],[[30,0,["customBreak","durationMins"]],""],null]]],null],[1,"\\n                    "]],[8]]]]],[1,"\\n\\n                    "],[8,[30,3,["InputGroup"]],[[24,0,"w-1/2"]],[["@label"],[[28,[32,5],["manager.custom-breaks.form.color"],null]]],[["default"],[[[[1,"\\n                      "],[8,[30,9,["ColorPicker"]],[[24,0,"h-10! z-50"]],[["@color","@onDone","@popup","@verticalPlacement"],[[30,0,["customBreak","color"]],[30,0,["saveColor"]],"left","middle"]],null],[1,"\\n                    "]],[9]]]]],[1,"\\n                  "]],[]]]]],[1,"\\n\\n                  "],[8,[30,6,["Subsection"]],[[24,0,"pb-0!"]],null,[["default"],[[[[1,"\\n                    "],[10,0],[14,0,"bg-gray-lighter p-3 flex items-center justify-between rounded-lg"],[12],[1,"\\n                      "],[10,2],[14,0,"font-medium"],[12],[1,"\\n                        "],[1,[28,[32,2],["manager.custom-breaks.form.is-break-paid"],null]],[1,"\\n                      "],[13],[1,"\\n                      "],[8,[32,11],[[24,3,"toggle-paid-break"],[24,0,"flex items-center"]],[["@checked","@onChange"],[[30,0,["customBreak","isPaid"]],[28,[32,12],["isPaid",[30,0,["customBreak"]]],null]]],null],[1,"\\n                    "],[13],[1,"\\n                  "]],[]]]]],[1,"\\n                "]],[]]]]],[1,"\\n              "]],[6]]]]],[1,"\\n            "]],[5]]]]],[1,"\\n\\n"],[41,[28,[32,13],[[30,0,["isNewCustomBreak"]]],null],[[[1,"              "],[10,2],[14,0,"px-4 text-center text-sm text-secondary-light -mt-2"],[12],[1,[28,[32,2],["manager.custom-breaks.form.changes-apply-to-new-breaks-only"],null]],[13],[1,"\\n"]],[]],null],[1,"          "],[13],[1,"\\n\\n          "],[8,[32,14],[[24,0,"bg-white/90!"]],null,[["primary","secondary"],[[[[1,"\\n              "],[8,[32,15],[[24,3,"save-custom-break"],[24,4,"submit"]],[["@variant","@showLoading","@disabled"],["primary",[28,[32,10],[[30,0,["createCustomBreakTask","isRunning"]],[30,0,["updateCustomBreakTask","isRunning"]]],null],[28,[32,10],[[30,0,["createCustomBreakTask","isRunning"]],[30,0,["updateCustomBreakTask","isRunning"]]],null]]],[["default"],[[[[1,"\\n                "],[1,[28,[32,2],["global.save-and-close"],null]],[1,"\\n              "]],[]]]]],[1,"\\n              "],[8,[32,15],[[24,3,"close-custom-break-slideover"],[4,[32,16],["click",[30,2]],null]],[["@variant","@disabled"],["tertiary",[28,[32,10],[[30,0,["createCustomBreakTask","isRunning"]],[30,0,["updateCustomBreakTask","isRunning"]],[30,0,["deleteCustomBreakTask","isRunning"]]],null]]],[["default"],[[[[1,"\\n                "],[1,[28,[32,2],["global.cancel"],null]],[1,"\\n              "]],[]]]]],[1,"\\n            "]],[]],[[[1,"\\n"],[41,[28,[32,13],[[30,0,["isNewCustomBreak"]]],null],[[[1,"                "],[8,[32,15],[[24,3,"delete-template"],[4,[32,16],["click",[30,0,["deleteTemplate"]]],null]],[["@variant","@showLoading","@disabled"],["danger",[30,0,["deleteCustomBreakTask","isRunning"]],[30,0,["deleteCustomBreakTask","isRunning"]]]],[["default"],[[[[1,"\\n                  "],[8,[30,10,["Icon"]],null,[["@name","@iconVariant"],["trash","outline"]],null],[1,"\\n                  "],[1,[28,[32,2],["manager.custom-breaks.delete-template"],null]],[1,"\\n                "]],[10]]]]],[1,"\\n"]],[]],null],[1,"            "]],[]]]]],[1,"\\n        "]],[4]]]]],[1,"\\n      "]],[3]]]]],[1,"\\n\\n    "],[13],[1,"\\n  "],[13],[1,"\\n"]],[]]]]]],["@isOpen","@onClose","form","propagator","layout","panel","c","c","c","b"],["div",":label","if","p",":primary",":secondary"]]',moduleName:"my-phorest/components/custom-breaks/slide-over/index.hbs",scope:()=>[ee.A,te.A,L.A,ne.A,ae.A,L.A,ie.A,le.A,re.A,R().A,oe.A,se.A,ue.A,de.A,ce.A,Z.A,v().on],isStrictMode:!1});
1n.d(t,["A",0,a])}),s=n.cw(function(e,t){n.r(t),C(),f();const a=(0,f().X)({id:"HmH1sf/G",block:'[[[8,[32,0],[[24,0,"px-4"]],[["@variant","@title","@backLink"],["max-w",[28,[32,1],["manager.business.custom-breaks"],null],"accounts.account.manager-business"]],[["content"],[[[[1,"\\n    "],[8,[32,2],null,[["@queryParamContext"],[[30,0]]],null],[1,"\\n    "],[46,[28,[37,2],null,null],null,null,null],[1,"\\n  "]],[]]]]]],[],[":content","component","-outlet"]]',moduleName:"my-phorest/templates/accounts/account/custom-breaks.hbs",scope:()=>[W.A,L.A,C().A],isStrictMode:!1});n.d(t,["default",0,a])}),u=n.cw(function(e,t){n.r(t),B(),M(),f();const a=(0,f().X)({id:"2RAoElrA",block:'[[[8,[32,0],null,[["@isOpen","@onClose"],[true,[28,[32,1],["accounts.account.custom-breaks"],null]]],null]],[],[]]',moduleName:"my-phorest/templates/accounts/account/custom-breaks/create.hbs",scope:()=>[B().A,M().A],isStrictMode:!1});n.d(t,["default",0,a])}),d=n.cw(function(e,t){n.r(t),B(),M(),f();const a=(0,f().X)({id:"cNRVN2zT",block:'[[[8,[32,0],null,[["@isOpen","@onClose","@customBreak"],[true,[28,[32,1],["accounts.account.custom-breaks"],null],[30,0,["model","data"]]]],null]],[],[]]',moduleName:"my-phorest/templates/accounts/account/custom-breaks/edit.hbs",scope:()=>[B().A,M().A],isStrictMode:!1});n.d(t,["default",0,a])}),c=()=>n(47903),m=()=>n(20107),k=()=>n(86500),p=()=>n(69120),b=()=>n(36760),v=()=>n(76753),h=()=>n(99675),g=()=>n(65015),y=()=>n(86407),f=()=>n(87589),A=()=>n(20049),N=n.cw(function(e,t){k(),a(),m();const i=(0,m().Et)(a().A,(0,k().A)(void 0,"cell-color"));n.d(t,["A",0,i])}),w=n.cw(function(e,t){k(),i(),m();const a=(0,m().Et)(i().A,(0,k().A)(void 0,"cell-duration"));n.d(t,["A",0,a])}),x=n.cw(function(e,t){k(),l(),m();const a=(0,m().Et)(l().A,(0,k().A)(void 0,"cell-paid"));n.d(t,["A",0,a])}),C=n.cw(function(e,t){var a,i,l,o,s;n.d(t,{A:()=>u}),c(),h(),y(),r(),m();let u=(a=class extends c().A{constructor(...e){super(...e),(0,j().A)(this,"apollo",i,this),(0,j().A)(this,"dataFetchManager",l,this),(0,j().A)(this,"router",o,this),(0,j().A)(this,"session",s,this)}get totalCount(){return this.queryCustomBreaksTask.lastSuccessful?.value?.totalCount}handleRowClick(e){this.router.replaceWith("accounts.account.custom-breaks.edit",e.rowValue.id)}modifyVariables(e){return{...e,branchId:this.session.branchId,orderBy:[{field:"NAME",direction:"ASC"}]}}*queryCustomBreaksTask(e={}){return yield this.apollo.query({query:I().A,variables:e,fetchPolicy:"network-only"},"customBreaks")}},i=(0,E().A)(a.prototype,"apollo",[J.mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,E().A)(a.prototype,"dataFetchManager",[y().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,E().A)(a.prototype,"router",[y().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,E().A)(a.prototype,"session",[y().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,E().A)(a.prototype,"handleRowClick",[h().XI],Object.getOwnPropertyDescriptor(a.prototype,"handleRowClick"),a.prototype),(0,E().A)(a.prototype,"modifyVariables",[h().XI],Object.getOwnPropertyDescriptor(a.prototype,"modifyVariables"),a.prototype),(0,E().A)(a.prototype,"queryCustomBreaksTask",[_.KB],Object.getOwnPropertyDescriptor(a.prototype,"queryCustomBreaksTask"),a.prototype),a);(0,m().Et)(r().A,u)}),B=n.cw(function(e,t){var a,i,l,r,s,u,d,k;n.d(t,{A:()=>p}),c(),h(),A(),y(),o(),m();let p=(k=new WeakSet,a=class extends c().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=k),t.add(e),(0,j().A)(this,"apollo",i,this),(0,j().A)(this,"confirmDialog",l,this),(0,j().A)(this,"dataFetchManager",r,this),(0,j().A)(this,"intl",s,this),(0,j().A)(this,"notifications",u,this),(0,j().A)(this,"customBreak",d,this),this.customBreak=this.constructCustomBreak()}constructCustomBreak(){return this.args.customBreak?.id?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")}
1(k,this,b).call(this,this.args.customBreak):{name:"",durationMins:null,color:"#595959",isPaid:!1}}get validationSchema(){return $.Ik().shape({name:$.Yj().required().max(100,{key:"validations.over-maximum",context:{max:100}}),durationMins:$.ai().required().positive().integer().max(1440),color:$.Yj().required(),isPaid:$.zM().required()})}get isNewCustomBreak(){return!this.customBreak.id}saveColor(e){const t=e.slice(0,-2);this.customBreak.color=t}async save(){this.isNewCustomBreak?await this.createCustomBreakTask.perform(this.customBreak):await this.updateCustomBreakTask.perform(this.customBreak),this.dataFetchManager.refetchDataFor("customBreaks"),this.args.onClose?.()}async deleteTemplate(){await this.deleteCustomBreakTask.perform(this.customBreak)}*createCustomBreakTask(e){yield this.apollo.mutate({mutation:V().A,variables:{input:{...e,durationMins:parseInt(e.durationMins)}},update:e=>{e.evict({id:"ROOT_QUERY",fieldName:"customBreaks"}),e.gc()}},"createCustomBreak")}*updateCustomBreakTask(e){yield this.apollo.mutate({mutation:D().A,variables:{id:e.id,input:{name:e.name,durationMins:parseInt(e.durationMins),isPaid:e.isPaid,color:e.color}}},"updateCustomBreak")}*deleteCustomBreakTask(e){(yield this.confirmDialog.ask({title:this.intl.t("global.delete"),message:this.intl.t("manager.custom-breaks.delete-confirmation-question"),continue:this.intl.t("global.delete"),cancel:this.intl.t("global.cancel")}))&&(yield this.apollo.mutate({mutation:T().A,variables:{id:e.id},update:e=>{e.evict({id:"ROOT_QUERY",fieldName:"customBreaks"})}},"archiveCustomBreak"),this.notifications.success(this.intl.t("manager.custom-breaks.delete-success-title"),this.intl.t("manager.custom-breaks.delete-success-description")),this.dataFetchManager.refetchDataFor("customBreaks"),this.args.onClose?.())}},i=(0,E().A)(a.prototype,"apollo",[J.mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,E().A)(a.prototype,"confirmDialog",[y().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=(0,E().A)(a.prototype,"dataFetchManager",[y().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,E().A)(a.prototype,"intl",[y().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),u=(0,E().A)(a.prototype,"notifications",[y().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,E().A)(a.prototype,"customBreak",[A().r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,E().A)(a.prototype,"saveColor",[h().XI],Object.getOwnPropertyDescriptor(a.prototype,"saveColor"),a.prototype),(0,E().A)(a.prototype,"save",[h().XI],Object.getOwnPropertyDescriptor(a.prototype,"save"),a.prototype),(0,E().A)(a.prototype,"deleteTemplate",[h().XI],Object.getOwnPropertyDescriptor(a.prototype,"deleteTemplate"),a.prototype),(0,E().A)(a.prototype,"createCustomBreakTask",[_.Fs],Object.getOwnPropertyDescriptor(a.prototype,"createCustomBreakTask"),a.prototype),(0,E().A)(a.prototype,"updateCustomBreakTask",[_.Fs],Object.getOwnPropertyDescriptor(a.prototype,"updateCustomBreakTask"),a.prototype),(0,E().A)(a.prototype,"deleteCustomBreakTask",[_.Fs],Object.getOwnPropertyDescriptor(a.prototype,"deleteCustomBreakTask"),a.prototype),a);function b(e){const{color:t,...n}=e;return{...n,color:t?.hex}}(0,m().Et)(o().A,p)}),S=n.cw(function(e,t){var a,i;n.r(t),n.d(t,{default:()=>l}),p(),A();let l=(a=class extends p().Ay{constructor(...e){super(...e),(0,H.A)(this,"queryParams",["pageCursor"]),(0,j().A)(this,"pageCursor",i,this)}},i=(0,E().A)(a.prototype,"pageCursor",[A().r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)}),F=()=>n(32628),T=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ArchiveCustomBreak"},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:"archiveCustomBreak"},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:"customBreak"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:111}}])}),V=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateCustomBreak"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateCustomBreakInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createCustomBreak"},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:"customBreak"},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:"durationMins"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hex"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isPaid"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:215}}])}),D=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateCustomBreak"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateCustomBreakInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateCustomBreak"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{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:"customBreak"},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:"durationMins"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hex"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isPaid"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:234}}])}),P=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CustomBreak"},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:"customBreak"},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:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"durationMins"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hex"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isPaid"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:133}}])}),I=()=>n(16133),O=()=>n(40231),M=()=>n(63051),R=()=>n(53557),q=n.cw(function(e,t){var a;n.r(t),n.d(t,{default:()=>i}),g(),F();let i=(0,F().guardWithPermission)("business.view")(a=class extends g().Ay{})||a}),z=n.cw(function(e,t){var a,i,l;n.r(t),n.d(t,{default:()=>r}),g(),F();let r=(0,F().guardWithPermission)("breaks.edit")((i=class extends g().Ay{constructor(...e){super(...e),(0,j().A)(this,"apollo",l,this)}async model(e){let t,n={id:e.id};return t=await this.apollo.query({query:P().A,variables:n,fetchPolicy:"network-only"},"customBreak"),{data:t}}},l=(0,E().A)(i.prototype,"apollo",[J.mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a=i))||a}),E=()=>n(1808),j=()=>n(30376),X=n(89878),W=n(59421),L=n(43087),J=n(12871),_=n(6845),U=n(15476),G=n(80791),K=n(43489),Y=n(82470),Q=n(67846),Z=n(18650),H=n(52874),$=n(6416),ee=n(42556),te=n(97108),ne=n(96953),ae=n(63014),ie=n(74219),le=n(27308),re=n(77323),oe=n(12455),se=n(40917),ue=n(11840),de=n(65530),ce=n(65846);let me=window.define;me("my-phorest/templates/accounts/account/custom-breaks",function(){return(0,X.A)(s())}),me("my-phorest/controllers/accounts/account/custom-breaks",function(){return(0,X.A)(S())}),me("my-phorest/routes/accounts/account/custom-breaks",function(){return(0,X.A)(q())}),me("my-phorest/templates/accounts/account/custom-breaks/edit",function(){return(0,X.A)(d())}),me("my-phorest/routes/accounts/account/custom-breaks/edit",function(){return(0,X.A)(z())}),me("my-phorest/templates/accounts/account/custom-breaks/create",function(){return(0,X.A)(u())})}
1,67846(e,t,n){n.d(t,{A:()=>u});var a=n(47903),i=n(80442),l=n(65530),r=n(4198);const o=(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:()=>[i.A,l.A,r.A],isStrictMode:!1});var s=n(20107);class u extends a.A{get actionsBarContainer(){return this.args.customContainerToRender?this.args.customContainerToRender:document.getElementById("actions-bar-container")}}(0,s.Et)(o,u)},80791(e,t,n){n.d(t,{A:()=>u});var a=n(47903),i=n(62354),l=n(43489),r=n(36760);const o=(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 s=n(20107);class u extends a.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,i.valueFromPath)(this.args.row,this.args.textField):null}}(0,s.Et)(o,u)},43489(e,t,n){n.d(t,{A:()=>b});var a=n(30376),i=n(52874),l=n(1808),r=n(47903),o=n(20049),s=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,k,p=n(20107);let b=(m=class extends r.A{constructor(...e){super(...e),(0,a.A)(this,"textIsFullyVisible",k,this),(0,i.A)(this,"addTextResizeListener",(0,s.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}},k=(0,l.A)(m.prototype,"textIsFullyVisible",[o.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),m);(0,p.Et)(c,b)},16133(e,t,n){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CustomBreaks"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"branchId"}},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:"orderBy"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CustomBreaksOrderBy"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"customBreaks"},arguments:[{kind:"Argument",name:{kind:"Name",value:"branchId"},value:{kind:"Variable",name:{kind:"Name",value:"branchId"}}},{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:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{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:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"durationMins"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hex"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"isPaid"},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:"totalCount"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:425}}])},63051(e,t,n){n.d(t,{A:()=>u});var a,i,l=n(30376),r=n(1808),o=n(27583),s=n(86407);let u=(a=class extends o.A{constructor(...e){super(...e),(0,l.A)(this,"router",i,this)}compute([e,{models:t=[]}={}],{queryParams:n}){return()=>t.length>0?this.router.replaceWith(e,...t,{queryParams:{...n}}):this.router.replaceWith(e,{queryParams:{...n}})}},i=(0,r.A)(a.prototype,"router",[s.eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)}}]);
2//# sourceMappingURL=282a09bc2de2eb74db35.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.