PageSourceSearch

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

js phorest.com collected 2026-09-24 08:45:14 UTC 41,514 bytes, 3 lines download raw bytes

1/*! For license information please see a30f66830e8a653d6ff2.js.LICENSE.txt */
2"use strict";(self.webpackChunkmy_phorest=self.webpackChunkmy_phorest||[]).push([[9538],{89538(e,t,n){var a=n.cw(function(e,t){h(),f();const a=(0,f().X)({id:"HLNJ0loR",block:'[[[44,[[28,[32,0],[[30,1],[30,2]],null]],[[[1,"\\n  "],[10,1],[14,0,"text-primary text-sm truncate text-left"],[12],[1,"\\n    "],[1,[28,[32,1],[".",[30,3]],null]],[1,"\\n  "],[13],[1,"\\n\\n"]],[3]]]],["@row","@name","name"],["let","span"]]',moduleName:"my-phorest/components/dot-phrase-library/-dot-phrase-name-cell.hbs",scope:()=>[h().Jt,h().xW],isStrictMode:!1});n.d(t,["A",0,a])}),i=n.cw(function(e,t){h(),f();const a=(0,f().X)({id:"ahu0ixay",block:'[[[44,[[28,[32,0],[[30,1],[30,2]],null],[28,[32,0],[[30,1],[30,3]],null]],[[[1,"\\n  "],[10,1],[14,0,"text-primary text-sm truncate text-left"],[12],[1,"\\n"],[41,[30,4],[[[1,"      "],[1,[28,[32,1],["dot-phrase-library.visibility-cell.everyone"],null]],[1,"\\n"]],[]],[[[1,"      "],[1,[30,5]],[1,"\\n"]],[]]],[1,"  "],[13],[1,"\\n\\n"]],[4,5]]]],["@row","@shared","@name","shared","name"],["let","span","if"]]',moduleName:"my-phorest/components/dot-phrase-library/-v
2isibility-cell.hbs",scope:()=>[h().Jt,L.A],isStrictMode:!1});n.d(t,["A",0,a])}),l=n.cw(function(e,t){I(),f();const a=(0,f().X)({id:"6Xef6lqu",block:'[[[8,[32,0],null,[["@title","@backLink","@backText"],[[52,[30,1],[28,[32,1],["dot-phrase-library.form.create-new"],null],[30,0,["dotPhrase","name"]]],"accounts.account.dot-phrase-library",[28,[32,1],["global.back"],null]]],[["content"],[[[[1,"\\n    "],[8,[32,2],[[24,3,"dot-phrase-settings"],[17,2]],[["@onSubmit","@hasChanges","@resetChanges","@onDiscard","@validationSchema","@validationModel"],[[28,[32,3],[[30,0,["saveTask"]]],null],[30,0,["dotPhrase","hasChanges"]],[30,0,["resetForm"]],[30,0,["resetForm"]],[30,0,["validationSchema"]],[30,0,["dotPhrase"]]]],[["default"],[[[[1,"\\n      "],[8,[30,3,["ErrorPropagator"]],null,null,[["default"],[[[[1,"\\n        "],[10,0],[14,0,"mt-14"],[12],[1,"\\n          "],[8,[30,3,["TwoColumnCardsLayout"]],null,null,[["default"],[[[[1,"\\n            "],[8,[30,5,["Title"]],[[24,0,"text-lg font-bold mb-4 text-center"]],null,[["default"],[[[[1,"\\n              "],[1,[28,[32,4],["dot-phrase-library.form.dot-phrase-details"],null]],[1,"\\n            "]],[]]]]],[1,"\\n            "],[8,[30,5,["Panel"]],null,null,[["default"],[[[[1,"\\n              "],[10,0],[14,0,"space-y-6"],[12],[1,"\\n                "],[8,[30,3,["InputGroup"]],null,[["@label","@error","@helpText"],["Name",[30,4,["errors","name"]],[28,[32,1],["dot-phrase-library.form.this-is-the-name"],null]]],[["default"],[[[[1,"\\n                  "],[8,[30,6,["Input"]],[[24,0,"200%"],[24,3,"dot-phrase-name"],[16,"placeholder",[28,[32,1],["dot-phrase-library.form.enter-the-name"],null]],[16,"disabled",[30,0,["dotPhrase","archived"]]]],[["@type","@leadingAddon","@value","@onInput"],["text","•",[30,0,["dotPhrase","name"]],[30,0,["handleNameInput"]]]],null],[1,"\\n                "]],[6]]]]],[1,"\\n\\n                "],[8,[30,3,["InputGroup"]],null,[["@label","@error"],[[28,[32,1],["dot-phrase-library.form.description"],null],[30,4,["errors","description"]]]],[["default"],[[[[1,"\\n                  "],[8,[30,7,["Textarea"]],[[24,3,"dot-phrase-description"],[16,2,[30,0,["dotPhrase","description"]]],[16,"onInput",[28,[32,5],["target.value",[28,[32,6],[[30,0,["dotPhrase"]],"description"],null]],null]],[16,"placeholder",[28,[32,1],["dot-phrase-library.form.briefly-describe"],null]],[16,"disabled",[30,0,["dotPhrase","archived"]]],[4,[32,7],[250],null]],null,null],[1,"\\n                "]],[7]]]]],[1,"\\n\\n                "],[8,[30,3,["InputGroup"]],null,[["@label","@error","@helpText"],[[28,[32,1],["dot-phrase-library.form.phrase"],null],[30,4,["errors","content"]],[28,[32,1],["dot-phrase-library.form.the-content-will-show"],null]]],[["default"],[[[[1,"\\n                  "],[8,[30,8,["Textarea"]],[[24,3,"dot-phrase-content"],[24,0,"h-48"],[16,2,[30,0,["dotPhrase","content"]]],[16,"onInput",[28,[32,5],["target.value",[28,[32,6],[[30,0,["dotPhrase"]],"content"],null]],null]],[16,"disabled",[30,0,["dotPhrase","archived"]]],[16,"placeholder",[28,[32,1],["dot-phrase-library.form.add-full-content"],null]]],null,null],[1,"\\n                "]],[8]]]]],[1,"\\n\\n                "],[8,[30,3,["InputGroup"]],null,[["@label"],[[28,[32,1],["dot-phrase-library.form.who-can-use"],null]]],[["default"],[[[[1,"\\n                  "],[8,[30,9,["RadioGroup"]],[[24,3,"dot-phrased-shared"]],[["@value","@onChange","@disabled"],[[30,0,["dotPhrase","shared"]],[28,[32,6],[[30,0],"dotPhrase.shared"],null],[30,0,["dotPhrase","archived"]]]],[["default"],[[[[1,"\\n                    "],[10,0],[14,0,"space-x-6 flex items-center"],[12],[1,"\\n                      "],[8,[30,10,["Option"]],[[24,3,"dot-phrase-shared-only-me"]],[["@optionValue","@label","@disabled"],[false,[52,[30,1],[28,[32,1],["dot-phrase-library.form.only-me"],null],[28,[32,1],["dot-phrase-library.form.only-staff"],[["name"],[[30,0,["dotPhrase","createdByStaff","name"]]]]]],[30,0,["dotPhrase","archived"]]]],null],[1,"\\n                      "],[8,[30,10,["Option"]],[[24,3,"dot-phrase-shared-everyone"]],[["@optionValue","@label","@disabled"],[true,[28,[32,1],["dot-phrase-library.form.everyone"],null],[30,0,["dotPhrase","archived"]]]],null],[1,"\\n                    "],[13],[1,"\\n                  "]],[10]]]]],[1,"\\n                "]],[9]]]]],[1,"\\n              "],[13],[1,"\\n            "]],[]]]]],[1,"\\n          "]],[5]]]]],[1,"\\n        "],[13],[1,"\\n      "]],[4]]]]],[1,"\\n    "]],[3]]]]],[1,"\\n  "]],[]]]]]],["@isNew","&attrs","form","propagator","layout","c","c","c","c","group"],["if",":content","div"]]',moduleName:"my-phorest/components/dot-phrase-library/form/index.hbs",scope:()=>[q.A,L.A,$.A,ee.A,L.A,te.A,ne.A,I().A],isStrictMode:!1});
2n.d(t,["A",0,a])}),r=n.cw(function(e,t){V(),A(),N(),b(),f();const a=(0,f().X)({id:"ikMf4szc",block:'[[[8,[32,0],[[24,0,"pt-2"]],[["@queryTask","@queryParamContext","@dataFetchCounter","@onRowClick","@preserveFalsyFilters"],[[30,0,["queryDotPhraseTask"]],[30,1],[30,2],[30,0,["handleRowClick"]],true]],[["default"],[[[[1,"\\n\\n  "],[8,[30,3,["FiltersBar"]],null,null,[["default"],[[[[1,"\\n\\n    "],[8,[30,4,["SearchFilter"]],[[24,0,"flex-1"]],[["@name","@queryVariable","@placeholder"],["dot-phrase-text-filter","text",[28,[32,1],["dot-phrase-library.search-bar-placeholder"],null]]],null],[1,"\\n    "],[8,[30,4,["StaffMemberFilter"]],null,[["@queryVariable","@emptyOptionLabel"],["createdByStaffId",[28,[32,1],["dot-phrase-library.staff-filter-label"],null]]],null],[1,"\\n    "],[8,[30,4,["VisibilityFilter"]],null,[["@queryVariable","@shared"],["shared",[30,5]]],null],[1,"\\n  "]],[4]]]]],[1,"\\n\\n  "],[8,[30,3,["UiTable"]],null,null,[["default"],[[[[1,"\\n    "],[8,[30,6,["Columns"]],null,null,[["default"],[[[[1,"\\n"],[41,[28,[32,2],["dot-phrases.edit"],null],[[[1,"        "],[8,[30,7,["Column"]],null,[["@srLabel","@bulkSelect","@component","@width","@minWidth","@cellClasses","@isResizable"],[[28,[32,1],["accessibility.select-row"],null],false,[50,[32,3],0,null,null],2,2,"px-2!",false]],null],[1,"\\n"]],[]],null],[1,"      "],[8,[30,7,["Column"]],null,[["@name","@component","@cellClasses"],[[28,[32,1],["dot-phrase-library.dot-phrase-name"],null],[50,[32,4],0,null,[["name"],["name"]]],"overflow-hidden"]],null],[1,"\\n      "],[8,[30,7,["Column"]],null,[["@name","@component"],[[28,[32,1],["dot-phrase-library.description"],null],[50,[32,5],0,null,[["textField"],["description"]]]]],null],[1,"\\n      "],[8,[30,7,["Column"]],null,[["@name","@component"],[[28,[32,1],["dot-phrase-library.created-by"],null],[50,[32,5],0,null,[["textField"],["createdByStaff.name"]]]]],null],[1,"\\n      "],[8,[30,7,["Column"]],null,[["@name","@component"],[[28,[32,1],["dot-phrase-library.visibility"],null],[50,[32,6],0,null,[["shared","name"],["shared","createdByStaff.name"]]]]],null],[1,"\\n    "]],[7]]]]],[1,"\\n  "]],[6]]]]],[1,"\\n  "],[8,[30,3,["PaginationBar"]],null,null,null],[1,"\\n  "],[8,[30,3,["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,1],["filters.empty.title"],null],[28,[32,1],["dot-phrase-library.empty-list"],null]]],null],[1,"\\n  "]],[]]]]],[1,"\\n"]],[3]]]]],[1,"\\n"],[8,[32,8],null,[["@show","@bgColor"],[true,"bg-theme"]],[["secondaryActions","default"],[[[[1,"\\n"],[41,[28,[32,2],["dot-phrases.edit"],null],[[[1,"      "],[8,[32,9],null,[["@deleteTask","@title","@description"],[[30,0,["bulkDeleteTask"]],[28,[32,1],["dot-phrase-library.delete-dot-phrase-modal.title"],null],[28,[32,1],["dot-phrase-library.delete-dot-phrase-modal.description"],null]]],null],[1,"\\n"]],[]],null],[1,"  "]],[]],[[[1,"\\n    "],[8,[32,10],[[24,3,"add-dot-phrase"],[4,[32,12],["click",[30,0,["handleAddDotPhrase"]]],null]],[["@variant","@disabled"],["primary",[28,[32,11],[[28,[32,2],["dot-phrases.create"],null]],null]]],[["default"],[[[[1,"\\n      "],[10,1],[14,0,"flex"],[12],[1,"\\n        "],[8,[30,8,["Icon"]],null,[["@name"],["plus"]],null],[1,"\\n        "],[1,[28,[32,13],["dot-phrase-library.create-new"],null]],[1,"\\n      "],[13],[1,"\\n    "]],[8]]]]],[1,"\\n  "]],[]]]]]],["@queryParamContext","@dataFetchCounter","PageTable","bar","@shared","T","TC","b"],["if","component",":secondaryActions",":default","span"]]',moduleName:"my-phorest/components/dot-phrase-library/list.hbs",scope:()=>[W.A,L.A,V().A,J.A,A().A,_.A,N().A,U.A,G.A,Z.A,H.A,K.A,b().on,L.A],isStrictMode:!1});n.d(t,["A",0,a])}),o=n.cw(function(e,t){n.r(t),D(),f();const a=(0,f().X)({id:"36nE9BC+",block:'[[[8,[32,0],null,[["@dotPhrase"],[[30,0,["model"]]]],null],[1,"\\n\\n"],[46,[28,[37,1],null,null],null,null,null]],[],["component","-outlet"]]',moduleName:"my-phorest/templates/accounts/account/dot-phrase-library/edit.hbs",scope:()=>[D().A],isStrictMode:!1});n.d(t,["default",0,a])}),s=n.cw(function(e,t){n.r(t),T(),h(),O(),f();const a=(0,f().X)({id:"ZU/Ri4j6",block:'[[[8,[32,0],null,[["@title","@backLink","@backText"],[[28,[32,1],["dot-phrase-library.page-title"],null],"accounts.account.manager-consultations",[28,[32,1],["global.back"],null]]],[["content"],[[[[1,"\\n    "],[8,[32,2],null,[["@queryParamContext","@dataFetchCounter"],[[30,0],[28,[32,3],[[28,[32,4],["dataFetchManager"],null],"counters.dotPhrases"],null]]],null],[1,"\\n  "]],[]]]]],[1,"\\n\\n"],[46,[28,[37,2],null,
2null],null,null,null]],[],[":content","component","-outlet"]]',moduleName:"my-phorest/templates/accounts/account/dot-phrase-library/index.hbs",scope:()=>[q.A,L.A,T().A,h().Jt,O().A],isStrictMode:!1});n.d(t,["default",0,a])}),d=n.cw(function(e,t){n.r(t),D(),f();const a=(0,f().X)({id:"GUyVCJXZ",block:'[[[8,[32,0],null,[["@isNew"],[true]],null],[1,"\\n\\n"],[46,[28,[37,1],null,null],null,null,null]],[],["component","-outlet"]]',moduleName:"my-phorest/templates/accounts/account/dot-phrase-library/new.hbs",scope:()=>[D().A],isStrictMode:!1});n.d(t,["default",0,a])}),u=()=>n(47903),c=()=>n(20107),m=()=>n(86500),p=()=>n(69120),h=()=>n(36760),b=()=>n(76753),k=()=>n(99675),y=()=>n(65015),v=()=>n(86407),f=()=>n(87589),g=()=>n(20049),A=n.cw(function(e,t){m(),a(),c();const i=(0,c().Et)(a().A,(0,m().A)(void 0,"-dot-phrase-name-cell"));n.d(t,["A",0,i])}),N=n.cw(function(e,t){m(),i(),c();const a=(0,c().Et)(i().A,(0,m().A)(void 0,"-visibility-cell"));n.d(t,["A",0,a])}),w=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"bulkArchiveDotPhrases"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"bulkRequest"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SimpleBulkRequestInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkArchiveDotPhrases"},arguments:[{kind:"Argument",name:{kind:"Name",value:"bulkRequest"},value:{kind:"Variable",name:{kind:"Name",value:"bulkRequest"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:141}}])}),S=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateDotPhrase"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"content"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shared"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"staffId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createDotPhrase"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"ObjectField",name:{kind:"Name",value:"content"},value:{kind:"Variable",name:{kind:"Name",value:"content"}}},{kind:"ObjectField",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"ObjectField",name:{kind:"Name",value:"shared"},value:{kind:"Variable",name:{kind:"Name",value:"shared"}}},{kind:"ObjectField",name:{kind:"Name",value:"staffId"},value:{kind:"Variable",name:{kind:"Name",value:"staffId"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:303}}])}),x=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DotPhrase"},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:"dotPhrase"},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:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"archived"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shared"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdByStaffId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdByStaff"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:207}}])}),D=n.cw(function(e,t){var a,i,r,o,s,d,m,p;function h(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:()=>y}),u(),g(),z(),k(),v(),l(),c();const b={name:"",description:"",content:"",shared:!1};let y=(p=new WeakSet,a=class extends u().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=p),t.add(e),(0,M().A)(this,"notifications",i,this),(0,M().A)(this,"intl",r,this),(0,M().A)(this,"router",o,this),(0,M().A)(this,"session",s,this),(0,M().A)(this,"apollo",d,this),(0,M().A)(this,"dotPhrase",m,this),this.resetForm()}resetForm(){this.args.dotPhrase?this.dotPhrase=(0,z().default)(this.args.dotPhrase):this.dotPhrase=(0,z().default)(b)}handleNameInput(e){const{target:t}=e,n=h(p,this,f).call(this,t.value);t.value=n,n!==this.dotPhrase.name&&(0,k().hZ)(this,"dotPhrase.name",n)}get validationSchema(){return Q.Ik().shape({name:Q.Yj().required(),content:Q.Yj().required()})}*saveTask(){try{const e=this.mutationPayload;yield this.apollo.mutate(e),this.dotPhrase.hasChanges=!1,h(p,this,A).call(this)}catch(e){h(p,this,N).call(this,e)}}get mutationPayload(){return{mutation:this.args.isNew?S().A:P().A,variables:{id:this.args.dotPhrase?.id||void 0,name:h(p,this,f).call(this,this.dotPhrase.name),content:this.dotPhrase.content,description:this.dotPhrase.description||void 0,shared:this.dotPhrase.shared,staffId:this.session.currentStaffMemberId}}}},i=(0,j().A)(a.prototype,"notifications",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),r=(0,j().A)(a.prototype,"intl",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,j().A)(a.prototype,"router",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,j().A)(a.prototype,"session",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,j().A)(a.prototype,"apollo",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,j().A)(a.prototype,"dotPhrase",[g().r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return(0,z().default)(b)}}),(0,j().A)(a.prototype,"resetForm",[k().XI],Object.getOwnPropertyDescriptor(a.prototype,"resetForm"),a.prototype),(0,j().A)(a.prototype,"handleNameInput",[k().XI],Object.getOwnPropertyDescriptor(a.prototype,"handleNameInput"),a.prototype),(0,j().A)(a.prototype,"saveTask",[X.Fs],Object.getOwnPropertyDescriptor(a.prototype,"saveTask"),a.prototype),a);function f(e){return e.toLowerCase().replaceAll(/[\W_]/g,"").replace(/^\d/,"").substring(0,50)}function A(){this.notifications.success(this.intl.t(this.args.isNew?"dot-phrase-library.form.successfully-created":"dot-phrase-library.form.successfully-updated")),this.router.transitionTo("accounts.account.dot-phrase-library")}function N(e){const t=e?.errors?.[0]?.extensions?.errors?.[0]?.code;let n;if(this.session.isGlobalUser)n=this.intl.t("dot-phrase-library.global-user-error");else{if("DOT_PHRASE_DUPLICATE_NAME"!==t)throw e;n=this.intl.t("dot-phrase-library.duplicate-name-error")}this.notifications.failure(this.intl.t("global.error-notification-title"),n,{sticky:!0})}(0,c().Et)(l().A,y)}),P=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateDotPhrase"}
2,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:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"content"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"description"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shared"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"staffId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateDotPhrase"},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:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"ObjectField",name:{kind:"Name",value:"content"},value:{kind:"Variable",name:{kind:"Name",value:"content"}}},{kind:"ObjectField",name:{kind:"Name",value:"description"},value:{kind:"Variable",name:{kind:"Name",value:"description"}}},{kind:"ObjectField",name:{kind:"Name",value:"shared"},value:{kind:"Variable",name:{kind:"Name",value:"shared"}}},{kind:"ObjectField",name:{kind:"Name",value:"staffId"},value:{kind:"Variable",name:{kind:"Name",value:"staffId"}}},{kind:"ObjectField",name:{kind:"Name",value:"archived"},value:{kind:"BooleanValue",value:!1}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:348}}])}),F=n.cw(function(e,t){n.d(t,["A",0,{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"DotPhrases"},variableDefinitions:[{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:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DotPhraseFilterBy"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dotPhrases"},arguments:[{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:"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:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"archived"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"updatedAt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"shared"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdByStaffId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"createdByStaff"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:403}}])}),T=n.cw(function(e,t){var a,i,l,o,s,d,m,p;n.d(t,{A:()=>h}),u(),v(),k(),r(),c();let h=(a=class extends u().A{constructor(...e){super(...e),(0,M().A)(this,"apollo",i,this),(0,M().A)(this,"router",l,this),(0,M().A)(this,"access",o,this),(0,M().A)(this,"notifications",s,this),(0,M().A)(this,"intl",d,this),(0,M().A)(this,"tableSelection",m,this),(0,M().A)(this,"dataFetchManager",p,this)}handleAddDotPhrase(){this.router.transitionTo("accounts.account.dot-phrase-library.new")}sanitizeText(e){return e?.replace(/^\./,"")}*queryDotPhraseTask(e={}){return e.filterBy?.text&&(e.filterBy.text=this.sanitizeText(e.filterBy.text)),yield this.apollo.query({query:F().A,variables:e,fetchPolicy:"network-only"},"dotPhrases")}handleRowClick(e){this.access.hasPermission("dot-phrases.edit")&&e.columnMeta.index>0&&this.router.transitionTo("accounts.account.dot-phrase-library.edit",e.rowValue.id)}get isShowingArchivedOnly(){if(this.args.queryParamContext?.filters)return JSON.parse(this.args.queryParamContext.filters).archived}*bulkDeleteTask(e){const t=(yield this.apollo.mutate({mutation:w().A,variables:{bulkRequest:{selectedIds:e}},update:e=>{e.evict({id:"ROOT_QUERY",fieldName:"dotPhrases"}),e.gc()}})).bulkArchiveDotPhrases.count;this.notifications.success(this.intl.t("dot-phrase-library.delete-dot-phrase-modal.successfully-deleted",{count:t})),this.tableSelection.reset(),this.dataFetchManager.refetchDataFor(this.args.dataFetchName)}},i=(0,j().A)(a.prototype,"apollo",[E.mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,j().A)(a.prototype,"router",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),o=(0,j().A)(a.prototype,"access",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),s=(0,j().A)(a.prototype,"notifications",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),d=(0,j().A)(a.prototype,"intl",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),m=(0,j().A)(a.prototype,"tableSelection",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),p=(0,j().A)(a.prototype,"dataFetchManager",[v().eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,j().A)(a.prototype,"handleAddDotPhrase",[k().XI],Object.getOwnPropertyDescriptor(a.prototype,"handleAddDotPhrase"),a.prototype),(0,j().A)(a.prototype,"queryDotPhraseTask",[X.KB],Object.getOwnPropertyDescriptor(a.prototype,"queryDotPhraseTask"),a.prototype),(0,j().A)(a.prototype,"handleRowClick",[k().XI],Object.getOwnPropertyDescriptor(a.prototype,"handleRowClick"),a.prototype),(0,j().A)(a.prototype,"bulkDeleteTask",[X.KB],Object.getOwnPropertyDescriptor(a.prototype,"bulkDeleteTask"),a.prototype),a);(0,c().Et)(r().A,h)}),C=n.cw(function(e,t){var a,i,l;n.r(t),n.d(t,{default:()=>r}),p(),g();let r=(a=class extends p().Ay{constructor(...e){super(...e),(0,Y.A)(this,"queryParams",["pageCursor","filters"]),(0,M().A)(this,"pageCursor",i,this),(0,M().A)(this,"filters",l,this)}},i=(0,j().A)(a.prototype,"pageCursor",[g().r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),l=(0,j().A)(a.prototype,"filters",[g().r],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)}),V=()=>n(60700),O=()=>n(20197),I=()=>n(1744),B=n.cw(function(e,t){var a,i;n.r(t),n.d(t,{default:()=>l}),y();let l=(a=class extends y().Ay{constructor(...e){super(...e),(0,M().A)(this,"apollo",i,this)}async model(e){const t={id:e.id};return await this.apollo.query({query:x().A,variables:t,fetchPolicy:"network-only"},"dotPhrase")}},i=(0,j().A)(a.prototype,"apollo",[E.mh],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)}),z=()=>n(45762),j=()=>n(1808),M=()=>n(30376),R=n(89878),q=n(59421),L=n(43087),X=n(6845),E=n(12871),W=n(15476),J=n(75451),_=n(80791),U=n(82470),G=n(67846),Z=n(16892),H=n(18650),K=n(65530),Y=n(52874),Q=n(6416),$=n(24749),ee=n(4454),te=n(27308),ne=n(77323);let ae=window.define;ae("my-phorest/templates/accounts/account/dot-phrase-library/index",function(){return(0,R.A)(s())}),ae("my-phorest/controllers/accounts/account/dot-phrase-library/index",function(){return(0,R.A)(C())}),ae("my-phorest/templates/accounts/account/dot-phrase-library/edit",function(){return(0,R.A)(o())}),ae("my-phorest/routes/accounts/account/dot-phrase-library/edit",function(){return(0,R.A)(B())}),ae("my-phorest/templates/accounts/account/dot-phrase-library/new",function(){return(0,R.A)(d())})},16892(e,t,n){n.d(t,{A:()=>A});var a=n(30376),i=n(1808),l=n(6845),r=n(86407),o=n(47903),s=n(20049),d=n(18650),u=n(12455),c=n(76753),m=n(77323),p=n(43087),h=n(73743),b=n(4454);const k=(0,n(87589).X)({id:"tH3aU/IZ",block:'[[[8,[32,0],[[24,3,"bulk-delete"],[4,[32,2],["click",[28,[32,3],[[30,0],"confirmDeleteModalOpen",true],null]],null]],[["@variant","@disabled"],["tertiary",[28,[32,1],[[30,1],[30,0,["tableSelection","noneSelected"]]],null]]],[["default"],[[[[1,"\\n  "],[10,1],[14,0,"flex"],[12],[1,"\\n    "],[8,[30,2,["Icon"]],null,[["@name","@iconVariant"],["trash","outline"]],null],[1,"\\n    "],[1,[28,[32,4],["global.delete"],null]],[1,"\\n  "],[13],[1,"\\n"]],[2]]]]],[1,"\\n\\n"],[8,[32,5],[[24,3,"confirm-bulk-delete"]],[["@title","@description","@isOpen","@onClose","@leadingIcon","@variantIcon"],[[30,3],[30,4],[3
20,0,["confirmDeleteModalOpen"]],[28,[32,3],[[30,0],"confirmDeleteModalOpen",false],null],"exclamation","danger"]],[["body","secondaryButtons","primaryButtons"],[[[[1,"\\n    "],[18,7,null],[1,"\\n  "]],[]],[[[1,"\\n    "],[8,[30,5,["CancelButton"]],null,null,null],[1,"\\n  "]],[5]],[[[1,"\\n    "],[8,[30,6,["DangerButton"]],[[4,[32,2],["click",[28,[32,6],[[30,0,["handleBulkDeleteTask"]]],null]],null]],[["@showLoading"],[[30,0,["handleBulkDeleteTask","isRunning"]]]],[["default"],[[[[1,[28,[32,4],["global.delete"],null]]],[]]]]],[1,"\\n  "]],[6]]]]]],["@disabled","b","@title","@description","buttons","buttons","&default"],["span",":body","yield",":secondaryButtons",":primaryButtons"]]',moduleName:"my-phorest/components/bulk-delete-button/index.hbs",scope:()=>[d.A,u.A,c.on,m.A,p.A,h.A,b.A],isStrictMode:!1});var y,v,f,g=n(20107);let A=(y=class extends o.A{constructor(...e){super(...e),(0,a.A)(this,"confirmDeleteModalOpen",v,this),(0,a.A)(this,"tableSelection",f,this)}*handleBulkDeleteTask(){const{selectedIds:e}=this.tableSelection;yield this.args.deleteTask.perform(e),this.tableSelection.reset(),this.confirmDeleteModalOpen=!1}},v=(0,i.A)(y.prototype,"confirmDeleteModalOpen",[s.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),f=(0,i.A)(y.prototype,"tableSelection",[r.eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.A)(y.prototype,"handleBulkDeleteTask",[l.Fs],Object.getOwnPropertyDescriptor(y.prototype,"handleBulkDeleteTask"),y.prototype),y);(0,g.Et)(k,A)},24749(e,t,n){n.d(t,{A:()=>w});var a=n(30376),i=n(52874),l=n(1808),r=n(47903),o=n(99675),s=n(86407),d=n(96953),u=n(67846),c=n(6770),m=n(12455),p=n(65530),h=n(43087),b=n(76753),k=n(74219);const y=(0,n(87589).X)({id:"gM3q4IIJ",block:'[[[8,[32,0],[[17,1]],[["@onSubmit","@validationModel","@validationSchema"],[[30,2],[30,3],[30,4]]],[["default"],[[[[1,"\\n  "],[1,[28,[30,0,["captureFormSubmit"]],[[30,5,["submit"]]],null]],[1,"\\n  "],[8,[32,1],null,[["@show","@label","@bgColor","@customContainerToRender"],[[28,[32,2],[[28,[32,3],[[30,6],[30,7],false],null],[28,[32,4],[[30,8]],null]],null],[28,[32,3],[[30,9],[28,[32,5],["global.unsaved-changes"],null]],null],[28,[32,3],[[30,10],"bg-primary"],null],[30,11]]],[["default","secondary"],[[[[1,"\\n"],[41,[30,2],[[[1,"        "],[8,[30,5,["Button"]],[[24,3,"actions-bar-save-changes-button"],[24,4,"submit"],[4,[32,6],["click",[30,5,["submit"]]],null]],[["@variant","@disabled"],["primary",[30,5,["isSubmitting"]]]],[["default"],[[[[1,"\\n          "],[10,0],[14,0,"flex items-center justify-center h-6"],[12],[1,[28,[32,7],[[30,12],[28,[32,5],["global.save-changes"],null]],null]],[13],[1,"\\n        "]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]],[[[1,"\\n"],[41,[30,13],[[[1,"        "],[8,[30,5,["Button"]],[[24,3,"actions-bar-discard-button"],[24,4,"reset"],[4,[32,6],["click",[28,[32,8],[[30,5,["clearValidationMessages"]],[30,0,["discardChanges"]]],null]],null]],[["@variant","@disabled"],["tertiary",[30,5,["isSubmitting"]]]],[["default"],[[[[1,"\\n          "],[10,0],[14,0,"flex items-center justify-center h-6"],[12],[1,"\\n            "],[1,[28,[32,9],["global.discard"],null]],[1,"\\n          "],[13]],[]]]]],[1,"\\n"]],[]],null],[1,"    "]],[]]]]],[1,"\\n\\n  "],[18,14,[[30,5]]],[1,"\\n\\n"]],[5]]]]]],["&attrs","@onSubmit","@validationModel","@validationSchema","form","@show","@hasChanges","@hideUnsavedChangesBar","@actionBarLabel","@bgColor","@customContainerToRender","@submitButtonLabel","@onDiscard","&default"],[":default","if","div",":secondary","yield"]]',moduleName:"my-phorest/components/form/save-changes/index.hbs",scope:()=>[d.A,u.A,c.A,m.A,p.A,h.A,b.on,m.A,k.A,h.A],isStrictMode:!1});var v,f,g,A,N=n(20107);let w=(v=(0,s.eu)("discardChanges"),f=class extends r.A{constructor(){super(...arguments),(0,a.A)(this,"router",g,this),(0,a.A)(this,"discardChangesService",A,this),(0,i.A)(this,"_formSubmit",null),this.router.on("routeWillChange",this.onRouteWillChange)}willDestroy(){super.willDestroy(...arguments),this.router.off("routeWillChange",this.onRouteWillChange)}captureFormSubmit(e){this._formSubmit=e}async performSave(){return await(this._formSubmit?.())??!1}async onRouteWillChange(e){if(!e.isAborted&&!e.queryParamsOnly&&!e.isIntermediate&&this.args.hasChanges){e.abort();const t=await this.discardChangesService.ask({showSaveAndContinue:!0});if("save"===t&&!await this.performSave())return;"save"!==t&&"discard"!==t||(await(this.args.resetChanges?.()),e.retry())}}async discardChanges(){"discard"===await this.discardChangesService.ask()&&await(this.args.onDiscard?.())}},g=(0,l.A)(f.prototype,"router",[s.eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),A=(0,l.A)(f.prototype,"discardChangesService",[v],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,l.A)(f.prototype,"captureFormSubmit",[o.XI],Object.getOwnPropertyDescriptor(f.prototype,"captureFormSubmit"),f.prototype),(0,l.A)(f.prototype,"onRouteWillChange",[o.XI],Object.getOwnPropertyDescriptor(f.prototype,"onRouteWillChange"),f.prototype),(0,l.A)(f.prototype,"discardChanges",[o.XI],Object.getOwnPropertyDescriptor(f.prototype,"discardChanges"),f.prototype),f);(0,N.Et)(y,w)}
2,67846(e,t,n){n.d(t,{A:()=>d});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 d extends a.A{get actionsBarContainer(){return this.args.customContainerToRender?this.args.customContainerToRender:document.getElementById("actions-bar-container")}}(0,s.Et)(o,d)},75451(e,t,n){n.d(t,{A:()=>y});var a=n(30376),i=n(1808),l=n(47903),r=n(86407),o=n(99675),s=n(76753),d=n(57827),u=n(13965),c=n(43087),m=n(36760);const p=(0,n(87589).X)({id:"paDXzTIp",block:'[[[11,"label"],[4,[32,0],["click",[28,[32,1],null,null]],null],[12],[1,"\\n  "],[8,[32,2],[[24,0,"mx-auto"]],[["@spacing","@ariaLabel","@name","@checked","@onToggle"],["gap-0",[28,[32,3],["accessibility.select-row"],null],[28,[32,4],["select-row-checkbox-",[30,1,["id"]]],null],[30,0,["isSelected"]],[30,0,["toggleSelected"]]]],null],[1,"\\n"],[13]],["@row"],["label"]]',moduleName:"my-phorest/components/page/table/cells/-select-checkbox-cell/index.hbs",scope:()=>[s.on,d.A,u.A,c.A,m.xW],isStrictMode:!1});var h,b,k=n(20107);let y=(h=class extends l.A{constructor(...e){super(...e),(0,a.A)(this,"tableSelection",b,this)}get isSelected(){return this.tableSelection.isSelected(this.args.row.id)}toggleSelected(){this.tableSelection.toggleSelected(this.args.row,!!this.args.singleSelect)}},b=(0,i.A)(h.prototype,"tableSelection",[r.eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),(0,i.A)(h.prototype,"toggleSelected",[o.XI],Object.getOwnPropertyDescriptor(h.prototype,"toggleSelected"),h.prototype),h);(0,k.Et)(p,y)},80791(e,t,n){n.d(t,{A:()=>d});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 d 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,d)},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),d=n(55058),u=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:()=>[u.A],isStrictMode:!1});var m,p,h=n(20107);let b=(m=class extends r.A{constructor(...e){super(...e),(0,a.A)(this,"textIsFullyVisible",p,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,d.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",[o.r],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),m);(0,h.Et)(c,b)},60700(e,t,n){n.d(t,{A:()=>d});var a,i,l=n(30376),r=n(1808),o=n(27583),s=n(86407);let d=(a=class extends o.A{constructor(...e){super(...e),(0,l.A)(this,"access",i,this)}compute([e]){return this.access.hasPermission(e)}},i=(0,r.A)(a.prototype,"access",[s.eu],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),a)},1744(e,t,n){n.d(t,{A:()=>d});var a,i=n(52874),l=n(1808),r=n(37150),o=n(55058),s=n(99675);let d=(a=class extends r.A{constructor(e,t){super(e,t),(0,i.A)(this,"elt",void 0),(0,i.A)(this,"maxLength",void 0),(0,o.JF)(this,this.unregisterListener)}modify(e,[t]){this.elt=e,this.maxLength=t,e.addEventListener("input",this.truncateInput)}truncateInput(){let{value:e}=this.elt;e.length>this.maxLength&&(this.elt.value=e.slice(0,this.maxLength))}unregisterListener(){this.elt.removeEventListener("input",this.truncateInput)}},(0,l.A)(a.prototype,"truncateInput",[s.XI],Object.getOwnPropertyDescriptor(a.prototype,"truncateInput"),a.prototype),(0,l.A)(a.prototype,"unregisterListener",[
2s.XI],Object.getOwnPropertyDescriptor(a.prototype,"unregisterListener"),a.prototype),a)}}]);
3//# sourceMappingURL=a30f66830e8a653d6ff2.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.