\\\\n Company registration Number: HRB 30224 HB \\\\n VAT Registration number: DE 261 521 395
\\\\n Managing directors: Christian Vollers, Matijs Brand, Christian Brakmann, Philipp Wacker\\\"],null],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Notice of Liability\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Responsible for the content in accordance with § 55 Par. 2 RStV is the managing director Christian Vollers (contact details as above).\\\"],null],false],[0,\\\".\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/about/legal/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/privacy-policy/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/privacy-policy/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"ziRwI7nM\",\n \"block\": \"{\\\"symbols\\\":[\\\"text\\\",\\\"text\\\",\\\"text\\\",\\\"text\\\",\\\"text\\\",\\\"text\\\",\\\"text\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Privacy policy\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3 text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Privacy policy\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"font-size-6 text-center\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Last Modified:\\\"],null],false],[10],[0,\\\" October 21, 2021\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"At Vollers Group GmbH (together with its subsidiaries and affiliated companies, will be referred to herein as \\\\\\\"Vollers Group\\\\\\\" or \\\\\\\"We\\\\\\\"), We value our users' privacy (\\\\\\\"you\\\\\\\" or \\\\\\\"your\\\\\\\") and your desire to know how your information will be handled Security and used. To better protect your privacy, We provide this Privacy Policy (this \\\\\\\"Policy\\\\\\\"), which explains Vollers Group's information collection practices and the circumstances under which your information may be disclosed by Vollers Group. This Policy summarizes (i) the general information We collect when you access V-Hub located at {{linkVollers 'www.vollers.com'}} (the \\\\\\\"Site\\\\\\\") and/or when you use any Vollers Group products or services (collectively referred to herein as \\\\\\\"Services\\\\\\\"), (ii) how We use such information, and (iii) with whom such information is shared.\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"https://www.vollers.com\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[1,[22,7,[]],false],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[7]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"This Policy applies to the information We collect (i) on this Site; (ii) in email communications between you and this Site. \\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Please read this Policy carefully to understand how your information is collected and handled. \\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group's V-Hub Site includes links to other websites whose privacy practices may differ from those of Vollers Group. If you submit personal information to any of those sites, your information is governed by their privacy policies. Vollers Group encourages you to carefully read the privacy statement of any website you visit.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Introduction\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Your privacy is critically important to us. Therefore, we have a few fundamental principles: \\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"We do not ask you for personal information unless it is required to provide functionality or service.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"We do not share your personal information with anyone except to comply with the law, to develop our Services, or protect our rights.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"We treat your personal information with the highest regard to privacy and security.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"The Services are operated, and maintained by:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group GmbH\\\"],null],false],[7,\\\"br\\\"],[9],[10],[1,[27,\\\"t\\\",[\\\"Speicherhof 308\\\"],null],false],[7,\\\"br\\\"],[9],[10],[1,[27,\\\"t\\\",[\\\"28217 Bremen\\\"],null],false],[7,\\\"br\\\"],[9],[10],[1,[27,\\\"t\\\",[\\\"Germany\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Controller\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"For the purpose of the General Data Protection Regulation (EU) 2016/679, the data controller is Vollers Group GmbH a company registered in Germany with number HRB 30224 HB, with its registered office at Speicherhof 308, 28217 Bremen, Germany.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Information Collection and Storage\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"We collect and store several types of information from and about users of our Site and Services, including the following information:\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Information You Provide\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"To use the Services, you must first complete the registration form and agree to our {{linkToTermsOfService 'Terms of Service'}}. During registration you will be required to provide personal information such as your name, email address, country of residence, company name and password. Vollers Group will also collect your credit card or other payment information if you choose to become a paying customer.\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"about.legal.terms-of-service\\\"],null,{\\\"statements\\\":[[1,[22,6,[]],false]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[6]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are several other chances you might share personal information with Vollers Group. This may include information about your equipment (e.g. roast machine manufacturer), employee names and suppliers.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You may decide to send Vollers Group personally identifying information in an email message which might contain information or inquiries about Vollers Group's Services. Vollers Group will use this information to identify you as a Vollers Group customer and to respond to the electronic mail. Vollers Group will only use the information obtained to resolve the issue identified in the e-mail. \\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Necessary Cookies\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"On our website, we use cookies which are necessary in order for the site to function. Cookies are small text files that can be placed on your computer or mobile device by websites that you visit. A distinction is made between session cookies, which are deleted as soon as you close your browser, and permanent cookies, which are stored beyond the individual session. We do not use these necessary cookies for analysis, tracking or advertising purposes. In some cases, these cookies only contain information on certain settings and cannot be linked to a person. They may also be necessary to enable user guidance, security and implementation of the site. The legal basis for using these cookies is our legitimate interest according to Art. 6 (1) (f) GDPR.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You can set your browser to inform you about the placement of cookies. This is in order to make the use of cookies transparent for you. You can also delete cookies or prevent the setting of new cookies at any time by using the appropriate browser settings. Please note that if you delete certain cookies, our web pages may not be displayed correctly and some functions may no longer be available.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Log Data\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"When you use the Service, We automatically record information from your device, its software, and your activity using the Services log files. This information may include the device's protocol (IP) addresses, browser type, operating system, Java version, Uniform Resource Locators (URLs), error messages, date and time stamps associated with the transactions, the website you visited before visiting the Site, information you search on the Site, your mobile carrier, metadata concerning the Services, and other interactions with the Service. We use this data for analysis and troubleshooting. The legal basis for this processing is Art.6 (1) (f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Storage of IP Addresses for Security Purposes\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"We store the complete IP address transmitted by your web browser for a period of 7 days in the interest of detecting, limiting and eliminating attacks on our web pages. After this period, we delete or anonymize the IP address. The legal basis for this processing is is Art. 6 (1) (a) or Art. 6 (1) (f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Use of Your Information\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"We will only use information held about you for the following purposes:\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Information you give to us\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To present our Site and its contents to you.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To provide you with information, products, or services that you request from Vollers Group.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To fulfill any other purpose for which you provide it.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To carry out our obligations and enforce our rights arising from any contracts entered into between you and Vollers Group.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To allow Vollers Group to provide you with the Services.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"In any other way We may describe when you provide the information.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To administer your account and keep track of billing and payments.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To provide you with information about other goods and services we offer that are similar to those that you have already purchased or enquired about.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To notify you about changes to our Services.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"The legal basis for this processing is Art. 6 (1) (b) or Art. 6 (1) (f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Information we collect about you\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"When you visit our website, our web server temporarily evaluates usage data for statistical purposes in order to improve the quality of our website. This data consists of the following data categories:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The name and address of the requested content\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The date and time of the query\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"Of the transferred data volume\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The access status (content transferred, content not found)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The description of the used web browser and operating system\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The referral link, which indicates from which page you reached ours\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The IP address of the requesting computer, which is shortened in such a way that a personal reference can no longer be established.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"The legal basis for this processing is Art.6 (1) (f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"The above-mentioned log data will only be evaluated anonymously.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Disclosure of Your Information to Third Parties\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group will only share your personal information with third parties under the following circumstances:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group has your consent (Art. 6 (1) lit. a) GDPR;\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To Vollers Group's contractors, services providers, and other third parties We use to support our business. These partys are usually data processors within the meaning of Art. 28 GDPR. Our service providers are strictly bound by contracts and our instructions.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"To a buyer or other successor of Vollers Group in the event of a merger, divestiture, restructuring, reorganization, dissolution, or other sale or transfer of some or all of Vollers Group's assets, whether as a going concern or as part of bankruptcy, liquidation, or other similar proceeding, in which personal information held by Vollers Group about our Site users is among the assets transferred, for the purposes of the legitimate interests of Vollers Group, Art. 6 (1) lit f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"If Vollers Group determines that it is required to do so by law; such as in response to a court order or subpoena, Art. 6 (1) lit. c) GDPR\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"If Vollers Group finds that you are in breach of its terms of service or any of its policies or usage guidelines for specific products or Services, including any agreements regarding billing and collection, for the purposes of the legitimate interests of Vollers Group, Art. 6 (1) lit f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"If Vollers Group determines it is necessary prevent, investigate, detect or prosecute criminal offenses or attacks on the technical integrity of the Services or Vollers Group's network, Art. 6 (1) lit. c) GDPR or Art. 6 (1) lit f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"If Vollers Group believes disclosure is necessary to protect the rights, property, or safety of Vollers Group or its employees, the users of its Services, or the public, Art. 6 (1) lit f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"If disclosure facilitates technical and administrative aspects of the Services (e.g., credit card processing), offering customer service, or perform functions related to the administration of them (e.g. hosting services), Art. 6 (1) lit. b) GDPR or Art. 6 (1) lit. f) GDPR. However, Vollers Group is not responsible in the event that personal information is disclosed at a result of a breach or security lapse by any such third party.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Sub-processors\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group cerrently uses the following Sub-processors:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped margin-bottom-4 table__block--responsive\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Entity\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Purpose of data transfer\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Location\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Freshworks Inc.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"User support ticket system and FAQ\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"United States\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Microsoft Corporation\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Hosting & Infrastruture Provider\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Used as an ondemand cloud compution platform\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Email, File Storage and API's\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"User relationship management\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"The Netherlands\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Sparkpost, Inc.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Email\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"United States\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Stripe Payments Europe Ltd\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Invoicing\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Ireland\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group GmbH\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Customer support\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"Germany\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"V-Hub-Platform\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Vollers provides an online platform “V-Hub” that connects coffee sellers who provide green coffee to coffee\\\\n buyers. These services are accessible at https://v-hub.vollers.com as well as at any other websites through which\\\\n Vollers makes his services available.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"With regard to the legal basis and the purpose of processing, must be made a distinction between platform\\\\n users who are themselves contractual partners = sole trader (a) and those who are employees of another corporate\\\\n customer (b):\\\"],null],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"(a) Client: Sole Trader\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The data processing regarding sole trader is carried out for the performance of the contract with the sole trader.\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The legal basis for this processing is Art.6 (1) (b) GDPR.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"(b) Client: other companies as corporate customers\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The data processing regarding other companies as corporate customers is carried out in the legitimate\\\\n interest of Vollers. It is important to note that the contracts between the other companies acting as\\\\n corporate customers are concluded on the platform. The legal basis for the data processing is Art. 6 (1) (f) DSGVO.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Freshdesk Contact Form\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"You may contact us third-party via contact form via our helpdesk („Freshdesk“) on {{linkTo 'https://v-support.vollers.com/support/home'}} and on V-Hub-Platform via the help widget. In order to use our contact form, we will require you to provide the data marked as mandatory.\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"https://v-support.vollers.com/support/home\\\"],[9],[1,[22,5,[]],false],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[5]}],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The legal basis for this processing is Art. 6 (1) (f) GDPR, being our legitimate interest to respond to your request. You can decide whether or not you would like to provide us with further information. This information is provided voluntarily and is not required to contact us.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"We process your voluntary details on the basis of your consent in accordance with Art. 6 (1) (a) GDPR. Your data will only be processed to process your request.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"We will delete your data if they are no longer required and there are no legal obligations to retain them. Where the processing of your data which is transmitted via the contact form is based on legitimate interest in accordance with Art. 6 (1) (f) GDPR, you have the right to object to that processing at any time. To do so, please use the email address provided in the imprint. In addition, you can withdraw your consent to the processing of your voluntarily provided information at any time. To do so, please use the email address provided in the imprint.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The helpdesk tool „Freshdesk“ is provided by Freshworks Inc, (USA), who supports us as processor according to Art. 28 GDPR. The data processing can therefore also take place outside the EU or EEA. With regard to Freshdesk, no adequate level of data protection can be assumed due to the processing in the USA. There is a risk that authorities may access the data for security and surveillance purposes without you being informed or having the right to appeal.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Protection of Your Personal Information\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group has implemented reasonable security mechanisms to protect personal information that is maintained on Vollers Group's servers from loss, misuse and unauthorized access, disclosure, alteration and destruction. Examples of these security mechanisms include limited and password-protected access, high security public/private keys, and SSL encryption to protect transmission of data.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"The safety and security of your information also depends on you. Where We have given you (or where you have chosen) a password for access to certain parts of our Site, you are responsible for keeping this password confidential. We ask you not to share your password with anyone.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"However, please keep in mind that no security system is impenetrable. It may be possible for third parties to intercept or access personal information in spite of these measures. Vollers Group cannot guarantee the security of your information.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Policy Toward Children\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"If you are under 18, or not legally considered to be an adult in the jurisdiction in which you reside, you may only use the Services with the consent of your parent or legal guardian. Additionally, Vollers Group's Services are not directed to persons under 13, and Vollers Group does not knowingly collect personally identifiable information from children under 13. If you are under 13, do not use or provide any information on this Site or register for any features on the Site, make any purchases through the Site, use any of the interactive features of this Site or provide any information about yourself to us, including your name, address, telephone number, or email address. If a parent or guardian becomes aware that his or her child has provided us with personal information without their consent, he or she should contact us at {{mailto 'v-hub@vollers.com'}}. If we become aware that a child under 13 has provided us with personal information without verification of parental consent, we will take steps to delete such information from our files.\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"mailto:v-hub@vollers.com\\\"],[9],[1,[22,4,[]],false],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[4]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"YOUR RIGHTS AS A DATA SUBJECT\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"WHEN PROCESSING YOUR PERSONAL DATA, THE GDPR GRANTS YOU CERTAIN RIGHTS AS A DATA SUBJECT:\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT OF ACCESS BY THE DATA SUBJECT (ART. 15 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"YOU HAVE THE RIGHT TO OBTAIN CONFIRMATION AS TO WHETHER PERSONAL DATA CONCERNING YOU ARE BEING PROCESSED; IF THIS IS THE CASE, YOU HAVE THE RIGHT TO BE INFORMED OF THIS PERSONAL DATA AND TO RECEIVE THE INFORMATION SPECIFIED IN ART. 15 GDPR.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT TO RECTIFICATION (ART. 16 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"YOU HAVE THE RIGHT TO RECTIFICATION OF INACCURATE PERSONAL DATA CONCERNING YOU AND, TAKING INTO ACCOUNT THE PURPOSES OF THE PROCESSING, THE RIGHT TO HAVE INCOMPLETE PERSONAL DATA COMPLETED, INCLUDING BY MEANS OF PROVIDING A SUPPLEMENTARY STATEMENT WITHOUT DELAY.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT TO ERASURE (ART. 17 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"YOU HAVE THE RIGHT TO OBTAIN THE ERASURE OF PERSONAL DATA CONCERNING YOU WITHOUT UNDUE DELAY IF ONE OF THE REASONS LISTED IN ART. 17 GDPR APPLIES.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT TO RESTRICTION OF PROCESSING (ART. 18 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"YOU HAVE THE RIGHT TO REQUEST THE RESTRICTION OF PROCESSING IF ONE OF THE CONDITIONS LISTED IN ART. 18 GDPR IS MET, E.G. IF YOU HAVE OBJECTED TO THE PROCESSING, FOR THE DURATION OF OUR EXAMINATION.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT TO DATA PORTABILITY (ART. 20 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"IN CERTAIN CASES, WHICH ARE LISTED IN DETAIL IN ART. 20 GDPR, YOU HAVE THE RIGHT TO RECEIVE THE PERSONAL DATA CONCERNING YOU IN A STRUCTURED, COMMONLY USED AND MACHINE-READABLE FORMAT, OR TO REQUEST THAT THIS DATA BE TRANSFERRED TO A THIRD PARTY.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT TO WITHDRAW CONSENT (ART. 7 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"IF THE PROCESSING OF DATA IS BASED ON YOUR CONSENT, YOU ARE ENTITLED TO WITHDRAW YOUR CONSENT TO THE USE OF YOUR PERSONAL DATA AT ANY TIME IN ACCORDANCE WITH ART. 7 (3) GDPR. PLEASE NOTE THAT THE WITHDRAWAL IS ONLY EFFECTIVE FOR THE FUTURE. PROCESSING THAT TOOK PLACE BEFORE THE WITHDRAWAL IS NOT AFFECTED.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT TO OBJECT (ART. 21 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"IF DATA IS COLLECTED ON THE BASIS OF ART. 6 (1) 1 F GDPR (DATA PROCESSING FOR THE PURPOSE OF OUR LEGITIMATE INTERESTS) OR ON THE BASIS OF ART. 6 (1) 1 E GDPR (DATA PROCESSING FOR THE PURPOSE OF PROTECTING PUBLIC INTERESTS OR IN THE EXERCISE OF OFFICIAL AUTHORITY), YOU HAVE THE RIGHT TO OBJECT TO THE PROCESSING AT ANY TIME FOR REASONS ARISING FROM YOUR PARTICULAR SITUATION. WE WILL THEN NO LONGER PROCESS THE PERSONAL DATA UNLESS THERE ARE COMPELLING LEGITIMATE GROUNDS FOR THE PROCESSING WHICH OVERRIDE YOUR INTERESTS, RIGHTS AND FREEDOMS OR IF DATA IS STILL NEEDED FOR THE ESTABLISHMENT, EXERCISE OR DEFENCE OF LEGAL CLAIMS.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"RIGHT TO LODGE A COMPLAINT WITH A SUPERVISORY AUTHORITY (ART. 77 GDPR)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"ACCORDING TO ART. 77 GDPR, YOU HAVE THE RIGHT TO LODGE A COMPLAINT WITH A SUPERVISORY AUTHORITY IF YOU BELIEVE THAT THE PROCESSING OF YOUR DATA VIOLATES DATA PROTECTION REGULATIONS. THIS RIGHT MAY BE ASSERTED IN PARTICULAR WITH A SUPERVISORY AUTHORITY IN THE MEMBER STATE OF YOUR HABITUAL RESIDENCE, YOUR PLACE OF WORK OR THE PLACE OF THE SUSPECTED INFRINGEMENT.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Asserting your rights\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Unless otherwise described above, please contact us to assert your rights. You will find our contact details in our imprint.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Consent\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"If you wish to subscribe to our marketing communications, we will use your name and email address to send communications to you.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"We will only send the you our marketing communications if you have given us your express consent. After you have completed the registration on our website, you will receive a confirmation e-mail at the e-mail address you provided (double opt-in).\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"You may withdraw your consent at any time. An easy way to withdraw your consent is, for example, to use the unsubscribe link provided in every marketing communication.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"As part of the registration process, we store certain data in addition to the above-mentioned data, as far as it is necessary to prove so that you have registered for our marketing communications. This may include storing the complete IP address at the time of the registration or confirmation of the marketing communications, as well as a copy of the confirmation mail sent by us.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"The legal basis for the data processing is our legitimate interest to be able to account for the legality of the marketing communications delivery according to Art. 6 (1) (f) GDPR.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Retention\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"We retain Personal Data for as long as we provide the Services to you or your account remains open. However, we may keep some data after your account is closed or you cease using the Service, for the purposes set out below.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"After you have closed your account, we may retain Personal Data where reasonably necessary to comply with our legal obligations (including law enforcement requests), meet regulatory requirements, maintain security, prevent fraud and abuse, resolve disputes or fulfil your request to \\\\\\\"unsubscribe\\\\\\\" from further messages from us.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"We will retain de-personalized information after your account has been closed.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Where we store your Personal Data\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The Personal Data that we collect from you may be transferred to, and stored at, a destination outside the European Economic Area (\\\\\\\"EEA\\\\\\\"). We also use service providers in third countries outside the EU without an adequate level of data protection, which entails the following risks: Access by authorities without information, no rights of data subjects, no legal remedies, loss of control. It may also be processed by staff operating outside the EEA who work for us or for one of our suppliers. These service providers are usually data processors within the meaning of Art. 28 GDPR. Our service providers are strictly bound by contracts and our instructions. Such staff may be engaged in, among other things, the provision of support services. We will take all steps reasonably necessary to ensure that your data is treated securely and in accordance with this Privacy Policy.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"We always ensure that your information is only transferred in full accordance with German data protection laws and/or applicable EU data protection law. In particular, this means that your information will only be transferred to a country that provides an adequate level of protection (for example, because the European Commission has determined that a country provides an adequate level of protection) or the recipient is bound by standard contractual clause according to conditions provided by the European Commission (\\\\\\\"SSC Standard Contractual Clauses\\\\\\\"). You are responsible for checking the privacy policy of any third-party websites we link to.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Our Service is accessible via the Internet and may potentially be accessed by any user around the world. Other users may access the Service from outside the EEA. This means that where you chose to upload your data to the Service, it could be accessed from anywhere around the world and therefore a transfer of your data outside of the EEA may be deemed to have occurred.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Where we have given you (or where you have chosen) a password which enables you to access certain parts of the Service, you are responsible for keeping this password confidential. We ask you not to share any password with anyone.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Unfortunately, the transmission of information via the Internet is not completely secure. Although we will do our best to protect your Personal Data, we cannot guarantee the security of your data transmitted to our Service; any transmission is at your own risk. Once we have received your information, we will use strict procedures and security features to try to prevent unauthorized access.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Changes to this Privacy Policy\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Vollers Group retains the discretion to amend or modify this Privacy Policy from time to time. If We make material changes to the way we collect, use or disclose personal information, we will notify you by posting a clear and prominent announcement on Vollers Group through a direct communication to your Vollers Group account. For new users, the change or update will become effective upon posting. For existing users, the change or update will become effective 14 days after posting. Your continued use of the Site after We make changes is deemed to be acceptance of those changes, so please check the Site periodically for updates to the Policy.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Contact Us\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"Vollers Group welcomes your questions and comments about security and privacy. Please send any questions or comments via email to {{mailto 'v-hub@vollers.com'}} or to the following address:\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"mailto:v-hub@vollers.com\\\"],[9],[1,[22,3,[]],false],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[3]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Vollers Group GmbH\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Speicherhof 308\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"28217 Bremen\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Germany\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Contact Details of our Data Protection Officer\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Our external data protection officer is available to provide further information on data protection.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"datenschutz nord GmbH\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Konsul-Smidt-Straße 88\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"28217 Bremen\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"Web: {{webLink 'www.datenschutz-nord-gruppe.de'}}\\\"],null]]],{\\\"statements\\\":[[7,\\\"a\\\"],[11,\\\"href\\\",\\\"http://www.datenschutz-nord-gruppe.de\\\"],[9],[1,[22,2,[]],false],[10]],\\\"parameters\\\":[2]}],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"E-Mail: {{officeLink 'office@datenschutz-nord.de'}}\\\"],null]]],{\\\"statements\\\":[[7,\\\"a\\\"],[11,\\\"href\\\",\\\"mailto:office@datenschutz-nord.de\\\"],[9],[1,[22,1,[]],false],[10]],\\\"parameters\\\":[1]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"When contacting our data protection officer, please specify the name of the company, stated in our imprint.\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/about/legal/privacy-policy/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/security/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/security/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"1gJJqxiB\",\n \"block\": \"{\\\"symbols\\\":[\\\"text\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Security\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3 text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Security\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"font-size-6 text-center\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Last Modified:\\\"],null],false],[10],[0,\\\" October 21, 2021\\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Data Encryption in Transit\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Whenever your data is in transit between you and us, everything is encrypted, and sent using HTTPS.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Backup and availability\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"All data is written to multiple disks instantly, backed up daily, and stored in multiple locations. Files that our customers upload are stored on servers that use modern techniques to remove bottlenecks and points of failure.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Full redundancy for all major systems\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Our servers — from power supplies to the internet connection to the air conditioning systems — operate at full redundancy.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Data center security\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Our state-of-the-art servers are protected by biometric locks and round-the-clock surveillance monitoring. Only authorized personnel have access to the data center. 24/7/365 onsite staff provides additional protection against unauthorized entry and security\\\\n breaches.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Regularly-updated infrastructure\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Our software infrastructure is updated regularly with the latest security patches. Our products run on dedicated hardware which is locked down with firewalls and carefully monitored. While perfect security is a moving target, we work with external partners\\\\n to keep up with the state-of-the-art in web security.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"85+ years in business\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"As an owner-managed logistics company, we have securely transported and stored the goods, products and raw\\\\nmaterials of our customers for more than 85 years. In so doing, responsibility, professionalism and independence\\\\nare always at the centre of our services. Security isn't just about technology, it's about trust. Over the years we've\\\\nworked hard to earn the trust of over thousands of companies worldwide. We'll continue to work hard every day\\\\nto maintain that trust. Longevity and stability is core to our mission at Vollers.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Concerns or want to contact us?\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"get-text\\\",null,[[\\\"message\\\"],[[27,\\\"t\\\",[\\\"For concerns that are urgent or sensitive, please email us on our security channel {{emailLink 'v-hub@vollers.com'}} so that it can be handled promptly by our security team.\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"mailto:security@vollers.com\\\"],[9],[1,[22,1,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/about/legal/security/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/seller-requirements/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/seller-requirements/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"MZ/LlKV9\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Seller requirements\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3 text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Seller requirements\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"To apply as a seller on V-Hub, you need to:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Have a proven record of selling specialty coffee\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Be willing to provide at least 2 references from green coffee buyers you have done business with in the last 6 months.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Show an existing specialty coffee offering - either as an excel, pdf, or website. Specialty coffee is (+80 SCAA scoring) with origin and lot information.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Offer at least 5 green coffees that you own and that you are willing to post on the account.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Company infrastructure\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Have designated primary contact person who will communicate with clients that request coffees and also with V-Hub representatives.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Have a dedicated business phone number or Skype account.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Have a legally recognised business in the country where your business is registered in - e.g. nationally issued business licence, VAT number or Tax ID number.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Company verification\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The above information will be used to verify your business for inclusion on V-Hub.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Once your seller account has been verified you will be able to publish your shop on V-Hub for all buyers to see.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/about/legal/seller-requirements/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"PobfkE7u\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left layout__sidebar--left--small\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"third-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"about.legal.index\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Legal notice\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"about.legal.security\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Security\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"about.legal.terms-of-service\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Terms of service\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"about.legal.privacy-policy\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Privacy policy\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"about.legal.seller-requirements\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Seller requirements\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/about/legal/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/terms-of-service/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/legal/terms-of-service/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"KwQjjApR\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Terms of service\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3 text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Terms of service\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[21,\\\"terms-of-service\\\"],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/about/legal/terms-of-service/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/about/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"iRFNtFx/\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"V-Hub - About\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"header-bar\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"dark__bg section margin-all-0\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"secondary-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"about.index\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Contact\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"about.legal\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Legal\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"flex-grow-1\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"footer-main\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/about/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/add-to-wishlist/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n keenTracking: Ember.inject.service(),\n userSession: Ember.inject.service(),\n toast: Ember.inject.service(),\n store: Ember.inject.service(),\n ajax: Ember.inject.service(),\n l10n: Ember.inject.service(),\n queryParams: ['listingName'],\n username: null,\n password: null,\n listingName: null,\n isBusy: false,\n isError: false,\n authOption: 'LOGIN',\n authOptions: Ember.computed('l10n', function () {\n return [{\n value: 'LOGIN',\n label: Ember.get(this, 'l10n').t('Yes, I have an account')\n }, {\n value: 'REGISTER',\n label: Ember.get(this, 'l10n').t('No, I do not have an account')\n }];\n }),\n addToWishlist: function addToWishlist() {\n var _this = this;\n\n var _Ember$get = Ember.get(this, 'model'),\n ratingId = _Ember$get.ratingId,\n newWishlistItem = _Ember$get.newWishlistItem;\n\n Ember.set(this, 'isBusy', true);\n\n var _wishlistSuccessCallback = function _wishlistSuccessCallback() {\n var message = Ember.get(_this, 'l10n').t('\"{{coffeeName}}\" is now on your wish list.', {\n coffeeName: Ember.get(_this, 'listingName')\n });\n\n _this.get('toast').success(message);\n\n Ember.get(_this, 'keenTracking').addEvent('add-to-wishlist-from-email', {\n listingName: Ember.get(_this, 'listingName')\n });\n\n _this.transitionToRoute('admin.wishlist');\n };\n\n var _wishlistFailureCallback = function _wishlistFailureCallback() {\n var message = Ember.get(_this, 'l10n').t('Could not add \"{{coffeeName}}\" to your wish list. Please, try it again in a moment.', {\n coffeeName: Ember.get(_this, 'listingName')\n });\n Ember.get(_this, 'toast').error(message);\n Ember.set(_this, 'isError', true);\n };\n\n var _wishlistFinallyCallback = function _wishlistFinallyCallback() {\n Ember.set(_this, 'isBusy', false);\n };\n\n var _listingSuccessCallback = function _listingSuccessCallback(listing) {\n var user = Ember.get(_this, 'userSession.currentUser'); // avoid duplicate creation of wish list item\n // even if server would return the old record,\n // ember data would complain because of this:\n // https://github.com/emberjs/data/issues/4972\n\n if (Ember.get(user, \"wishlistListings.\".concat(listing.id))) {\n _wishlistSuccessCallback();\n\n return;\n }\n\n Ember.set(newWishlistItem, 'listing', listing);\n Ember.set(newWishlistItem, 'user', user);\n newWishlistItem.save().then(_wishlistSuccessCallback, _wishlistFailureCallback).finally(_wishlistFinallyCallback);\n };\n\n var _listingFailureCallback = function _listingFailureCallback() {\n _wishlistFailureCallback();\n\n _wishlistFinallyCallback();\n };\n\n var _claimSuccessCallback = function _claimSuccessCallback(response) {\n /**\n * {\n * id: ,\n * email: ,\n * user: ,\n * listing: ,\n * flavors: ,\n * notes: ,\n * rating: ,\n * private: \n * }\n */\n Ember.get(_this, 'store').findRecord('listing', response.listing).then(_listingSuccessCallback, _listingFailureCallback);\n };\n\n var _claimFailureCallback = function _claimFailureCallback() {\n _wishlistFailureCallback();\n\n _wishlistFinallyCallback();\n };\n\n Ember.get(this, 'ajax').post(\"/rating/\".concat(ratingId, \"/claim\")).then(_claimSuccessCallback, _claimFailureCallback);\n },\n actions: {\n addToWishlist: function addToWishlist() {\n this.addToWishlist();\n },\n trackNewUserAndAddToWishlist: function trackNewUserAndAddToWishlist() {\n Ember.get(this, 'keenTracking').addEvent('register-from-add-to-wishlist-form', {\n listingName: Ember.get(this, 'listingName')\n });\n this.addToWishlist();\n },\n toggleAuthOption: function toggleAuthOption(mode) {\n switch (mode) {\n case 'LOGIN':\n {\n Ember.set(this, 'username', Ember.get(this, 'model.newUser.username'));\n break;\n }\n\n case 'REGISTER':\n {\n Ember.set(this, 'model.newUser.username', Ember.get(this, 'username'));\n break;\n }\n\n default:\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/add-to-wishlist/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n userSession: Ember.inject.service(),\n model: function model(params) {\n return Ember.RSVP.hash({\n ratingId: params.rating_id,\n newUser: this.store.createRecord('user'),\n newWishlistItem: this.store.createRecord('wishlist-item'),\n wishlistItems: Ember.get(this, 'userSession.currentUser.wishlistItems')\n });\n },\n deactivate: function deactivate() {\n var _this$currentModel = this.currentModel,\n newUser = _this$currentModel.newUser,\n newWishlistItem = _this$currentModel.newWishlistItem;\n newWishlistItem.rollbackAttributes();\n newUser.rollbackAttributes();\n },\n setupController: function setupController(controller) {\n this._super.apply(this, arguments);\n\n if (Ember.get(this, 'userSession.currentUser')) {\n controller.addToWishlist();\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/add-to-wishlist/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"2QTeLq0R\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"View your rating and add coffee to wish list\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"search-bar\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full padding-top-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"index\\\"],[[\\\"class\\\"],[\\\"search-bar__logo\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/v-hub-logo.png\\\"],[11,\\\"alt\\\",\\\"V-Hub\\\"],[11,\\\"class\\\",\\\"search-bar__logo--big\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/v-hub-logo-small.png\\\"],[11,\\\"alt\\\",\\\"V-Hub\\\"],[11,\\\"class\\\",\\\"search-bar__logo--small\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section flex-grow-1\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"text-center padding-top-4 padding-bottom-3 font-size-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Add \\\\\\\"{{listingName}}\\\\\\\" to your wishlist\\\"],[[\\\"listingName\\\"],[[23,[\\\"listingName\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentUser\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isBusy\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper wrapper--small margin-top-2 text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"loading-spinner\\\",null,[[\\\"isCompact\\\"],[true]]],false],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Adding \\\\\\\"{{listingName}}\\\\\\\" to wishlist...\\\"],[[\\\"listingName\\\"],[[23,[\\\"listingName\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"isError\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"ERROR\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Could not add \\\\\\\"{{listingName}}\\\\\\\" to your wishlist - please try again.\\\"],[[\\\"listingName\\\"],[[23,[\\\"listingName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button\\\",[27,\\\"action\\\",[[22,0,[]],\\\"addToWishlist\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Retry\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper wrapper--small margin-bottom-4 text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-1\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"To add this coffee to your wish list, please login or create new account:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-radio-buttons\\\",null,[[\\\"inline\\\",\\\"value\\\",\\\"options\\\",\\\"action\\\"],[true,[23,[\\\"authOption\\\"]],[23,[\\\"authOptions\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleAuthOption\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"max-width-6 margin-auto\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"authOption\\\"]],\\\"LOGIN\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Login into your account\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"login-form\\\",null,[[\\\"username\\\",\\\"password\\\",\\\"afterLoginAction\\\"],[[23,[\\\"username\\\"]],[23,[\\\"password\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"addToWishlist\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Create a new account\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"register-form\\\",null,[[\\\"user\\\",\\\"password\\\",\\\"afterRegisterAction\\\"],[[23,[\\\"model\\\",\\\"newUser\\\"]],[23,[\\\"password\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"trackNewUserAndAddToWishlist\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"footer-main\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/add-to-wishlist/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/index/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n queryParams: ['emailChangeFailedReason']\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"S2xIAllz\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Account\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[27,\\\"user-settings-form\\\",null,[[\\\"user\\\",\\\"emailChangeFailedReason\\\",\\\"action\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\"]]],null],[23,[\\\"emailChangeFailedReason\\\"]],\\\"saveCurrentUser\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"user-password-form\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/account/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/ratings/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n queryParams: ['id'],\n id: null,\n ratings: Ember.computed('id', 'model', function () {\n var ratings = Ember.get(this, 'model');\n var id = Ember.get(this, 'id');\n\n if (id) {\n return ratings.filterBy('id', id);\n }\n\n return ratings;\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/ratings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The route for ratings management.\n *\n * @namespace Route\n * @class RatingsRoute\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n userSession: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Loads ratings.\n *\n * @public\n * @method model\n * @return {Promise}\n */\n model: function model() {\n return Ember.get(this, 'userSession.currentUser.ratings');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/ratings/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"wZqSTXAj\",\n \"block\": \"{\\\"symbols\\\":[\\\"rating\\\"],\\\"statements\\\":[[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Your ratings\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped table__block--responsive\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Coffee\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Company\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Date\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Rating\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Flavors\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Notes\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"ratings\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Coffee\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"store.listing\\\",[22,1,[\\\"listing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,1,[\\\"listing\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Company\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"store.shop\\\",[22,1,[\\\"listing\\\",\\\"shop\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,1,[\\\"listing\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Date\\\"],null]],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"moment-format\\\",[[22,1,[\\\"createdDate\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Rating\\\"],null]],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"listing-ratings\\\",null,[[\\\"rating\\\",\\\"iconOnly\\\"],[[22,1,[]],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Flavors\\\"],null]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"join-array\\\",[[22,1,[\\\"selectedDescriptors\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Notes\\\"],null]],[9],[0,\\\"\\\\n \\\"],[1,[22,1,[\\\"notes\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"4\\\"],[9],[1,[27,\\\"t\\\",[\\\"You have no ratings yet - watch out for V-Hub QR codes to rate coffees.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"id\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"id\\\"],[null]]]],[[\\\"class\\\"],[\\\"margin-top-3 button button--secondary\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"View all ratings\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/account/ratings/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n model: function model() {\n return this.get('userSession.currentUser');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/saved-searches/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The route for saved search management.\n *\n * @namespace Route\n * @class SavedSearchesRoute\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n userSession: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Loads saved searches.\n *\n * @public\n * @method model\n * @return {Promise}\n */\n model: function model() {\n return Ember.get(this, 'userSession.searchAgents');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/saved-searches/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"vUPqJoZq\",\n \"block\": \"{\\\"symbols\\\":[\\\"searchAgent\\\"],\\\"statements\\\":[[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Saved searches\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"search-agent-item\\\",null,[[\\\"searchAgent\\\",\\\"class\\\"],[[22,1,[]],\\\"margin-bottom-3\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"INFO\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You have no saved search yet. Go to the store to configure and save your first search agent.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"store\\\"],[[\\\"class\\\"],[\\\"button\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Go to store\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/account/saved-searches/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/account/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"y+B+Kii+\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Account\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-container\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-row\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-12 fg-column-2-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"third-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.account.index\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Profile\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.account.saved-searches\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Saved searches\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.account.ratings\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Ratings\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info__tooltip info__tooltip--right info__tooltip__multi-line\\\"],[12,\\\"data-info\\\",[27,\\\"t\\\",[\\\"Rate coffees via their QR code on V-Hub to keep your cupping notes.\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"box__label--state--green inline-block padding-all-1 font-size-7 color-white border-radius-1\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"New\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain third-nav__item\\\"],[9],[1,[27,\\\"t\\\",[\\\"Log out\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"invalidateSession\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-12 fg-column-10-l\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/account/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n store: Ember.inject.service(),\n userSession: Ember.inject.service(),\n model: function model() {\n var companyId = this.get('userSession.currentUser').belongsTo('company').id();\n return this.store.findRecord('company', companyId, {\n reload: true\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"566RAgGD\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Company\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[27,\\\"company-settings-form\\\",null,[[\\\"company\\\",\\\"onSaveCompany\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\"]]],null],\\\"saveCurrentCompany\\\"]]],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/company/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/loading/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"hS2QxrCu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-container\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/company/loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/subscription/route\", [\"exports\", \"ember-launch-darkly\"], function (_exports, _emberLaunchDarkly) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n var _default = Ember.Route.extend({\n userSession: Ember.inject.service(),\n beforeModel: function beforeModel() {\n if (!(0, _emberLaunchDarkly.variation)('subscription-tab')) {\n return this.transitionTo('admin.company.index');\n }\n },\n model: function model() {\n var _this = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var company;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.userSession.currentCompany;\n\n case 2:\n company = _context.sent;\n _context.next = 5;\n return company.subscription;\n\n case 5:\n return _context.abrupt(\"return\", _context.sent);\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/subscription/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"1EM5iMdA\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Subscription\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"simple-box\\\",null,[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"Company Subscription\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"border-t border-gray-200\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"dl\\\"],[11,\\\"class\\\",\\\"divide-y divide-gray-200 divide-solid\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"py-4 sm:py-5 sm:grid sm:grid-cols-3 sm:gap-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"dt\\\"],[11,\\\"class\\\",\\\"text-sm font-medium text-gray-500\\\"],[9],[1,[27,\\\"t\\\",[\\\"Current plan\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"dd\\\"],[11,\\\"class\\\",\\\"mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex-grow\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[23,[\\\"model\\\",\\\"planId\\\"]],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"pricing\\\"],[[\\\"class\\\"],[\\\"ml-1 font-medium text-v-blue-600 hover:text-v-blue-500\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Compare\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"model\\\",\\\"isFreePlan\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isTrialActive\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"py-4 sm:grid sm:py-5 sm:grid-cols-3 sm:gap-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"dt\\\"],[11,\\\"class\\\",\\\"text-sm font-medium text-gray-500\\\"],[9],[1,[27,\\\"t\\\",[\\\"Trial ends\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"dd\\\"],[11,\\\"class\\\",\\\"mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex-grow\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"moment-format\\\",[[23,[\\\"model\\\",\\\"nextBillAt\\\"]],[22,0,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"mt-1 max-w-2xl text-sm text-gray-500\\\"],[9],[1,[27,\\\"t\\\",[\\\"You won't be billed until your trial ends.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"py-4 sm:grid sm:py-5 sm:grid-cols-3 sm:gap-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"dt\\\"],[11,\\\"class\\\",\\\"text-sm font-medium text-gray-500\\\"],[9],[1,[27,\\\"t\\\",[\\\"Next invoice\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"dd\\\"],[11,\\\"class\\\",\\\"mt-1 flex text-sm text-gray-900 sm:mt-0 sm:col-span-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"flex-grow\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"moment-format\\\",[[23,[\\\"model\\\",\\\"nextBillAt\\\"]],[22,0,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"py-4 text-right\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"manage-plan-button\\\",[],[[],[]]],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/company/subscription/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"9zaRpyjC\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Company\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-container\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-row\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-12 fg-column-2-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"third-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.company.index\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Company profile\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.company.users\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Company members\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"variation\\\",[\\\"subscription-tab\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.company.subscription\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Company subscription\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-12 fg-column-10-l\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/company/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/users/route\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n var _default = Ember.Route.extend(_emberCan.CanMixin, {\n userSession: Ember.inject.service(),\n ajax: Ember.inject.service(),\n availableData: Ember.inject.service(),\n loadUsers: function loadUsers() {\n var _this = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var companyId, rawUsers;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n companyId = _this.get('userSession.currentCompany.id');\n _context.next = 3;\n return _this.ajax.request(\"/company/\".concat(companyId, \"/user?includeInactive=true\"));\n\n case 3:\n rawUsers = _context.sent;\n return _context.abrupt(\"return\", rawUsers.map(function (record) {\n var normalizeData = _this.store.normalize('user', record);\n\n return _this.store.push(normalizeData);\n }));\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n model: function model() {\n var _this2 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n var model;\n return regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return _this2.loadUsers();\n\n case 2:\n _context2.t0 = _context2.sent;\n _context2.t1 = [];\n model = {\n users: _context2.t0,\n userInvitations: _context2.t1\n };\n\n if (!_this2.can('view invited users for company')) {\n _context2.next = 9;\n break;\n }\n\n _context2.next = 8;\n return _this2.get('availableData.userInvitations');\n\n case 8:\n model.userInvitations = _context2.sent;\n\n case 9:\n return _context2.abrupt(\"return\", model);\n\n case 10:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n _reloadModel: Ember.observer('availableData.userInvitations.[]', function () {\n this.refresh();\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/company/users/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"nNo6Hq2T\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Company members\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Company members\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"user-list\\\",null,[[\\\"users\\\",\\\"isEditable\\\"],[[23,[\\\"model\\\",\\\"users\\\"]],true]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"view invited users for company\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"user-invitation-list\\\",null,[[\\\"invitations\\\"],[[23,[\\\"model\\\",\\\"userInvitations\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"invite user for company\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"inviteUser\\\"],[1]]]],[[\\\"class\\\"],[\\\"button\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Invite user\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Role details\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Depending on their role, users have access to different actions.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped table__block--responsive\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Action\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Admin\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manager\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Collaborator\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Viewer\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"View orders\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Viewer\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"View & respond to messages\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Create / Edit a coffee\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Create / Edit an origin\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Invite users / Change user roles\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Create / Edit addresses & warehouses\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Buy coffee / Order samples\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Accept / Reject order requests\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Create / Edit an auction\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Accept / Reject auction registrations\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Register for an auction\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Publish coffee\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Create a shop\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Edit a shop\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manßager\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Action\\\"],null]],[9],[1,[27,\\\"t\\\",[\\\"Edit company information\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Admin\\\"],null]],[9],[0,\\\"X\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Manager\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Collaborator\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center cell--hide\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Viewer\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/company/users/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/controller\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend(_emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Dependencies\n application: Ember.inject.controller(),\n availableData: Ember.inject.service(),\n legacyWarehouseMigration: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n queryParams: ['afterSave', 'editWarehouseId', 'createWarehouse', 'inviteUser'],\n // Manage warehouse modal query params\n editWarehouseId: null,\n createWarehouse: null,\n // Invite user modal query params\n inviteUser: null,\n\n /**\n * After save redirect route.\n *\n * @property afterSave\n * @public\n * @type String\n */\n afterSave: null,\n actions: {\n dismissWarehouseModal: function dismissWarehouseModal() {\n this.set('editWarehouseId', null);\n this.set('createWarehouse', null);\n },\n dismissInviteUserModal: function dismissInviteUserModal() {\n this.set('inviteUser', null);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/index/controller\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend(_emberCan.CanMixin, {\n userSession: Ember.inject.service(),\n l10n: Ember.inject.service(),\n messageCenter: Ember.inject.service(),\n isLoaded: Ember.computed.and('model.recentOrders.isFulfilled', 'model.recentSales.isFulfilled', 'model.upcomingAuctions.isFulfilled'),\n _showUserSettingsForm: false,\n showUserSettingsForm: Ember.computed('_showUserSettingsForm', 'userSession.currentUser.{email,fullName}', function () {\n if (this.get('_showUserSettingsForm')) {\n return true;\n }\n\n return this.set('_showUserSettingsForm', !this.get('userSession.currentUser.fullName') || !this.get('userSession.currentUser.email'));\n }),\n quickLinkListingOptions: Ember.computed('l10n', function () {\n var quickLinksListingOptions = [{\n label: this.get('l10n').t('Add one'),\n route: 'admin.manage.listing.create'\n }];\n\n if (this.can('edit settings')) {\n quickLinksListingOptions.push({\n label: this.get('l10n').t('Add many'),\n route: 'admin.manage.bulk.listing'\n });\n }\n\n return quickLinksListingOptions;\n }),\n quickLinkProducerOptions: Ember.computed('l10n', function () {\n var quickLinksProducerOptions = [{\n label: this.get('l10n').t('Add one'),\n route: 'admin.manage.producer.create'\n }];\n\n if (this.can('edit settings')) {\n quickLinksProducerOptions.push({\n label: this.get('l10n').t('Add many'),\n route: 'admin.manage.bulk.producer'\n });\n }\n\n return quickLinksProducerOptions;\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n userSession: Ember.inject.service(),\n model: function model() {\n var model = {\n upcomingAuctions: this.store.query('auction', {\n participating: true,\n status: ['ACTIVE', 'RUNNING'],\n sort: 'DATE',\n limit: 3\n }),\n recentOrders: [],\n recentSales: [],\n currentUser: this.get('userSession.currentUser'),\n currentCompany: this.get('userSession.currentCompany')\n };\n\n if (this.can('view order')) {\n model.recentOrders = this.store.query('order', {\n buyerCompany: this.get('userSession.currentCompany.id'),\n sort: 'DATE',\n status: ['OFFER', 'ACCEPTED', 'REQUEST_REJECTED', 'OFFER_CANCELED'],\n limit: 3\n });\n model.recentSales = this.store.query('order', {\n sellerCompany: this.get('userSession.currentCompany.id'),\n sort: 'DATE',\n status: ['REQUEST', 'ACCEPTED'],\n limit: 3\n });\n }\n\n return model;\n },\n _resetController: Ember.on('deactivate', function () {\n this.controllerFor(this.get('routeName')).set('_showUserSettingsForm', false);\n this.controllerFor(this.get('routeName')).notifyPropertyChange('showUserSettingsForm');\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"U4BJ/Ctc\",\n \"block\": \"{\\\"symbols\\\":[\\\"auction\\\",\\\"order\\\",\\\"order\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/migration-banner\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box__header section\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight box__header--head\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"circle__image--wrapper margin-right-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.account.index\\\"],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[12,\\\"src\\\",[23,[\\\"model\\\",\\\"currentUser\\\",\\\"avatarUrl\\\"]]],[12,\\\"alt\\\",[23,[\\\"model\\\",\\\"currentUser\\\",\\\"fullName\\\"]]],[11,\\\"class\\\",\\\"circle__image\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[23,[\\\"model\\\",\\\"currentUser\\\",\\\"fullName\\\"]],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain float-right hidden-l font-highlight margin-top-1\\\"],[9],[1,[27,\\\"t\\\",[\\\"Log out\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"invalidateSession\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__header--content text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"image__upload__circle\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.company.index\\\"],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[12,\\\"src\\\",[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"logoUrl\\\"]]],[12,\\\"alt\\\",[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"name\\\"]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center box margin-top-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit company\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"logoUrl\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.company.index\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Edit company\\\"],null],false]],\\\"parameters\\\":[]},null],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.company.index\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Complete company info\\\"],null],false]],\\\"parameters\\\":[]},null],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"currentUser\\\",\\\"avatar\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.account.index\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Edit your profile\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.account.index\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Complete your profile\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"shops\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"or\\\",[[27,\\\"can\\\",[\\\"create shop\\\"],null],[27,\\\"can\\\",[\\\"create listing\\\"],null],[27,\\\"can\\\",[\\\"create producer\\\"],null],[27,\\\"can\\\",[\\\"create auction\\\"],null]],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isRejected\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box__header section hidden block-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight box__header--head\\\"],[9],[1,[27,\\\"t\\\",[\\\"Quick links\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__header--content\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create listing\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"dropdown-select\\\",null,[[\\\"placeholder\\\",\\\"options\\\",\\\"buttonClass\\\",\\\"class\\\"],[[27,\\\"t\\\",[\\\"+ New coffee\\\"],null],[23,[\\\"quickLinkListingOptions\\\"]],\\\"button button--full\\\",\\\"block dropdown-select--button\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create producer\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"dropdown-select\\\",null,[[\\\"placeholder\\\",\\\"options\\\",\\\"buttonClass\\\",\\\"class\\\"],[[27,\\\"t\\\",[\\\"+ New origin\\\"],null],[23,[\\\"quickLinkProducerOptions\\\"]],\\\"button button--full\\\",\\\"block dropdown-select--button\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create auction\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.auction.create\\\"],[[\\\"class\\\"],[\\\"button button--secondary button--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"+ New auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create shop\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.shop.create\\\"],[[\\\"class\\\"],[\\\"button button--secondary button--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"+ New shop\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create location\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"createWarehouse\\\"],[1]]]],[[\\\"class\\\"],[\\\"button button--secondary button--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"+ New warehouse\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"invite user for company\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box__header section hidden block-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight box__header--head\\\"],[9],[1,[27,\\\"t\\\",[\\\"Invite users\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__header--content\\\"],[9],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"inviteUser\\\"],[1]]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Invite to company\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"verificationStatus\\\"]],\\\"PENDING\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box__header hidden block-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight box__header--head\\\"],[9],[1,[27,\\\"t\\\",[\\\"Verification\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__header--content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You have requested verification on
{{verificationDate}}
\\\"],[[\\\"verificationDate\\\"],[[27,\\\"moment-format\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"verificationRequestedDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"verificationStatus\\\"]],\\\"VERIFIED\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box__header section hidden block-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight box__header--head\\\"],[9],[1,[27,\\\"t\\\",[\\\"Verification\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__header--content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You were verified on \\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"moment-format\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"verifiedDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"verificationStatus\\\"]],\\\"REJECTED\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box__header section hidden block-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight box__header--head\\\"],[9],[1,[27,\\\"t\\\",[\\\"Verification\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__header--content\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You were rejected on\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"moment-format\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\",\\\"rejectedDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[27,\\\"not\\\",[[23,[\\\"isLoaded\\\"]]],null],[23,[\\\"model\\\",\\\"upcomingAuctions\\\",\\\"length\\\"]],[23,[\\\"model\\\",\\\"recentSales\\\"]],[23,[\\\"model\\\",\\\"recentOrders\\\"]],[23,[\\\"messageCenter\\\",\\\"hasUnread\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info-dashboard-start\\\",\\\"tooltip--outer hidden block-l\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can also sell your coffee on V-Hub directly or in an auction.\\\"],null],false],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"info-center.getting-started.how-to-sell\\\"],[[\\\"class\\\"],[\\\"button--plain\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Learn more about selling coffees\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"info__box__start__main-container margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"currentUser\\\",\\\"fullName\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Hi, {{userName}}!\\\"],[[\\\"userName\\\"],[[23,[\\\"model\\\",\\\"currentUser\\\",\\\"fullName\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Hi!\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You will see all your newest orders, upcoming auctions, messages and notifications in your dashboard. Currently you have no new notifications.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-bottom-4 vertical-align-top\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"store\\\"],[[\\\"class\\\"],[\\\"button button--primary button--full--mobile vertical-align-top\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Start browsing coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create shop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"shops\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview\\\"],[[\\\"class\\\"],[\\\"button button--secondary button--full--mobile vertical-align-top\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Manage your coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.shop.create\\\"],[[\\\"class\\\"],[\\\"button button--secondary button--full--mobile vertical-align-top\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Start selling your coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[21,\\\"timezone-checker\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showUserSettingsForm\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Complete your profile\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"user-settings-form\\\",null,[[\\\"user\\\",\\\"hideAfterSave\\\",\\\"hideImageUpload\\\",\\\"action\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"currentUser\\\"]]],null],true,true,\\\"saveCurrentUser\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"view conversation\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"unread-conversations\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"recentOrders\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.orders\\\"],[[\\\"class\\\"],[\\\"float-right\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"View all orders\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Recent orders\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"recentOrders\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"order-item\\\",null,[[\\\"order\\\"],[[22,3,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"recentSales\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.sales\\\"],[[\\\"class\\\"],[\\\"float-right\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"View all sales\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Recent sales\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"recentSales\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"sales-item\\\",null,[[\\\"order\\\"],[[22,2,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[27,\\\"recent-auction-registrations\\\",null,[[\\\"company\\\"],[[23,[\\\"model\\\",\\\"currentCompany\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"upcomingAuctions\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Your upcoming auctions\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"upcomingAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"auction-list-item\\\",null,[[\\\"auction\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"isLoaded\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/loading/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"zoLQg9aV\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/create/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n availableData: Ember.inject.service(),\n l10n: Ember.inject.service(),\n queryParams: ['addToShop'],\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Select a shop for this auction.\n *\n * @event selectShop\n * @param {Model.Shop} shop\n * @private\n */\n selectShop: function selectShop(shop) {\n var _this = this;\n\n this.get('model').setProperties({\n shop: shop,\n bidStepCurrency: shop.get('currency')\n });\n Ember.run.next(function () {\n _this.set('step', 1);\n\n window.scrollTo(0, 0);\n });\n },\n\n /**\n * When the auction information has been entered/updated.\n *\n * @event editAuction\n * @private\n */\n editAuction: function editAuction() {\n this.incrementProperty('step');\n window.scrollTo(0, 0);\n },\n\n /**\n * Add listings to this auction.\n *\n * @event addListings\n * @param {Model.Listing[]} listings\n * @param {Model.Listing[]} addedListings\n * @param {Model.Listing[]} removedListings\n * @private\n */\n addListings: function addListings(listings) {\n var model = this.get('model');\n model.set('listings', []);\n model.get('listings').pushObjects(listings);\n listings.forEach(function (listing) {\n listing.set('auction', model);\n listing.set('status', 'ACTIVE');\n listing.save();\n });\n this.incrementProperty('step');\n window.scrollTo(0, 0);\n },\n\n /**\n * Publish the auction.\n *\n * @event publish\n * @param {Boolean} createCoffee\n * @private\n */\n publish: function publish() {\n var createCoffee = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (createCoffee) {\n this.transitionToRoute('admin.manage.listing.create', {\n queryParams: {\n addToAuction: this.get('model.id'),\n addtoShop: this.get('model.shop.id')\n }\n });\n } else {\n this.transitionToRoute('admin.manage.overview.auction');\n }\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n if (newStep > this.get('step')) {\n this.get('toast').warning(this.get('l10n').t('You have to save your changes!'));\n return;\n }\n\n this.set('step', newStep);\n window.scrollTo(0, 0);\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * The current step of the process.\n *\n * @property step\n * @type Number\n */\n step: 0,\n\n /**\n * Pre-select the shop to which the auction should be added. This should be the ID of a shop.\n *\n * @property addToShop\n * @type String\n */\n addToShop: null,\n\n /**\n * All shops the user can select from.\n *\n * @property availableShops\n * @type Model.Shop[]\n * @private\n */\n availableShops: Ember.computed.alias('availableData.shops'),\n\n /**\n * All steps for the creation process.\n *\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('availableShops.{firstObject,length}', 'l10n', function () {\n var steps = [];\n\n if (this.get('availableShops.length') === 1) {\n this.send('selectShop', this.get('availableShops.firstObject'));\n } else {\n steps.push({\n label: this.get('l10n').t('Select shop'),\n step: 0,\n subSteps: []\n });\n }\n\n steps.push({\n label: this.get('l10n').t('Create auction'),\n step: 1,\n subSteps: [{\n label: this.get('l10n').t('Base information'),\n anchor: '#auction-manage-1'\n }, {\n label: this.get('l10n').t('Policy'),\n anchor: '#auction-manage-2'\n }]\n });\n steps.push({\n label: this.get('l10n').t('Add coffee'),\n step: 2,\n subSteps: []\n });\n steps.push({\n label: this.get('l10n').t('Publish'),\n step: 3,\n subSteps: []\n });\n return steps;\n }) // -------------------------------------------------------------------------\n // Methods\n\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n /**\n * The route to create a new auction.\n *\n * @namespace Route\n * @class ManageAuctionCreate\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview.auction',\n title: Ember.get(this, 'l10n').t('Create new auction')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Invokes a change for controller's `allSteps`.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n activate: function activate() {\n var _this = this;\n\n Ember.run.once(function () {\n _this.controller.notifyPropertyChange('allSteps');\n });\n },\n\n /**\n * Performs ability check if user can create an auction.\n *\n * @public\n * @method beforeModel\n * @return {Promise}\n */\n beforeModel: function beforeModel() {\n if (!this.can('create auction')) {\n this.transitionTo('admin.manage.overview.auction');\n return;\n }\n\n return this._super.apply(this, arguments);\n },\n\n /**\n * Create a new auction object.\n *\n * @method model\n * @returns Model.Auction\n */\n model: function model() {\n var _this2 = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.t0 = _this2.store;\n _context.next = 3;\n return _this2.get('userSession.currentCompany');\n\n case 3:\n _context.t1 = _context.sent;\n _context.t2 = {\n company: _context.t1,\n orderableSampleBundles: 1,\n registrationRequired: true,\n listingActiveCount: 0,\n duration: 180000,\n status: 'DRAFT'\n };\n return _context.abrupt(\"return\", _context.t0.createRecord.call(_context.t0, 'auction', _context.t2));\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\n * Resets route's model and controller step.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n this.currentModel.rollbackAttributes();\n\n if (this.currentModel.get('isDestroyed')) {\n this.currentModel.save();\n }\n\n this.controller.set('step', 0);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/create/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"5JVF7yNi\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create auction\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__auction__step0\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You need to select a shop where your auction will be presented. You can then add coffees from the selected shop to your auction.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__auction__step1\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can restrict the access to your auction. Restricted auctions allow you to individually confirm all auction participants.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__auction__step2\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can always add more coffee at a later point, even after you have published your auction. Just click on a coffee to add it to an auction.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__auction__step3\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"After you have published your auction everyone can see and register for it.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Your auction has been saved\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Create a new auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-select\\\",null,[[\\\"action\\\",\\\"selectedShopId\\\"],[\\\"selectShop\\\",[27,\\\"readonly\\\",[[23,[\\\"addToShop\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-auction\\\",null,[[\\\"auction\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"editAuction\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-added-listings\\\",null,[[\\\"auction\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"addListings\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-auction-publish\\\",null,[[\\\"auction\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"publish\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/auction/create/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/edit/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * When the auction information has been entered/updated.\n *\n * @event editAuction\n * @private\n */\n editAuction: function editAuction() {\n this.incrementProperty('step');\n window.scrollTo(0, 0);\n },\n\n /**\n * Add listings to this auction.\n *\n * @event addListings\n * @param {Model.Listing[]} listings\n * @param {Model.Listing[]} addedListings\n * @param {Model.Listing[]} removedListings\n * @private\n */\n addListings: function addListings(listings, addedListings, removedListings) {\n var model = this.get('model');\n addedListings.forEach(function (listing) {\n listing.set('auction', model);\n listing.set('status', 'ACTIVE');\n listing.save();\n });\n removedListings.forEach(function (listing) {\n listing.set('auction', null);\n listing.set('status', 'INACTIVE');\n listing.save();\n });\n model.set('listings', []);\n model.get('listings').pushObjects(listings);\n this.incrementProperty('step');\n window.scrollTo(0, 0);\n },\n\n /**\n * Publish the auction.\n *\n * @event publish\n * @param {Boolean} createCoffee\n * @private\n */\n publish: function publish() {\n var createCoffee = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (createCoffee) {\n this.transitionToRoute('admin.manage.listing.create', {\n queryParams: {\n addToAuction: this.get('model.id'),\n addtoShop: this.get('model.shop.id')\n }\n });\n } else {\n this.transitionToRoute('admin.manage.overview.auction');\n }\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n if (this.get('model.hasDirtyAttributes') && newStep > this.get('step')) {\n // Manually check the start date, because it may be two different moment objects with the same value\n var changedAttributes = this.get('model').changedAttributes();\n var hasChanged = false;\n\n for (var i in changedAttributes) {\n if (typeof changedAttributes.hasOwnProperty === 'function' && // eslint-disable-next-line no-prototype-builtins\n !changedAttributes.hasOwnProperty(i)) {\n continue;\n }\n\n if (i !== 'startedDate' && i !== 'finalSampleOrderDate') {\n hasChanged = true;\n }\n\n if (changedAttributes[i][0].format('x') !== changedAttributes[i][0].format('x')) {\n hasChanged = true;\n }\n }\n\n if (hasChanged) {\n this.get('toast').warning(this.get('l10n').t('You have to save your changes!'));\n return;\n }\n }\n\n this.set('step', newStep);\n window.scrollTo(0, 0);\n },\n\n /**\n * Exit the process and return to the overview.\n *\n * @event exitProcess\n * @private\n */\n exitProcess: function exitProcess() {\n this.transitionToRoute('admin.manage.overview.auction');\n },\n\n /**\n * Add the selected listings and return to the overview.\n *\n * @event exitProcess\n * @private\n */\n addListingsExit: function addListingsExit(listings, addedListings, removedListings) {\n this.send('addListings', listings, addedListings, removedListings);\n this.transitionToRoute('admin.manage.overview.auction');\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * The current step of the process.\n *\n * @property step\n * @type Number\n */\n step: 0,\n\n /**\n * All steps for the creation process.\n *\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('availableShops.length', 'l10n', function () {\n var steps = [];\n steps.push({\n label: this.get('l10n').t('Edit auction'),\n step: steps.length,\n subSteps: [{\n label: this.get('l10n').t('Base information'),\n anchor: '#auction-manage-1'\n }, {\n label: this.get('l10n').t('Policy'),\n anchor: '#auction-manage-2'\n }]\n });\n steps.push({\n label: this.get('l10n').t('Add coffee'),\n step: steps.length,\n subSteps: []\n });\n steps.push({\n label: this.get('l10n').t('Publish auction'),\n step: steps.length,\n subSteps: []\n });\n return steps;\n }) // -------------------------------------------------------------------------\n // Methods\n\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview.auction',\n title: Ember.get(this, 'l10n').t('Edit auction')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Invokes a change for controller's `allSteps`.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n activate: function activate() {\n var _this = this;\n\n Ember.run.once(function () {\n _this.controller.notifyPropertyChange('allSteps');\n });\n },\n model: function model(params) {\n return this.store.findRecord('auction', params.auction_id);\n },\n afterModel: function afterModel(model, _transition) {\n if (!this.can('edit auction', model)) {\n this.get('toast').warning(this.get('l10n').t('You cannot edit this auction!'));\n this.replaceWith('admin.manage.overview.auction');\n }\n },\n\n /**\n * Resets route's model and controller step.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n this.currentModel.rollbackAttributes();\n this.controller.set('step', 0);\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Redirects to overview on model errors.\n *\n * @public\n * @event error\n * @return {Void}\n */\n error: function error() {\n this.get('toast').warning(this.get('l10n').t('You cannot edit this auction!'));\n this.transitionTo('admin.manage.overview.auction');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/edit/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"iZZWtLDJ\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Edit auction\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Your auction has been saved\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Edit auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-auction\\\",null,[[\\\"auction\\\",\\\"action\\\",\\\"isEdit\\\",\\\"actionExit\\\"],[[23,[\\\"model\\\"]],\\\"editAuction\\\",true,\\\"exitProcess\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-added-listings\\\",null,[[\\\"auction\\\",\\\"action\\\",\\\"isEdit\\\",\\\"actionExit\\\"],[[23,[\\\"model\\\"]],\\\"addListings\\\",true,\\\"addListingsExit\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-auction-publish\\\",null,[[\\\"auction\\\",\\\"action\\\",\\\"isEdit\\\"],[[23,[\\\"model\\\"]],\\\"publish\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/auction/edit/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/index/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage auction index.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend({\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Redirects to overview.\n *\n * @public\n * @method redirect\n * @return {Void}\n */\n redirect: function redirect() {\n this.transitionTo('admin.manage.overview.auction');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"cOafSTrq\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"loading-spinner\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/auction/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"@vollersgroup/hub-frontend/mixins/company-verified\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _companyVerified) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _companyVerified.default, {\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Checks if `auctionsEnabled` flag is set on current company.\n * If not, it will redirect to manage overview index page.\n *\n * @public\n * @method beforeModel\n * @return Promise\n */\n beforeModel: function beforeModel() {\n var _this = this;\n\n var companySuccessCallback = function companySuccessCallback() {\n if (!_this.can('create auction')) {\n Ember.get(_this, 'toast').info(Ember.get(_this, 'l10n').t('Sorry, but you cannot manage auctions because the module is not active.'));\n\n _this.transitionTo('admin.manage.index');\n }\n };\n\n return Ember.get(this, 'userSession.currentCompany').then(companySuccessCallback);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/auction/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Zjo2W2QG\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/auction/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-controller-mixin\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Base mixin for bulk controllers.\n *\n * @namespace Mixin\n * @class BulkControllerMixin\n * @extends Ember.Mixin\n */\n var _default = Ember.Mixin.create({\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n bulkLookupData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameter definition.\n *\n * @property queryParams\n * @type {Array}\n * @public\n */\n queryParams: ['ids', 'step'],\n\n /**\n * Collection of selected model ids.\n *\n * @property ids\n * @type {Array}\n * @public\n */\n ids: [],\n\n /**\n * Current import step of bulk workflow.\n *\n * @property step\n * @type {String}\n * @public\n */\n step: 'upload',\n\n /**\n * Flag whether this controller is used\n * either for edit or create route.\n *\n * @property isEdit\n * @type {Boolean}\n * @public\n */\n isEdit: false,\n\n /**\n * Current model name for bulk importing.\n * This has to in sync with named routing\n * and model name, f.e. 'listing' on the\n * route /admin/manage/bulk/listing[-edit].\n *\n * @property currentImportMode\n * @type {String}\n * @public\n */\n modelName: null,\n\n /**\n * Name of overview route.\n *\n * @property overviewRoute\n * @type {String}\n * @public\n */\n overviewRoute: null,\n\n /**\n * Reference to handsontable output data.\n *\n * @property handsontableOutput\n * @type {Array}\n * @public\n */\n handsontableOutput: Ember.computed({\n get: function get()\n /*key*/\n {\n return [];\n }\n }),\n\n /**\n * Reference to handsontable input data.\n *\n * @property handsontableInput\n * @type {Array}\n * @public\n */\n handsontableInput: Ember.computed({\n get: function get()\n /*key*/\n {\n return [];\n }\n }),\n\n /**\n * Hashmap of available fields for bulk\n * workflow depending on `modelName`.\n *\n * @property availableFields\n * @type {Object}\n * @public\n */\n availableFields: Ember.computed('bulkLookupData', 'modelName', 'saveState', {\n get: function get()\n /*key*/\n {\n var modelName = Ember.get(this, 'modelName');\n var bulkLookupData = Ember.get(this, 'bulkLookupData');\n return Ember.get(bulkLookupData, \"availableFields.\".concat(modelName));\n }\n }),\n\n /**\n * Array of model keys valid for bulk grid.\n * Per default this is composition of all\n * `availableFields` plus `id` property.\n *\n *\n * @property fields\n * @type {Array}\n * @public\n */\n tableFields: Ember.computed('availableFields', 'modelName', 'saveState', {\n get: function get()\n /*key*/\n {\n var availableFields = Ember.get(this, 'availableFields');\n var fields = Object.keys(availableFields);\n fields = fields.concat(['id']);\n return fields;\n }\n }),\n\n /**\n * Map of all fields from current model.\n * This can be used to sanitize output\n * of bulk grid json data before call\n * store's `createRecord()` method.\n *\n * @property modelFields\n * @type {Map}\n * @public\n */\n modelFields: Ember.computed('modelName', 'saveState', 'store', {\n get: function get()\n /*key*/\n {\n var modelName = Ember.get(this, 'modelName');\n var modelClass = this.store.modelFor(modelName);\n var modelFields = Ember.get(modelClass, 'fields'); // `fields` doesn't contain `id`!\n\n modelFields.set('id', 'attribute');\n return modelFields;\n }\n }),\n\n /**\n * Hash keeping save state information\n * and consists of `isRunning`, `isFinished`,\n * `logs`, `addCount`, `editCount`, `errorCount`,\n * `totalCount` and `currentCount`. Note: This is\n * lazy initialized by init() and will be reset by\n * invoking the reset() method most likely by route.\n *\n * @property listingState\n * @type {Object}\n * @public\n */\n saveState: Ember.computed({\n get: function get()\n /*key*/\n {\n return {};\n }\n }),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Sets up initial state.\n *\n * @public\n * @method init\n * @return {Void}\n */\n init: function init() {\n this._super.apply(this, arguments);\n\n this.reset();\n },\n\n /**\n * Sets up `handsontableInput`\n * by mapping models to POJOs\n * if `isEdit` is set to true.\n *\n * @public\n * @method setup\n * @return {Void}\n */\n setup: function setup() {\n if (!Ember.get(this, 'isEdit')) {\n var step = Ember.get(this, 'model.step');\n Ember.set(this, 'step', step);\n return;\n }\n\n var model = Ember.get(this, 'model');\n var data = this.mapModelsToData_(model);\n Ember.set(this, 'handsontableInput', data);\n },\n\n /**\n * Resets `saveState` when the\n * controller gets destructed.\n *\n * @public\n * @method reset\n * @return {Void}\n */\n reset: function reset() {\n Ember.set(this, 'saveState', {\n logs: [],\n addCount: 0,\n editCount: 0,\n errorCount: 0,\n totalCount: 0,\n currentCount: 0,\n isRunning: false,\n isFinished: false\n });\n Ember.get(this, 'bulkLookupData').reset();\n },\n\n /**\n * Saves mapped models from table within an asynchrounous task queue.\n *\n * @private\n * @method _save\n * @param {Array} models Mapped models from table.\n *\n * @return {Void}\n */\n _save: function _save(models) {\n var _this = this;\n\n if (!Ember.get(this, 'saveState.isRunning')) {\n Ember.set(this, 'saveState.totalCount', models.length);\n Ember.set(this, 'saveState.currentCount', 1);\n Ember.set(this, 'saveState.isRunning', true);\n }\n\n var logs = Ember.get(this, 'saveState.logs');\n var model = models.shiftObject();\n var isNew = Ember.get(model, 'isNew');\n\n var successCallback = function successCallback() {\n if (isNew) {\n var addCount = Ember.get(_this, 'saveState.addCount');\n Ember.set(_this, 'saveState.addCount', addCount + 1);\n } else {\n var editCount = Ember.get(_this, 'saveState.editCount');\n Ember.set(_this, 'saveState.editCount', editCount + 1);\n }\n };\n\n var failureCallback = function failureCallback() {\n var errorCount = Ember.get(_this, 'saveState.errorCount');\n Ember.set(_this, 'saveState.errorCount', errorCount + 1);\n };\n\n var finallyCallback = function finallyCallback() {\n logs.pushObject({\n model: model,\n isNew: isNew\n });\n\n if (Ember.isEmpty(models)) {\n Ember.set(_this, 'saveState.isRunning', false);\n Ember.set(_this, 'saveState.isFinished', true);\n\n _this.afterSave_();\n\n return;\n }\n\n var currentCount = Ember.get(_this, 'saveState.currentCount');\n Ember.set(_this, 'saveState.currentCount', currentCount + 1); // >>> RECURSIVE CALL\n\n _this._save(models);\n };\n\n model.save().then(successCallback, failureCallback).finally(finallyCallback);\n },\n\n /**\n * Maps JSON data from table to models.\n *\n * @protected\n * @method mapDataToModels_\n * @return {Promise}\n */\n mapDataToModels_: function mapDataToModels_() {\n var _this2 = this;\n\n var customProperties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var models = [];\n\n var promiseCallback = function promiseCallback(resolve, reject) {\n var data = Ember.get(_this2, 'handsontableOutput');\n var modelFields = Ember.get(_this2, 'modelFields'); // 2) iterate fetched or created listings\n // and update properties from table data\n\n var allSuccessCallback = function allSuccessCallback(results) {\n results.forEach(function (result) {\n // get model and json from RSVP response hash\n var model = result.model;\n var json = result.json; // invoke template methods to get model and json\n\n model = _this2.prepareModelForSave_(model, json);\n json = _this2.prepareDataForSave_(json, model); // merge new data from `json`\n\n model.setProperties(json); // and add model to stack\n\n models.push(model);\n }); // finally resolve listings\n\n resolve(models);\n };\n\n var allFailureCallback = function allFailureCallback() {\n reject();\n }; // 1) iterate table data and retrieve producers\n // either directly from store, server or create\n\n\n var promises = [];\n data.forEach(function (bulkGridRow) {\n // process only valid grid rows\n if (!bulkGridRow.getValid()) {\n return;\n } // create copy of row data and merge\n // custom properties into json data\n\n\n var json = bulkGridRow.getData();\n json = _this2.transformFromData_(json, modelFields);\n Ember.merge(json, customProperties); // try to reference model either by its ID\n // (in edit mode) or `erpId` attribute (in\n // create mode), otherwise it's a new one\n\n var model = _this2.getModelFromData_(json); // push promise with listing/json to stack\n\n\n promises.push(Ember.RSVP.hash({\n model: model,\n json: json\n }));\n }); // now resolve all promises\n\n Ember.RSVP.all(promises).then(allSuccessCallback, allFailureCallback);\n };\n\n return new Ember.RSVP.Promise(promiseCallback);\n },\n\n /**\n * Maps models to JSON data for table.\n *\n * @protected\n * @param {Array} models\n * @method mapModelsToData_\n *\n * @return {Array}\n */\n mapModelsToData_: function mapModelsToData_(models) {\n var _this3 = this;\n\n var tableFields = Ember.get(this, 'tableFields');\n var data = [];\n models.forEach(function (model) {\n // append JSON representation of required fields by\n // using getProperties() method with given fields\n data.push(_this3.transformToData_(model, tableFields));\n });\n return data;\n },\n\n /**\n * Prepares model for bulk row. Can be used to\n * apply custom transforms before it's handed\n * over to handsontable. By default it calls\n * getProperties() on model with all fields\n * configured within `availableFields`.\n *\n * @protected\n * @param {Model} model\n * @param {Array} tableFields\n * @method transformToData_\n *\n * @return {Model}\n */\n transformToData_: function transformToData_(model, tableFields) {\n return model.getProperties(tableFields);\n },\n\n /**\n * Prepares data from bulk row. Can be used to\n * apply custom transforms before it's handed\n * over to model instance. By default it strips\n * all properties which are innalid model props,\n * otherwise this could lead to errors in store.\n * If you depend on data before stripping, call\n * `_super()` AFTER your transformations!\n *\n * @protected\n * @param {Object} json\n * @param {Array} fields\n * @method transformFromData_\n *\n * @return {Model}\n */\n transformFromData_: function transformFromData_(json, modelFields) {\n var sanitized = {};\n\n for (var key in json) {\n if (modelFields.has(key)) {\n sanitized[key] = json[key];\n }\n }\n\n return sanitized;\n },\n\n /**\n * Tries to retrieve model from store if there's\n * either an `id` or `erpId`. If both properties\n * are missing, it's assumed to be a new record.\n *\n * @protected\n * @param {Object} json\n * @method getModelFromData_\n *\n * @return {Model}\n */\n getModelFromData_: function getModelFromData_(json) {\n var modelName = Ember.get(this, 'modelName');\n var model;\n\n if (!Ember.isEmpty(json.id)) {\n if (this.store.hasRecordForId(modelName, json.id)) {\n model = this.store.peekRecord(modelName, json.id);\n } else {\n model = this.store.findRecord(modelName, json.id);\n }\n } else if (!Ember.isEmpty(json.erpId)) {\n model = this.store.query('listing', {\n company: Ember.get(this, 'userSession.currentCompany.id'),\n erpIds: [json.erpId]\n });\n } else {\n model = this.store.createRecord(modelName, json);\n }\n\n return model;\n },\n\n /**\n * Prepares model before invoking save().\n * This can be used to transform value\n * returned by getModelFromData_(). By\n * default, it checks for responses of\n * calls with an `erpId` query param.\n *\n * @protected\n * @param {Model} model\n * @param {Object} json\n * @method prepareModelForSave_\n *\n * @return {Model}\n */\n prepareModelForSave_: function prepareModelForSave_(model, json) {\n // /company//?erpIds=[] delivers\n // always collection as result, therefore we\n // have to check if given `erpId` was found\n if (Ember.isArray(model)) {\n // try to get the first array entry as\n // it can only contain one listing here\n model = Ember.get(model, 'firstObject'); // create a new listing\n\n if (Ember.isNone(model)) {\n model = this.store.createRecord(Ember.get(this, 'modelName'), json);\n }\n }\n\n return model;\n },\n\n /**\n * Prepares json before invoking save().\n * This can be used to apply relations\n * and other custom data properties. By\n * default, this method doesn't apply\n * any transforms.\n *\n * @protected\n * @param {Object} json\n * @param {Model} model\n * @method prepareDataForSave_\n *\n * @return {Object}\n */\n prepareDataForSave_: function prepareDataForSave_(json\n /*, model*/\n ) {\n return json;\n },\n\n /**\n * Callback to be used for custom actions\n * after recursive save has been finished.\n *\n * @protected\n * @method afterSave_\n *\n * @return {Object}\n */\n afterSave_: function afterSave_() {},\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n //\n // Generic\n //\n\n /**\n * Transitions to given step with query param `step`.\n *\n * @event goToStep\n * @param {Object} step\n * @return {Void}\n * @private\n */\n goToStep: function goToStep(step) {\n if (Ember.isNone(step)) {\n return;\n }\n\n var currentStep = Ember.get(this, 'step');\n var stepId = Ember.get(step, 'id');\n\n if (currentStep === step) {\n return;\n }\n\n this.transitionToRoute({\n queryParams: {\n step: stepId\n }\n });\n },\n\n /**\n * Invokes recursive save queue.\n *\n * @event save\n * @param {Object} [customProperties={}]\n * @return {Void}\n * @private\n */\n save: function save() {\n var customProperties = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.mapDataToModels_(customProperties).then(Ember.run.bind(this, this._save));\n },\n\n /**\n * Resets `saveState` and redirects\n * to overview page from `modelName`.\n *\n * @event finish\n * @return {Void}\n * @private\n */\n finish: function finish() {\n this.transitionToRoute(Ember.get(this, 'overviewRoute'));\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-controller\", [\"exports\", \"ember-data\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-mixin\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-controller-mixin\", \"ember-launch-darkly\"], function (_exports, _emberData, _bulkListingMixin, _bulkControllerMixin, _emberLaunchDarkly) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var PromiseObject = _emberData.default.PromiseObject;\n /**\n * Listing bulk controller for create and edit.\n *\n * @namespace Controller\n * @uses Mixin.BulkListingMixin\n * @uses Mixin.BulkControllerMixin\n * @class BulkListingController\n * @extends Ember.Controller\n */\n\n var _default = Ember.Controller.extend(_bulkControllerMixin.default, _bulkListingMixin.default, {\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameter definition.\n *\n * @property queryParams\n * @type {Array}\n * @public\n */\n queryParams: [{\n currentShopId: {\n as: 'shop'\n }\n }, {\n currentAuctionId: {\n as: 'auction'\n }\n }, {\n orderBy: {\n as: 'orderBy'\n }\n }, {\n filterStatus: {\n as: 'status'\n }\n }, {\n filterOrigins: {\n as: 'origins'\n }\n }, {\n filterWarehouses: {\n as: 'warehouses'\n }\n }, {\n showArchived: {\n as: 'archived'\n }\n }, {\n showRatings: {\n as: 'ratings'\n }\n }, {\n searchTerm: {\n as: 'term'\n }\n }, {\n salesNumber: {\n as: 'sales'\n }\n }],\n currentShopId: null,\n currentAuctionId: null,\n orderBy: 'DATE',\n filterStatus: Ember.A(),\n filterOrigins: Ember.A(),\n filterWarehouses: Ember.A(),\n showArchived: false,\n showRatings: false,\n searchTerm: '',\n salesNumber: '',\n\n /**\n * Flag if auction selection is shown in UI.\n *\n * @property showAuctions\n * @type {Boolean}\n * @public\n */\n showAuctions: false,\n\n /**\n * Reference to selected shop.\n *\n * @property currentShop\n * @type {Model.Shop}\n * @public\n */\n currentShop: Ember.computed('currentShopId', 'hiddenShopId', 'store', {\n get: function get()\n /*key*/\n {\n var shopId = Ember.get(this, 'currentShopId') || Ember.get(this, 'hiddenShopId');\n\n if (Ember.isNone(shopId)) {\n return null;\n }\n\n if (this.store.hasRecordForId('shop', shopId)) {\n return this.store.peekRecord('shop', shopId);\n }\n\n return PromiseObject.create({\n promise: this.store.findRecord('shop', shopId)\n });\n }\n }),\n\n /**\n * Reference to selected auction\n * if 'Publish to auction' used.\n *\n * @property currentAuction\n * @type {Model.Auction}\n * @public\n */\n currentAuction: Ember.computed('currentAuctionId', 'hiddenAuctionId', 'store', {\n get: function get()\n /*key*/\n {\n var auctionId = Ember.get(this, 'currentAuctionId') || Ember.get(this, 'hiddenAuctionId');\n\n if (Ember.isNone(auctionId)) {\n return null;\n }\n\n if (this.store.hasRecordForId('auction', auctionId)) {\n return this.store.peekRecord('auction', auctionId);\n }\n\n return PromiseObject.create({\n promise: this.store.findRecord('auction', auctionId)\n });\n }\n }),\n\n /**\n * Custom configuration for handsontable.\n *\n * @property handsontableSettings\n * @type {Object}\n * @public\n */\n handsontableSettings: Ember.computed('instance', {\n get: function get()\n /*key*/\n {\n return {\n cells: function cells(row, col, prop) {\n var data = this.instance.getSourceData();\n var cellProperties = {};\n var priceDynamic = data[row] && data[row].priceDynamic;\n\n switch (prop) {\n case 'price':\n cellProperties.readOnly = priceDynamic;\n cellProperties.allowEmpty = !priceDynamic;\n break;\n\n case 'cmarketPremiumAmount':\n cellProperties.readOnly = !priceDynamic;\n cellProperties.allowEmpty = priceDynamic;\n break;\n\n default:\n }\n\n return cellProperties;\n },\n readOnlyCellClassName: 'bulk-grid--readonly'\n };\n }\n }),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * @method prepareDataForSave_\n */\n prepareDataForSave_: function prepareDataForSave_(json, model) {\n if (Ember.get(model, 'isNew')) {\n // add missing required data implicitly\n json.shop = Ember.get(this, 'currentShop');\n json.createdBy = Ember.get(this, 'userSession.currentUser');\n json.priceCurrency = Ember.get(this, 'currentShop.currency');\n json.company = Ember.get(this, 'userSession.currentCompany');\n json.samplePriceCurrency = Ember.get(this, 'currentShop.currency');\n } else {\n // assert that immutable properties does not get\n // overridden by json - f.e. no state transition\n var immutableProperties = Ember.getProperties(model, ['id', 'shop', 'status', 'company', 'createdBy', 'priceCurrency', 'samplePriceCurrency']);\n Ember.merge(json, immutableProperties);\n } // assert that arrays are always arrays (even after delete)\n\n\n json.sensorialDescriptors = json.sensorialDescriptors || [];\n json.certifications = json.certifications || [];\n json.varieties = json.varieties || []; // assert that monetary values are always numeric\n // cause it's overridden by Handsontable by `null`\n\n json.cmarketPremiumAmount = json.cmarketPremiumAmount || 0;\n json.samplePrice = json.samplePrice || 0;\n json.price = json.price || 0;\n\n if (!(0, _emberLaunchDarkly.variation)('subscription-tab')) {\n json.warehouse = json.warehouse ? json.warehouse.id : null;\n }\n\n return json;\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Updates template reference once the\n * mapping process has been finished.\n *\n * @event saveListings\n * @param {String} mode\n * @return {Void}\n * @private\n */\n save: function save(mode) {\n Ember.set(this, 'showAuctions', false);\n var customProperties = {};\n\n switch (mode) {\n case 'SAVE':\n // no change of 'status' here (edit)\n break;\n\n case 'PUBLISH':\n Ember.set(customProperties, 'status', 'ACTIVE');\n break;\n\n case 'AUCTION':\n // eslint-disable-next-line no-case-declarations\n var auction = Ember.get(this, 'currentAuction');\n Ember.set(customProperties, 'status', 'ACTIVE');\n Ember.set(customProperties, 'auction', auction);\n break;\n\n case 'DRAFT':\n Ember.set(customProperties, 'status', 'DRAFT');\n break;\n\n default:\n }\n\n this._super(customProperties);\n },\n\n /**\n * Toggles `showAuctions` property.\n *\n * @event toggleShowAuctions\n * @return {Void}\n * @private\n */\n toggleShowAuctions: function toggleShowAuctions() {\n this.toggleProperty('showAuctions');\n },\n\n /**\n * Persists selected auction in `currentAuction`.\n *\n * @event onSelectAuction\n * @param {Model.Auction} auction\n * @return {Void}\n * @private\n */\n selectAuction: function selectAuction(auction) {\n Ember.set(this, 'currentAuction', auction);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-mixin\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Base mixin for listing route and controller.\n *\n * @namespace Mixin\n * @class BulkListingMixin\n * @extends Ember.Mixin\n */\n var _default = Ember.Mixin.create({\n l10n: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property modelName\n */\n modelName: 'listing',\n\n /**\n * @property overviewRoute\n */\n overviewRoute: 'admin.manage.overview',\n\n /**\n * @property modelTranslations\n */\n modelTranslations: Ember.computed('l10n', {\n get: function get()\n /*key*/\n {\n return {\n singular: Ember.get(this, 'l10n').t('listing'),\n plural: Ember.get(this, 'l10n').t('listings')\n };\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-route\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-route-mixin\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-mixin\"], function (_exports, _bulkRouteMixin, _bulkListingMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Listing route for create and edit.\n *\n * @namespace Route\n * @uses Mixin.BulkRouteMixin\n * @uses Mixin.BulkListingMixin\n * @class BulkListingRoute\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend(_bulkRouteMixin.default, _bulkListingMixin.default, {\n queryParams: {\n currentShopId: {\n as: 'shop',\n refreshModel: true\n },\n currentAuctionId: {\n as: 'auction',\n refreshModel: true\n },\n filterStatus: {\n as: 'status',\n refreshModel: true\n },\n filterOrigins: {\n as: 'origins',\n refreshModel: true\n },\n filterWarehouses: {\n as: 'warehouses',\n refreshModel: true\n },\n showArchived: {\n as: 'archived',\n refreshModel: true\n },\n showRatings: {\n as: 'ratings',\n refreshModel: true\n },\n orderBy: {\n as: 'orderBy',\n refreshModel: true\n },\n searchTerm: {\n as: 'term',\n refreshModel: true\n },\n salesNumber: {\n as: 'sales',\n refreshModel: true\n }\n },\n model: function model(params) {\n var _this = this;\n\n if (!Ember.get(this, 'isEdit') || !Ember.isEmpty(params.ids)) {\n return this._super.apply(this, arguments);\n }\n\n var query = {\n page: 1,\n pageSize: 99999,\n company: Ember.get(this, 'userSession.currentCompany.id'),\n sort: params.orderBy || 'DATE',\n hasRating: params.showRatings || false,\n archived: params.showArchived || false,\n auction: params.currentAuctionId || '',\n shop: params.currentShopId || '',\n status: !Ember.isEmpty(params.filterStatus) ? params.filterStatus : ['DRAFT', 'ACTIVE', 'EXPIRED', 'INACTIVE', 'SOLD_OUT'],\n term: params.searchTerm || '',\n producers: params.filterOrigins,\n salesOfferNumber: params.salesNumber || ''\n };\n query.sortDirection = query.sort === 'DATE' ? 'DESC' : 'ASC';\n\n if (Ember.isArray(params.filterWarehouses)) {\n query.warehouses = [];\n params.filterWarehouses.forEach(function (id) {\n if (!id || !_this.store.hasRecordForId('location', id)) {\n return;\n }\n\n var warehouse = _this.store.peekRecord('location', id);\n\n query.warehouses.push(Ember.get(warehouse, 'name'));\n });\n }\n\n return this.store.query(Ember.get(this, 'modelName'), query);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-controller\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-mixin\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-controller-mixin\"], function (_exports, _bulkProducerMixin, _bulkControllerMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Producer controller for create and edit.\n *\n * @namespace Controller\n * @uses Mixin.BulkProducerMixin\n * @uses Mixin.BulkControllerMixin\n * @class BulkProducerController\n * @extends Ember.Controller\n */\n var _default = Ember.Controller.extend(_bulkControllerMixin.default, _bulkProducerMixin.default, {\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Custom configuration for handsontable.\n *\n * @property handsontableSettings\n * @type {Object}\n * @public\n */\n handsontableSettings: Ember.computed('instance', {\n get: function get()\n /*key*/\n {\n return {\n cells: function cells(row, col, prop) {\n var data = this.instance.getSourceData();\n var type = data[row] && data[row].type;\n var cellProperties = {};\n\n switch (prop) {\n case 'numFarms':\n case 'numMembers':\n switch (type) {\n case 'COOP':\n case 'ASSOCIATION':\n cellProperties.readOnly = false;\n break;\n\n default:\n cellProperties.readOnly = true;\n }\n\n break;\n\n default:\n }\n\n return cellProperties;\n },\n readOnlyCellClassName: 'bulk-grid--readonly'\n };\n }\n }),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * @method transformToData_\n */\n transformToData_: function transformToData_(model, tableFields) {\n var json = this._super(model, tableFields.concat(['location']));\n\n json.subregion = Ember.get(json, 'location.subregion');\n json.country = Ember.get(json, 'location.country');\n json.region = Ember.get(json, 'location.region');\n return json;\n },\n\n /**\n * @method transformFromData_\n */\n transformFromData_: function transformFromData_(json, modelFields) {\n if (Ember.isNone(json.location)) {\n json.location = this.store.createRecord('location', {\n type: 'PRODUCER'\n });\n }\n\n Ember.set(json, 'location.subregion', json.subregion);\n Ember.set(json, 'location.country', json.country);\n Ember.set(json, 'location.region', json.region);\n delete json.subregion;\n delete json.country;\n delete json.region;\n return this._super(json, modelFields);\n },\n\n /**\n * @method prepareDataForSave_\n */\n prepareDataForSave_: function prepareDataForSave_(json, model) {\n if (Ember.get(model, 'isNew')) {\n json.company = Ember.get(this, 'userSession.currentCompany');\n }\n\n return json;\n },\n\n /**\n * @method afterSave_\n */\n afterSave_: function afterSave_() {\n Ember.get(this, 'availableData').notifyPropertyChange('producers');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-mixin\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Base mixin for producer route and controller.\n *\n * @namespace Mixin\n * @class BulkProducerMixin\n * @extends Ember.Mixin\n */\n var _default = Ember.Mixin.create({\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property modelName\n */\n modelName: 'producer',\n\n /**\n * @property overviewRoute\n */\n overviewRoute: 'admin.manage.overview.producer',\n\n /**\n * @property modelTransitions\n */\n modelTranslations: Ember.computed('l10n', {\n get: function get()\n /*key*/\n {\n return {\n singular: Ember.get(this, 'l10n').t('origin'),\n plural: Ember.get(this, 'l10n').t('origins')\n };\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-route\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-route-mixin\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-mixin\"], function (_exports, _bulkRouteMixin, _bulkProducerMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Producer route for create and edit.\n *\n * @namespace Route\n * @uses Mixin.BulkRouteMixin\n * @uses Mixin.BulkProducerMixin\n * @class BulkProducerRoute\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend(_bulkRouteMixin.default, _bulkProducerMixin.default);\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-route-mixin\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Base mixin for bulk routes.\n *\n * @namespace Mixin\n * @class BulkRouteMixin\n * @abstract\n */\n var _default = Ember.Mixin.create(_emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n bulkLookupData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameter definition.\n *\n * @property queryParams\n * @type {Array}\n * @public\n */\n queryParams: {\n ids: {\n refreshModel: true\n }\n },\n\n /**\n * Flag whether this route is used\n * either for edit or create route.\n *\n * @property isEdit\n * @type {Boolean}\n * @public\n */\n isEdit: false,\n\n /**\n * Current model name for bulk importing.\n * This has to in sync with named routing\n * and model name, f.e. 'listing' on the\n * route /admin/manage/bulk/listing[-edit].\n *\n * @property currentImportMode\n * @type {String}\n * @public\n */\n modelName: null,\n\n /**\n * Configuration of initial step to\n * be started when not in edit mode.\n *\n * @property defaultStep\n * @type {String}\n * @public\n */\n defaultStep: 'upload',\n\n /**\n * Name of overview route.\n *\n * @property overviewRoute\n * @type {String}\n * @public\n */\n overviewRoute: null,\n\n /**\n * Translations for `modelName` consisting\n * of an hash with `singluar` and `plural`\n * properties to be used in components.\n *\n * @property modelTranslations\n * @type {Object}\n * @public\n */\n modelTranslations: Ember.computed({\n get: function get()\n /*key*/\n {\n return {\n singular: '',\n plural: ''\n };\n }\n }),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n var modelTranslations = Ember.get(this, 'modelTranslations');\n var overviewRoute = Ember.get(this, 'overviewRoute');\n var title = !Ember.get(this, 'isEdit') ? Ember.get(this, 'l10n').t('Create {{modelName}}', {\n modelName: modelTranslations.plural\n }) : Ember.get(this, 'l10n').t('Edit {{modelName}}', {\n modelName: modelTranslations.plural\n });\n this.controller.set('navbar', {\n route: overviewRoute,\n title: title\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Redirects to default query parameter to start at beginning.\n * Note: Actual `step` gets set in controller's setup() method.\n *\n * @public\n * @method beforeModel\n * @param {Object} transition\n * @return {Void}\n */\n beforeModel: function beforeModel()\n /*transition*/\n {\n if (Ember.get(this, 'isEdit')) {\n return;\n }\n\n if (!this.can('edit template settings')) {\n this._abort();\n }\n\n this.transitionTo({\n queryParams: {\n step: Ember.get(this, 'defaultStep')\n }\n });\n },\n\n /**\n * Preloads company, shops, locations and producers from user.\n *\n * @public\n * @method model\n * @param {Object} params\n * @return {RSVP.Promise}\n */\n model: function model(params) {\n if (!Ember.get(this, 'isEdit')) {\n return {\n step: Ember.get(this, 'defaultStep')\n };\n }\n\n if (!Ember.isEmpty(params.ids)) {\n var modelName = Ember.get(this, 'modelName');\n return this.store.query(modelName, {\n ids: params.ids\n });\n }\n\n this._abort();\n },\n\n /**\n * Makes validation checks for loaded model.\n *\n * @public\n * @method model\n * @param {Object} params\n * @return {Promise}\n */\n afterModel: function afterModel(model) {\n if (!Ember.get(this, 'isEdit')) {\n return;\n }\n\n if (!Ember.isEmpty(model)) {\n return;\n }\n\n this._abort();\n },\n\n /**\n * Invokes `setup()` method of controller.\n *\n * @public\n * @method setupController\n * @param {Object} controller\n * @param {Mixed} model\n * @return {Promise}\n */\n setupController: function setupController(controller) {\n this._super.apply(this, arguments);\n\n controller.setup();\n },\n\n /**\n * Invokes `reset()` method of controller.\n *\n * @public\n * @method resetController\n * @param {Object} controller\n * @param {Boolean} isExiting\n * @param {Object} transition\n * @return {Promise}\n */\n resetController: function resetController(controller, isExiting\n /*, transition*/\n ) {\n this._super.apply(this, arguments);\n\n if (!isExiting) {\n return;\n }\n\n controller.reset();\n },\n\n /**\n * Redirects to overview on error cases.\n *\n * @private\n * @method _redirectToOverview\n * @return {Void}\n */\n _abort: function _abort() {\n this.transitionTo(Ember.get(this, 'overviewRoute'));\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/index/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage bulk index.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend({\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Redirects to overview.\n *\n * @public\n * @method redirect\n * @return {Void}\n */\n redirect: function redirect() {\n this.transitionTo('admin.manage.overview');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/listing-edit/controller\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-controller\"], function (_exports, _bulkListingController) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Bulk listing controller for edit.\n *\n * @namespace Controller\n * @class BulkListingEditController\n * @extends BulkListingController\n */\n var _default = _bulkListingController.default.extend({\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property isEdit\n */\n isEdit: true,\n\n /**\n * Caches shop id from related shops to\n * determine whether or not collections\n * belong to one or multiple shops.\n *\n * @property _cachedShopId\n * @type {String}\n * @private\n */\n _cachedShopId: null,\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * @method reset\n */\n reset: function reset() {\n this._super.apply(this, arguments);\n\n Ember.set(this, '_cachedShopId', null);\n },\n\n /**\n * @method mapModelsToData_\n */\n mapModelsToData_: function mapModelsToData_()\n /*models*/\n {\n var data = this._super.apply(this, arguments); // check if listings belong to same shop,\n // in this case we can set `hiddenShopId`\n // in order to show save to an auction\n\n\n var shopId = Ember.get(this, '_cachedShopId');\n\n if (shopId !== false) {\n Ember.set(this, 'hiddenShopId', shopId);\n }\n\n return data;\n },\n\n /**\n * @method transformToData_\n */\n transformToData_: function transformToData_(model\n /*, fields*/\n ) {\n // update `shopId` - if there are multiple\n // shop ids within collection, set to false\n var id = Ember.get(this, '_cachedShopId');\n var newId = Ember.get(model, 'shop.id');\n id = Ember.isNone(id) ? newId : id;\n id = id === newId ? newId : false;\n Ember.set(this, '_cachedShopId', id);\n return this._super.apply(this, arguments);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/listing-edit/route\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-route\"], function (_exports, _bulkListingRoute) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Bulk listing route for edit.\n *\n * @namespace Route\n * @class BulkListingEditRoute\n * @extends BulkListingRoute\n */\n var _default = _bulkListingRoute.default.extend({\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property isEdit\n */\n isEdit: true,\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Preloads settings, locations and producers from user.\n *\n * @public\n * @method beforeModel\n * @param {Object} transition\n * @return {RSVP.Promise}\n */\n beforeModel: function beforeModel()\n /*transition*/\n {\n return Ember.RSVP.hash({\n settings: Ember.get(this, 'userSession.currentCompany.settings'),\n locations: Ember.get(this, 'availableData.locations'),\n producers: Ember.get(this, 'availableData.producers')\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/listing-edit/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JOPTflTd\",\n \"block\": \"{\\\"symbols\\\":[\\\"component\\\",\\\"slot\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Edit multiple listings\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit multiple listings\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"bulk-workflow\\\",null,[[\\\"isEdit\\\",\\\"modelName\\\",\\\"saveState\\\",\\\"onSave\\\",\\\"onFinish\\\",\\\"availableFields\\\",\\\"modelTranslations\\\",\\\"handsontableInput\\\",\\\"handsontableOutput\\\",\\\"handsontableSettings\\\"],[true,[23,[\\\"modelName\\\"]],[23,[\\\"saveState\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"save\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"finish\\\"],null],[23,[\\\"availableFields\\\"]],[23,[\\\"modelTranslations\\\"]],[23,[\\\"handsontableInput\\\"]],[23,[\\\"handsontableOutput\\\"]],[23,[\\\"handsontableSettings\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"extra_buttons\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,1,[\\\"isSaving\\\"]]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"action\\\",\\\"disabled\\\"],[\\\"button\\\",\\\"bulk_save_publish\\\",[27,\\\"action\\\",[[22,0,[]],\\\"save\\\",\\\"SAVE\\\"],null],[27,\\\"if\\\",[[22,1,[\\\"canSave\\\"]],false,true],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"Save {{count}} listing\\\",\\\"Save {{count}} listings\\\",[27,\\\"if\\\",[[22,1,[\\\"validRowsCount\\\"]],[22,1,[\\\"validRowsCount\\\"]],\\\"\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"auctionsEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"availableData\\\",\\\"auctions\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"currentShop\\\"]]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"action\\\",\\\"disabled\\\"],[\\\"bulk_save_auction_toggle\\\",\\\"button button--special\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleShowAuctions\\\"],null],[27,\\\"if\\\",[[22,1,[\\\"canSave\\\"]],false,true],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"Save & publish {{count}} coffee to an auction\\\",\\\"Save & publish {{count}} coffees to an auction\\\",[27,\\\"if\\\",[[22,1,[\\\"validRowsCount\\\"]],[22,1,[\\\"validRowsCount\\\"]],\\\"\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"extra_footer\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,1,[\\\"isSaving\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight inline-block margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"required\\\",\\\"reference\\\",\\\"id\\\",\\\"value\\\",\\\"action\\\",\\\"options\\\"],[true,true,\\\"bulk_select_auction\\\",[27,\\\"readonly\\\",[[23,[\\\"currentAuction\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"selectAuction\\\"],null],[27,\\\"readonly\\\",[[23,[\\\"availableData\\\",\\\"auctions\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container margin-top-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"action\\\"],[\\\"bulk_save_auction\\\",\\\"button button--special\\\",[27,\\\"action\\\",[[22,0,[]],\\\"save\\\",\\\"AUCTION\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Add to this auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/bulk/listing-edit/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/listing/controller\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-controller\", \"ember-launch-darkly\"], function (_exports, _bulkListingController, _emberLaunchDarkly) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Bulk listing controller for create.\n *\n * @namespace Controller\n * @class BulkListingCreateController\n * @extends BulkListingController\n */\n var _default = _bulkListingController.default.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n toast: Ember.inject.service(),\n localStorage: Ember.inject.service(),\n availableData: Ember.inject.service(),\n legacyWarehouseMigration: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property step\n * @type {String}\n * @public\n */\n step: 'shop',\n\n /**\n * Additional steps for `bulk-workflow`.\n *\n * @property extraSteps\n * @type {Object}\n * @public\n */\n extraSteps: Ember.computed('availableData.activeShop.length', 'availableData.activeShops.[]', 'isSaving', 'l10n', {\n get: function get()\n /*key*/\n {\n // no `shop` step necessary if there's only one active shop\n // it will then be automatically set in this case - `init()`\n var shopCount = Ember.get(this, 'availableData.activeShop.length');\n\n if (shopCount === 1) {\n return {};\n }\n\n return {\n shop: {\n id: 'shop',\n partial: null,\n disabled: Ember.get(this, 'isSaving'),\n label: Ember.get(this, 'l10n').t('Select shop')\n }\n };\n }\n }),\n\n /**\n * Checks if either `isRunning` or `isFinished`\n * flag is set on `saveState` property provided\n * from consumer template.\n *\n * @property isSaving\n * @type {Boolean}\n * @public\n */\n isSaving: Ember.computed.or('saveState.isRunning', 'saveState.isFinished'),\n\n /**\n * Will be true if `hasProducers` and `hasWarehouses` are true.\n *\n * @property canSelectShop\n * @type {Boolean}\n * @public\n */\n canSelectShop: Ember.computed.and('hasProducers', 'hasLocations'),\n\n /**\n * Will be true if warehouses are available.\n *\n * @property hasProducers\n * @type {Boolean}\n * @public\n */\n hasProducers: Ember.computed.notEmpty('availableData.producers'),\n\n /**\n * Will be true if locations are available.\n *\n * @property hasLocations\n * @type {Boolean}\n * @public\n */\n hasLocations: Ember.computed.notEmpty('availableData.locations'),\n\n /**\n * Fuzzy mappings for handsontable grid.\n *\n * @property fuzzyMappings\n * @type {Object}\n * @public\n */\n fuzzyMappings: Ember.computed({\n get: function get()\n /*key*/\n {\n return {\n sensorialDescriptors: null\n };\n }\n }),\n disabledContinue: Ember.computed('canContinue', 'legacyWarehouseMigration.hasLegacyWarehouses', function () {\n if (!(0, _emberLaunchDarkly.variation)('new-warehouses')) {\n return this.canContinue;\n }\n\n return this.canContinue && !this.legacyWarehouseMigration.hasLegacyWarehouses;\n }),\n\n /**\n * Control flag for `bulk-workflow` if there are\n * asynchronous tasks which has to be finished.\n *\n * @property canContinue\n * @type {Boolean}\n * @default true\n * @public\n */\n canContinue: true,\n\n /**\n * Control flag for `bulk-workflow` if there are\n * asynchronous tasks which has to be finished.\n *\n * @property _storageKey\n * @type {String}\n * @private\n */\n _storageKey: 'hub_bulk_grid_listings',\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Checks shops and tries to load state of `fuzzyMappings`.\n *\n * @public\n * @method init\n * @return {Void}\n */\n init: function init() {\n this._super.apply(this, arguments);\n\n var shops = Ember.get(this, 'availableData.activeShops');\n\n if (Ember.get(shops, 'length') === 1) {\n var shop = Ember.get(shops, 'firstObject');\n this.send('selectShop', shop);\n }\n\n var storage = Ember.get(this, 'localStorage');\n var key = Ember.get(this, '_storageKey');\n var val = storage.getItem(key);\n\n if (Ember.isNone(val)) {\n return;\n }\n\n this.setProperties(val);\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Sets `currentShop` and corresponding defaults from\n * company settings on the `bulk-lookup-data` service.\n *\n * @event onSelectShop\n * @param {Model.Shop} shop\n * @return {Void}\n * @private\n */\n selectShop: function selectShop(shop) {\n var slug = Ember.get(shop, 'slug');\n Ember.set(this, 'currentShop', shop);\n var defaults = Ember.get(this, \"model.settings.contents.\".concat(slug, \".defaults\"));\n\n if (Ember.isNone(defaults)) {\n return;\n }\n\n if (defaults.warehouse && !defaults.legacyWarehouse) {\n defaults.legacyWarehouse = defaults.warehouse;\n }\n\n var availableFields = Ember.get(this, 'bulkLookupData.availableFields.listing');\n\n for (var key in availableFields) {\n var field = availableFields[key];\n var value = defaults[key];\n\n if (Ember.isNone(value)) {\n delete field.default;\n continue;\n }\n\n Ember.set(field, 'default', value);\n }\n },\n\n /**\n * Tries to merge data from existing listings\n * by their `erpId` if it's contained both in\n * uploaded data and template's mapping. Thus,\n * only imported data will be updated while\n * existing data stays and gets displayed.\n *\n * @event uploadSuccess\n * @param {Object} result\n * @param {Object} template\n * @return {Void}\n * @private\n */\n uploadSuccess: function uploadSuccess(result, template) {\n var _this = this;\n\n var setCanContinue = function setCanContinue(state) {\n Ember.set(_this, 'canContinue', state);\n };\n\n setCanContinue(false); // if this is an upload without a chosen\n // template there's nothing to do here...\n\n if (Ember.isNone(template)) {\n setCanContinue(true);\n return;\n } // try to get external column from mappings\n // for our internal `erpId` model property\n\n\n var erpIdColumn;\n var mappings = Ember.get(template, 'mappings');\n\n for (var externalColumn in mappings) {\n switch (mappings[externalColumn]) {\n case 'erpId':\n erpIdColumn = externalColumn;\n break;\n\n default:\n }\n }\n\n if (Ember.isNone(erpIdColumn)) {\n setCanContinue(true);\n return;\n } // collect `erpId` from uploaded data and\n // fetch listings via dedicated query route\n\n\n var data = result.data;\n\n if (!Ember.isArray(data)) {\n setCanContinue(true);\n return;\n }\n\n var company = Ember.get(this, 'userSession.currentCompany.id');\n var erpIds = data.reduce(function (ids, row) {\n // eslint-disable-next-line no-prototype-builtins\n if (row.hasOwnProperty(erpIdColumn)) {\n ids.push(row[erpIdColumn]);\n }\n\n return ids;\n }, []); // assert that there's no request made without\n // actual erpIds - this would fetch ALL items!\n\n if (Ember.isEmpty(erpIds)) {\n setCanContinue(true);\n return;\n } // note: we have to avoid super long URLs,\n // therefore we have to split the request\n\n\n var fields = Ember.get(this, 'tableFields');\n var maximum = erpIds.length;\n var map = {\n /* erpId: JSON */\n };\n var size = 50;\n var cursor = 0; // merge each row data with existing model if\n // found by `query()`, otherwise let untouched\n\n var successCallback = function successCallback(listings) {\n cursor += size;\n listings.forEach(function (model) {\n var json = _this.transformToData_(model, fields);\n\n if (Ember.isNone(json.erpId)) {\n return;\n }\n\n map[json.erpId] = json;\n });\n\n if (cursor < maximum) {\n fetchListings();\n return;\n }\n\n Ember.set(_this, 'handsontableInput', data.map(function (row) {\n return Ember.merge(map[row[erpIdColumn]] || {}, row);\n }));\n setCanContinue(true);\n };\n\n var failureCallback = function failureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this, 'l10n').t('An error occurred merging coffees with uploaded data: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this, 'toast').error(errorMessage);\n };\n\n var fetchListings = function fetchListings() {\n var start = cursor;\n var end = start + size;\n var ids = erpIds.slice(start, end);\n\n _this.store.query('listing', {\n erpIds: ids,\n company: company\n }).then(successCallback, failureCallback);\n };\n\n fetchListings();\n },\n\n /**\n * Toggles disabled states in prefill mode for\n * `price` and `cmarketPremiumAmount` depending\n * on the current state of `priceDynamic` flag.\n *\n * @event changePrefill\n * @param {Object} availableField\n * @param {Mixed} value\n * @return {Void}\n * @private\n */\n changePrefill: function changePrefill(availableField, value) {\n var price = Ember.get(this, 'availableFields.price');\n var premium = Ember.get(this, 'availableFields.cmarketPremiumAmount');\n\n switch (Ember.get(availableField, 'value')) {\n case 'priceDynamic':\n Ember.set(premium, 'prefillOptions.disabled', !value);\n Ember.set(price, 'prefillOptions.disabled', value);\n break;\n\n default:\n }\n },\n\n /**\n * Toggles `fuzzyMappings` property and saves\n * corresponding settings in local storage.\n *\n * @event toggleFuzzyMappings\n * @param {Boolean} state\n * @return {Void}\n * @private\n */\n toggleFuzzyMappings: function toggleFuzzyMappings(state) {\n var sensorialDescriptors = state ? 'sensorialCuppingDescription' : null;\n var fuzzyMappings = {\n sensorialDescriptors: sensorialDescriptors\n };\n Ember.set(this, 'fuzzyMappings', fuzzyMappings);\n var storage = Ember.get(this, 'localStorage');\n var key = Ember.get(this, '_storageKey');\n var val = storage.getItem(key) || {};\n\n if (sensorialDescriptors) {\n val['fuzzyMappings'] = fuzzyMappings;\n storage.setItem(key, val);\n } else {\n storage.removeItem(key);\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/listing/route\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-listing-route\"], function (_exports, _bulkListingRoute) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Listing bulk route for edit.\n *\n * @namespace Route\n * @class BulkListingCreateRoute\n * @extends BulkListingRoute\n */\n var _default = _bulkListingRoute.default.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property defaultStep\n * @type {String}\n * @public\n */\n defaultStep: 'shop',\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Preloads settings, shops, locations and producers from user.\n *\n * @public\n * @method model\n * @param {Object} params\n * @return {RSVP.Promise}\n */\n model: function model()\n /*params*/\n {\n return Ember.RSVP.hash({\n settings: Ember.get(this, 'userSession.currentCompany.settings'),\n locations: Ember.get(this, 'availableData.locations'),\n producers: Ember.get(this, 'availableData.producers'),\n shops: Ember.get(this, 'availableData.shops'),\n step: Ember.get(this, 'defaultStep')\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/listing/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"0ywnEZpb\",\n \"block\": \"{\\\"symbols\\\":[\\\"component\\\",\\\"slot\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create multiple listings\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/migration-banner\\\"],false],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Create multiple listings\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"bulk-workflow\\\",null,[[\\\"isReady\\\",\\\"modelName\\\",\\\"saveState\\\",\\\"extraSteps\\\",\\\"onSave\\\",\\\"canContinue\\\",\\\"onFinish\\\",\\\"goToStep\\\",\\\"currentStep\\\",\\\"fuzzyMappings\\\",\\\"availableFields\\\",\\\"modelTranslations\\\",\\\"handsontableInput\\\",\\\"handsontableOutput\\\",\\\"onUploadSuccess\\\",\\\"onChangePrefill\\\",\\\"handsontableSettings\\\"],[[23,[\\\"currentShop\\\"]],[23,[\\\"modelName\\\"]],[23,[\\\"saveState\\\"]],[23,[\\\"extraSteps\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"save\\\"],null],[23,[\\\"disabledContinue\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"finish\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"goToStep\\\"],null],[27,\\\"readonly\\\",[[23,[\\\"step\\\"]]],null],[23,[\\\"fuzzyMappings\\\"]],[23,[\\\"availableFields\\\"]],[23,[\\\"modelTranslations\\\"]],[23,[\\\"handsontableInput\\\"]],[23,[\\\"handsontableOutput\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"uploadSuccess\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"changePrefill\\\"],null],[23,[\\\"handsontableSettings\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"step_content\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],\\\"shop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"canSelectShop\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Choose your shop\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Please select a shop. Note that you cannot change the shop later on.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"required\\\",\\\"reference\\\",\\\"id\\\",\\\"value\\\",\\\"action\\\",\\\"options\\\"],[true,true,\\\"bulk_select_shop\\\",[27,\\\"readonly\\\",[[23,[\\\"currentShop\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"selectShop\\\"],null],[27,\\\"readonly\\\",[[23,[\\\"availableData\\\",\\\"activeShops\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Before you can create multiple listings, you need to setup the following:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"hasLocations\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"createWarehouse\\\"],[1]]]],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Create new warehouse\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[23,[\\\"hasProducers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.producer.create\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Create new origin\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.bulk.producer\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Create multiple origins\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"before_component\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],\\\"import\\\"],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table-cell\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"action\\\",\\\"checked\\\"],[\\\"toggle_extraction\\\",\\\"input__checkbox\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleFuzzyMappings\\\"],null],[27,\\\"readonly\\\",[[23,[\\\"fuzzyMappings\\\",\\\"sensorialDescriptors\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"toggle_extraction\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table-cell\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"toggle_extraction\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"Try to extract flavors from cupping notes\\\"],null],false],[10],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Please note that this feature is experimental and tries to extract flavors from your cupping notes based on a fuzzy matching algorithm.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__erp__id\\\",\\\"tooltip--no-arrow tooltip--full margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"If you are importing coffees repeadetly from your internal (ERP) system make sure that you are providing a Reference ID. It is used to identify existing coffees on V-Hub and performing an update instead of creating new ones.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"extra_buttons\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,1,[\\\"isSaving\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],\\\"import\\\"],null]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"action\\\",\\\"disabled\\\"],[\\\"button\\\",\\\"bulk_save_publish\\\",[27,\\\"action\\\",[[22,0,[]],\\\"save\\\",\\\"PUBLISH\\\"],null],[27,\\\"if\\\",[[22,1,[\\\"canSave\\\"]],false,true],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"Publish {{count}} coffee\\\",\\\"Publish {{count}} coffees\\\",[27,\\\"if\\\",[[22,1,[\\\"validRowsCount\\\"]],[22,1,[\\\"validRowsCount\\\"]],\\\"\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"auctionsEnabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"availableData\\\",\\\"auctions\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"action\\\",\\\"disabled\\\"],[\\\"bulk_save_auction_toggle\\\",\\\"button button--special\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleShowAuctions\\\"],null],[27,\\\"if\\\",[[22,1,[\\\"canSave\\\"]],false,true],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"Publish {{count}} coffee to an auction\\\",\\\"Publish {{count}} coffees to an auction\\\",[27,\\\"if\\\",[[22,1,[\\\"validRowsCount\\\"]],[22,1,[\\\"validRowsCount\\\"]],\\\"\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"action\\\",\\\"disabled\\\"],[\\\"bulk_save_draft\\\",\\\"button button--secondary\\\",[27,\\\"action\\\",[[22,0,[]],\\\"save\\\",\\\"DRAFT\\\"],null],[27,\\\"if\\\",[[22,1,[\\\"canSave\\\"]],false,true],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"Save {{count}} coffee as draft\\\",\\\"Save {{count}} coffees as draft\\\",[27,\\\"if\\\",[[22,1,[\\\"validRowsCount\\\"]],[22,1,[\\\"validRowsCount\\\"]],\\\"\\\"],null]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"extra_footer\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,1,[\\\"isSaving\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],\\\"import\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight inline-block margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"required\\\",\\\"reference\\\",\\\"id\\\",\\\"value\\\",\\\"action\\\",\\\"options\\\"],[true,true,\\\"bulk_select_auction\\\",[27,\\\"readonly\\\",[[23,[\\\"currentAuction\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"selectAuction\\\"],null],[27,\\\"readonly\\\",[[23,[\\\"availableData\\\",\\\"auctions\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container margin-top-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"action\\\"],[\\\"bulk_save_auction\\\",\\\"button button--special\\\",[27,\\\"action\\\",[[22,0,[]],\\\"save\\\",\\\"AUCTION\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Add to this auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1,2]},null],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/bulk/listing/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/producer-edit/controller\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-controller\"], function (_exports, _bulkProducerController) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Producer controller for edit.\n *\n * @namespace Controller\n * @class BulkProducerEditController\n * @extends BulkProducerController\n */\n var _default = _bulkProducerController.default.extend({\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property isEdit\n */\n isEdit: true\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/producer-edit/route\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-route\"], function (_exports, _bulkProducerRoute) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Producer route for edit.\n *\n * @namespace Route\n * @class BulkProducerEditRoute\n * @extends BulkProducerRoute\n */\n var _default = _bulkProducerRoute.default.extend({\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * @property isEdit\n */\n isEdit: true\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/producer-edit/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"ndJIhtBf\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Edit multiple producers\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit multiple producers\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"bulk-workflow\\\",null,[[\\\"isEdit\\\",\\\"modelName\\\",\\\"saveState\\\",\\\"onSave\\\",\\\"onFinish\\\",\\\"availableFields\\\",\\\"modelTranslations\\\",\\\"handsontableInput\\\",\\\"handsontableOutput\\\",\\\"handsontableSettings\\\"],[true,[23,[\\\"modelName\\\"]],[23,[\\\"saveState\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"save\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"finish\\\"],null],[23,[\\\"availableFields\\\"]],[23,[\\\"modelTranslations\\\"]],[23,[\\\"handsontableInput\\\"]],[23,[\\\"handsontableOutput\\\"]],[23,[\\\"handsontableSettings\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/bulk/producer-edit/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/producer/controller\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-controller\"], function (_exports, _bulkProducerController) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Producer controller for create.\n *\n * @namespace Controller\n * @class BulkProducerCreateController\n * @extends BulkProducerController\n */\n var _default = _bulkProducerController.default.extend({});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/producer/route\", [\"exports\", \"@vollersgroup/hub-frontend/admin/manage/bulk/bulk-producer-route\"], function (_exports, _bulkProducerRoute) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Producer route for create.\n *\n * @namespace Route\n * @class BulkProducerCreateRoute\n * @extends BulkProducerRoute\n */\n var _default = _bulkProducerRoute.default.extend({});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/producer/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"OfPCFUal\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create multiple producers\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Create multiple producers\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"bulk-workflow\\\",null,[[\\\"modelName\\\",\\\"saveState\\\",\\\"onSave\\\",\\\"onFinish\\\",\\\"currentStep\\\",\\\"goToStep\\\",\\\"availableFields\\\",\\\"modelTranslations\\\",\\\"handsontableInput\\\",\\\"handsontableOutput\\\",\\\"handsontableSettings\\\"],[[23,[\\\"modelName\\\"]],[23,[\\\"saveState\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"save\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"finish\\\"],null],[27,\\\"readonly\\\",[[23,[\\\"step\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"goToStep\\\"],null],[23,[\\\"availableFields\\\"]],[23,[\\\"modelTranslations\\\"]],[23,[\\\"handsontableInput\\\"]],[23,[\\\"handsontableOutput\\\"]],[23,[\\\"handsontableSettings\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/bulk/producer/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _resetScroll, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route for bulk workflows.\n *\n * @namespace Route\n * @class ManageBulk\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/bulk/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"7fD1Bksf\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/bulk/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/c-market/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Controller for c-market management.\n *\n * @namespace Controller\n * @class CMarketController\n * @extends Ember.Controller\n */\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n ajax: Ember.inject.service(),\n toast: Ember.inject.service(),\n validator: Ember.inject.service(),\n userSession: Ember.inject.service(),\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * If there are current async operations.\n *\n * @property isBusy\n * @type Boolean\n * @private\n */\n isBusy: false,\n\n /**\n * Overall valid state for controller.\n *\n * @property isValid\n * @type Boolean\n * @private\n */\n isValid: true,\n\n /**\n * Overall error state for template.\n *\n * @property errors\n * @type Boolean\n * @private\n */\n hasErrors: false,\n\n /**\n * Toggle state of disclaimer view.\n *\n * @property showDisclaimer\n * @type Boolean\n * @private\n */\n showDisclaimer: false,\n\n /**\n * Property to cache response from `cmarketGetRoute`:\n *\n * {\n * date: ,\n * priceAmount: ,\n * coffeeFuture: ,\n * priceCurrency: ,\n * retrieved: \n * }\n *\n * @property latestCmarketPrice\n * @type {Object}\n * @public\n */\n latestCmarketPrice: null,\n\n /**\n * Custom route for getting latest C-Market price.\n *\n *\n * @property cmarketGetRoute\n * @type {String}\n * @private\n */\n cmarketGetRoute: '/misc/latestCmarketPrice',\n\n /**\n * Custom route for getting latest C-Market price.\n *\n * @property cmarketGetRoute\n * @type {String}\n * @private\n */\n cmarketPostRoute: Ember.computed('companySettings.id', {\n get: function get()\n /*key*/\n {\n var id = Ember.get(this, 'companySettings.id');\n return \"/settings/\".concat(id, \"/updateCmarketPrice\");\n }\n }),\n\n /**\n * Alias for company settings' `cmarketPriceCurrency`.\n *\n * @property baseCurrency\n * @type {String}\n * @private\n * @default 'USD'\n */\n baseCurrency: Ember.computed.reads('companySettings.cmarketPriceCurrency'),\n\n /**\n * Alias for company settings' `cmarketPriceCurrency`.\n *\n * @property baseCurrency\n * @type {String}\n * @private\n * @default 'USD'\n */\n baseUnit: Ember.computed.reads('companySettings.cmarketPriceUnit'),\n\n /**\n * Shops not donating in USD.\n *\n * @property exchangeRateShops\n * @type {Model.Shop[]}\n * @public\n */\n companySettings: Ember.computed.reads('model.settings'),\n\n /**\n * Shops not donating in USD.\n *\n * @property exchangeRateShops\n * @type {Model.Shop[]}\n * @public\n */\n exchangeRateShops: Ember.computed('model.shops', 'baseCurrency', {\n get: function get()\n /*key*/\n {\n var baseCurrency = Ember.get(this, 'baseCurrency');\n return Ember.get(this, 'model.shops').filter(function (shop) {\n return Ember.get(shop, 'currency') !== baseCurrency;\n });\n }\n }),\n\n /**\n * Flag indicating if touched\n * models are in dirty state.\n *\n * @property isDirty\n * @type {Boolean}\n * @public\n */\n isDirty: Ember.computed('companySettings.hasDirtyAttributes', 'exchangeRateShops.@each.hasDirtyAttributes', {\n get: function get()\n /*key*/\n {\n var shopsDirty = Ember.get(this, 'exchangeRateShops').findBy('hasDirtyAttributes');\n var settingsDirty = Ember.get(this, 'companySettings.hasDirtyAttributes');\n return shopsDirty || settingsDirty;\n }\n }),\n\n /**\n * Flag for save button depending on\n * validation and model's dirty state.\n *\n * @property canSave\n * @type {Boolean}\n * @public\n */\n canSave: Ember.computed('isValid', 'isDirty', {\n get: function get()\n /*key*/\n {\n var isValid = Ember.get(this, 'isValid');\n var isDirty = Ember.get(this, 'isDirty');\n return isDirty && isValid;\n }\n }),\n\n /**\n * Flag if price has been manually\n * changed by user.\n *\n * @property priceManuallyChanged\n * @type {Boolean}\n * @default false\n * @public\n */\n priceManuallyChanged: false,\n\n /**\n * Computed errors for `cmarketPriceAmount`\n * and `usdExchangeRate` of shops. Besides,\n * it will set `isValid` implicitly.\n *\n * @property errors\n * @type Object\n * @private\n */\n errors: Ember.computed('companySettings.cmarketPriceAmount', 'exchangeRateShops.@each.usdExchangeRate', {\n get: function get()\n /*key*/\n {\n var isNumber = function isNumber(value) {\n return !isNaN(value) && value > 0;\n };\n\n var validate = function validate(obj, prop) {\n var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var isError = !isNumber(Ember.get(obj, prop));\n var changeSet = obj.changedAttributes(); // errors visible in UI only if this\n // attribute has been touched by user\n\n if (!Ember.isNone(Ember.get(changeSet, prop))) {\n Ember.set(errors, key || prop, isError);\n\n if (isError === true) {\n hasError = true;\n }\n } // validation for internal use does\n // not depend on model dirty state!\n\n\n if (isError === true) {\n isValid = false;\n }\n };\n\n var errors = {};\n var isValid = true;\n var hasError = false;\n Ember.get(this, 'exchangeRateShops').forEach(function (shop) {\n validate(shop, 'usdExchangeRate', Ember.get(shop, 'slug'));\n });\n var settings = Ember.get(this, 'companySettings');\n validate(settings, 'cmarketPriceAmount');\n Ember.set(this, 'hasError', hasError);\n Ember.set(this, 'isValid', isValid);\n return errors;\n }\n }),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Toggles `showDisclaimer` property.\n *\n * @event toggleDisclaimer\n * @return {Void}\n * @private\n */\n toggleDisclaimer: function toggleDisclaimer() {\n this.toggleProperty('showDisclaimer');\n },\n\n /**\n * Triggered when checkbox for state\n * of `dynamicPricingEnabled` changes.\n *\n * @event onToggleEnabled\n * @param {Boolean} enabled\n * @return {Void}\n * @private\n */\n onToggledynamicPricingEnabled: function onToggledynamicPricingEnabled(enabled) {\n var price = Ember.get(this, 'companySettings.cmarketPriceAmount');\n\n if (!enabled || !Ember.isNone(price)) {\n return;\n }\n\n this.send('getLatestCMarketPrice');\n },\n\n /**\n * Triggered when price field has\n * been changed by user interaction.\n *\n * @event onChangePriceManually\n * @param {Number} value\n * @return {Void}\n * @private\n */\n onChangePriceManually: function onChangePriceManually()\n /*value*/\n {\n Ember.set(this, 'priceManuallyChanged', true);\n },\n\n /**\n * Unsets `latestCmarketPrice` property.\n *\n * @event hideLatestCMarketPrice\n * @return {Void}\n * @private\n */\n hideLatestCMarketPrice: function hideLatestCMarketPrice() {\n Ember.set(this, 'latestCmarketPrice', null);\n },\n\n /**\n * Updates with latest C-Market price\n * via /api/misc/latestcmarketprice.\n *\n * @event getLatestCMarketPrice\n * @return {Void}\n * @private\n */\n getLatestCMarketPrice: function getLatestCMarketPrice() {\n var _this = this;\n\n var url = Ember.get(this, 'cmarketGetRoute');\n\n var successCallback = function successCallback(response) {\n var price = response.priceAmount;\n\n if (Ember.isArray(response.date)) {\n response.date = new Date(response.date[0], // YYYY\n response.date[1] - 1, // MM\n response.date[2] // DD\n );\n }\n\n Ember.set(_this, 'companySettings.cmarketPriceAmount', price);\n Ember.set(_this, 'latestCmarketPrice', response);\n Ember.set(_this, 'priceManuallyChanged', false);\n };\n\n var failureCallback = function failureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this, 'l10n').t('An error occurred while fetching C-Market price: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this, 'toast').error(errorMessage);\n };\n\n var finallyCallback = function finallyCallback() {\n Ember.set(_this, 'isBusy', false);\n };\n\n Ember.set(this, 'isBusy', true);\n Ember.get(this, 'ajax').request(url).then(successCallback, failureCallback).finally(finallyCallback);\n },\n\n /**\n * Rolls back all attributes of involved models.\n *\n * @event discard\n * @return {Void}\n * @private\n */\n discard: function discard() {\n var settings = Ember.get(this, 'companySettings');\n var shops = Ember.get(this, 'exchangeRateShops');\n settings.rollbackAttributes();\n shops.forEach(function (shop) {\n shop.rollbackAttributes();\n });\n },\n\n /**\n * Invokes saving of company settings and all\n * shops recursively, which is precondition to\n * trigger a POST request onto `cmarketPostRoute`.\n *\n * @event save\n * @return {Void}\n * @private\n */\n save: function save() {\n var _this2 = this;\n\n var settings = Ember.get(this, 'companySettings');\n var shops = Ember.get(this, 'exchangeRateShops');\n\n var postSuccessCallback = function postSuccessCallback() {\n Ember.get(_this2, 'toast').success(Ember.get(_this2, 'l10n').t('Your C-Market setup has been successfully saved and all coffees have been updated.'));\n };\n\n var postFailureCallback = function postFailureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this2, 'l10n').t('An error occurred while updating listings with C-Market prices: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this2, 'toast').error(errorMessage);\n Ember.set(_this2, 'canSave', true);\n };\n\n var postFinallyCallback = function postFinallyCallback() {\n Ember.set(_this2, 'isBusy', false);\n };\n\n var saveSuccessCallback = function saveSuccessCallback() {\n var url = Ember.get(_this2, 'cmarketPostRoute');\n Ember.get(_this2, 'ajax').post(url).then(postSuccessCallback, postFailureCallback).finally(postFinallyCallback);\n };\n\n var saveFailureCallback = function saveFailureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this2, 'l10n').t('An error occurred while saving C-Market settings: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this2, 'toast').error(errorMessage);\n Ember.set(_this2, 'isBusy', false);\n };\n\n var baseCurrency = Ember.get(this, 'baseCurrency');\n Ember.set(settings, 'cmarketPriceCurrency', baseCurrency);\n var promises = [settings.save()];\n shops.forEach(function (shop) {\n promises.push(shop.save());\n });\n var promise = Ember.RSVP.all(promises);\n promise.then(saveSuccessCallback, saveFailureCallback);\n return promise;\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/c-market/route\", [\"exports\", \"ember-can\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _emberCan, _resetScroll, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The route for c-market management.\n *\n * @namespace Route\n * @class CMarketRoute\n * @extends Ember.Route\n * @uses Mixin.CanMixin\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Dependencies\n toast: Ember.inject.service(),\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Asserts user's permission to manage c-market.\n *\n * @public\n * @method model\n * @return {Promise}\n */\n beforeModel: function beforeModel() {\n if (!this.can('edit settings')) {\n this.transitionTo('admin.manage.overview');\n }\n },\n\n /**\n * Loads company settings and available shops.\n *\n * @public\n * @method model\n * @return {Promise}\n */\n model: function model() {\n return Ember.RSVP.hash({\n settings: Ember.get(this, 'userSession.currentCompany.settings'),\n shops: Ember.get(this, 'availableData.shops')\n });\n },\n // -------------------------------------------------------------------------\n // Properties\n actions: {\n /**\n * Checks if controller is in dirty state and\n * needs user interaction on how to handle the\n * currently unsaved changes - save or discard?\n *\n * @event willTransition\n * @return {Void}\n * @public\n */\n willTransition: function willTransition(transition) {\n if (!Ember.get(this.controller, 'isDirty')) {\n return true;\n }\n\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You have to save or discard your changes!'), Ember.get(this, 'l10n').t('Warning'));\n transition.abort();\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/c-market/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"NaD5W/pN\",\n \"block\": \"{\\\"symbols\\\":[\\\"shop\\\",\\\"id\\\",\\\"text\\\",\\\"text\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Coffee overview\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-row\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-12 fg-column-6-m fg-column-3-l order-1-m\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"simple-box\\\",null,[[\\\"title\\\"],[[27,\\\"t\\\",[\\\"All facts at a glance\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Automatic price updates happen daily at 03:00 a.m. GMT.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manual price updates are only valid until the next automatic update.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Shops not set in USD must set an exchange rate.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Dynamic pricing must be enabled per coffee.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"A premium in US cent per LBS must be defined per coffee.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-12 fg-column-6-m fg-column-9-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Dynamic pricing\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"get-text\\\",null,[[\\\"message\\\"],[[27,\\\"t\\\",[\\\"By enabling dynamic prices you can automate updates of your coffee prices on V-Hub. They will be updated daily at 03:00 a.m. GMT based on yesterday's settlement price of {{linkToCurrentCoffeeFutue 'current Coffee C futures'}}. Once you enable dynamic pricing you can opt in each coffee individually. Then simply use the C-Market price as a base and add a premium to that price for each coffee. This sets your price for that coffee. Once the price is set in this way it will be adjusted in sync with the market daily. NOTE: this means the price can go down as well as up!\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"https://www.theice.com/products/15/Coffee-C-Futures\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[9],[1,[22,4,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button button--plain\\\",[27,\\\"action\\\",[[22,0,[]],\\\"toggleDisclaimer\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"showDisclaimer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Hide disclaimer\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Show disclaimer\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showDisclaimer\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The nitty gritty details\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[1,[27,\\\"t\\\",[\\\"The V-Hub platform will be updated with the final settle price of the current 3-month coffee future daily. In January 2017, this would be the future KCH17 (or KCH2017). Hub will switch to the price of the future for the next 3-month period, five days before First Notice Day of the current future. This means Hub will switch from KCH17 to KCK17 on February 12th 2017, as the First Notice Day of KCH17 is the 17th of February. Prices are updated daily at 3:00 a.m. GMT. At this time, the final settle price from previous day becomes the new C-Market base price on V-Hub. During weekends and national holidays the last updated price remains effective until a new trading day is completed and a new final settle price is set. If, for some reason, the price cannot be updated at this time, Hub will attempt to update the quote four more times in 15 minute intervals. If Hub is unable to update to the latest price, you will receive an email informing you, that the price could not be updated automatically. You may want to set the latest settle price yourself in this case. Note that if you set the latest settle price yourself, it will be overwritten at the next successful automatic price update the platform performs.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Third parties\\\"],null],false],[10],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[1,[27,\\\"t\\\",[\\\"The Website displays links to other websites and content, information and data obtained from other websites. You agree that we are not responsible or liable for any actions or inactions of other websites. You understand that we may use third-party vendors to provide necessary hardware, software, networking, storage, and related technology to run the Website. You agree and acknowledge that we are not responsible in any manner whatsoever for any actions or inactions of such third-parties.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"cmarket_toggle\\\"],[11,\\\"class\\\",\\\"padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"action\\\",\\\"checked\\\"],[\\\"cmarket_pricing\\\",\\\"input__checkbox\\\",[27,\\\"action\\\",[[22,0,[]],\\\"onToggledynamicPricingEnabled\\\"],null],[27,\\\"mut\\\",[[23,[\\\"companySettings\\\",\\\"dynamicPricingEnabled\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"cmarket_pricing\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Enable C-Market prices\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"companySettings\\\",\\\"dynamicPricingEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"cmarket_base_price\\\"],[11,\\\"class\\\",\\\"padding-top-3 padding-bottom-3 border-top\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4 margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Base price\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-all-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"get-text\\\",null,[[\\\"message\\\"],[[27,\\\"t\\\",[\\\"This reflects the {{linkToBarChart 'latest settlement price'}} from the current 3-month Coffee C future.\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"https://www.barchart.com/futures/quotes/KC*0\\\"],[11,\\\"target\\\",\\\"_blank\\\"],[11,\\\"rel\\\",\\\"noopener\\\"],[9],[1,[22,3,[]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"latestCmarketPrice\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"SUCCESS\\\",\\\"margin-top-2 margin-bottom-2\\\",[27,\\\"t\\\",[\\\"C-Market price successfully retrieved\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Latest settlement price of future {{future}} is {{price}} from {{date}}.\\\"],[[\\\"price\\\",\\\"date\\\",\\\"future\\\"],[[27,\\\"concat\\\",[[23,[\\\"latestCmarketPrice\\\",\\\"priceAmount\\\"]],\\\" \\\",[23,[\\\"baseCurrency\\\"]],\\\" ¢ / \\\",[23,[\\\"baseUnit\\\"]]],null],[27,\\\"moment-format\\\",[[23,[\\\"latestCmarketPrice\\\",\\\"date\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],[23,[\\\"latestCmarketPrice\\\",\\\"coffeeFuture\\\"]]]]],true],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button button--plain\\\",[27,\\\"action\\\",[[22,0,[]],\\\"hideLatestCMarketPrice\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Close\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table margin-top-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-middle margin-top-2 margin-right-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__group\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"step\\\",\\\"type\\\",\\\"required\\\",\\\"id\\\",\\\"placeholder\\\",\\\"hasError\\\",\\\"action\\\",\\\"value\\\",\\\"class\\\"],[\\\"0.01\\\",\\\"number\\\",true,\\\"cmarket_price\\\",[27,\\\"t\\\",[\\\"C-Market price\\\"],null],[23,[\\\"errors\\\",\\\"cmarketPriceAmount\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"onChangePriceManually\\\"],null],[27,\\\"mut\\\",[[23,[\\\"companySettings\\\",\\\"cmarketPriceAmount\\\"]]],null],\\\"input__txt input__full input-with-label input-with-label--right\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__label--right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"cmarket_price\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"{{currency}} ¢ / {{unit}}\\\"],[[\\\"currency\\\",\\\"unit\\\"],[[23,[\\\"baseCurrency\\\"]],[23,[\\\"baseUnit\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-middle margin-top-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"isLoading\\\",\\\"id\\\",\\\"class\\\",\\\"action\\\"],[[23,[\\\"isBusy\\\"]],\\\"cmarket_get_price_button\\\",\\\"button button--secondary\\\",[27,\\\"action\\\",[[22,0,[]],\\\"getLatestCMarketPrice\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Get latest price\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"priceManuallyChanged\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"cmarket_manual_change_info\\\"],[11,\\\"class\\\",\\\"input__info\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Caution: If you set a price manually it applies only until the next automated update.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"exchangeRateShops\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"cmarket_shops\\\"],[11,\\\"class\\\",\\\"padding-top-3 padding-bottom-3 border-top\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Exchange rates\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-all-0\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Each shop not denoted in {{currency}} must provide an exchange rate, because the C-Market price is denoted in {{currency}} ¢ / {{unit}}.\\\"],[[\\\"currency\\\",\\\"unit\\\"],[[23,[\\\"baseCurrency\\\"]],[23,[\\\"baseUnit\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"cmarket_exchange_rates\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"exchangeRateShops\\\"]]],null,{\\\"statements\\\":[[4,\\\"with\\\",[[27,\\\"concat\\\",[\\\"er-\\\",[22,1,[\\\"slug\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"label__standard margin-all-0 \\\",[27,\\\"if\\\",[[27,\\\"get\\\",[[23,[\\\"errors\\\"]],[22,1,[\\\"slug\\\"]]],null],\\\"label--has-error\\\"],null]]]],[12,\\\"for\\\",[22,2,[]]],[9],[0,\\\"\\\\n \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__group input__group--two-labels\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__label--left\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[12,\\\"for\\\",[22,2,[]]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"1 {{currency}} = \\\"],[[\\\"currency\\\"],[[23,[\\\"baseCurrency\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"id\\\",\\\"step\\\",\\\"type\\\",\\\"required\\\",\\\"value\\\",\\\"placeholder\\\",\\\"hasError\\\",\\\"class\\\"],[[22,2,[]],\\\"0.01\\\",\\\"number\\\",true,[22,1,[\\\"usdExchangeRate\\\"]],[27,\\\"t\\\",[\\\"Exchange rate\\\"],null],[27,\\\"get\\\",[[23,[\\\"errors\\\"]],[22,1,[\\\"slug\\\"]]],null],\\\"input__txt input__full input-with-label input-with-label--left\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__label--right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[12,\\\"for\\\",[22,2,[]]],[9],[0,\\\"\\\\n \\\"],[1,[22,1,[\\\"currency\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__info\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Calculation: (C-Market price + premium) x exchange rate / 100.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasError\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"ERROR\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"There are configuration errors, please fix them to save your changes!\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline padding-top-3 border-top\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\",\\\"id\\\",\\\"disabled\\\",\\\"isLoading\\\"],[\\\"button\\\",[27,\\\"action\\\",[[22,0,[]],\\\"save\\\"],null],\\\"cmarket_save_button\\\",[27,\\\"unless\\\",[[23,[\\\"canSave\\\"]],true],null],[27,\\\"if\\\",[[23,[\\\"canSave\\\"]],[23,[\\\"isBusy\\\"]],false],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Save\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isDirty\\\"]]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"action\\\",\\\"id\\\",\\\"class\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"discard\\\"],null],\\\"cmarket_discard_button\\\",\\\"button button--secondary\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Discard\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/c-market/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The controller for manage route.\n *\n * @namespace Controller\n * @extends Ember.Controller\n */\n var _default = Ember.Controller.extend({});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/index/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage index.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend({\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Redirects to overview.\n *\n * @public\n * @method redirect\n * @return {Void}\n */\n redirect: function redirect() {\n this.transitionTo('admin.manage.overview');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"XAthnpSl\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"loading-spinner\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/create/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n l10n: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameters.\n *\n * @final\n * @public\n * @type {Array}\n */\n queryParams: [{\n addToShop: {\n as: 'shop'\n }\n }, {\n addToAuction: {\n as: 'auction'\n }\n }],\n\n /**\n * Pre-select the shop to which the listing should be added.\n * This should be the ID of a shop.\n *\n * @property addToShop\n * @type String\n */\n addToShop: null,\n\n /**\n * Pre-select an auction to add the listing to once its finished.\n * This should be the ID of an auction.\n *\n * @property addToAuction\n * @type String\n */\n addToAuction: null,\n\n /**\n * Definition of all sub steps depending\n * on current amount of available shops.\n *\n * @public\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('availableData.activeShops.length', 'l10n', {\n get: function get()\n /*key*/\n {\n var steps = [];\n\n if (Ember.get(this, 'availableData.activeShops.length') !== 1) {\n steps.push({\n label: Ember.get(this, 'l10n').t('Select shop'),\n step: 0,\n subSteps: []\n });\n }\n\n steps.push({\n label: Ember.get(this, 'l10n').t('Create coffee'),\n step: 1,\n subSteps: [{\n label: Ember.get(this, 'l10n').t('Base information'),\n anchor: '#listing-manage-1'\n }, {\n label: Ember.get(this, 'l10n').t('Details'),\n anchor: '#listing-manage-2'\n }, {\n label: Ember.get(this, 'l10n').t('Sensorial & Cupping'),\n anchor: '#listing-manage-3'\n }]\n });\n steps.push({\n label: Ember.get(this, 'l10n').t('Origin'),\n step: 2,\n subSteps: []\n });\n steps.push({\n label: Ember.get(this, 'l10n').t('Publish'),\n step: 3,\n subSteps: []\n });\n return steps;\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\", \"moment\", \"@vollersgroup/hub-frontend/utils/get-first-adapter-error-message\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan, _moment, _getFirstAdapterErrorMessage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Dependencies\n validator: Ember.inject.service(),\n userSession: Ember.inject.service(),\n availableData: Ember.inject.service(),\n flashMessages: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview.index',\n title: Ember.get(this, 'l10n').t('Create new coffee')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Checks if user allowed to create listings\n * and returns available shops if permitted.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n beforeModel: function beforeModel() {\n if (!this.can('create listing')) {\n this.transitionTo('admin.manage.overview.index');\n return;\n }\n\n return Ember.get(this, 'availableData.shops');\n },\n\n /**\n * Create a new listing object.\n *\n * @public\n * @method model\n * @returns {Model.Listing}\n */\n model: function model() {\n var hasActiveShop = Ember.get(this, 'availableData.activeShops.length') > 0;\n\n if (!hasActiveShop) {\n this.transitionTo('admin.manage.overview.index');\n return;\n }\n\n var listing = this.store.createRecord('listing', {\n createdDate: (0, _moment.default)(),\n createdBy: Ember.get(this, 'userSession.currentUser'),\n company: Ember.get(this, 'userSession.currentCompany'),\n status: 'DRAFT'\n });\n var hasOneActiveShop = Ember.get(this, 'availableData.activeShops.length') === 1;\n\n if (hasOneActiveShop) {\n var shop = Ember.get(this, 'availableData.activeShops.firstObject');\n listing.setProperties({\n shop: shop,\n shopId: shop.get('id'),\n shopName: shop.get('name'),\n priceCurrency: shop.get('currency')\n });\n }\n\n return {\n listing: listing,\n step: hasOneActiveShop ? // skip shop selection\n 1 : // Go to the shop selection\n 0\n };\n },\n\n /**\n * Resets route's model and controller step.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n var model = Ember.get(this, 'currentModel.listing');\n model.rollbackAttributes();\n\n if (model.get('isDestroyed')) {\n model.save();\n }\n },\n\n /**\n * Changes to provided step.\n *\n * @private\n * @method _goToStep\n * @param {Number} step\n * @return {Void}\n */\n _gotoStep: function _gotoStep(step) {\n Ember.set(this, 'currentModel.step', step);\n window.scrollTo(0, 0);\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Select a shop for this listing.\n *\n * @event selectShop\n * @param Model.Shop shop\n * @private\n */\n selectShop: function selectShop(shop) {\n var model = Ember.get(this, 'currentModel.listing');\n model.setProperties({\n shop: shop,\n shopId: Ember.get(shop, 'id'),\n shopName: Ember.get(shop, 'name'),\n priceCurrency: Ember.get(shop, 'currency')\n });\n\n this._gotoStep(1);\n },\n\n /**\n * When the listing information has been entered/updated.\n *\n * @event createListing\n * @param Model.Listing listing\n * @private\n */\n createListing: function createListing(listing) {\n Ember.set(this, 'currentModel.listing', listing);\n\n this._gotoStep(2);\n },\n\n /**\n * Select a producer for this listing.\n *\n * @event selectProducer\n * @param Model.Producer producer\n * @private\n */\n selectProducer: function selectProducer(producer) {\n var _this = this;\n\n var model = Ember.get(this, 'currentModel.listing');\n model.setProperties({\n producer: producer,\n createdDate: (0, _moment.default)(),\n lastModifiedDate: (0, _moment.default)(),\n country: Ember.get(producer, 'location.country')\n });\n\n var successCallback = function successCallback() {\n _this._gotoStep(3);\n };\n\n var failureCallback = function failureCallback(adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this, 'l10n').t('An error occurred while trying to save the listing: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this, 'flashMessages').addError(errorMessage);\n\n _this._gotoStep(1);\n };\n\n model.save().then(successCallback, failureCallback);\n },\n\n /**\n * Finish the creation process.\n *\n * @event finishCreation\n * @param {Boolean} createAnother If another coffee should be created\n * @private\n */\n finishCreation: function finishCreation() {\n var _this2 = this;\n\n var createAnother = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var model = Ember.get(this, 'currentModel.listing');\n\n if (createAnother) {\n this._gotoStep(0);\n\n this.refresh();\n return;\n }\n\n Ember.get(model, 'auction').then(function (auction) {\n _this2.transitionTo('admin.manage.overview.index', {\n queryParams: {\n selectedAuctionId: !Ember.isNone(auction) ? Ember.get(auction, 'id') : ''\n }\n });\n });\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n if (newStep > Ember.get(this, 'currentModel.step')) {\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You have to save your changes!'));\n return;\n }\n\n this._gotoStep(newStep);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/create/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"dkmw6y1x\",\n \"block\": \"{\\\"symbols\\\":[\\\"text\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create coffee\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"model\\\",\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__listing__step0\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You need to select a shop where your coffee will be presented. If you want to add this coffee to an auction later, the auction must be hosted by the same shop.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__listing__step1\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can edit everything later, except the Package Unit and the Price base unit, because those are used to calculate price and also for filtering search results.\\\"],null],true],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__listing__step2\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can manage your origins separately from your coffees in the \\\\\\\"Your origins\\\\\\\" tab.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__listing__step3\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can change the status of your coffee at any time.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Your coffee has been saved\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Create a new coffee\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[21,\\\"flash-messages\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-select\\\",null,[[\\\"action\\\",\\\"selectedShopId\\\"],[\\\"selectShop\\\",[27,\\\"readonly\\\",[[23,[\\\"addToShop\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit settings\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"get-text\\\",null,[[\\\"message\\\"],[[27,\\\"t\\\",[\\\"Do you want to import several coffees at the same time? Use the {{linkToImportTool 'Import tool'}}.\\\"],null]]],{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"admin.manage.bulk.listing\\\",[27,\\\"query-params\\\",null,[[\\\"selectedShopId\\\"],[[23,[\\\"addToShop\\\"]]]]]],null,{\\\"statements\\\":[[1,[22,1,[]],false]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[1,[27,\\\"manage-listing\\\",null,[[\\\"listing\\\",\\\"action\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"listing\\\"]]],null],\\\"createListing\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-producer-select\\\",null,[[\\\"action\\\",\\\"selectedProducerId\\\"],[\\\"selectProducer\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"listing\\\",\\\"producer\\\",\\\"id\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-listing-publish\\\",null,[[\\\"listing\\\",\\\"action\\\",\\\"selectedAuctionId\\\"],[[23,[\\\"model\\\",\\\"listing\\\"]],\\\"finishCreation\\\",[23,[\\\"addToAuction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/listing/create/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/edit/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Current sub step of route.\n *\n * @public\n * @property step\n * @type Number\n * @default 0\n */\n step: 0,\n\n /**\n * All steps for the creation process.\n *\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('availableShops.length', 'l10n', {\n get: function get()\n /*key*/\n {\n var steps = [];\n steps.push({\n label: this.get('l10n').t('Edit coffee'),\n step: 0,\n subSteps: [{\n label: this.get('l10n').t('Base information'),\n anchor: '#listing-manage-1'\n }, {\n label: this.get('l10n').t('Details'),\n anchor: '#listing-manage-2'\n }, {\n label: this.get('l10n').t('Sensorial & Cupping'),\n anchor: '#listing-manage-3'\n }]\n });\n steps.push({\n label: 'Producer',\n step: 1,\n subSteps: []\n });\n steps.push({\n label: 'Publish',\n step: 2,\n subSteps: []\n });\n return steps;\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\", \"@vollersgroup/hub-frontend/utils/get-first-adapter-error-message\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan, _getFirstAdapterErrorMessage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Dependencies\n flashMessages: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview.index',\n title: Ember.get(this, 'l10n').t('Edit coffee')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Checks if user allowed to create listings\n * and returns available shops if permitted.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n beforeModel: function beforeModel() {\n if (!this.can('edit listing')) {\n this.transitionTo('admin.manage.overview.index');\n return;\n }\n\n return this._super.apply(this, arguments);\n },\n\n /**\n * Gets selected listing object.\n *\n * @public\n * @method model\n * @returns {Promise}\n */\n model: function model(params) {\n return this.store.findRecord('listing', params.listing_id);\n },\n\n /**\n * Check if company settings already exists,\n * otherwise creates new record in the store.\n *\n * @method afterModel\n * @param model\n * @param transition\n * @return {Promise}\n */\n afterModel: function afterModel(model, transition) {\n var _this = this;\n\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n Ember.set(controller, 'step', 0);\n\n var abortTransition = function abortTransition() {\n Ember.get(_this, 'toast').warning(Ember.get(_this, 'l10n').t('You cannot edit this coffee!'));\n\n if (transition.sequence === 0) {\n _this.transitionTo('admin.manage.overview.index');\n } else {\n transition.abort();\n }\n };\n\n if (!Ember.get(model, 'isEditable')) {\n abortTransition();\n return;\n }\n\n return Ember.get(model, 'company').then(function (company) {\n var currentId = Ember.get(_this, 'userSession.currentCompany.id');\n\n if (company.id !== currentId) {\n abortTransition();\n return;\n }\n });\n },\n\n /**\n * Resets route's model.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n this.currentModel.rollbackAttributes();\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n _gotoStep: function _gotoStep(step) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n Ember.set(controller, 'step', step);\n window.scrollTo(0, 0);\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * When the listing information has been entered/updated.\n *\n * @event editListing\n * @param Model.Listing listing\n * @private\n */\n editListing: function editListing(listing) {\n var _this2 = this;\n\n var exitNow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (!exitNow) {\n this._gotoStep(1);\n\n return;\n }\n\n var successCallback = function successCallback() {\n _this2.transitionTo('admin.manage.overview.index');\n };\n\n var failureCallback = function failureCallback(adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this2, 'l10n').t('An error occurred while trying to save the listing: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this2, 'flashMessages').addError(errorMessage);\n\n _this2._gotoStep(0);\n };\n\n var model = Ember.get(this, 'currentModel');\n model.save().then(successCallback, failureCallback);\n },\n\n /**\n * Select a producer for this listing.\n *\n * @event selectProducer\n * @param Model.Producer producer\n * @private\n */\n selectProducer: function selectProducer(producer) {\n var _this3 = this;\n\n var exitNow = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var model = Ember.get(this, 'currentModel');\n model.setProperties({\n producer: producer,\n country: producer.get('location.country')\n });\n\n var successCallback = function successCallback() {\n if (exitNow) {\n _this3.transitionTo('admin.manage.overview.index');\n\n return;\n }\n\n _this3._gotoStep(2);\n };\n\n var failureCallback = function failureCallback(adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this3, 'l10n').t('An error occurred while trying to save the listing: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this3, 'flashMessages').addError(errorMessage);\n\n _this3._gotoStep(0);\n };\n\n model.save().then(successCallback, failureCallback);\n },\n\n /**\n * Finish the creation process.\n *\n * @event finishCreation\n * @param {Boolean} createAnother If another coffee should be created\n * @private\n */\n finishCreation: function finishCreation() {\n var createAnother = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n if (!createAnother) {\n this.transitionTo('admin.manage.overview.index');\n return;\n }\n\n this.transitionTo('admin.manage.listing.create', {\n queryParams: {\n addToShop: Ember.get(this, 'currentModel.shop.id')\n }\n });\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n var model = Ember.get(this, 'currentModel');\n var step = Ember.get(controller, 'step');\n\n if (Ember.get(model, 'hasDirtyAttributes') && newStep > step) {\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You have to save your changes!'));\n return;\n }\n\n this._gotoStep(newStep);\n },\n\n /**\n * Redirect to overview on errors.\n *\n * @event error\n * @return {Void}\n */\n error: function error() {\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You cannot edit this coffee!'));\n this.transitionTo('admin.manage.overview.index');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/edit/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"kn3hjejA\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Edit coffee\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Your coffee has been saved\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Edit coffee\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[21,\\\"flash-messages\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-listing\\\",null,[[\\\"listing\\\",\\\"action\\\",\\\"isEdit\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\"]]],null],\\\"editListing\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-producer-select\\\",null,[[\\\"action\\\",\\\"selectedProducerId\\\",\\\"isEdit\\\"],[\\\"selectProducer\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"producer\\\",\\\"id\\\"]]],null],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-listing-publish\\\",null,[[\\\"listing\\\",\\\"action\\\",\\\"selectedAuctionId\\\"],[[23,[\\\"model\\\"]],\\\"finishCreation\\\",[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"auction\\\",\\\"id\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/listing/edit/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouse-new/migration/controller\", [\"exports\", \"ember-concurrency\", \"@vollersgroup/hub-frontend/gql/hub-backend/mutations/self-migrate-legacy-warehouse.graphql\"], function (_exports, _emberConcurrency, _selfMigrateLegacyWarehouse) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var WarehouseMigrationController = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('hb-apollo'), _dec3 = Ember.computed.alias('legacyWarehouseMigration.rows'), _dec4 = Ember.computed.alias('legacyWarehouseMigration.readyToFinish'), _dec5 = Ember._action, _dec6 = Ember._action, _dec7 = (0, _emberConcurrency.task)({\n restartable: true\n }), (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(WarehouseMigrationController, _Ember$Controller);\n\n var _super = _createSuper(WarehouseMigrationController);\n\n function WarehouseMigrationController() {\n var _this;\n\n _classCallCheck(this, WarehouseMigrationController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"legacyWarehouseMigration\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apollo\", _descriptor2, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"errors\", null);\n\n _defineProperty(_assertThisInitialized(_this), \"finishMigration\", false);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"rows\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"readyToFinish\", _descriptor4, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(WarehouseMigrationController, [{\n key: \"cancelMigration\",\n value: function cancelMigration() {\n this.legacyWarehouseMigration.reset();\n }\n }, {\n key: \"chooseWarehouse\",\n value: function chooseWarehouse(warehouse) {\n this.legacyWarehouseMigration.add(warehouse);\n this.transitionToRoute('admin.manage.overview.warehouses.add');\n }\n }, {\n key: \"finishMigrationTask\",\n value: /*#__PURE__*/regeneratorRuntime.mark(function finishMigrationTask() {\n return regeneratorRuntime.wrap(function finishMigrationTask$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return (0, _emberConcurrency.timeout)(400);\n\n case 2:\n _context.prev = 2;\n _context.next = 5;\n return this.apollo.mutate({\n mutation: _selfMigrateLegacyWarehouse.default,\n variables: {\n input: this.generateVariablesInput()\n }\n }, 'selfMigrateLegacyWarehouses');\n\n case 5:\n this.set('finishMigration', true);\n _context.next = 11;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context[\"catch\"](2);\n this.set('errors', _context.t0.errors);\n\n case 11:\n case \"end\":\n return _context.stop();\n }\n }\n }, finishMigrationTask, this, [[2, 8]]);\n })\n }, {\n key: \"generateVariablesInput\",\n value: function generateVariablesInput() {\n var migrations = this.rows.map(function (_ref) {\n var legacyWarehouse = _ref.legacyWarehouse,\n newWarehouse = _ref.newWarehouse;\n return {\n legacyWarehouseId: legacyWarehouse.id,\n warehouseId: newWarehouse.id\n };\n });\n return {\n migrations: migrations\n };\n }\n }]);\n\n return WarehouseMigrationController;\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"legacyWarehouseMigration\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"apollo\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"rows\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"readyToFinish\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"cancelMigration\", [_dec5], Object.getOwnPropertyDescriptor(_class.prototype, \"cancelMigration\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"chooseWarehouse\", [_dec6], Object.getOwnPropertyDescriptor(_class.prototype, \"chooseWarehouse\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"finishMigrationTask\", [_dec7], Object.getOwnPropertyDescriptor(_class.prototype, \"finishMigrationTask\"), _class.prototype)), _class));\n _exports.default = WarehouseMigrationController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouse-new/migration/route\", [\"exports\", \"ember-launch-darkly\", \"@vollersgroup/hub-frontend/auth/base\"], function (_exports, _emberLaunchDarkly, _base) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var WarehouseMigrationRoute = /*#__PURE__*/function (_BaseRoute) {\n _inherits(WarehouseMigrationRoute, _BaseRoute);\n\n var _super = _createSuper(WarehouseMigrationRoute);\n\n function WarehouseMigrationRoute() {\n _classCallCheck(this, WarehouseMigrationRoute);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(WarehouseMigrationRoute, [{\n key: \"redirect\",\n value: function redirect() {\n if (!(0, _emberLaunchDarkly.variation)('new-warehouses')) {\n return this.transitionTo('admin.manage.overview.warehouse');\n }\n\n this.transitionTo('admin.manage.overview.warehouses');\n }\n }]);\n\n return WarehouseMigrationRoute;\n }(_base.default);\n\n _exports.default = WarehouseMigrationRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/add/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var WarehouseAddController = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(WarehouseAddController, _Ember$Controller);\n\n var _super = _createSuper(WarehouseAddController);\n\n function WarehouseAddController() {\n var _this;\n\n _classCallCheck(this, WarehouseAddController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"legacyWarehouseMigration\", _descriptor, _assertThisInitialized(_this));\n\n return _this;\n }\n\n return _createClass(WarehouseAddController);\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"legacyWarehouseMigration\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = WarehouseAddController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/create/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var WarehouseCreateController = (_dec = Ember.inject.service, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(WarehouseCreateController, _Ember$Controller);\n\n var _super = _createSuper(WarehouseCreateController);\n\n function WarehouseCreateController() {\n var _this;\n\n _classCallCheck(this, WarehouseCreateController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"legacyWarehouseMigration\", _descriptor, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"queryParams\", ['owner']);\n\n _defineProperty(_assertThisInitialized(_this), \"owner\", null);\n\n return _this;\n }\n\n return _createClass(WarehouseCreateController);\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"legacyWarehouseMigration\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = WarehouseCreateController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/create/route\", [\"exports\", \"@vollersgroup/hub-frontend/gql/hub-backend/queries/warehouse-owner.graphql\", \"ember-apollo-client\"], function (_exports, _warehouseOwner, _emberApolloClient) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _class, _descriptor;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var WarehouseCreateRoute = (_dec = (0, _emberApolloClient.queryManager)({\n service: 'hb-apollo'\n }), (_class = /*#__PURE__*/function (_Ember$Route) {\n _inherits(WarehouseCreateRoute, _Ember$Route);\n\n var _super = _createSuper(WarehouseCreateRoute);\n\n function WarehouseCreateRoute() {\n var _this;\n\n _classCallCheck(this, WarehouseCreateRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apollo\", _descriptor, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"queryParams\", {\n owner: {\n refreshModel: true\n }\n });\n\n return _this;\n }\n\n _createClass(WarehouseCreateRoute, [{\n key: \"model\",\n value: function model(_ref) {\n var owner = _ref.owner;\n return this.apollo.query({\n query: _warehouseOwner.default,\n fetchPolicy: 'network-only',\n variables: {\n id: owner\n }\n }, 'warehouseOwner');\n }\n }]);\n\n return WarehouseCreateRoute;\n }(Ember.Route), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"apollo\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n })), _class));\n _exports.default = WarehouseCreateRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/index/controller\", [\"exports\", \"@vollersgroup/hub-frontend/gql/hub-backend/mutations/self-unassign-warehouses.graphql\", \"ember-concurrency\"], function (_exports, _selfUnassignWarehouses, _emberConcurrency) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8;\n\n function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\n function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var WarehouseIndexController = (_dec = Ember.inject.service, _dec2 = Ember.inject.service('hb-apollo'), _dec3 = Ember.inject.service, _dec4 = Ember.inject.service, _dec5 = Ember.computed.alias('model.isRunning'), _dec6 = Ember.computed.alias('allWarehouses.length'), _dec7 = Ember.computed.alias('userSession.currentCompany.id'), _dec8 = Ember.computed.alias('legacyWarehouseMigration.hasLegacyWarehouses'), _dec9 = Ember.computed('pageSize', 'totalCount'), _dec10 = Ember.computed('model'), _dec11 = Ember.computed('allWarehouses', 'pageSize', 'page'), _dec12 = Ember._action, (_class = /*#__PURE__*/function (_Ember$Controller) {\n _inherits(WarehouseIndexController, _Ember$Controller);\n\n var _super = _createSuper(WarehouseIndexController);\n\n function WarehouseIndexController() {\n var _this;\n\n _classCallCheck(this, WarehouseIndexController);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"userSession\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apollo\", _descriptor2, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"availableData\", _descriptor3, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"legacyWarehouseMigration\", _descriptor4, _assertThisInitialized(_this));\n\n _defineProperty(_assertThisInitialized(_this), \"queryParams\", {\n page: 'page',\n pageSize: 'pageSize'\n });\n\n _defineProperty(_assertThisInitialized(_this), \"page\", 1);\n\n _defineProperty(_assertThisInitialized(_this), \"pageSize\", 10);\n\n _defineProperty(_assertThisInitialized(_this), \"errors\", null);\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"isLoading\", _descriptor5, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"totalCount\", _descriptor6, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"companyId\", _descriptor7, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"hasLegacyWarehouses\", _descriptor8, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(WarehouseIndexController, [{\n key: \"maxPages\",\n get: function get() {\n return Math.ceil(this.totalCount / this.pageSize);\n }\n }, {\n key: \"allWarehouses\",\n get: function get() {\n return this.model.filterBy('active', true).sortBy('displayName');\n }\n }, {\n key: \"warehouses\",\n get: function get() {\n var _this2 = this;\n\n var start = (this.page - 1) * this.pageSize;\n var end = this.page * this.pageSize;\n return this.allWarehouses.slice(start, end).map(function (warehouse) {\n return _this2.buildWarehouseObject(warehouse);\n });\n }\n }, {\n key: \"buildWarehouseObject\",\n value: function buildWarehouseObject(warehouse) {\n var currentCompany = warehouse.companies.findBy('company.id', this.companyId);\n var count = currentCompany ? currentCompany.countOfListings : 0;\n return _objectSpread(_objectSpread({}, warehouse), {}, {\n currentCompanyListingCount: count\n });\n }\n }, {\n key: \"unassignWarehouseTask\",\n value: /*#__PURE__*/regeneratorRuntime.mark(function unassignWarehouseTask(warehouse) {\n return regeneratorRuntime.wrap(function unassignWarehouseTask$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n this.set('errors', []);\n _context.prev = 1;\n _context.next = 4;\n return this.apollo.mutate({\n mutation: _selfUnassignWarehouses.default,\n variables: {\n input: {\n warehouseIds: [warehouse.id]\n }\n }\n }, 'selfUnassignWarehouses');\n\n case 4:\n this.send('reloadModel');\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](1);\n this.set('errors', _context.t0.errors);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, unassignWarehouseTask, this, [[1, 7]]);\n })\n }, {\n key: \"changePageSize\",\n value: function changePageSize(value) {\n this.set('pageSize', value);\n }\n }]);\n\n return WarehouseIndexController;\n }(Ember.Controller), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"userSession\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"apollo\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, \"availableData\", [_dec3], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, \"legacyWarehouseMigration\", [_dec4], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor5 = _applyDecoratedDescriptor(_class.prototype, \"isLoading\", [_dec5], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor6 = _applyDecoratedDescriptor(_class.prototype, \"totalCount\", [_dec6], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor7 = _applyDecoratedDescriptor(_class.prototype, \"companyId\", [_dec7], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor8 = _applyDecoratedDescriptor(_class.prototype, \"hasLegacyWarehouses\", [_dec8], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"maxPages\", [_dec9], Object.getOwnPropertyDescriptor(_class.prototype, \"maxPages\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"allWarehouses\", [_dec10], Object.getOwnPropertyDescriptor(_class.prototype, \"allWarehouses\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"warehouses\", [_dec11], Object.getOwnPropertyDescriptor(_class.prototype, \"warehouses\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"unassignWarehouseTask\", [_emberConcurrency.task], Object.getOwnPropertyDescriptor(_class.prototype, \"unassignWarehouseTask\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"changePageSize\", [_dec12], Object.getOwnPropertyDescriptor(_class.prototype, \"changePageSize\"), _class.prototype)), _class));\n _exports.default = WarehouseIndexController;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/index/route\", [\"exports\", \"@vollersgroup/hub-frontend/auth/base\", \"ember-apollo-client\", \"@vollersgroup/hub-frontend/gql/hub-backend/queries/self-warehouses.graphql\", \"ember-concurrency\"], function (_exports, _base, _emberApolloClient, _selfWarehouses, _emberConcurrency) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _dec3, _dec4, _class, _descriptor, _descriptor2;\n\n function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }\n\n var WarehouseIndexRoute = (_dec = (0, _emberApolloClient.queryManager)({\n service: 'hb-apollo'\n }), _dec2 = Ember.inject.service, _dec3 = (0, _emberConcurrency.task)({\n restartable: true\n }), _dec4 = Ember._action, (_class = /*#__PURE__*/function (_BaseRoute) {\n _inherits(WarehouseIndexRoute, _BaseRoute);\n\n var _super = _createSuper(WarehouseIndexRoute);\n\n function WarehouseIndexRoute() {\n var _this;\n\n _classCallCheck(this, WarehouseIndexRoute);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"apollo\", _descriptor, _assertThisInitialized(_this));\n\n _initializerDefineProperty(_assertThisInitialized(_this), \"availableData\", _descriptor2, _assertThisInitialized(_this));\n\n return _this;\n }\n\n _createClass(WarehouseIndexRoute, [{\n key: \"model\",\n value: function model() {\n return this.searchWarehouses.perform();\n }\n }, {\n key: \"searchWarehouses\",\n value: /*#__PURE__*/regeneratorRuntime.mark(function searchWarehouses() {\n return regeneratorRuntime.wrap(function searchWarehouses$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return this.apollo.query({\n query: _selfWarehouses.default,\n fetchPolicy: 'network-only'\n }, 'selfCompanyWarehouses');\n\n case 2:\n return _context.abrupt(\"return\", _context.sent);\n\n case 3:\n case \"end\":\n return _context.stop();\n }\n }\n }, searchWarehouses, this);\n })\n }, {\n key: \"reloadModel\",\n value: function reloadModel() {\n this.refresh();\n }\n }]);\n\n return WarehouseIndexRoute;\n }(_base.default), (_descriptor = _applyDecoratedDescriptor(_class.prototype, \"apollo\", [_dec], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, \"availableData\", [_dec2], {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n }), _applyDecoratedDescriptor(_class.prototype, \"searchWarehouses\", [_dec3], Object.getOwnPropertyDescriptor(_class.prototype, \"searchWarehouses\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"reloadModel\", [_dec4], Object.getOwnPropertyDescriptor(_class.prototype, \"reloadModel\"), _class.prototype)), _class));\n _exports.default = WarehouseIndexRoute;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/route\", [\"exports\", \"@vollersgroup/hub-frontend/auth/base\", \"ember-launch-darkly\"], function (_exports, _base, _emberLaunchDarkly) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var WarehouseRoute = /*#__PURE__*/function (_BaseRoute) {\n _inherits(WarehouseRoute, _BaseRoute);\n\n var _super = _createSuper(WarehouseRoute);\n\n function WarehouseRoute() {\n _classCallCheck(this, WarehouseRoute);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(WarehouseRoute, [{\n key: \"beforeModel\",\n value: function beforeModel() {\n if (!(0, _emberLaunchDarkly.variation)('new-warehouses')) {\n this.transitionTo('admin.manage.overview.warehouse');\n }\n }\n }]);\n\n return WarehouseRoute;\n }(_base.default);\n\n _exports.default = WarehouseRoute;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/index/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage listing index.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend({\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Redirects to overview.\n *\n * @public\n * @method redirect\n * @return {Void}\n */\n redirect: function redirect() {\n this.transitionTo('admin.manage.overview');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"ab+KK0Eu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"loading-spinner\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/listing/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"@vollersgroup/hub-frontend/mixins/company-verified\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _companyVerified) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _companyVerified.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Loads warehouse locations for listings.\n *\n * @public\n * @method beforeModel\n * @return {Void}\n */\n afterModel: function afterModel() {\n return this.get('availableData.locations');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/listing/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"WpYAOGVG\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/listing/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/loading/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage loading.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"9PQffJfj\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/navbar-subpage/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"2X1r3xDp\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"grey__bg\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[[23,[\\\"navbar\\\",\\\"route\\\"]]],[[\\\"class\\\"],[\\\"link__back\\\"]],{\\\"statements\\\":[[0,\\\"« \\\"],[1,[27,\\\"t\\\",[\\\"Back to overview\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[23,[\\\"navbar\\\",\\\"title\\\"]],false],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"name\\\"]]],null,{\\\"statements\\\":[[0,\\\" – \\\"],[1,[23,[\\\"model\\\",\\\"name\\\"]],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/navbar-subpage/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/navbar/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"BF6iMsyx\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"grey__bg\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"secondary-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.manage.overview.index\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Coffees\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.manage.overview.shop\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Shops\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.manage.overview.producer\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Origins\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"auctionsEnabled\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.manage.overview.auction\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Auctions\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"variation\\\",[\\\"new-warehouses\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"legacyWarehouseMigration\\\",\\\"hasLegacyWarehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.warehouse\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Warehouses\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800\\\"],[9],[0,\\\" Legacy \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.warehouses\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Warehouses\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800\\\"],[9],[0,\\\" New \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.manage.overview.warehouse\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Warehouses\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"can\\\",[\\\"edit settings\\\"],null],[23,[\\\"availableData\\\",\\\"shops\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.manage.c-market\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"C-Market\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/navbar/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/index-loading/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/index-loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"sSlE/f+D\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/auction/index-loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/index/controller\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/orderable\"], function (_exports, _orderable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend(_orderable.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n l10n: Ember.inject.service(),\n queryParams: [{\n selectedShopId: {\n as: 'shop'\n },\n filterStatus: {\n as: 'status'\n },\n orderBy: {\n as: 'orderBy'\n },\n showArchived: {\n as: 'archived'\n }\n }],\n // -------------------------------------------------------------------------\n // Properties\n selectedShopId: '',\n\n /**\n * If only archived auctions should be displayed.\n *\n * @property showArchived\n * @type Boolean\n * @default false\n */\n showArchived: false,\n\n /**\n * The statuses that should be displayed. Multiple can be selected.\n *\n * @property filterStatus\n * @type Array\n */\n filterStatus: Ember.computed(function () {\n return [];\n }),\n orderBy: 'DATE',\n orderByOptions: Ember.computed('l10n', function () {\n return [{\n value: 'DATE',\n label: this.get('l10n').t('Upcoming')\n }, {\n value: 'STATUS',\n label: this.get('l10n').t('Status')\n }, {\n value: 'NAME',\n label: this.get('l10n').t('Auction name')\n }];\n }),\n\n /**\n * The available status to filter from.\n *\n * @property filterStatusOptions\n * @type Array\n * @final\n */\n filterStatusOptions: Ember.computed('l10n', function () {\n return [{\n value: 'DRAFT',\n label: this.get('l10n').t('Draft')\n }, {\n value: 'ACTIVE',\n label: this.get('l10n').t('Active')\n }, {\n value: 'INACTIVE',\n label: this.get('l10n').t('Inactive')\n }, {\n value: 'CLOSED',\n label: this.get('l10n').t('Past')\n }, {\n value: 'RUNNING',\n label: this.get('l10n').t('Running')\n }];\n }),\n filteredAuctions: Ember.computed('model.@each.archived', 'showArchived', function () {\n var _this = this;\n\n return this.get('model').filter(function (auction) {\n return !_this.get('showArchived') ? !auction.get('archived') : auction.get('archived');\n });\n }) // -------------------------------------------------------------------------\n // Methods\n\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display all auctions of the current user's company.\n *\n * @namespace Route\n * @class ManageAuctionIndex\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n toast: Ember.inject.service(),\n l10n: Ember.inject.service(),\n userSession: Ember.inject.service(),\n queryParams: {\n selectedShopId: {\n as: 'shop',\n refreshModel: true\n },\n orderBy: {\n as: 'orderBy',\n refreshModel: true\n },\n showArchived: {\n as: 'archived',\n refreshModel: true\n },\n filterStatus: {\n as: 'status',\n refreshModel: true\n }\n },\n model: function model(params) {\n var query = {\n company: this.get('userSession.currentCompany.id'),\n sort: Ember.get(params, 'orderBy') ? params.orderBy : 'DATE'\n };\n\n if (params.selectedShopId) {\n query.shop = params.selectedShopId;\n }\n\n if (params.filterStatus) {\n query.status = params.filterStatus;\n } else {\n query.status = ['DRAFT', 'ACTIVE', 'INACTIVE', 'CLOSED', 'RUNNING'];\n }\n\n if (params.showArchived) {\n query.archived = 'true';\n } else {\n query.archived = 'false';\n }\n\n return this.store.query('auction', query);\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n archiveDraftAuction: function archiveDraftAuction(auction) {\n if (!auction.get('isDraft')) {\n return;\n }\n\n auction.setProperties({\n status: 'INACTIVE',\n archived: true\n });\n var l10n = this.get('l10n');\n var toast = this.get('toast');\n auction.save().then(function () {\n toast.success(l10n.t('Your auction is now archived.'));\n }).catch(function () {\n var errMessage = l10n.t('Your auction could not be archived. Please try again later or contact us.');\n toast.error(errMessage);\n });\n },\n publishAuction: function publishAuction(auction) {\n var _this = this;\n\n if (auction.get('status') === 'DRAFT' || auction.get('status') === 'INACTIVE') {\n auction.set('status', 'ACTIVE');\n auction.save().then(function () {\n _this.get('toast').success(_this.get('l10n').t('Your auction is now active and visible to everyone.'));\n }, function () {\n _this.get('toast').error(_this.get('l10n').t('Your auction could not be published. Please try again later or contact us.'));\n });\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only activate a draft or inactive auctions.'));\n }\n },\n deactivateAuction: function deactivateAuction(auction) {\n var _this2 = this;\n\n if (auction.get('status') === 'ACTIVE') {\n auction.set('status', 'INACTIVE');\n auction.save().then(function () {\n _this2.get('toast').info(_this2.get('l10n').t('Your auction is now inactive. Only members of your company can see it.'));\n }, function () {\n _this2.get('toast').error(_this2.get('l10n').t('Your auction could not be deactivated. Please try again later or contact us.'));\n });\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only deactivate an auction which is active but not yet running.'));\n }\n },\n archiveAuction: function archiveAuction(auction) {\n var _this3 = this;\n\n if (auction.get('status') === 'CLOSED') {\n auction.set('archived', true);\n auction.save().then(function () {\n _this3.get('toast').info(_this3.get('l10n').t('Your auction is now archived.'));\n }, function () {\n _this3.get('toast').error(_this3.get('l10n').t('Your auction could not be archived. Please try again later or contact us.'));\n });\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only archive a closed auction.'));\n }\n },\n unarchiveAuction: function unarchiveAuction(auction) {\n var _this4 = this;\n\n if (auction.get('status') === 'CLOSED') {\n auction.set('archived', false);\n auction.save().then(function () {\n _this4.get('toast').info(_this4.get('l10n').t('Your auction is now unarchived.'));\n }, function () {\n _this4.get('toast').error(_this4.get('l10n').t('Your auction could not be unarchived. Please try again later or contact us.'));\n });\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only unarchive a closed auction.'));\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"FMwcIofB\",\n \"block\": \"{\\\"symbols\\\":[\\\"auction\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right--small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create auction\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.auction.create\\\"],[[\\\"class\\\"],[\\\"button button--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"+ New auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manage auctions\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_shop\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select shop\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom select__small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\",\\\"placeholder\\\"],[[23,[\\\"selectedShopId\\\"]],[23,[\\\"availableData\\\",\\\"shops\\\"]],\\\"select_shop\\\",[27,\\\"t\\\",[\\\"All shops\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_status\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Show only\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2 chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\",\\\"multiple\\\",\\\"searchable\\\"],[[23,[\\\"filterStatus\\\"]],[23,[\\\"filterStatusOptions\\\"]],\\\"select_status\\\",true,true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\"],[\\\"input__checkbox\\\",\\\"show_archived\\\",[23,[\\\"showArchived\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"show_archived\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[1,[27,\\\"t\\\",[\\\"Show archived\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"filteredAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_orderBy\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order by\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline select__small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\"],[[23,[\\\"orderBy\\\"]],[23,[\\\"orderByOptions\\\"]],\\\"select_orderBy\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"There is {{count}} auction in this view.\\\",\\\"There are {{count}} auctions in this view.\\\",[23,[\\\"filteredAuctions\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"filteredAuctions\\\",\\\"length\\\"]]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped table__block--responsive table__manage__auctions\\\"],[11,\\\"data-name\\\",\\\"auction-table\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"NAME\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Auction\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"NAME\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Participants\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"DATE\\\"],null],\\\"table__header__sortable--sorted table__header__sortable--sorted--desc\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Auction date\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"DATE\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"STATUS\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Status\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"STATUS\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"filteredAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Name\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"store.auctions.show\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"nowrap\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Participants\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"auctionRegistrationsRegistered\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,1,[\\\"auctionRegistrationsRegistered\\\",\\\"length\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"auctionRegistrationsPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" (\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.auction.registrations\\\",[27,\\\"query-params\\\",null,[[\\\"selectedAuctionId\\\"],[[22,1,[\\\"id\\\"]]]]]],null,{\\\"statements\\\":[[1,[22,1,[\\\"auctionRegistrationsPending\\\",\\\"length\\\"]],false],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"pending\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"n/a\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Auction date\\\"],null]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"moment-format\\\",[[22,1,[\\\"startedDate\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Status\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"ACTIVE\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--green border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--blue border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"INACTIVE\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--grey border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"RUNNING\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--secondary border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"ON_HOLD\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--orange border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"CLOSED\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"publish auction\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Deactivate\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"deactivateAuction\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"isDraft\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Publish\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"publishAuction\\\",[22,1,[]]]],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Archive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"archiveDraftAuction\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"isInactive\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Publish\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"publishAuction\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"archived\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Unarchive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"unarchiveAuction\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Archive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"archiveAuction\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right nowrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.index\\\",[27,\\\"query-params\\\",null,[[\\\"selectedAuctionId\\\"],[[22,1,[\\\"id\\\"]]]]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"View coffee\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit auction\\\",[22,1,[]]],null]],null,{\\\"statements\\\":[[0,\\\" |\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.auction.edit\\\",[22,1,[]]],[[\\\"class\\\"],[\\\"action__edit__icon\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"hidden\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit auction\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no auctions in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/auction/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/registrations/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n l10n: Ember.inject.service(),\n queryParams: [{\n selectedAuctionId: {\n as: 'auction'\n }\n }, 'orderBy', 'filterStatus'],\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n toggleForm: function toggleForm() {\n this.toggleProperty('showForm');\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * The currently selected auction id selected from dropdown.\n *\n * @property selectedAuctionId\n * @type String\n * @default \"\"\n */\n selectedAuctionId: '',\n\n /**\n * Selected participants used to send a message to.\n *\n * @property selectedRegistrations\n * @type {Array}\n * @default []\n */\n selectedRegistrations: Ember.computed(function () {\n return [];\n }),\n\n /**\n * Selected recipients mapped from `selectedRegistrations`.\n *\n * @property selectedRecipients\n * @type {Array}\n * @default []\n */\n selectedRecipients: Ember.computed('selectedRegistrations.[]', function () {\n var selected = this.get('selectedRegistrations');\n return selected.map(function (registration) {\n return registration.get('user');\n });\n }),\n\n /**\n * Property used to order auction registrations.\n *\n * @property orderBy\n * @type String\n * @default \"DATE\"\n */\n orderBy: 'DATE',\n\n /**\n * If true, a form is shown to contact (multiple) auction participants.\n *\n * @property showMessage\n * @type Boolean\n * @default false\n */\n showForm: false,\n\n /**\n * If true, the message queue is currently processed.\n *\n * @property showMessage\n * @type Boolean\n * @default false\n */\n isSending: false,\n\n /**\n * The statuses that should be displayed. Multiple can be selected.\n */\n filterStatus: Ember.computed(function () {\n return [];\n }),\n\n /**\n * All auctions of this company.\n *\n * @property availableAuctions\n * @type Model.Auction[]\n */\n availableAuctions: Ember.computed.alias('availableData.auctions'),\n\n /**\n * The available status to filter from.\n *\n * @property filterStatusOptions\n * @type Array\n * @final\n */\n filterStatusOptions: Ember.computed('l10n', function () {\n return [{\n value: 'PENDING',\n label: this.get('l10n').t('Pending')\n }, {\n value: 'ACCEPTED',\n label: this.get('l10n').t('Accepted')\n }, {\n value: 'REJECTED',\n label: this.get('l10n').t('Rejected')\n }];\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/registrations/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display all auctions of the current user's company.\n *\n * @namespace Route\n * @class ManageAuctionIndex\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n userSession: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameters.\n *\n * @final\n * @public\n * @type {Object}\n */\n queryParams: {\n selectedAuctionId: {\n refreshModel: true,\n as: 'auction'\n },\n orderBy: {\n refreshModel: true,\n as: 'orderBy'\n },\n filterStatus: {\n refreshModel: true,\n as: 'filterStatus'\n }\n },\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Fetches `auction-participant` from store with query params.\n *\n * @public\n * @method model\n * @params {Object} params\n * @return {Ember.RSVP.Promise}\n */\n model: function model(params) {\n var query = {\n sort: params.orderBy,\n auctioneerCompany: this.get('userSession.currentCompany.id')\n };\n\n if (params.selectedAuctionId) {\n query.auctions = [params.selectedAuctionId];\n }\n\n if (params.filterStatus && params.filterStatus.length) {\n query.registrationStates = params.filterStatus;\n } else {\n query.registrationStates = ['PENDING', 'ACCEPTED', 'REJECTED'];\n }\n\n return this.store.query('auction-participant', query);\n },\n init: function init() {\n this._super.apply(this, arguments);\n\n this._onBeforeUnload = this.onBeforeUnload.bind(this);\n window.addEventListener('beforeunload', this._onBeforeUnload);\n },\n willDestroy: function willDestroy() {\n this._super.apply(this, arguments);\n\n window.removeEventListener('beforeunload', this._onBeforeUnload);\n },\n onBeforeUnload: function onBeforeUnload(event) {\n var controller = this.controllerFor(this.routeName);\n\n if (Ember.get(controller, 'isSending')) {\n event = event || window.event;\n var confirmationMessage = this.get('l10n').t(\"Your are currently sending messages, are you sure you want to leave the page?\");\n event.returnValue = confirmationMessage;\n return confirmationMessage;\n }\n },\n actions: {\n willTransition: function willTransition(transition) {\n var controller = this.controllerFor(this.routeName);\n\n if (Ember.get(controller, 'isSending')) {\n transition.abort();\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/registrations/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"2dEv1otz\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Auction registrations\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right--small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create auction\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline text-right\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.auction.create\\\"],[[\\\"class\\\"],[\\\"button button--full\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"+ New auction\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Auction registrations\\\"],null],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"availableAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_auction\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select auction\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom select__small input__full\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\",\\\"placeholder\\\"],[[23,[\\\"selectedAuctionId\\\"]],[23,[\\\"availableAuctions\\\"]],\\\"select_auction\\\",[27,\\\"t\\\",[\\\"All auctions\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_status\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Show only\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2 chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\",\\\"multiple\\\",\\\"searchable\\\"],[[23,[\\\"filterStatus\\\"]],[23,[\\\"filterStatusOptions\\\"]],\\\"select_status\\\",true,true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"auction-participant-overview\\\",null,[[\\\"orderBy\\\",\\\"selectable\\\",\\\"auctionRegistrations\\\",\\\"action\\\",\\\"selectedRegistrations\\\"],[[23,[\\\"orderBy\\\"]],[23,[\\\"showForm\\\"]],[23,[\\\"model\\\"]],\\\"registrationsUpdated\\\",[23,[\\\"selectedRegistrations\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"length\\\"]],[23,[\\\"selectedAuctionId\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Get in touch\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleForm\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showForm\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-3 padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"You can send a message to all participants to inform them about important auction updates.\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectedRecipients\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"INFO\\\",\\\"margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"Your message will be sent to {{count}} recipient.\\\",\\\"Your message will be sent to {{count}} recipients.\\\",[23,[\\\"selectedRecipients\\\",\\\"length\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Please select your desired recipients from the table above.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[1,[27,\\\"message-multiple\\\",null,[[\\\"category\\\",\\\"isSending\\\",\\\"recipients\\\"],[\\\"AUCTION\\\",[23,[\\\"isSending\\\"]],[23,[\\\"selectedRecipients\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/auction/registrations/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/company-verified\"], function (_exports, _authenticatedRouteMixin, _companyVerified) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display all auctions of the current user's company.\n *\n * @namespace Route\n * @class ManageAuctionIndex\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _companyVerified.default, {\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Checks if `auctionsEnabled` flag is set on current company.\n * If not, it will redirect to manage overview index page.\n *\n * @public\n * @method beforeModel\n * @return Promise\n */\n beforeModel: function beforeModel() {\n var _this = this;\n\n var companySuccessCallback = function companySuccessCallback() {\n if (!_this.can('create auction')) {\n Ember.get(_this, 'toast').info(Ember.get(_this, 'l10n').t('Sorry, but you cannot manage auctions because the module is not active.'));\n\n _this.transitionTo('admin.manage.index');\n }\n };\n\n return Ember.get(this, 'userSession.currentCompany').then(companySuccessCallback);\n },\n\n /**\n * Delivers auctioneer's with pending registrations.\n *\n * @public\n * @method model\n * @return Promise\n */\n model: function model() {\n var query = {\n auctioneerCompany: Ember.get(this, 'userSession.currentCompany.id'),\n registrationStates: ['PENDING']\n };\n return Ember.RSVP.hash({\n pendingRegistrations: this.store.query('auction-participant', query)\n });\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Reloads model if registrations were updated.\n *\n * @event registrationsUpdated\n * @return {Void}\n * @private\n */\n registrationsUpdated: function registrationsUpdated() {\n this.refresh();\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/auction/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"U3+qYKnX\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Auction overview\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left layout__sidebar--left--small\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"third-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.auction.index\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Auctions\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.auction.registrations\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Registrations\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"pendingRegistrations\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\" (\\\"],[1,[23,[\\\"model\\\",\\\"pendingRegistrations\\\",\\\"length\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/auction/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/index/controller\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/orderable\"], function (_exports, _orderable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend(_orderable.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n listingPublisher: Ember.inject.service(),\n keenTracking: Ember.inject.service(),\n can: Ember.inject.service(),\n router: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameter definition.\n *\n * @property queryParams\n * @type {Array}\n * @public\n */\n queryParams: [{\n selectedShopId: {\n as: 'shop'\n }\n }, {\n selectedAuctionId: {\n as: 'auction'\n }\n }, {\n orderBy: {\n as: 'orderBy'\n }\n }, {\n filterStatus: {\n as: 'status'\n }\n }, {\n filterOrigins: {\n as: 'origins'\n }\n }, {\n filterWarehouses: {\n as: 'warehouses'\n }\n }, {\n page: {\n as: 'page'\n }\n }, {\n pageSize: {\n as: 'pageSize'\n }\n }, {\n showArchived: {\n as: 'archived'\n }\n }, {\n showRatings: {\n as: 'ratings'\n }\n }, {\n searchTerm: {\n as: 'term'\n }\n }, {\n salesNumber: {\n as: 'sales'\n }\n }],\n\n /**\n * The current page\n *\n * @property page\n * @public\n * @type Number\n */\n page: 1,\n\n /**\n * The current page size.\n *\n * @property pageSize\n * @public\n * @type Number\n */\n pageSize: 20,\n\n /**\n * The maximum amount of pages\n *\n * @property maxPages\n * @public\n * @type Number\n */\n maxPages: 1,\n\n /**\n * The total amount of listings over all pages.\n *\n * @property totalListings\n * @public\n * @type Number\n */\n totalListings: 0,\n\n /**\n * Hash map containing listings rating by `id`.\n * Filled by route's `afterModel()` hook with:\n *\n * {\n * BAD: \n * SO_SO: \n * GOOD: \n * }\n *\n * @public\n * @property ratings\n * @type Object\n */\n ratingsMap: Ember.computed(function () {\n return {};\n }),\n\n /**\n * Transformed listings from Ember RecordArray to\n * make collection mutable for the `copy` feature.\n *\n * @property listings\n * @public\n * @type Model.Listing[]\n */\n listings: Ember.computed('model.[]', {\n get: function get() {\n // we need mutable collection for copy feature,\n // so transform DS.RecordArray to mutable array\n // https://github.com/emberjs/data/issues/3530\n return Ember.get(this, 'model').toArray();\n }\n }),\n\n /**\n * Filtered listings for view taking any changes of\n * `status`, `archived` and `isDeleted` into account.\n *\n * @property filteredListings\n * @type Model.Listing[]\n */\n filteredListings: Ember.computed('filterStatus', 'listings.@each.{archived,isDeleted,shopId,status}', 'selectedShopId', 'showArchived', {\n get: function get() {\n var listings = Ember.get(this, 'listings');\n var showArchived = Ember.get(this, 'showArchived');\n var filterStatus = Ember.get(this, 'filterStatus');\n var selectedShopId = Ember.get(this, 'selectedShopId');\n\n var filterCallback = function filterCallback(listing) {\n var props = Ember.getProperties(listing, ['shopId', 'isDeleted', 'status', 'archived']);\n\n if (!Ember.isEmpty(filterStatus) && !filterStatus.includes(props.status)) {\n return false;\n }\n\n if (!Ember.isNone(selectedShopId) && selectedShopId != props.shopId) {\n return false;\n }\n\n if (props.archived !== showArchived) {\n return false;\n }\n\n if (props.isDeleted) {\n return false;\n }\n\n return true;\n };\n\n return listings.filter(filterCallback);\n }\n }),\n\n /**\n * The currently selected listings\n *\n * @property selectedListings\n * @type Model.Listing[]\n * @private\n */\n selectedListings: Ember.computed(function () {\n return [];\n }),\n\n /**\n * The current selected listings\n * as hashmap width id: .\n *\n * @property selectedMap\n * @type {Object}\n * @private\n */\n selectedMap: Ember.computed({\n get: function get()\n /*key*/\n {\n return {};\n }\n }),\n\n /**\n * A search term to search for coffees.\n *\n * @property searchTerm\n * @type String\n */\n searchTerm: '',\n\n /**\n * A sales number to search for coffees.\n *\n * @property salesNumber\n * @type String\n */\n salesNumber: '',\n\n /**\n * The ID of the auction to select. This is persisted in the URL.\n *\n * @property selectedAuctionId\n * @type String\n */\n selectedAuctionId: null,\n\n /**\n * The ID of the shop to select.This is persisted in the URL.\n *\n * @property selectedShopId\n * @type String\n */\n selectedShopId: null,\n\n /**\n * If only archived listings should be displayed.\n *\n * @property showArchived\n * @type Boolean\n * @default false\n */\n showArchived: false,\n\n /**\n * If only rated listings should be displayed.\n *\n * @property showRatings\n * @type Boolean\n * @default false\n */\n showRatings: false,\n\n /**\n * The statuses that should be displayed. Multiple can be selected.\n *\n * @property filterStatus\n * @type Array\n * @default []\n */\n filterStatus: Ember.A(),\n\n /**\n * The origins that should be displayed. Multiple can be selected.\n *\n * @property filterOrigins\n * @type Array\n * @default []\n */\n filterOrigins: Ember.A(),\n\n /**\n * The warehouses that should be displayed. Multiple can be selected.\n *\n * @property filterWarehouses\n * @type Array\n * @default []\n */\n filterWarehouses: Ember.A(),\n\n /**\n * The current order settings. One of \"DATE\", \"AMOUNT\", \"NAME\", \"STATUS\",\n * \"PRICE\", \"ICO_NUMBER\", \"SALES_NUMBER\", \"AVAILABILITY\" and \"ORIGIN\".\n *\n * @property orderBy\n * @type String\n * @default \"DATE\"\n */\n orderBy: 'DATE',\n\n /**\n * All auctions of this company.\n *\n * @property availableAuctions\n * @type Model.Auction[]\n */\n availableAuctions: Ember.computed('selectedShopId', 'availableData.auctions.[]', {\n get: function get()\n /*key*/\n {\n var auctions = Ember.get(this, 'availableData.auctions');\n var selectedShopId = Ember.get(this, 'selectedShopId');\n\n if (selectedShopId) {\n auctions = auctions.filter(function (auction) {\n var shopId = Ember.get(auction, 'shop.id');\n return shopId === selectedShopId;\n });\n }\n\n return auctions;\n }\n }),\n\n /**\n * All warehouses of this company.\n *\n * @property availableWarehouses\n * @type Model.Location[]\n */\n availableWarehouses: Ember.computed.reads('availableData.locations'),\n\n /**\n * All producers of this company.\n *\n * @property availableProducers\n * @type Model.Producer[]\n */\n availableProducers: Ember.computed.reads('availableData.producers'),\n hasActiveShop: Ember.computed('availableData.activeShops.length', function () {\n return Ember.get(this, 'availableData.activeShops.length') > 0;\n }),\n\n /**\n * The available options by which it is possible to order.\n *\n * @property orderByOptions\n * @type Array\n * @final\n */\n orderByOptions: Ember.computed('l10n', {\n get: function get()\n /*key*/\n {\n return [{\n value: 'DATE',\n label: Ember.get(this, 'l10n').t('Most recent')\n }, {\n value: 'AMOUNT',\n label: Ember.get(this, 'l10n').t('Amount')\n }, {\n value: 'NAME',\n label: Ember.get(this, 'l10n').t('Name')\n }, {\n value: 'STATUS',\n label: Ember.get(this, 'l10n').t('Status')\n }, {\n value: 'PRICE',\n label: Ember.get(this, 'l10n').t('Price')\n }, {\n value: 'ICO_NUMBER',\n label: Ember.get(this, 'l10n').t('ICO #')\n }, {\n value: 'SALES_NUMBER',\n label: Ember.get(this, 'l10n').t('Sales #')\n }, {\n value: 'AVAILABILITY',\n label: Ember.get(this, 'l10n').t('Availability')\n }, {\n value: 'ORIGIN',\n label: Ember.get(this, 'l10n').t('Origin')\n }];\n }\n }),\n\n /**\n * The available status to filter from.\n *\n * @property filterStatusOptions\n * @type Array\n * @final\n */\n filterStatusOptions: Ember.computed('l10n', {\n get: function get()\n /*key*/\n {\n return [{\n value: 'DRAFT',\n label: Ember.get(this, 'l10n').t('Draft')\n }, {\n value: 'ACTIVE',\n label: Ember.get(this, 'l10n').t('Active')\n }, {\n value: 'EXPIRED',\n label: Ember.get(this, 'l10n').t('Expired')\n }, {\n value: 'INACTIVE',\n label: Ember.get(this, 'l10n').t('Inactive')\n }, {\n value: 'SOLD_OUT',\n label: Ember.get(this, 'l10n').t('Sold out')\n }];\n }\n }),\n\n /**\n * The available page size options.\n *\n * @property pageSizeOptions\n * @type Array\n * @final\n */\n pageSizeOptions: Ember.computed({\n get: function get()\n /*key*/\n {\n return [{\n value: 10,\n label: 10\n }, {\n value: 20,\n label: 20\n }, {\n value: 40,\n label: 40\n }, {\n value: 80,\n label: 80\n }, {\n value: 160,\n label: 160\n }, {\n value: 320,\n label: 320\n }];\n }\n }),\n quickLinkListingOptions: Ember.computed('can', 'l10n', function () {\n var quickLinksListingOptions = [{\n label: this.get('l10n').t('Add one'),\n route: 'admin.manage.listing.create'\n }];\n\n if (Ember.get(this, 'can').can('edit settings')) {\n quickLinksListingOptions.push({\n label: this.get('l10n').t('Add many'),\n route: 'admin.manage.bulk.listing'\n });\n }\n\n return quickLinksListingOptions;\n }),\n printOptions: Ember.computed('l10n', function () {\n var l10n = Ember.get(this, 'l10n');\n return [{\n label: l10n.t('Offer list'),\n value: 'printOfferListClick'\n }, {\n label: l10n.t('Event labels (Hub Tag)'),\n value: 'printLabelsClick'\n }];\n }),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Resets current selection.\n *\n * @public\n * @method resetSelection\n * @return {Void}\n */\n resetSelection: function resetSelection() {\n Ember.set(this, 'selectedListings', []);\n Ember.set(this, 'selectedMap', {});\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n printOption: function printOption(option) {\n var actionName = option.value;\n this.send(actionName);\n },\n\n /**\n * Publish a listing. This sets the state to ACTIVE.\n * The company pays for this. This is only possible coming from DRAFT or INACTIVE.\n *\n * @event publishListing\n * @param Model.Listing listing\n * @private\n */\n publishListing: function publishListing(listing) {\n Ember.get(this, 'listingPublisher').publish(listing);\n },\n\n /**\n * Deactivate a listing. This sets the state to INACTIVE.\n * This is only possible coming from ACTIVE or EXPIRED.\n *\n * @event deactivateListing\n * @param Model.Listing listing\n * @private\n */\n deactivateListing: function deactivateListing(listing) {\n Ember.get(this, 'listingPublisher').deactivate(listing);\n },\n\n /**\n * Delete a listing. This actually deletes the listing.\n * It is not recoverable. This is only possible coming from DRAFT.\n *\n * @event deleteListing\n * @param Model.Listing listing\n * @private\n */\n deleteListing: function deleteListing(listing) {\n Ember.get(this, 'listingPublisher').delete(listing);\n },\n\n /**\n * Archive a listing. This sets the archived flag.\n * This is only possible coming from INACTIVE, SOLD_OUT and EXPIRED.\n *\n * @event archiveListing\n * @param Model.Listing listing\n * @private\n */\n archiveListing: function archiveListing(listing) {\n Ember.get(this, 'listingPublisher').archive(listing);\n },\n\n /**\n * Mark listing as SOLD_OUT.\n * This is only possible when ACTIVE.\n *\n * @event soldListing\n * @param Model.Listing listing\n * @private\n */\n soldListing: function soldListing(listing) {\n Ember.get(this, 'listingPublisher').sold(listing);\n },\n\n /**\n * Unarchive a listing. This unsets the archived flag.\n *\n * @event unarchiveListing\n * @param Model.Listing listing\n * @private\n */\n unarchiveListing: function unarchiveListing(listing) {\n Ember.get(this, 'listingPublisher').unarchive(listing);\n },\n\n /**\n * Renew an expired listing. The company is billed for this.\n * This is only possible coming from EXPIRED.\n *\n * @event renewListing\n * @param Model.Listing listing\n * @private\n */\n renewListing: function renewListing(listing) {\n Ember.get(this, 'listingPublisher').renew(listing);\n },\n\n /**\n * Edit an expired listing before re-publishing it. This sets the state to INACTIVE\n * and redirects to the edit screen for this listing. This is only possible coming from EXPIRED.\n *\n * @event editRenewListing\n * @param Model.Listing listing\n * @private\n */\n editRenewListing: function editRenewListing(listing) {\n var _this = this;\n\n if (listing.get('status') === 'EXPIRED') {\n listing.set('status', 'INACTIVE');\n listing.set('auction', null);\n listing.save().then(function () {\n Ember.get(_this, 'toast').info(Ember.get(_this, 'l10n').t('You can now review and edit your coffee.'));\n\n _this.transitionToRoute('admin.manage.listing.edit', listing);\n }, function () {\n Ember.get(_this, 'toast').warning(Ember.get(_this, 'l10n').t('Sorry, but an error occurred when trying to renew this listing.'));\n });\n } else {\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You can only renew expired coffee listings.'));\n }\n },\n\n /**\n * Set the currently selected listings.\n *\n * @event selectMultiple\n * @param listings Model.Listing[]\n * @private\n */\n selectMultiple: function selectMultiple(selectedMap) {\n Ember.set(this, 'selectedListings', Object.keys(selectedMap));\n },\n\n /**\n * Transitions to bulk-edit view with selected listings as query param.\n *\n * @event editSelection\n * @private\n */\n editSelection: function editSelection() {\n this.transitionToRoute('admin.manage.bulk.listing-edit', {\n queryParams: {\n ids: Ember.get(this, 'selectedListings')\n }\n });\n },\n printOfferListClick: function printOfferListClick() {\n var selectedListings = Ember.get(this, 'selectedListings');\n this.get('keenTracking').addEvent('print-offer-list-btn-click', {\n selectedListings: selectedListings\n });\n this.transitionToRoute('admin.manage.print-offer-list', {\n queryParams: {\n ids: selectedListings\n }\n });\n },\n printLabelsClick: function printLabelsClick() {\n var selectedListings = Ember.get(this, 'selectedListings');\n this.get('keenTracking').addEvent('print-labels-btn-click', {\n selectedListings: selectedListings\n });\n this.transitionToRoute('admin.manage.print-labels', {\n queryParams: {\n ids: selectedListings\n }\n });\n },\n\n /**\n * Handles after copy tasks and closes moda\n *\n * @event selectMultiple\n * @param {string} state\n * @param {Function} closeModal\n * @param {Model.Listing|Object|null} [copyArg=null]\n * @private\n */\n afterCopy: function afterCopy(state, closeModal) {\n var copyArg = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n switch (state) {\n case 'cancel':\n // noop\n break;\n\n case 'failure':\n // noop\n break;\n\n case 'success':\n // add to current collection\n // eslint-disable-next-line no-case-declarations\n var listings = Ember.get(this, 'listings');\n listings.unshiftObject(copyArg);\n this.resetSelection();\n break;\n\n default:\n }\n\n closeModal();\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/company-verified\", \"@vollersgroup/hub-frontend/mixins/fix-qp-array-serializer\"], function (_exports, _authenticatedRouteMixin, _companyVerified, _fixQpArraySerializer) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display all coffees of the current user's company.\n *\n * @namespace Route\n * @class ManageListingIndex\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _companyVerified.default, _fixQpArraySerializer.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n ajax: Ember.inject.service(),\n toast: Ember.inject.service(),\n userSession: Ember.inject.service(),\n localStorage: Ember.inject.service(),\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Provides custom model for import.\n *\n * @property queryParams\n * @type {Object}\n * @public\n */\n queryParams: {\n selectedShopId: {\n as: 'shop',\n refreshModel: true\n },\n selectedAuctionId: {\n as: 'auction',\n refreshModel: true\n },\n filterStatus: {\n as: 'status',\n refreshModel: true\n },\n filterOrigins: {\n as: 'origins',\n refreshModel: true\n },\n filterWarehouses: {\n as: 'warehouses',\n refreshModel: true\n },\n showArchived: {\n as: 'archived',\n refreshModel: true\n },\n showRatings: {\n as: 'ratings',\n refreshModel: true\n },\n page: {\n as: 'page',\n refreshModel: true\n },\n pageSize: {\n as: 'pageSize',\n refreshModel: true\n },\n orderBy: {\n as: 'orderBy',\n refreshModel: true\n },\n searchTerm: {\n as: 'term',\n refreshModel: true\n },\n salesNumber: {\n as: 'sales',\n refreshModel: true\n }\n },\n\n /**\n * Key to be used to put offer list settings into store.\n *\n * @property storageKey\n * @type {String}\n * @private\n */\n storageKey: 'hub_manage_coffee_page_size',\n\n /**\n * Default page size - will be overwritten from local storage.\n *\n * @property defaultPageSize\n * @type {Integer}\n * @private\n */\n storageVal: null,\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Loads warehouses from API for filter select.\n *\n * @public\n * @method beforeModel\n * @param {Object} transition\n * @return {Promise}\n */\n beforeModel: function beforeModel(transition) {\n // only override with storage on first call, as `controller`\n // would not be initialized in this case - query parameter\n // defaults cannot be static, therefore we need this patch\n if (Ember.isNone(Ember.get(this, 'controller'))) {\n var storage = Ember.get(this, 'localStorage');\n var value = storage.getItem(Ember.get(this, 'storageKey'));\n var pageSize = Ember.get(transition, 'queryParams.pageSize'); // only set if `pageSize` is missing and value from local\n // storage is available to be overridden with default val\n\n if (!Ember.isNone(value) && Ember.isNone(pageSize)) {\n Ember.set(transition, 'queryParams.pageSize', value.pageSize);\n }\n }\n\n return Ember.get(this, 'availableData.locations');\n },\n\n /**\n * Loads listings from API with current settings.\n *\n * @public\n * @method model\n * @param {Object} params\n * @return {Promise}\n */\n model: function model(params, transition) {\n var _this = this;\n\n var query = {\n company: Ember.get(this, 'userSession.currentCompany.id'),\n pageSize: transition.queryParams.pageSize || params.pageSize || 20,\n sort: params.orderBy || 'DATE',\n page: params.page || 1\n };\n query.sortDirection = query.sort === 'DATE' ? 'DESC' : 'ASC';\n query.hasRating = params.showRatings || false;\n query.archived = params.showArchived || false;\n query.auction = params.selectedAuctionId || '';\n query.shop = params.selectedShopId || '';\n query.status = !Ember.isEmpty(params.filterStatus) ? params.filterStatus : ['DRAFT', 'ACTIVE', 'EXPIRED', 'INACTIVE', 'SOLD_OUT'];\n query.term = params.searchTerm;\n query.producers = params.filterOrigins;\n query.salesOfferNumber = params.salesNumber;\n\n if (Ember.isArray(params.filterWarehouses)) {\n query.warehouses = [];\n params.filterWarehouses.forEach(function (id) {\n if (Ember.isNone(id) || !_this.store.hasRecordForId('location', id)) {\n return;\n }\n\n var warehouse = _this.store.peekRecord('location', id);\n\n query.warehouses.push(Ember.get(warehouse, 'name'));\n });\n }\n\n return this.store.query('listing', query);\n },\n\n /**\n * Extracts meta data from response and handles reset transitions.\n *\n * @public\n * @method afterModel\n * @param {Array.[]} model\n * @param {Object} transition.\n * @return {Promise}\n */\n afterModel: function afterModel(model, transition) {\n var meta = model.get('meta');\n var controller = this.controllerFor(Ember.get(this, 'routeName')); // Forward query parameter to controller AFTER transitions\n\n Ember.run.scheduleOnce('routerTransitions', this, function () {\n var pageSize = Ember.get(transition, 'queryParams.pageSize');\n\n if (!Ember.isNone(pageSize)) {\n controller.set('pageSize', pageSize);\n }\n }); // Get max pages from header and update eventually\n\n if (meta) {\n var maxPages = meta.maxPages;\n controller.set('maxPages', maxPages);\n controller.set('totalListings', meta.totalItems);\n } else {\n controller.set('maxPages', 1);\n controller.set('totalListings', model.length);\n }\n\n var page = parseInt(Ember.get(transition, 'queryParams.page'));\n\n if (!isNaN(page) && page > 1 && model.get('length') === 0) {\n this.transitionTo({\n queryParams: {\n page: 1\n }\n });\n }\n\n return Ember.get(this, 'ajax').request('/ratingSummary', {\n data: {\n company: Ember.get(this, 'userSession.currentCompany.id'),\n listings: model.mapBy('id')\n },\n contentType: 'application/json; charset=utf-8'\n }).then(function (items) {\n items.forEach(function (item) {\n // note: ratings may not contain a key for a\n // non existing rating category so set them!\n // if we need data on other places, move to\n // service for abstracting the uglyness away\n item.ratings.SO_SO = item.ratings.SO_SO || 0;\n item.ratings.GOOD = item.ratings.GOOD || 0;\n item.ratings.BAD = item.ratings.BAD || 0;\n var key = \"ratingsMap.\".concat(item.listing);\n Ember.set(controller, key, item.ratings);\n });\n });\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Adjusts `filterStatus` property and resets page to 1.\n *\n * @event changeFilterStatus\n * @param {Array} status\n * @private\n */\n changeFilterStatus: function changeFilterStatus(status) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('filterStatus', status);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `filterOrigins` property and resets page to 1.\n *\n * @event changeFilterOrigins\n * @param {Array} val\n * @private\n */\n changeFilterOrigins: function changeFilterOrigins(origins) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('filterOrigins', origins);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `filterWarehouses` property and resets page to 1.\n *\n * @event changeFilterWarehouses\n * @param {Array} val\n * @private\n */\n changeFilterWarehouses: function changeFilterWarehouses(warehouses) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('filterWarehouses', warehouses);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `selectedShopId` property and resets page to 1.\n *\n * @event changeSelectedShop\n * @param {String} val\n * @private\n */\n changeSelectedShop: function changeSelectedShop(val) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('selectedShopId', val);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `selectedAuctionId` property and resets page to 1.\n *\n * @event changeSelectedAuction\n * @param {String} val\n * @private\n */\n changeSelectedAuction: function changeSelectedAuction(val) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('selectedAuctionId', val);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `showArchived` property and resets page to 1.\n *\n * @event changeShowArchived\n * @param {String} val\n * @private\n */\n changeShowArchived: function changeShowArchived(val) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('showArchived', val);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `showRatings` property and resets page to 1.\n *\n * @event changeShowRatings\n * @param {String} val\n * @private\n */\n changeShowRatings: function changeShowRatings(val) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('showRatings', val);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `searchTerm` property and resets page to 1.\n *\n * @event changeSearchTerm\n * @param {String} val\n * @private\n */\n changeSearchTerm: function changeSearchTerm(val) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('searchTerm', val);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Adjusts `salesNumber` property and resets page to 1.\n *\n * @event changeSalesNumber\n * @param {String} val\n * @private\n */\n changeSalesNumber: function changeSalesNumber(val) {\n var controller = this.controllerFor(Ember.get(this, 'routeName'));\n controller.set('salesNumber', val);\n controller.set('page', 1);\n controller.resetSelection();\n },\n\n /**\n * Switches to given page and resets scroll position.\n *\n * @event changePageSize\n * @param {Number} pageSize\n * @private\n */\n changePageSize: function changePageSize(pageSize) {\n var storage = Ember.get(this, 'localStorage');\n var key = Ember.get(this, 'storageKey');\n storage.setItem(key, {\n pageSize: pageSize\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"acB+FROj\",\n \"block\": \"{\\\"symbols\\\":[\\\"closeAction\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Coffee overview\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/migration-banner\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right--small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create listing\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container text-right margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasActiveShop\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"dropdown-select\\\",null,[[\\\"placeholder\\\",\\\"options\\\",\\\"buttonClass\\\",\\\"class\\\"],[[27,\\\"t\\\",[\\\"+ New coffee\\\"],null],[23,[\\\"quickLinkListingOptions\\\"]],\\\"button button--full\\\",\\\"block dropdown-select--button\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create shop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"admin.manage.shop.create\\\"],[[\\\"class\\\"],[\\\"button button--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"+ New shop\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info__tooltip\\\"],[12,\\\"data-info\\\",[27,\\\"t\\\",[\\\"You don't have any active shop. Create one before adding a new coffee.\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/info-white.svg\\\"],[11,\\\"alt\\\",\\\"Info\\\"],[11,\\\"class\\\",\\\"inline-icon--small\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manage coffee\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-row\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-6 fg-column-3-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_shop\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Shop\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom input__full\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"action\\\",\\\"options\\\",\\\"id\\\",\\\"placeholder\\\"],[[27,\\\"readonly\\\",[[23,[\\\"selectedShopId\\\"]]],null],\\\"changeSelectedShop\\\",[23,[\\\"availableData\\\",\\\"shops\\\"]],\\\"select_shop\\\",[27,\\\"t\\\",[\\\"All shops\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"availableAuctions\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-6 fg-column-3-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_auction\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Auction\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom input__full\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"action\\\",\\\"options\\\",\\\"id\\\",\\\"placeholder\\\"],[[27,\\\"readonly\\\",[[23,[\\\"selectedAuctionId\\\"]]],null],\\\"changeSelectedAuction\\\",[23,[\\\"availableAuctions\\\"]],\\\"select_auction\\\",[27,\\\"t\\\",[\\\"All auctions\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"availableProducers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-6 fg-column-3-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_producers\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Origin\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"action\\\",\\\"options\\\",\\\"id\\\",\\\"placeholder\\\",\\\"multiple\\\",\\\"searchable\\\"],[[27,\\\"readonly\\\",[[23,[\\\"filterOrigins\\\"]]],null],\\\"changeFilterOrigins\\\",[23,[\\\"availableProducers\\\"]],\\\"select_producers\\\",[27,\\\"t\\\",[\\\"All origins\\\"],null],true,true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"availableWarehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-6 fg-column-3-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_warehouses\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Warehouse\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"action\\\",\\\"options\\\",\\\"id\\\",\\\"placeholder\\\",\\\"multiple\\\",\\\"searchable\\\"],[[27,\\\"readonly\\\",[[23,[\\\"filterWarehouses\\\"]]],null],\\\"changeFilterWarehouses\\\",[23,[\\\"availableWarehouses\\\"]],\\\"select_warehouses\\\",[27,\\\"t\\\",[\\\"All warehouses\\\"],null],true,true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-6 fg-column-3-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_status\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Status\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"action\\\",\\\"options\\\",\\\"id\\\",\\\"placeholder\\\",\\\"multiple\\\",\\\"searchable\\\"],[[27,\\\"readonly\\\",[[23,[\\\"filterStatus\\\"]]],null],\\\"changeFilterStatus\\\",[23,[\\\"filterStatusOptions\\\"]],\\\"select_status\\\",[27,\\\"t\\\",[\\\"All statuses\\\"],null],true,true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-6 fg-column-3-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"filter_sales_number\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Sales #\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"action\\\",\\\"id\\\"],[\\\"input__txt\\\",[27,\\\"readonly\\\",[[23,[\\\"salesNumber\\\"]]],null],\\\"changeSalesNumber\\\",\\\"filter_sales_number\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-column-6 fg-column-5-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"filter_name\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Name\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"value\\\",\\\"action\\\",\\\"id\\\"],[\\\"input__txt\\\",[27,\\\"readonly\\\",[[23,[\\\"searchTerm\\\"]]],null],\\\"changeSearchTerm\\\",\\\"filter_name\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"column self-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"nowrap\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-2 inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\",\\\"action\\\"],[\\\"input__checkbox\\\",\\\"show_archived\\\",[27,\\\"readonly\\\",[[23,[\\\"showArchived\\\"]]],null],\\\"changeShowArchived\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"show_archived\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[1,[27,\\\"t\\\",[\\\"Show archived\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-2 inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\",\\\"action\\\"],[\\\"input__checkbox\\\",\\\"show_ratings\\\",[27,\\\"readonly\\\",[[23,[\\\"showRatings\\\"]]],null],\\\"changeShowRatings\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"show_ratings\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[1,[27,\\\"t\\\",[\\\"Show ratings\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"eq\\\",[[23,[\\\"filteredListings\\\",\\\"firstObject\\\",\\\"shop\\\",\\\"status\\\"]],\\\"DRAFT\\\"],null],[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isVerified\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"INFO\\\",\\\"margin-bottom-3\\\",[27,\\\"t\\\",[\\\"You have an unpublished shop.\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"As long as a shop is unpublished, its coffee will not be visible to the public.\\\"],null],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"no-list margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-right-2\\\"],[9],[1,[23,[\\\"filteredListings\\\",\\\"firstObject\\\",\\\"shop\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--info\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"PUBLISH IMMEDIATELY\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"publishDraftShop\\\",[23,[\\\"filteredListings\\\",\\\"firstObject\\\",\\\"shop\\\"]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"There is {{count}} listing in this view.\\\",\\\"There are {{count}} listings in this view.\\\",[23,[\\\"totalListings\\\"]]],[[\\\"count\\\"],[[23,[\\\"totalListings\\\"]]]]],true],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"totalListings\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"admin.manage.bulk.listing-edit\\\",[27,\\\"query-params\\\",null,[[\\\"currentAuctionId\\\",\\\"currentShopId\\\",\\\"orderBy\\\",\\\"filterStatus\\\",\\\"filterOrigins\\\",\\\"filterWarehouses\\\",\\\"showArchived\\\",\\\"showRatings\\\",\\\"searchTerm\\\",\\\"salesNumber\\\"],[[23,[\\\"selectedAuctionId\\\"]],[23,[\\\"selectedShopId\\\"]],[23,[\\\"orderBy\\\"]],[23,[\\\"filterStatus\\\"]],[23,[\\\"filterOrigins\\\"]],[23,[\\\"filterWarehouses\\\"]],[23,[\\\"showArchived\\\"]],[23,[\\\"showRatings\\\"]],[23,[\\\"searchTerm\\\"]],[23,[\\\"salesNumber\\\"]]]]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Edit all\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"filteredListings\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"fg-row section\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"column fg-column-8-m fg-column-9-l self-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectedListings\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"vertical-align-middle bold\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"{{selectedListingsCount}} selected:\\\"],[[\\\"selectedListingsCount\\\"],[[23,[\\\"selectedListings\\\",\\\"length\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit listing\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline inline-block vertical-align-middle padding-left-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Edit\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"editSelection\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline inline-block vertical-align-middle padding-left-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"dropdown-select\\\",null,[[\\\"placeholder\\\",\\\"options\\\",\\\"action\\\",\\\"buttonClass\\\",\\\"class\\\"],[[27,\\\"t\\\",[\\\"Print\\\"],null],[23,[\\\"printOptions\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"printOption\\\"],null],\\\"button block button--half-height button--secondary new\\\",\\\"dropdown-select--button\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"selectedListings\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit listing\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline inline-block vertical-align-middle padding-left-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"id\\\",\\\"listing_copy_button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Copy\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showCopyModal\\\"]]],null],true],null]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"em\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select coffees to see actions\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"column nowrap text-right self-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_orderBy\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2 margin-bottom-0 vertical-align-middle\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order by\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline-block select__small inline-block vertical-align-middle\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"action\\\",\\\"options\\\",\\\"id\\\"],[[27,\\\"readonly\\\",[[23,[\\\"orderBy\\\"]]],null],\\\"orderBy\\\",[23,[\\\"orderByOptions\\\"]],\\\"select_orderBy\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"listing-table\\\",null,[[\\\"listings\\\",\\\"orderBy\\\",\\\"selectedMap\\\",\\\"ratingsMap\\\",\\\"orderByUpdated\\\",\\\"soldListing\\\",\\\"renewListing\\\",\\\"deleteListing\\\",\\\"selectMultiple\\\",\\\"publishListing\\\",\\\"archiveListing\\\",\\\"editRenewListing\\\",\\\"unarchiveListing\\\",\\\"deactivateListing\\\"],[[27,\\\"readonly\\\",[[23,[\\\"filteredListings\\\"]]],null],[27,\\\"readonly\\\",[[23,[\\\"orderBy\\\"]]],null],[27,\\\"mut\\\",[[23,[\\\"selectedMap\\\"]]],null],[27,\\\"readonly\\\",[[23,[\\\"ratingsMap\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"soldListing\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"renewListing\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deleteListing\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"selectMultiple\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"publishListing\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"archiveListing\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"editRenewListing\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"unarchiveListing\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"deactivateListing\\\"],null]]]],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"pagination-widget\\\",null,[[\\\"page\\\",\\\"maxPages\\\",\\\"pageSize\\\",\\\"pageSizeOptions\\\",\\\"changePageSize\\\"],[[23,[\\\"page\\\"]],[23,[\\\"maxPages\\\"]],[23,[\\\"pageSize\\\"]],[23,[\\\"pageSizeOptions\\\"]],\\\"changePageSize\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no coffees in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showCopyModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"title\\\",\\\"modalClasses\\\",\\\"close\\\"],[[27,\\\"t\\\",[\\\"Copy listing\\\"],null],\\\"modal\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showCopyModal\\\"]]],null],false],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"listing-copy\\\",null,[[\\\"onCancel\\\",\\\"onSuccess\\\",\\\"onFailure\\\",\\\"listing\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"afterCopy\\\",\\\"cancel\\\",[22,1,[]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"afterCopy\\\",\\\"success\\\",[22,1,[]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"afterCopy\\\",\\\"failure\\\",[22,1,[]]],null],[27,\\\"get\\\",[[23,[\\\"selectedMap\\\"]],[23,[\\\"selectedListings\\\",\\\"firstObject\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/producer/controller\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/orderable\", \"@vollersgroup/hub-frontend/utils/country-data\"], function (_exports, _orderable, _countryData) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend(_orderable.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n can: Ember.inject.service(),\n l10n: Ember.inject.service(),\n userSession: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameter definition.\n *\n * @property queryParams\n * @type {Array}\n * @public\n */\n queryParams: [{\n selectedCountry: {\n as: 'country'\n }\n }, {\n showArchived: {\n as: 'archived'\n }\n }],\n\n /**\n * ISO-code\n *\n * @public\n * @property selectedCountry\n * @type String\n */\n selectedCountry: null,\n\n /**\n * If only archived producers should be displayed.\n *\n * @property showArchived\n * @type Boolean\n * @default false\n */\n showArchived: false,\n\n /**\n * All producers for this company.\n *\n * @property producers\n * @type Model.Producer[]\n */\n producers: Ember.computed('orderBy', 'selectedCountry', 'showArchived', 'store', 'userSession.currentCompany.id', {\n get: function get()\n /*key*/\n {\n var _this = this;\n\n var query = {\n company: Ember.get(this, 'userSession.currentCompany.id'),\n sort: Ember.get(this, 'orderBy')\n };\n\n if (Ember.get(this, 'selectedCountry')) {\n query.country = Ember.get(this, 'selectedCountry');\n }\n\n query.archived = this.get('showArchived');\n var promise = this.store.query('producer', query);\n promise.then(function () {\n _this.send('toggleSelectAll', false);\n });\n return promise;\n }\n }),\n\n /**\n * All producers for this company (without filtering applied)\n *\n * @property allProducers\n * @type Model.Producer[]\n */\n allProducers: Ember.computed('store', 'userSession.currentCompany.id', {\n get: function get()\n /*key*/\n {\n return this.store.query('producer', {\n company: Ember.get(this, 'userSession.currentCompany.id')\n });\n }\n }),\n\n /**\n * Options for order dropdown.\n *\n * @property orderByOptions\n * @type Array\n */\n orderByOptions: Ember.computed('l10n', {\n get: function get()\n /*key*/\n {\n return [{\n value: 'DATE',\n label: Ember.get(this, 'l10n').t('Most recent')\n }, {\n value: 'ORIGIN',\n label: Ember.get(this, 'l10n').t('Country')\n }, {\n value: 'NAME',\n label: Ember.get(this, 'l10n').t('Origin name')\n }, {\n value: 'FARM_NAME',\n label: Ember.get(this, 'l10n').t('Farm name')\n }, {\n value: 'TYPE',\n label: Ember.get(this, 'l10n').t('Farm type')\n }];\n }\n }),\n\n /**\n * Options for country filter dropdown.\n *\n * @property countryOptions\n * @type Array\n */\n countryOptions: Ember.computed('allProducers.[]', {\n get: function get()\n /*key*/\n {\n var cache = {};\n var options = [];\n Ember.get(this, 'allProducers').forEach(function (producer) {\n var countryCode = producer.get('location.country');\n var country = _countryData.default[countryCode];\n\n if (!country || cache[countryCode]) {\n return;\n }\n\n options.push({\n label: country,\n value: countryCode\n });\n cache[countryCode] = true;\n });\n return options;\n }\n }),\n\n /**\n * Currently active listings as hashmap,\n * where all selected ids are persisted.\n *\n * @attribute selectedMap\n * @type {Object}\n */\n selectedMap: Ember.computed({\n get: function get()\n /*key*/\n {\n return {};\n }\n }),\n\n /**\n * Currently active listings as hashmap,\n * where all selected ids are persisted.\n *\n * @attribute selectedProducers\n * @type {Object}\n */\n selectedProducers: Ember.computed({\n get: function get()\n /*key*/\n {\n return [];\n }\n }),\n quickLinkProducerOptions: Ember.computed('can', 'l10n', function () {\n var quickLinksProducerOptions = [{\n label: this.get('l10n').t('Add one'),\n route: 'admin.manage.producer.create'\n }];\n\n if (Ember.get(this, 'can').can('edit settings')) {\n quickLinksProducerOptions.push({\n label: this.get('l10n').t('Add many'),\n route: 'admin.manage.bulk.producer'\n });\n }\n\n return quickLinksProducerOptions;\n }),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Archive a producer.\n *\n * @event archiveProducer\n * @param Model.Producer producer\n * @private\n */\n archiveProducer: function archiveProducer(producer) {\n var _this2 = this;\n\n producer.set('archived', true);\n producer.save().then(function () {\n _this2.notifyPropertyChange('orderBy');\n\n _this2.get('toast').info(_this2.get('l10n').t('The origin has been archived. It will still show up in related listings.'));\n });\n },\n\n /**\n * Unarchive a producer.\n *\n * @event unarchiveProducer\n * @param Model.Producer producer\n * @private\n */\n unarchiveProducer: function unarchiveProducer(producer) {\n var _this3 = this;\n\n producer.set('archived', false);\n producer.save().then(function () {\n _this3.notifyPropertyChange('orderBy');\n\n _this3.get('toast').info(_this3.get('l10n').t('The origin has been unarchived.'));\n });\n },\n\n /**\n * Invokes 'selectMultiple' action.\n *\n * @event toggleSelect\n * @param {Model.Producer} producer\n * @param {Boolean} checked\n * @private\n */\n toggleSelect: function toggleSelect(producer, checked) {\n var update = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (!Ember.get(producer, 'isEditable')) {\n return;\n }\n\n var map = Ember.get(this, 'selectedMap');\n var id = Ember.get(producer, 'id');\n\n if (checked) {\n Ember.set(map, id, producer);\n } else {\n Ember.set(map, id, null);\n delete map[id];\n }\n\n if (update) {\n Ember.set(this, 'selectedProducers', Object.keys(map));\n }\n },\n\n /**\n * (Un)checks all items and invokes 'selectMultiple' action.\n *\n * @event toggleSelectAll\n * @param {Boolean} checked\n * @private\n */\n toggleSelectAll: function toggleSelectAll(checked) {\n var _this4 = this;\n\n Ember.get(this, 'producers').forEach(function (producer) {\n _this4.send('toggleSelect', producer, checked, false);\n });\n var map = Ember.get(this, 'selectedMap');\n Ember.set(this, 'selectedProducers', Object.keys(map));\n },\n\n /**\n * Transitions to bulk-edit view with selected producers as query param.\n *\n * @event editSelection\n * @private\n */\n editSelection: function editSelection() {\n this.transitionToRoute('admin.manage.bulk.producer-edit', {\n queryParams: {\n ids: Ember.get(this, 'selectedProducers')\n }\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/producer/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/company-verified\"], function (_exports, _authenticatedRouteMixin, _companyVerified) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display all producers of the current user's company.\n *\n * @namespace Route\n * @class ManageProducerIndex\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _companyVerified.default, {\n activate: function activate() {\n this.controllerFor(this.get('routeName')).notifyPropertyChange('orderBy');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/producer/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"jqx5i8wq\",\n \"block\": \"{\\\"symbols\\\":[\\\"producer\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Origin overview\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right--small margin-all-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create producer\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"dropdown-select\\\",null,[[\\\"placeholder\\\",\\\"options\\\",\\\"buttonClass\\\",\\\"class\\\"],[[27,\\\"t\\\",[\\\"+ New origin\\\"],null],[23,[\\\"quickLinkProducerOptions\\\"]],\\\"button button--full\\\",\\\"block dropdown-select--button\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manage origins\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_country\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select country\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2 chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"id\\\",\\\"placeholder\\\",\\\"searchable\\\",\\\"options\\\"],[[23,[\\\"selectedCountry\\\"]],\\\"select_country\\\",[27,\\\"t\\\",[\\\"All countries\\\"],null],true,[23,[\\\"countryOptions\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\"],[\\\"input__checkbox\\\",\\\"show_archived\\\",[23,[\\\"showArchived\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"show_archived\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[1,[27,\\\"t\\\",[\\\"Show archived\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"producers\\\",\\\"isFulfilled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"producers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_orderBy\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order by\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline select__small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\"],[[23,[\\\"orderBy\\\"]],[23,[\\\"orderByOptions\\\"]],\\\"select_orderBy\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectedProducers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"float-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"vertical-align-middle\\\"],[9],[1,[27,\\\"t\\\",[\\\"{{selectedProducersCount}} selected:\\\"],[[\\\"selectedProducersCount\\\"],[[23,[\\\"selectedProducers\\\",\\\"length\\\"]]]]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline inline-block vertical-align-middle padding-left-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Edit all\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"editSelection\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"There is {{count}} origin in this view.\\\",\\\"There are {{count}} origins in this view.\\\",[23,[\\\"producers\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"producers\\\",\\\"length\\\"]]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit producer\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"th\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"standalone\\\",\\\"action\\\"],[true,[27,\\\"action\\\",[[22,0,[]],\\\"toggleSelectAll\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"NAME\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Origin\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"NAME\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"FARM_NAME\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Farm\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"FARM_NAME\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"ORIGIN\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Country\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"ORIGIN\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"TYPE\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Farm type\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"TYPE\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"producers\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit producer\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"td\\\"],[11,\\\"data-name\\\",\\\"select\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"standalone\\\",\\\"checked\\\",\\\"action\\\"],[true,[27,\\\"get\\\",[[23,[\\\"selectedMap\\\"]],[22,1,[\\\"id\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"toggleSelect\\\",[22,1,[]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"td\\\"],[11,\\\"data-name\\\",\\\"name\\\"],[9],[1,[22,1,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"data-name\\\",\\\"farmName\\\"],[9],[1,[22,1,[\\\"farmName\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"data-name\\\",\\\"country\\\"],[9],[1,[22,1,[\\\"location\\\",\\\"countryData\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"data-name\\\",\\\"type\\\"],[9],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"type\\\"]]],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"data-name\\\",\\\"actions\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit producer\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"archived\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Unarchive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"unarchiveProducer\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Archive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"archiveProducer\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"admin.manage.producer.edit\\\",[22,1,[]]],[[\\\"class\\\"],[\\\"action__edit__icon\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"hidden\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit origin\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no origins in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/producer/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/registrant/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"@vollersgroup/hub-frontend/utils/get-first-adapter-error-message\"], function (_exports, _resetScroll, _getFirstAdapterErrorMessage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {\n model: function model(params) {\n return this.store.find('auction-participant', params.registrant_id);\n },\n\n /**\n * Proxy route on controller for action.\n *\n * @public\n * @method setupController\n * @param {Ember.Controller} controller\n * @param {Model.AuctionParticipant} model\n * return {Void}\n */\n setupController: function setupController(controller) {\n this._super.apply(this, arguments);\n\n controller.set('route', this);\n },\n actions: {\n saveNotes: function saveNotes() {\n var _this = this;\n\n var auctionParticipant = this.modelFor(this.get('routeName'));\n auctionParticipant.save().then(function () {\n var message = Ember.get(_this, 'l10n').t('Your notes have been successfully updated!');\n\n _this.get('toast').success(message);\n }).catch(function (adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this, 'l10n').t('An error occurred while saving your notes: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n\n _this.get('toast').error(errorMessage);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/registrant/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"kZRMsyb0\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Registrant details\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"user-profile\\\",null,[[\\\"user\\\",\\\"userRole\\\",\\\"shippingAddress\\\"],[[23,[\\\"model\\\",\\\"user\\\"]],\\\"REGISTRANT\\\",[23,[\\\"model\\\",\\\"shippingAddress\\\"]]]]],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-4 margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-top margin-right-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"importerRequirement\\\"]],\\\"IMPORTER_PROVIDED\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Importer name:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[23,[\\\"model\\\",\\\"importerName\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Importer information:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[23,[\\\"model\\\",\\\"importerRequirement\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-top margin-right-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Sample bundles ordered:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[23,[\\\"model\\\",\\\"sampleBundlesOrderedAmount\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper margin-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"auctioneer_notes\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Notes:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"expanding-textarea\\\",null,[[\\\"rows\\\",\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"maxlength\\\"],[3,\\\"auctioneer_notes\\\",\\\"input__textarea input--full\\\",[23,[\\\"model\\\",\\\"auctioneerNotes\\\"]],[27,\\\"t\\\",[\\\"Enter notes for this registrant here\\\"],null],\\\"500\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Save notes\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveNotes\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/registrant/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"@vollersgroup/hub-frontend/mixins/company-verified\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _companyVerified) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _companyVerified.default, {\n availableData: Ember.inject.service(),\n afterModel: function afterModel() {\n var _this = this;\n\n if (!this.get('userSession.currentCompany') || !this.get('availableData.shops')) {\n return this._super.apply(this, arguments);\n }\n\n return new Ember.RSVP.Promise(function (resolve) {\n _this.get('availableData.shops').then(function (shops) {\n if (shops.get('length')) {\n resolve();\n } else {\n _this.transitionTo('admin.manage.shop.create');\n\n resolve();\n }\n });\n });\n },\n actions: {\n publishDraftShop: function publishDraftShop(shop) {\n var _this2 = this;\n\n if (typeof shop.then === 'function') {\n shop.then(function (shop) {\n shop.set('status', 'ACTIVE');\n shop.save().then(function () {\n _this2.get('toast').success(_this2.get('l10n').t('You have successfully published the shop {{shopName}}!', {\n shopName: shop.get('name')\n }));\n\n _this2.refresh();\n });\n });\n } else {\n shop.set('status', 'ACTIVE');\n shop.save().then(function () {\n _this2.get('toast').success(_this2.get('l10n').t('You have successfully published the shop {{shopName}}!', {\n shopName: shop.get('name')\n }));\n\n _this2.refresh();\n });\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/shop/controller\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/orderable\", \"@vollersgroup/hub-frontend/utils/get-first-adapter-error-message\"], function (_exports, _orderable, _getFirstAdapterErrorMessage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend(_orderable.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n l10n: Ember.inject.service(),\n userSession: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Publish a shop.\n * This sets the state to ACTIVE. This is only possible coming from DRAFT or INACTIVE.\n *\n * @event publishShop\n * @param Model.Shop shop\n * @private\n */\n publishShop: function publishShop(shop) {\n var _this = this;\n\n if (shop.get('status') === 'DRAFT' || shop.get('status') === 'INACTIVE') {\n shop.set('status', 'ACTIVE');\n shop.save().then(function () {\n _this.notifyPropertyChange('orderBy');\n });\n this.get('toast').success(this.get('l10n').t('Your shop is now active and visible to buyers.'));\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only publish a draft or inactive shop.'));\n }\n },\n\n /**\n * Deactivate a shop.\n * This sets the state to INACTIVE. This is only possible coming from ACTIVE.\n *\n * @event deactivateShop\n * @param Model.Shop shop\n * @private\n */\n deactivateShop: function deactivateShop(shop) {\n var _this2 = this;\n\n if (shop.get('status') === 'ACTIVE') {\n shop.set('status', 'INACTIVE');\n shop.save().then(function () {\n _this2.notifyPropertyChange('orderBy');\n });\n this.get('toast').info(this.get('l10n').t('Your shop is now inactive. Only your company can see it.'));\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only deactivate an active shop.'));\n }\n },\n\n /**\n * Delete a shop.\n * This actually deletes the shop. It is not recoverable. This is only possible coming from DRAFT.\n *\n * @event deleteShop\n * @param Model.Shop shop\n * @private\n */\n deleteShop: function deleteShop(shop) {\n var _this3 = this;\n\n if (shop.get('status') === 'DRAFT') {\n shop.destroyRecord().then(function () {\n _this3.notifyPropertyChange('orderBy');\n\n _this3.get('toast').info(_this3.get('l10n').t('Your shop has been DELETED.'));\n }).catch(function (adapterError) {\n shop.rollbackAttributes();\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this3, 'l10n').t('An error occurred while deleting the shop: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this3, 'toast').error(errorMessage);\n });\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only delete a shop that has not been published.'));\n }\n },\n\n /**\n * Archive a shop.\n * This sets the archived flag. This is only possible coming from INACTIVE.\n *\n * @event archiveShop\n * @param Model.Shop shop\n * @private\n */\n archiveShop: function archiveShop(shop) {\n var _this4 = this;\n\n if (shop.get('status') === 'INACTIVE') {\n shop.set('archived', true);\n shop.save().then(function () {\n _this4.notifyPropertyChange('orderBy');\n });\n this.get('toast').info(this.get('l10n').t('Your shop has been archived.'));\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only archive an inactive shop.'));\n }\n },\n\n /**\n * Unarchive a shop.\n * This sets the archived flag. This is only possible coming from INACTIVE.\n *\n * @event archiveShop\n * @param Model.Shop shop\n * @private\n */\n unarchiveShop: function unarchiveShop(shop) {\n var _this5 = this;\n\n if (shop.get('status') === 'INACTIVE') {\n shop.set('archived', false);\n shop.save().then(function () {\n _this5.notifyPropertyChange('orderBy');\n });\n this.get('toast').info(this.get('l10n').t('Your shop has been unarchived.'));\n } else {\n this.get('toast').warning(this.get('l10n').t('You can only archive an inactive shop.'));\n }\n },\n testSetVerified: function testSetVerified(verified) {\n this.get('userSession.currentCompany').set('verificationStatus', verified);\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * All shops for this company.\n *\n * @property shops\n * @type Model.Shop[]\n */\n shops: Ember.computed('filterStatus.[]', 'orderBy', 'showArchived', 'store', 'userSession.currentCompany.id', function () {\n var query = {\n company: this.get('userSession.currentCompany.id'),\n sort: this.get('orderBy')\n };\n\n if (this.get('filterStatus') && this.get('filterStatus.length')) {\n query.status = this.get('filterStatus');\n } else {\n query.status = ['DRAFT', 'ACTIVE', 'INACTIVE'];\n }\n\n query.archived = this.get('showArchived');\n return this.store.query('shop', query);\n }),\n\n /**\n * The available options by which it is possible to order.\n *\n * @property orderByOptions\n * @type Array\n * @final\n */\n orderByOptions: Ember.computed('l10n', function () {\n return [{\n value: 'DATE',\n label: this.get('l10n').t('Most recent')\n }, {\n value: 'NAME',\n label: this.get('l10n').t('Name')\n }, {\n value: 'STATUS',\n label: this.get('l10n').t('Status')\n }];\n }),\n\n /**\n * If only archived shops should be displayed.\n *\n * @property showArchived\n * @type Boolean\n * @default false\n */\n showArchived: false,\n\n /**\n * The statuses that should be displayed. Multiple can be selected.\n *\n * @property filterStatus\n * @type Array\n * @default [\"DRAFT\", \"ACTIVE\"]\n */\n filterStatus: Ember.computed(function () {\n return [];\n }),\n\n /**\n * The available status to filter from.\n *\n * @property filterStatusOptions\n * @type Array\n * @final\n */\n filterStatusOptions: Ember.computed('l10n', function () {\n return [{\n value: 'DRAFT',\n label: this.get('l10n').t('Draft')\n }, {\n value: 'ACTIVE',\n label: this.get('l10n').t('Active')\n }, {\n value: 'INACTIVE',\n label: this.get('l10n').t('Inactive')\n }];\n }) // -------------------------------------------------------------------------\n // Methods\n\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/shop/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/company-verified\"], function (_exports, _authenticatedRouteMixin, _companyVerified) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display all shops of the current user's company.\n *\n * @namespace Route\n * @class ManageShopIndex\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _companyVerified.default, {\n availableData: Ember.inject.service(),\n model: function model() {\n return Ember.RSVP.hash({\n shops: this.get('availableData.shops')\n });\n },\n afterModel: function afterModel(model) {\n model.draftShops = model.shops.filter(function (shop) {\n return shop.get('status') === 'DRAFT';\n });\n },\n activate: function activate() {\n this.controllerFor(this.get('routeName')).notifyPropertyChange('orderBy');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/shop/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"/iUil/im\",\n \"block\": \"{\\\"symbols\\\":[\\\"shop\\\",\\\"shop\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Shop overview\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right--small\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create shop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.shop.create\\\"],[[\\\"class\\\"],[\\\"button button--full\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"+ New shop\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manage shops\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You have requested verification on {{date}}:\\\"],[[\\\"date\\\"],[[27,\\\"moment-format\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"verificationRequestedDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"INFO\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Your request for verification is pending. You will be notified when we verified you. You can continue creating a shop, but you will only be able to publish it once you have been verified. If you have any questions, please contact us at v-hub@vollers.com.\\\"],null],true],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"ERROR\\\",\\\"margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"We are sorry, but your request for verification has been rejected. You cannot publish a shop. If you have any questions, please contact us at v-hub@vollers.com.\\\"],null],true],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"draftShops\\\",\\\"length\\\"]],[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isVerified\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"INFO\\\",\\\"margin-bottom-3\\\",[27,\\\"n\\\",[\\\"You have {{count}} unpublished shop!\\\",\\\"You have {{count}} unpublished shops!\\\",[23,[\\\"model\\\",\\\"draftShops\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"model\\\",\\\"draftShops\\\",\\\"length\\\"]]]]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"As long as a shop is unpublished, its coffee will not be visible to the public.\\\"],null],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"no-list margin-top-2 display-table\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"draftShops\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"display-table-row\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"margin-right-2 display-table-cell\\\"],[9],[1,[22,2,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--info display-table-cell margin-bottom-2 margin-left-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"PUBLISH IMMEDIATELY\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"publishDraftShop\\\",[22,2,[]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_status\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Show only\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2 chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\",\\\"multiple\\\",\\\"searchable\\\"],[[23,[\\\"filterStatus\\\"]],[23,[\\\"filterStatusOptions\\\"]],\\\"select_status\\\",true,true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--6\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col vertical-align-middle layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\"],[\\\"input__checkbox\\\",\\\"show_archived\\\",[23,[\\\"showArchived\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"show_archived\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[1,[27,\\\"t\\\",[\\\"Show archived\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"shops\\\",\\\"isFulfilled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"shops\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_orderBy\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order by\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline select__small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\"],[[23,[\\\"orderBy\\\"]],[23,[\\\"orderByOptions\\\"]],\\\"select_orderBy\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"There is {{count}} shop in this view.\\\",\\\"There are {{count}} shops in this view.\\\",[23,[\\\"shops\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"shops\\\",\\\"length\\\"]]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped table__block--responsive table__manage__shops\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"NAME\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Shop name\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"NAME\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"DATE\\\"],null],\\\"table__header__sortable--sorted table__header__sortable--sorted--desc\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Created on\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"DATE\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:100px\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"STATUS\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Status\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"STATUS\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"shops\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Shop name\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"store.shop\\\",[22,1,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,1,[\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Created on\\\"],null]],[9],[1,[27,\\\"moment-format\\\",[[22,1,[\\\"createdDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Status\\\"],null]],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"ACTIVE\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--green border-radius-1 relative\\\"],[9],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--blue border-radius-1 relative\\\"],[9],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"INACTIVE\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--grey border-radius-1 relative\\\"],[9],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"status\\\"]]],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit shop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"archived\\\"]]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"isSmall\\\",\\\"loadingText\\\",\\\"isLoading\\\",\\\"action\\\",\\\"class\\\"],[true,\\\"\\\",[22,1,[\\\"isSaving\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"unarchiveShop\\\",[22,1,[]]],null],\\\"button button--secondary button--half-height button--small__aligned\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Unarchive\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"ACTIVE\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Deactivate\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"deactivateShop\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"DRAFT\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Publish\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"publishShop\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Delete\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"deleteShop\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[\\\"status\\\"]],\\\"INACTIVE\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Publish\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"publishShop\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Archive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"archiveShop\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.index\\\",[27,\\\"query-params\\\",null,[[\\\"selectedShopId\\\"],[[22,1,[\\\"id\\\"]]]]]],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"View coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit shop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"isEditable\\\"]]],null,{\\\"statements\\\":[[0,\\\" |\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.shop.edit\\\",[22,1,[]]],[[\\\"class\\\"],[\\\"action__edit__icon\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"hidden\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit shop\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no shops in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/shop/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"farP6T5p\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouse-new/migration/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"qDfiMNra\",\n \"block\": \"{\\\"symbols\\\":[\\\"row\\\",\\\"legacyWarehouse\\\",\\\"newWarehouse\\\",\\\"address\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Switch To New Warehouse System\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Switch To New Warehouse System\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"finishMigration\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"rounded-md bg-green-50 p-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex-shrink-0\\\"],[9],[0,\\\"\\\\n\\\"],[0,\\\" \\\"],[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"h-5 w-5 text-green-400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"viewBox\\\",\\\"0 0 20 20\\\"],[11,\\\"fill\\\",\\\"currentColor\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"fill-rule\\\",\\\"evenodd\\\"],[11,\\\"d\\\",\\\"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z\\\"],[11,\\\"clip-rule\\\",\\\"evenodd\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"ml-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-sm font-medium text-green-800\\\"],[9],[0,\\\"Migration completed\\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"mt-2 text-sm text-green-700\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"Thank you for migration you legacy warehouses.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"mt-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"-mx-2 -my-1.5 flex\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.warehouses.index\\\"],[[\\\"class\\\"],[\\\"bg-green-50 px-2 py-1.5 rounded-md text-sm font-medium text-green-800 hover:bg-green-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-green-50 focus:ring-green-600\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Manage Warehouses\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-gray-500\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"We are releasing a new Warehouse system as the beginning of some exciting future improvements to V-Hub.\\\"],null],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Please match each of your old warehouses on the left side with a new warehouse on the right side. This will only take a few minutes.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"shadow relative mb-8\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[12,\\\"class\\\",[28,[\\\"m-0 sm:rounded-lg pt-2 pl-0 divide-y divide-gray-200 \\\",[27,\\\"if\\\",[[22,0,[\\\"finishMigrationTask\\\",\\\"isRunning\\\"]],\\\"opacity-50\\\"],null]]]],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[22,0,[\\\"rows\\\"]]],null,{\\\"statements\\\":[[4,\\\"let\\\",[[22,1,[\\\"legacyWarehouse\\\"]],[22,1,[\\\"newWarehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[12,\\\"class\\\",[28,[\\\"border-solid sm:flex items-center \\\",[27,\\\"if\\\",[[22,3,[]],\\\"bg-green-100 hover:bg-green-100\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"px-4 py-4 sm:w-2/4 sm:px-6 relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center justify-start\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-sm font-medium text-v-blue-600 truncate mb-0\\\"],[9],[1,[22,2,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"mt-2 sm:flex sm:justify-between\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"sm:flex\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center text-sm text-gray-500\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"viewBox\\\",\\\"0 0 20 20\\\"],[11,\\\"fill\\\",\\\"currentColor\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"fill-rule\\\",\\\"evenodd\\\"],[11,\\\"d\\\",\\\"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z\\\"],[11,\\\"clip-rule\\\",\\\"evenodd\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"if\\\",[[22,2,[\\\"street\\\"]],[27,\\\"concat\\\",[[22,2,[\\\"street\\\"]],\\\",\\\"],null]],null],false],[0,\\\" \\\"],[1,[22,2,[\\\"zip\\\"]],false],[0,\\\" \\\"],[1,[22,2,[\\\"city\\\"]],false],[0,\\\" \\\"],[1,[22,2,[\\\"state\\\"]],false],[0,\\\" \\\"],[1,[27,\\\"country-label\\\",[[22,2,[\\\"country\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,2,[\\\"region\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center text-sm text-gray-500 sm:mt-0 sm:ml-6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"fill\\\",\\\"none\\\"],[11,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[11,\\\"stroke\\\",\\\"currentColor\\\"],[11,\\\"stroke-width\\\",\\\"2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"stroke-linecap\\\",\\\"round\\\"],[11,\\\"stroke-linejoin\\\",\\\"round\\\"],[11,\\\"d\\\",\\\"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[22,2,[\\\"region\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center text-sm text-gray-400 sm:mt-0 sm:ml-6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"class\\\",\\\"h-5 w-5\\\"],[11,\\\"viewBox\\\",\\\"0 0 20 20\\\"],[11,\\\"fill\\\",\\\"currentColor\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"fill-rule\\\",\\\"evenodd\\\"],[11,\\\"d\\\",\\\"M9.243 3.03a1 1 0 01.727 1.213L9.53 6h2.94l.56-2.243a1 1 0 111.94.486L14.53 6H17a1 1 0 110 2h-2.97l-1 4H15a1 1 0 110 2h-2.47l-.56 2.242a1 1 0 11-1.94-.485L10.47 14H7.53l-.56 2.242a1 1 0 11-1.94-.485L5.47 14H3a1 1 0 110-2h2.97l1-4H5a1 1 0 110-2h2.47l.56-2.243a1 1 0 011.213-.727zM9.03 8l-1 4h2.938l1-4H9.031z\\\"],[11,\\\"clip-rule\\\",\\\"evenodd\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[22,2,[\\\"listingActiveCount\\\"]],false],[0,\\\"\\\\n \\\"],[5,\\\"ember-tooltip\\\",[],[[\\\"@text\\\"],[[27,\\\"t\\\",[\\\"Number of coffee listings\\\"],null]]]],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"sm:border-l sm:border-solid sm:border-gray-200 px-4 py-4 sm:w-2/4 sm:px-6 relative\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,3,[]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center justify-start\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-sm font-medium text-v-blue-600 truncate mb-0\\\"],[9],[1,[22,3,[\\\"displayName\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"mt-2 sm:flex sm:justify-between\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"sm:flex\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center text-sm text-gray-500\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"fill\\\",\\\"none\\\"],[11,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[11,\\\"stroke\\\",\\\"currentColor\\\"],[11,\\\"stroke-width\\\",\\\"2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"stroke-linecap\\\",\\\"round\\\"],[11,\\\"stroke-linejoin\\\",\\\"round\\\"],[11,\\\"d\\\",\\\"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[22,3,[\\\"warehouseOwner\\\",\\\"legalName\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center text-sm text-gray-500 sm:mt-0 sm:ml-6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"fill\\\",\\\"none\\\"],[11,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[11,\\\"stroke\\\",\\\"currentColor\\\"],[11,\\\"stroke-width\\\",\\\"2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"stroke-linecap\\\",\\\"round\\\"],[11,\\\"stroke-linejoin\\\",\\\"round\\\"],[11,\\\"d\\\",\\\"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"region-label\\\",[[22,3,[\\\"region\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex items-center text-sm text-gray-500 sm:mt-0 sm:ml-6\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"class\\\",\\\"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"viewBox\\\",\\\"0 0 20 20\\\"],[11,\\\"fill\\\",\\\"currentColor\\\"],[11,\\\"aria-hidden\\\",\\\"true\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"fill-rule\\\",\\\"evenodd\\\"],[11,\\\"d\\\",\\\"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z\\\"],[11,\\\"clip-rule\\\",\\\"evenodd\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"let\\\",[[22,3,[\\\"address\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,4,[\\\"street\\\"]],false],[0,\\\", \\\"],[1,[22,4,[\\\"zip\\\"]],false],[0,\\\" \\\"],[1,[22,4,[\\\"city\\\"]],false],[0,\\\" \\\"],[1,[22,4,[\\\"state\\\"]],false],[0,\\\"\\\\n \\\"],[7,\\\"br\\\"],[9],[10],[1,[27,\\\"country-label\\\",[[22,4,[\\\"country\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex p-2 cursor-pointer justify-center items-center border-4 border-dashed border-gray-200 rounded-lg h-full hover:border-gray-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-500\\\"],[11,\\\"role\\\",\\\"button\\\"],[12,\\\"onClick\\\",[27,\\\"action\\\",[[22,0,[]],\\\"chooseWarehouse\\\",[22,2,[]]],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"class\\\",\\\"h-2.5 w-2.5 text-gray-400\\\"],[11,\\\"fill\\\",\\\"none\\\"],[11,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[11,\\\"stroke\\\",\\\"currentColor\\\"],[11,\\\"stroke-width\\\",\\\"2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"stroke-linecap\\\",\\\"round\\\"],[11,\\\"stroke-linejoin\\\",\\\"round\\\"],[11,\\\"d\\\",\\\"M12 4v16m8-8H4\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"svg\\\"],[11,\\\"xmlns\\\",\\\"http://www.w3.org/2000/svg\\\",\\\"http://www.w3.org/2000/xmlns/\\\"],[11,\\\"class\\\",\\\"h-4 w-4 text-gray-400\\\"],[11,\\\"fill\\\",\\\"none\\\"],[11,\\\"viewBox\\\",\\\"0 0 24 24\\\"],[11,\\\"stroke\\\",\\\"currentColor\\\"],[11,\\\"stroke-width\\\",\\\"2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"path\\\"],[11,\\\"stroke-linecap\\\",\\\"round\\\"],[11,\\\"stroke-linejoin\\\",\\\"round\\\"],[11,\\\"d\\\",\\\"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"ml-1 mt-0.5 block text-sm font-medium text-gray-500\\\"],[9],[1,[27,\\\"t\\\",[\\\"Choose Warehouse\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"absolute -bottom-12 right-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"isSmall\\\",\\\"action\\\",\\\"class\\\"],[true,[27,\\\"action\\\",[[22,0,[]],\\\"cancelMigration\\\"],null],\\\"button button--plain button--half-height\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Reset\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"isSmall\\\",\\\"isLoading\\\",\\\"disabled\\\",\\\"action\\\",\\\"class\\\"],[true,[22,0,[\\\"finishMigrationTask\\\",\\\"isRunning\\\"]],[27,\\\"not\\\",[[22,0,[\\\"readyToFinish\\\"]]],null],[27,\\\"perform\\\",[[22,0,[\\\"finishMigrationTask\\\"]]],null],\\\"button button--half-height\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Complete\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"unless\\\",[[22,0,[\\\"readyToFinish\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[5,\\\"ember-tooltip\\\",[],[[\\\"@text\\\"],[[27,\\\"t\\\",[\\\"Please choose a new warehouse for your existing warehouses with coffee listings present\\\"],null]]]],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"error-messages\\\",[],[[\\\"@errors\\\"],[[22,0,[\\\"errors\\\"]]]]],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/warehouse-new/migration/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouse/controller\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/orderable\"], function (_exports, _orderable) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend(_orderable.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n userSession: Ember.inject.service(),\n l10n: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * If only archived shops should be displayed.\n *\n * @property showArchived\n * @type Boolean\n * @default false\n */\n showArchived: false,\n\n /**\n * All producers for this company.\n *\n * @property producers\n * @type Model.Producer[]\n */\n addresses: Ember.computed('availableData.locations.length', 'orderBy', 'showArchived', 'store', 'userSession.currentCompany.id', function () {\n if (!this.get('availableData.locations.length')) {\n return [];\n }\n\n var query = {\n company: this.get('userSession.currentCompany.id'),\n archived: this.get('showArchived'),\n sort: this.get('orderBy'),\n type: 'WAREHOUSE'\n };\n return this.store.query('location', query);\n }),\n orderBy: 'NAME',\n orderByOptions: Ember.computed('l10n', function () {\n return [{\n value: 'NAME',\n label: this.get('l10n').t('Name')\n }, {\n value: 'COUNTRY',\n label: this.get('l10n').t('Country')\n }, {\n value: 'CITY',\n label: this.get('l10n').t('City')\n }, {\n value: 'STATE',\n label: this.get('l10n').t('State')\n }];\n }),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Archive a warehouse.\n *\n * @event archiveProducer\n * @param Model.Location warehouse\n * @private\n */\n archiveLocation: function archiveLocation(location) {\n var _this = this;\n\n location.set('archived', true);\n location.save().then(function () {\n _this.notifyPropertyChange('orderBy');\n\n _this.get('toast').info(_this.get('l10n').t('The warehouse has been archived.'));\n });\n },\n\n /**\n * Unarchive a warehouse.\n *\n * @event unarchiveProducer\n * @param Model.Producer producer\n * @private\n */\n unarchiveLocation: function unarchiveLocation(location) {\n var _this2 = this;\n\n location.set('archived', false);\n location.save().then(function () {\n _this2.notifyPropertyChange('orderBy');\n\n _this2.get('toast').info(_this2.get('l10n').t('The warehouse has been unarchived.'));\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouse/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"ember-launch-darkly\"], function (_exports, _authenticatedRouteMixin, _emberLaunchDarkly) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n availableData: Ember.inject.service(),\n legacyWarehouseMigration: Ember.inject.service(),\n beforeModel: function beforeModel() {\n if (!this.legacyWarehouseMigration.hasLegacyWarehouses && (0, _emberLaunchDarkly.variation)('new-warehouses')) {\n this.transitionTo('admin.manage.overview.warehouses.index');\n }\n },\n activate: function activate() {\n this.controllerFor(this.get('routeName')).notifyPropertyChange('orderBy');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouse/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"X28R+nyh\",\n \"block\": \"{\\\"symbols\\\":[\\\"address\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"if\\\",[[27,\\\"variation\\\",[\\\"new-warehouses\\\"],null],[27,\\\"t\\\",[\\\"Warehouse Overview\\\"],null],[27,\\\"t\\\",[\\\"Warehouse Overview (Legacy)\\\"],null]],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/migration-banner\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"variation\\\",[\\\"new-warehouses\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manage Warehouses (Legacy)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right--small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create location\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline text-right\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"createWarehouse\\\"],[1]]]],[[\\\"class\\\"],[\\\"button button--full\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"+ New warehouse\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manage Warehouses\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\"],[\\\"input__checkbox\\\",\\\"show_archived\\\",[23,[\\\"showArchived\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"show_archived\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[9],[1,[27,\\\"t\\\",[\\\"Show archived\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addresses\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"addresses\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_orderBy\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order by\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline select__small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\"],[[23,[\\\"orderBy\\\"]],[23,[\\\"orderByOptions\\\"]],\\\"select_orderBy\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"There is {{count}} warehouse in this view.\\\",\\\"There are {{count}} warehouses in this view.\\\",[23,[\\\"addresses\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"addresses\\\",\\\"length\\\"]]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped table__block--responsive table__manage__warehouses\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"NAME\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Warehouse name\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"NAME\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"COUNTRY\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Country\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"COUNTRY\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"CITY\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"City\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"CITY\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"STATE\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"State\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"STATE\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"addresses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Name\\\"],null]],[9],[1,[22,1,[\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Country\\\"],null]],[9],[1,[22,1,[\\\"countryData\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"City\\\"],null]],[9],[1,[22,1,[\\\"city\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"State\\\"],null]],[9],[1,[22,1,[\\\"state\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit location\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[22,1,[\\\"archived\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Unarchive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"unarchiveLocation\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Archive\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"archiveLocation\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"editWarehouseId\\\"],[[22,1,[\\\"id\\\"]]]]]],[[\\\"class\\\"],[\\\"action__edit__icon vertical-align-middle\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"hidden\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit address\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no addresses in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/warehouse/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/add/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"h2OU5rB5\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Add Warehouse\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"legacyWarehouseMigration\\\",\\\"selectedLegacyWarehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Choose Warehouse\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-gray-500\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"Select or create a new warehouse below to move your {{WAREHOUSE_NAME}} warehouse to the new system\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"b\\\"],[9],[1,[22,0,[\\\"legacyWarehouseMigration\\\",\\\"selectedLegacyWarehouse\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Add Warehouse\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/add-warehouse\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/add/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/create/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"9mKqpcR2\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create Warehouse\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Create Warehouse\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"legacyWarehouseMigration\\\",\\\"selectedLegacyWarehouse\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-gray-500\\\"],[9],[0,\\\"\\\\n \\\"],[5,\\\"get-text\\\",[],[[\\\"@message\\\"],[[27,\\\"t\\\",[\\\"Please fill in the address and contact information for the warehouse {{WAREHOUSE_NAME}}.\\\"],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"b\\\"],[9],[1,[22,0,[\\\"legacyWarehouseMigration\\\",\\\"selectedLegacyWarehouse\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"warehouses/create-form\\\",null,[[\\\"owner\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/create/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"DKdeEYsf\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"if\\\",[[22,0,[\\\"hasLegacyWarehouses\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"warehouses/migration-wizard\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Manage Warehouses\\\"],null]],null],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Manage Warehouses\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right--small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create location\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.warehouses.add\\\"],[[\\\"class\\\"],[\\\"button button--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Add warehouse\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"isLoading\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"warehouses\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"warehouses/table-list\\\",null,[[\\\"warehouses\\\",\\\"removeWarehouseTask\\\"],[[22,0,[\\\"warehouses\\\"]],[22,0,[\\\"unassignWarehouseTask\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no available warehouses.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"maxPages\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"pagination-widget\\\",null,[[\\\"page\\\",\\\"maxPages\\\",\\\"pageSize\\\",\\\"changePageSize\\\"],[[22,0,[\\\"page\\\"]],[22,0,[\\\"maxPages\\\"]],[22,0,[\\\"pageSize\\\"]],\\\"changePageSize\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,0,[\\\"errors\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"error-messages\\\",null,[[\\\"errors\\\"],[[22,0,[\\\"errors\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/owner/create/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"MwX+pYY0\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create Warehouse Owner\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Create Warehouse Owner\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/warehouse-owner/form\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/owner/create/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/owner/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"TKvoQGRu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Choose Warehouse Owner\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Choose Warehouse Owner\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"text-gray-500\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Please choose the company that owns or manages the warehouse.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/warehouse-owner/select\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/overview/warehouses/owner/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/print-labels/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n queryParams: ['ids'],\n ids: Ember.computed(function () {\n return [];\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/print-labels/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _resetScroll, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route for the import part of the app.\n *\n * @namespace Route\n * @class ManageImport\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n queryParams: {\n ids: {\n refreshModel: true\n }\n },\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview',\n title: Ember.get(this, 'l10n').t('Print labels')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Redirects if no `ids` param's given.\n *\n * @public\n * @method beforeModel\n * @param {Object} transition\n * @return {Void}\n */\n beforeModel: function beforeModel(transition) {\n if (Ember.isEmpty(transition.queryParams.ids)) {\n this.transitionTo('admin.manage.overview');\n }\n },\n\n /**\n * Loads listings from `ids` param.\n *\n * @public\n * @method model\n * @param {Object} params\n * @return {Promise}\n */\n model: function model(params) {\n return this.store.query('listing', {\n ids: params.ids\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/print-labels/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"qd1Uem8x\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Print labels\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"listing-labels-print\\\",null,[[\\\"listings\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/print-labels/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/print-offer-list/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n queryParams: ['ids'],\n ids: Ember.computed(function () {\n return [];\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/print-offer-list/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _resetScroll, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n queryParams: {\n ids: {\n refreshModel: true\n }\n },\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview',\n title: Ember.get(this, 'l10n').t('Print offer list')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Redirects if no `ids` param's given.\n *\n * @public\n * @method beforeModel\n * @param {Object} transition\n * @return {Void}\n */\n beforeModel: function beforeModel(transition) {\n if (Ember.isEmpty(transition.queryParams.ids)) {\n this.transitionTo('admin.manage.overview');\n }\n },\n\n /**\n * Loads listings from `ids` param.\n *\n * @public\n * @method model\n * @param {Object} params\n * @return {Promise}\n */\n model: function model(params) {\n return this.store.query('listing', {\n ids: params.ids\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/print-offer-list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"AUVO4pP9\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Print offer list\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"listing-offer-list-print\\\",null,[[\\\"listings\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/print-offer-list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/create/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n l10n: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * When the producer information has been entered/updated.\n *\n * @event editProducer\n * @param Model.Producer producer\n * @private\n */\n editProducer: function editProducer() {\n //this.set(\"step\", 1);\n this.get('toast').success(this.get('l10n').t('You have successfully created a new origin.'));\n this.transitionToRoute('admin.manage.overview.producer');\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n if (newStep > this.get('step')) {\n this.get('toast').warning(this.get('l10n').t('You have to save your changes!'));\n return;\n }\n\n this.set('step', newStep);\n window.scrollTo(0, 0);\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * The current step of the process.\n *\n * @property step\n * @type Number\n */\n step: 0,\n\n /**\n * All steps for the creation process.\n *\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('availableShops.length', 'l10n', function () {\n var steps = [];\n steps.push({\n label: this.get('l10n').t('Create origin'),\n step: steps.length,\n subSteps: []\n });\n return steps;\n }) // -------------------------------------------------------------------------\n // Methods\n\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\", \"moment\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The route to edit a producer.\n *\n * @namespace Route\n * @class ManageShopCreate\n * @extends Ember.Route\n * @uses Mixin.CanMixin\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview.producer',\n title: Ember.get(this, 'l10n').t('Create new origin')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Performs ability check if user can create a producer.\n *\n * @public\n * @method beforeModel\n * @return {Promise}\n */\n beforeModel: function beforeModel() {\n if (!this.can('create producer')) {\n this.transitionTo('admin.manage.overview.producer');\n return;\n }\n\n return this._super.apply(this, arguments);\n },\n\n /**\n * Create a new producer object.\n *\n * @method model\n * @returns Model.Producer\n */\n model: function model() {\n var location = this.store.createRecord('location', {\n type: 'PRODUCER'\n });\n return this.store.createRecord('producer', {\n createdDate: (0, _moment.default)(),\n company: this.get('userSession.currentCompany'),\n location: location,\n images: []\n });\n },\n\n /**\n * Resets route's model and controller step.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n this.currentModel.rollbackAttributes();\n\n if (this.currentModel.get('isDestroyed')) {\n this.currentModel.save();\n }\n\n this.controller.set('step', 0);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/create/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"vPyQHRFT\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create origin\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"+ Create a new origin\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-producer\\\",null,[[\\\"action\\\",\\\"producer\\\"],[\\\"editProducer\\\",[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/producer/create/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/edit/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n l10n: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * When the producer information has been entered/updated.\n *\n * @event editProducer\n * @param Model.Producer producer\n * @private\n */\n editProducer: function editProducer() {\n //this.set(\"step\", 1);\n this.get('toast').success(this.get('l10n').t('You have successfully updated the origin.'));\n this.transitionToRoute('admin.manage.overview.producer');\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n if (this.get('model.isDirty') && newStep > this.get('step')) {\n this.get('toast').warning(this.get('l10n').t('You have to save your changes!'));\n return;\n }\n\n this.set('step', newStep);\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * The current step of the process.\n *\n * @property step\n * @type Number\n */\n step: 0,\n\n /**\n * All steps for the creation process.\n *\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('availableShops.length', 'l10n', function () {\n var steps = [];\n steps.push({\n label: this.get('l10n').t('Edit origin'),\n step: steps.length,\n subSteps: []\n });\n return steps;\n }) // -------------------------------------------------------------------------\n // Methods\n\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The route to edit a producer.\n *\n * @namespace Route\n * @class ManageShopCreate\n * @extends Ember.Route\n * @uses Mixin.CanMixin\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview.producer',\n title: Ember.get(this, 'l10n').t('Edit origin')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Performs ability check if user can edit producer.\n *\n * @public\n * @method beforeModel\n * @return {Promise}\n */\n beforeModel: function beforeModel() {\n if (!this.can('edit producer')) {\n this.transitionTo('admin.manage.overview.producer');\n return;\n }\n\n return this._super.apply(this, arguments);\n },\n\n /**\n * Get selected producer object.\n *\n * @method model\n * @returns Model.Producer\n */\n model: function model(params) {\n return this.store.findRecord('producer', params.producer_id);\n },\n\n /**\n * Abort the transition if the model is not editable.\n *\n * @metod afterModel\n * @param model\n * @param transition\n */\n afterModel: function afterModel(model, transition) {\n var _this = this;\n\n if (!model.get('isEditable')) {\n this.get('toast').warning(this.get('l10n').t('You cannot edit this origin!'));\n\n if (transition.sequence === 0) {\n this.transitionTo('admin.manage.overview.producer');\n } else {\n transition.abort();\n }\n\n return;\n }\n\n return model.get('company').then(function (company) {\n if (company.get('id') + '' !== _this.get('userSession.currentCompany.id') + '') {\n _this.get('toast').warning(_this.get('l10n').t('You cannot edit this origin!'));\n\n if (transition.sequence === 0) {\n _this.transitionTo('admin.manage.overview.producer');\n } else {\n transition.abort();\n }\n\n return;\n }\n\n return model.reload();\n });\n },\n\n /**\n * Resets route's model and controller step.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n this.currentModel.rollbackAttributes();\n this.controller.set('step', 0);\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Redirects to overview on model errors.\n *\n * @public\n * @event error\n * @return {Void}\n */\n error: function error() {\n this.get('toast').warning(this.get('l10n').t('You cannot edit this origin!'));\n this.transitionTo('admin.manage.overview.producer');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/edit/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"706nUjjs\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Edit origin\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit origin\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-producer\\\",null,[[\\\"action\\\",\\\"producer\\\"],[\\\"editProducer\\\",[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/producer/edit/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/index/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage producer index.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend({\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Redirects to overview.\n *\n * @public\n * @method redirect\n * @return {Void}\n */\n redirect: function redirect() {\n this.transitionTo('admin.manage.overview.producer');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"OU6jmIjm\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"loading-spinner\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/producer/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"@vollersgroup/hub-frontend/mixins/company-verified\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _companyVerified) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _companyVerified.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/producer/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"a7CxH+zt\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/producer/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n userSession: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Flag if additional assets has\n * already been loaded in app.\n *\n * @property assetsLoaded\n * @type {Boolean}\n * @private\n */\n assetsLoaded: false,\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Load dependencies only needed for this route.\n *\n * @method beforeModel\n * @returns Ember.RSVP.Promise\n */\n beforeModel: function beforeModel() {\n var _this = this;\n\n if (Ember.get(this, 'assetsLoaded')) {\n return;\n }\n\n return Ember.RSVP.all([Ember.get(this, 'userSession.currentUser'), Ember.get(this, 'userSession.currentCompany'), Ember.get(this, 'availableData.varieties'), Ember.get(this, 'availableData.descriptors'), Ember.get(this, 'availableData.certifications')]).then(function () {\n _this.set('assetsLoaded', true);\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/create/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n l10n: Ember.inject.service(),\n userSession: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Verify the shop\n *\n * @event verify\n * @private\n */\n verify: function verify() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 1);\n },\n\n /**\n * Actually save the shop\n *\n * @event save\n * @param Model.Shop shop\n * @private\n */\n save: function save() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 2);\n },\n\n /**\n * Save the shops policies\n *\n * @event savePolicies\n * @param Model.Shop shop\n * @private\n */\n savePolicies: function savePolicies() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 3);\n },\n\n /**\n * Save the shops defaults\n *\n * @event saveDefaults\n * @param Model.Shop shop\n * @private\n */\n saveDefaults: function saveDefaults() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 4);\n },\n\n /**\n * Save the shops shipping\n *\n * @event saveShipping\n * @param Model.Shop shop\n * @private\n */\n saveShipping: function saveShipping() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 5);\n },\n\n /**\n * Publish the shop\n *\n * @event publish\n * @param {Boolean} createCoffee\n * @private\n */\n publish: function publish() {\n var createCoffee = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n if (createCoffee) {\n this.transitionToRoute('admin.manage.listing.create', {\n queryParams: {\n addToShop: Ember.get(this, 'model.id')\n }\n });\n } else {\n this.transitionToRoute('admin.manage.overview.shop');\n }\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n if (newStep > Ember.get(this, 'step')) {\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You have to save your changes!'));\n return;\n }\n\n Ember.set(this, 'step', newStep);\n window.scrollTo(0, 0);\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Current sub step of route.\n *\n * @public\n * @property step\n * @type Number\n * @default 0\n */\n step: Ember.computed('userSession.currentCompany.isVerified', function () {\n return Ember.get(this, 'userSession.currentCompany.isVerified') ? 1 : 0;\n }),\n\n /**\n * Definition of all sub steps depending\n * on current company verification status.\n *\n * @public\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('l10n', 'userSession.currentCompany.isVerified', function () {\n var steps = [];\n\n if (!Ember.get(this, 'userSession.currentCompany.isVerified')) {\n steps.push({\n label: 'Verification',\n step: 0,\n subSteps: []\n });\n }\n\n steps.push({\n label: Ember.get(this, 'l10n').t('Create shop'),\n step: 1,\n subSteps: [{\n label: Ember.get(this, 'l10n').t('Shop information'),\n anchor: '#shop-manage-1'\n }, {\n label: Ember.get(this, 'l10n').t('Shop presentation'),\n anchor: '#shop-manage-2'\n }]\n });\n steps.push({\n label: Ember.get(this, 'l10n').t('Shop policies'),\n step: 2,\n subSteps: [{\n label: Ember.get(this, 'l10n').t('Shipping information'),\n anchor: '#shop-manage-policies-1'\n }, {\n label: Ember.get(this, 'l10n').t('Policies'),\n anchor: '#shop-manage-policies-2'\n }]\n });\n steps.push({\n label: Ember.get(this, 'l10n').t('Shop defaults'),\n step: 3,\n subSteps: []\n });\n steps.push({\n label: Ember.get(this, 'l10n').t('Payment & shipping'),\n isNew: true,\n step: 4,\n subSteps: []\n });\n steps.push({\n label: Ember.get(this, 'l10n').t('Publish shop'),\n step: 5,\n subSteps: []\n });\n return steps;\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/create/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\", \"moment\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The route to create a new shop.\n *\n * @namespace Route\n * @class ManageShopCreate\n * @extends Ember.Route\n * @uses Mixin.CanMixin\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: Ember.get(this, 'availableData.shops.length') ? 'admin.manage.overview.shop' : 'admin',\n title: Ember.get(this, 'l10n').t('Create new shop')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Invokes a change for controller's `allSteps`.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n activate: function activate() {\n var _this = this;\n\n Ember.run.once(function () {\n _this.controller.notifyPropertyChange('allSteps');\n });\n },\n\n /**\n * Performs ability check if user can create a shop.\n *\n * @public\n * @method beforeModel\n * @return {Promise}\n */\n beforeModel: function beforeModel() {\n // Only managers are allowed to create / edit a shop\n if (!this.can('create shop')) {\n this.transitionTo('admin.manage.overview.shop');\n return;\n }\n\n return this._super.apply(this, arguments);\n },\n\n /**\n * Create a new shop object.\n *\n * @public\n * @method model\n * @returns {Model.Shop}\n */\n model: function model() {\n return this.store.createRecord('shop', {\n company: this.get('userSession.currentCompany'),\n story: '',\n logo: null,\n location: this.store.createRecord('location', {\n type: 'COMPANY'\n }),\n status: 'DRAFT',\n createdDate: (0, _moment.default)()\n });\n },\n\n /**\n * Resets route's model and controller step.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n this.currentModel.rollbackAttributes();\n\n if (Ember.get(this, 'currentModel.isDestroyed')) {\n this.currentModel.save();\n }\n\n var step = Ember.get(this, 'userSession.currentCompany.isVerified') ? 1 : 0;\n Ember.set(this, 'controller.step', step);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/create/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"6tAeSItq\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Create shop\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left relative\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__shop__step0\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can see your verification status later in your dashboard and in your manage overview.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__shop__step1\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Do you have traders in multiple locations who service different markets? Create multiple shops to support each of those locations.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__shop__step3\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Provide policies for your shop. Your customers must accept them, before they can request an order.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__shop__step2\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Provide defaults for your shop. They will be used when creating or importing new listings.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],4],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__shop__step4\\\",\\\"tooltip--no-arrow\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You can edit your shop details anytime.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Create a new shop\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-verification\\\",null,[[\\\"action\\\"],[\\\"verify\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop\\\",null,[[\\\"shop\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"save\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-policies\\\",null,[[\\\"shop\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"savePolicies\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-defaults\\\",null,[[\\\"shop\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"saveDefaults\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],4],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-shipping\\\",null,[[\\\"shop\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"saveShipping\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],5],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-publish\\\",null,[[\\\"shop\\\",\\\"action\\\"],[[23,[\\\"model\\\"]],\\\"publish\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/shop/create/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/edit/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Actually save the shop\n *\n * @event save\n * @param Model.Shop shop\n * @private\n */\n save: function save() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 1);\n },\n\n /**\n * Save the shops policies\n *\n * @event savePolicies\n * @param Model.Shop shop\n * @private\n */\n savePolicies: function savePolicies() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 2);\n },\n\n /**\n * Save the shops defaults\n *\n * @event saveDefaults\n * @param Model.Shop shop\n * @private\n */\n saveDefaults: function saveDefaults() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 3);\n },\n\n /**\n * Save the shops shipping\n *\n * @event saveShipping\n * @param Model.Shop shop\n * @private\n */\n saveShipping: function saveShipping() {\n window.scrollTo(0, 0);\n Ember.set(this, 'step', 4);\n },\n\n /**\n * Exit the process.\n *\n * @event saveExit\n * @private\n */\n saveExit: function saveExit() {\n this.transitionToRoute('admin.manage.overview.shop');\n },\n\n /**\n * Publish the shop\n *\n * @event publish\n * @param {Boolean} createCoffee\n * @private\n */\n publish: function publish() {\n var createCoffee = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n if (createCoffee) {\n this.transitionToRoute('admin.manage.listing.create', {\n queryParams: {\n addToShop: Ember.get(this, 'model.id')\n }\n });\n } else {\n this.transitionToRoute('admin.manage.overview.index', {\n queryParams: {\n shop: Ember.get(this, 'model.id')\n }\n });\n }\n },\n\n /**\n * Move to another step.\n *\n * @event gotoStep\n * @param {Number} newStep\n * @private\n */\n gotoStep: function gotoStep(newStep) {\n if (Ember.get(this, 'model.hasDirtyAttributes') && newStep > Ember.get(this, 'step')) {\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You have to save your changes!'));\n return;\n }\n\n Ember.set(this, 'step', newStep);\n window.scrollTo(0, 0);\n }\n },\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Current sub step of route.\n *\n * @public\n * @property step\n * @type Number\n * @default 0\n */\n step: 0,\n\n /**\n * Definition of all sub steps.\n *\n * @public\n * @property allSteps\n * @type Array\n */\n allSteps: Ember.computed('l10n', {\n get: function get()\n /*key*/\n {\n return [{\n label: Ember.get(this, 'l10n').t('Edit shop'),\n step: 0,\n subSteps: [{\n label: Ember.get(this, 'l10n').t('Shop information'),\n anchor: '#shop-manage-1'\n }, {\n label: Ember.get(this, 'l10n').t('Shop presentation'),\n anchor: '#shop-manage-2'\n }]\n }, {\n label: Ember.get(this, 'l10n').t('Edit shop policies'),\n step: 1,\n subSteps: [{\n label: Ember.get(this, 'l10n').t('Shipping information'),\n anchor: '#shop-manage-policies-1'\n }, {\n label: Ember.get(this, 'l10n').t('Policies'),\n anchor: '#shop-manage-policies-2'\n }]\n }, {\n label: Ember.get(this, 'l10n').t('Edit shop defaults'),\n step: 2,\n subSteps: []\n }, {\n label: Ember.get(this, 'l10n').t('Payment & shipping'),\n isNew: true,\n step: 3,\n subSteps: []\n }, {\n label: Ember.get(this, 'l10n').t('Publish'),\n step: 4,\n subSteps: []\n }];\n }\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/edit/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The route to edit a shop.\n *\n * @namespace Route\n * @class ManageShopCreate\n * @extends Ember.Route\n * @uses Mixin.CanMixin\n * @uses Mixin.ResetScroll\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.controller.set('navbar', {\n route: 'admin.manage.overview.shop',\n title: Ember.get(this, 'l10n').t('Edit shop')\n });\n this.render();\n this.render('admin/manage/navbar-subpage', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Invokes a change for controller's `allSteps`.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n activate: function activate() {\n var _this = this;\n\n Ember.run.once(function () {\n _this.controller.notifyPropertyChange('allSteps');\n });\n },\n\n /**\n * Performs ability check if user can create a shop.\n *\n * @public\n * @method beforeModel\n * @return {Promise}\n */\n beforeModel: function beforeModel() {\n // Only managers are allowed to create / edit a shop\n if (!this.can('edit shop')) {\n this.transitionTo('admin.manage.overview.shop');\n return;\n }\n\n return this._super.apply(this, arguments);\n },\n\n /**\n * Get selected shop object.\n *\n * @public\n * @method model\n * @returns {Model.Shop}\n */\n model: function model(params) {\n return this.store.findRecord('shop', params.shop_id);\n },\n\n /**\n * Abort the transition if the model\n * is not editable, otherwise load\n * corresponding company settings.\n *\n * @method afterModel\n * @param model\n * @param transition\n * @return {Promise}\n */\n afterModel: function afterModel(model, transition) {\n var _this2 = this;\n\n var abortTransition = function abortTransition() {\n Ember.get(_this2, 'toast').warning(Ember.get(_this2, 'l10n').t('You cannot edit this shop!'));\n\n if (transition.sequence === 0) {\n _this2.transitionTo('admin.manage.overview.shop');\n } else {\n transition.abort();\n }\n };\n\n if (!Ember.get(model, 'isEditable')) {\n abortTransition();\n return;\n }\n\n return Ember.get(model, 'company').then(function (company) {\n var currentId = Ember.get(_this2, 'userSession.currentCompany.id');\n\n if (company.id !== currentId) {\n abortTransition();\n }\n });\n },\n\n /**\n * Resets route's model and controller step.\n *\n * @public\n * @method deactivate\n * @return {Void}\n */\n deactivate: function deactivate() {\n this.currentModel.rollbackAttributes();\n Ember.set(this, 'controller.step', 0);\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Redirect to overview on errors.\n *\n * @event error\n * @return {Void}\n */\n error: function error() {\n Ember.get(this, 'toast').warning(Ember.get(this, 'l10n').t('You cannot edit this shop!'));\n this.transitionTo('admin.manage.overview.shop');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/edit/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"tLIDuGYU\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Edit shop\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left relative\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"sticky-block\\\",null,null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-steps\\\",null,[[\\\"currentStep\\\",\\\"steps\\\",\\\"action\\\"],[[23,[\\\"step\\\"]],[23,[\\\"allSteps\\\"]],\\\"gotoStep\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Edit shop\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"hr\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop\\\",null,[[\\\"shop\\\",\\\"action\\\",\\\"isEdit\\\",\\\"actionExit\\\"],[[23,[\\\"model\\\"]],\\\"save\\\",true,\\\"saveExit\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-policies\\\",null,[[\\\"shop\\\",\\\"action\\\",\\\"isEdit\\\",\\\"actionExit\\\"],[[23,[\\\"model\\\"]],\\\"savePolicies\\\",true,\\\"saveExit\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-defaults\\\",null,[[\\\"shop\\\",\\\"action\\\",\\\"isEdit\\\",\\\"actionExit\\\"],[[23,[\\\"model\\\"]],\\\"saveDefaults\\\",true,\\\"saveExit\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-shipping\\\",null,[[\\\"shop\\\",\\\"action\\\",\\\"isEdit\\\",\\\"actionExit\\\"],[[23,[\\\"model\\\"]],\\\"saveShipping\\\",true,\\\"saveExit\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],4],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-shop-publish\\\",null,[[\\\"shop\\\",\\\"action\\\",\\\"isEdit\\\"],[[23,[\\\"model\\\"]],\\\"publish\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/shop/edit/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/index/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The base route manage shop index.\n *\n * @namespace Route\n * @class Manage\n * @extends Ember.Route\n */\n var _default = Ember.Route.extend({\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Redirects to overview.\n *\n * @public\n * @method redirect\n * @return {Void}\n */\n redirect: function redirect() {\n this.transitionTo('admin.manage.overview.shop');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"8EijgXx7\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"loading-spinner\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/shop/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/shop/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"OEPd/WeZ\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/shop/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/manage/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"HE6O3+Pv\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/manage/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n messageCenter: Ember.inject.service()\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/index/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n queryParams: ['page', 'term', 'company', 'pageSize'],\n page: 1,\n term: '',\n pageSize: 10,\n company: null,\n maxPages: Ember.computed.reads('model.conversations.meta.maxPages'),\n actions: {\n changePageSize: function changePageSize() {\n Ember.set(this, 'page', 1);\n },\n setCompany: function setCompany(company) {\n company = company && company.id;\n Ember.set(this, 'company', company);\n Ember.set(this, 'page', 1);\n },\n setTerm: function setTerm(term) {\n Ember.run.debounce(this, this._setTermDebounced, term, 250);\n }\n },\n _setTermDebounced: function _setTermDebounced(term) {\n Ember.set(this, 'term', term);\n Ember.set(this, 'page', 1);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n messageCenter: Ember.inject.service(),\n queryParams: {\n page: {\n refreshModel: true\n },\n term: {\n refreshModel: true\n },\n pageSize: {\n refreshModel: true\n },\n company: {\n refreshModel: true\n }\n },\n activate: function activate() {\n this._super.apply(this, arguments);\n\n var messageCenter = Ember.get(this, 'messageCenter');\n messageCenter.on('updated', this, this._messageCenterUpdated);\n },\n deactivate: function deactivate() {\n this._super.apply(this, arguments);\n\n var messageCenter = Ember.get(this, 'messageCenter');\n messageCenter.off('updated', this, this._messageCenterUpdated);\n },\n model: function model(params) {\n params.company = params.company || null;\n params.subject = params.subject || null;\n params.pageSize = params.pageSize || 20;\n params.page = params.page || 1;\n params.messageType = 'MESSAGE';\n var store = Ember.get(this, 'store');\n return Ember.RSVP.hash({\n company: params.company ? store.findRecord('company', params.company) : null,\n conversations: store.query('conversation', params)\n });\n },\n _messageCenterUpdated: function _messageCenterUpdated() {\n var page = Ember.get(this, 'controller.page');\n\n if (Ember.isNone(page) || page > 1) {\n return;\n }\n\n this.refresh();\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"1UZKPsQv\",\n \"block\": \"{\\\"symbols\\\":[\\\"conversation\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Messages\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex justify-between margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Messages\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"sendMessage\\\"],[1]]]],[[\\\"class\\\"],[\\\"button button--secondary\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"New message\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"conversations\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__messages\\\",\\\"tooltip--no-arrow tooltip--full margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"If someone gets in contact with you, you will see the message here. You can also find all the conversations you have regarding an order here. Just look for the order number.\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"company-filter\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[1,[27,\\\"t\\\",[\\\"Filter by company\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"user-search\\\",null,[[\\\"allowUser\\\",\\\"id\\\",\\\"prefillCompany\\\",\\\"selectCompanyAction\\\"],[false,\\\"company-filter\\\",[23,[\\\"model\\\",\\\"company\\\"]],\\\"setCompany\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"subject-filter\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[1,[27,\\\"t\\\",[\\\"Filter by subject\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"input\\\",null,[[\\\"key-up\\\",\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"setTerm\\\"],null],\\\"input__txt\\\",\\\"subject-filter\\\",[27,\\\"readonly\\\",[[23,[\\\"term\\\"]]],null],[27,\\\"t\\\",[\\\"Search for subject\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"message__preview--list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"conversations\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"message-list-item\\\",null,[[\\\"conversation\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"padding-top-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"company\\\"]],[23,[\\\"term\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"No messages found, please adjust your filters.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Currently you have no messages.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"pagination-widget\\\",null,[[\\\"page\\\",\\\"maxPages\\\",\\\"pageSize\\\",\\\"changePageSize\\\"],[[23,[\\\"page\\\"]],[23,[\\\"maxPages\\\"]],[23,[\\\"pageSize\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"changePageSize\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Messages per page\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/messages/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/notifications/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n queryParams: ['page', 'pageSize', 'company', 'subject'],\n page: 1,\n pageSize: 10,\n company: null,\n subject: null,\n maxPages: Ember.computed.reads('model.meta.maxPages'),\n actions: {\n changePageSize: function changePageSize() {\n Ember.set(this, 'page', 1);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/notifications/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n messageCenter: Ember.inject.service(),\n queryParams: {\n page: {\n refreshModel: true\n },\n pageSize: {\n refreshModel: true\n },\n company: {\n refreshModel: true\n },\n subject: {\n refreshModel: true\n }\n },\n model: function model(params) {\n params.company = params.company || null;\n params.subject = params.subject || null;\n params.pageSize = params.pageSize || 20;\n params.page = params.page || 1;\n params.messageType = 'SYSTEM_NOTIFICATION';\n return this.get('store').query('conversation', params);\n },\n afterModel: function afterModel(model) {\n var _this = this;\n\n model.forEach(function (conversation) {\n var toCompanyUnreadCount = Ember.get(conversation, 'toCompanyUnreadCount');\n\n if (toCompanyUnreadCount === 0) {\n return;\n }\n\n var messageCenter = Ember.get(_this, 'messageCenter');\n messageCenter.markConversationRead(conversation);\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/notifications/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"6/DKKSks\",\n \"block\": \"{\\\"symbols\\\":[\\\"conversation\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Notifications\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full hidden block-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Notifications\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"conversations \\\",[27,\\\"if\\\",[[23,[\\\"selectedNotification\\\"]],\\\"conversations--has-detail\\\"],null]]]],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__notification\\\",\\\"tooltip--no-arrow tooltip--full margin-top-3\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"If there is something new in an auction, a coffee purchase or a sample order you will be notified here.\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"message__preview--list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"notification-list-item\\\",null,[[\\\"conversation\\\",\\\"dismissAction\\\"],[[22,1,[]],\\\"remove\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"padding-top-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Currently you have no notifications.\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"pagination-widget\\\",null,[[\\\"page\\\",\\\"maxPages\\\",\\\"pageSize\\\",\\\"changePageSize\\\"],[[23,[\\\"page\\\"]],[23,[\\\"maxPages\\\"]],[23,[\\\"pageSize\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"changePageSize\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Messages per page\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/messages/notifications/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/offerings/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n messageCenter: Ember.inject.service(),\n actions: {\n remove: function remove(conversation) {\n conversation.deleteRecord();\n conversation.save();\n },\n dismiss: function dismiss(conversation) {\n conversation.set('toCompanyUnreadCount', 0);\n conversation.save();\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/offerings/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/offerings/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"n5FnIJXp\",\n \"block\": \"{\\\"symbols\\\":[\\\"conversation\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Private offerings\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full hidden block-l\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Private offerings\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"conversations margin-top-3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"listing__list\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__private-offering\\\",\\\"tooltip--no-arrow tooltip--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"If someone offers you a coffee privately only you and a few selected customers will have the option to buy this coffee.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"messageCenter\\\",\\\"allOfferings\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"list__offering--wrapper relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"list__offering--decline-container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[1,[27,\\\"t\\\",[\\\"I'm not interested.\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"remove\\\",[22,1,[]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"role\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"listing-list-item\\\",null,[[\\\"listing\\\"],[[22,1,[\\\"listing\\\"]]]]],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"dismiss\\\",[22,1,[]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-3 margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You have no private offerings right now.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/messages/offerings/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n messageCenter: Ember.inject.service(),\n beforeModel: function beforeModel() {\n if (!this.can('view conversation')) {\n this.transitionTo('admin');\n return;\n }\n\n return this._super.apply(this, arguments);\n },\n actions: {\n markAsRead: function markAsRead(conversation) {\n this.get('messageCenter').markConversationRead(conversation);\n },\n reloadMessages: function reloadMessages() {\n this.get('messageCenter').update();\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/show/route\", [\"exports\", \"moment\"], function (_exports, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n model: function model(params) {\n return this.store.findRecord('conversation', params.conversation_id);\n },\n afterModel: function afterModel(model) {\n var _this = this;\n\n if (!model) {\n return;\n }\n\n model.get('messages').reload();\n Ember.run.next(function () {\n if (model.get(model.get('fromOrTo') + 'CompanyUnreadCount') !== 0) {\n model.set(model.get('fromOrTo') + 'CompanyUnreadCount', 0);\n\n _this.send('markAsRead', model);\n }\n });\n },\n actions: {\n reply: function reply(message) {\n var model = this.currentModel;\n\n if (!model) {\n return;\n }\n\n var createdMessage = this.store.createRecord('message', {\n text: message,\n created: (0, _moment.default)(),\n fromCompany: this.get('userSession.currentUser.company'),\n fromUser: this.get('userSession.currentUser'),\n conversation: model\n });\n createdMessage.save().then(function () {\n model.reload();\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/show/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Q39NDbwt\",\n \"block\": \"{\\\"symbols\\\":[\\\"message\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"conversations__detail padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"listing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"This conversation is attached to a lot:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"item__attached\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"listing-preview__wrapper border-all border-radius-1 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"listing-preview\\\",null,[[\\\"listing\\\"],[[23,[\\\"model\\\",\\\"listing\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"order\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"This conversation is attached to an order:\\\"],null],false],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.orders.show\\\",[23,[\\\"model\\\",\\\"order\\\"]]],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"View order\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"order\\\",\\\"orderNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\" (\\\"],[1,[23,[\\\"model\\\",\\\"order\\\",\\\"orderNumber\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.messages.index\\\"],[[\\\"class\\\"],[\\\"bg-color-grey-4 color-grey-dark-2 relative block padding-all-3 border-none\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"absolute right-0 margin-right-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"svg-icon\\\",[\\\"close\\\"],[[\\\"class\\\"],[\\\"lf-dialog__icon\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h4\\\"],[11,\\\"class\\\",\\\"margin-all-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"listing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Lot:\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[23,[\\\"model\\\",\\\"subject\\\"]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"order\\\",\\\"orderNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\" - \\\"],[1,[23,[\\\"model\\\",\\\"order\\\",\\\"orderNumber\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"clearfix\\\"],[9],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"message__item__wrapper border-all\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"messages\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"messages\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,1,[]],[23,[\\\"model\\\",\\\"messages\\\",\\\"lastObject\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"message-detail\\\",null,[[\\\"message\\\",\\\"isOpen\\\"],[[22,1,[]],true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"message-detail\\\",null,[[\\\"message\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"message-detail-reply\\\",null,[[\\\"action\\\"],[\\\"reply\\\"]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/messages/show/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/messages/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"JF+k1Cc/\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Inbox\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left layout__sidebar--left--small\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"third-nav\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.messages.index\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Messages\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"messageCenter\\\",\\\"unreadMessages\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\" (\\\"],[1,[23,[\\\"messageCenter\\\",\\\"unreadMessages\\\",\\\"length\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.messages.notifications\\\"],[[\\\"class\\\"],[\\\"third-nav__item\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Notifications\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"messageCenter\\\",\\\"unreadNotifications\\\",\\\"length\\\"]]],null,{\\\"statements\\\":[[0,\\\" (\\\"],[1,[23,[\\\"messageCenter\\\",\\\"unreadNotifications\\\",\\\"length\\\"]],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/messages/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/app\", [\"exports\", \"@vollersgroup/hub-frontend/resolver\", \"ember-load-initializers\", \"@vollersgroup/hub-frontend/config/environment\", \"@sentry/ember\", \"@sentry/browser\"], function (_exports, _resolver, _emberLoadInitializers, _environment, Sentry, _browser) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _get(target, property, receiver) { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }\n\n function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n Ember.run.backburner.DEBUG = _environment.default.environment !== 'production';\n\n var TestFetchTransport = /*#__PURE__*/function (_Transports$FetchTran) {\n _inherits(TestFetchTransport, _Transports$FetchTran);\n\n var _super = _createSuper(TestFetchTransport);\n\n function TestFetchTransport() {\n _classCallCheck(this, TestFetchTransport);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(TestFetchTransport, [{\n key: \"sendEvent\",\n value: function sendEvent(event) {\n if (Ember.testing) {\n if (!window._sentryTestEvents) {\n window._sentryTestEvents = [];\n }\n\n window._sentryTestEvents.push(event);\n\n return Promise.resolve();\n }\n\n return _get(_getPrototypeOf(TestFetchTransport.prototype), \"sendEvent\", this).call(this, event);\n }\n }]);\n\n return TestFetchTransport;\n }(_browser.Transports.FetchTransport);\n\n Sentry.init({\n release: _environment.default.APP.release || undefined,\n transport: TestFetchTransport\n });\n var App = Ember.Application.extend({\n modulePrefix: _environment.default.modulePrefix,\n podModulePrefix: _environment.default.podModulePrefix,\n Resolver: _resolver.default\n });\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n var _default = App;\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/auth/base\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n var AuthBaseRoute = /*#__PURE__*/function (_Ember$Route$extend) {\n _inherits(AuthBaseRoute, _Ember$Route$extend);\n\n var _super = _createSuper(AuthBaseRoute);\n\n function AuthBaseRoute() {\n _classCallCheck(this, AuthBaseRoute);\n\n return _super.apply(this, arguments);\n }\n\n return _createClass(AuthBaseRoute);\n }(Ember.Route.extend(_authenticatedRouteMixin.default));\n\n _exports.default = AuthBaseRoute;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/index-loading/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/index-loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"gSE/BdTS\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/orders/index-loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/index/controller\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var PromiseArray = _emberData.default.PromiseArray;\n\n var _default = Ember.Controller.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n userSession: Ember.inject.service(),\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameters for route.\n *\n * @property queryParams\n * @type Array\n * @public\n */\n queryParams: ['filterStatus', 'selectedCompanyId', 'fromDate', 'toDate', 'page', 'pageSize', 'myDate'],\n page: 1,\n pageSize: 10,\n toDate: null,\n fromDate: null,\n filterStatus: Ember.computed(function () {\n return [];\n }),\n selectedCompanyId: null,\n\n /**\n * Current date format from user.\n *\n * @property dateFormat\n * @type {String}\n * @public\n */\n dateFormat: Ember.computed('userSession.dateFormat', {\n get: function get() {\n return Ember.get(this, 'userSession.dateFormat');\n }\n }),\n\n /**\n * Status options excluding `CART`.\n *\n * @property filterStatusOptions\n * @type {Array}\n * @public\n */\n filterStatusOptions: Ember.computed.filter('availableData.orderStates', function (orderState) {\n return orderState.value !== 'CART';\n }),\n\n /**\n * All available seller companys from all orders.\n *\n * @property availableCompanies\n * @type {Promise}\n * @public\n */\n availableCompanies: Ember.computed('store', 'userSession.currentCompany.id', {\n get: function get() {\n var _this = this;\n\n var orders = new Ember.RSVP.Promise(function (resolve) {\n _this.store.query('order', {\n buyerCompany: Ember.get(_this, 'userSession.currentCompany.id')\n }).then(resolve);\n });\n var promise = new Ember.RSVP.Promise(function (resolve) {\n orders.then(function (orders) {\n var companies = [];\n var promises = [];\n orders.forEach(function (order) {\n promises.push(order.get('sellerCompany').then(function (company) {\n return companies.addObject(company);\n }));\n });\n Ember.RSVP.Promise.all(promises).then(function () {\n resolve(companies);\n });\n });\n });\n return PromiseArray.create({\n promise: promise\n });\n }\n }),\n\n /**\n * Maximum possible date for `fromDate` = `toDate`.\n *\n * @property fromDateMax\n * @type {Date}\n * @public\n */\n fromDateMax: Ember.computed('toDate', {\n get: function get() {\n var toDate = Ember.get(this, 'toDate');\n\n if (Ember.isNone(toDate)) {\n return new Date();\n }\n\n return new Date(+toDate);\n }\n }),\n\n /**\n * Minimum required date for `toDate` = `fromDate`.\n *\n * @property availableCompanies\n * @type {Date}\n * @public\n */\n toDateMin: Ember.computed('fromDate', {\n get: function get() {\n var fromDate = Ember.get(this, 'fromDate');\n\n if (Ember.isNone(fromDate)) {\n return new Date();\n }\n\n return new Date(+fromDate);\n }\n }),\n\n /**\n * Maximum possible date for `toDate` = today.\n *\n * @property availableCompanies\n * @type {Date}\n * @public\n */\n toDateMax: Ember.computed({\n get: function get() {\n return new Date();\n }\n }),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Sets `fromDate` to the beginning of the day.\n *\n * @event setFromDate\n * @returns void\n * @private\n */\n setFromDate: function setFromDate(fromDate) {\n if (fromDate) {\n fromDate = +fromDate.startOf('day');\n }\n\n Ember.set(this, 'fromDate', fromDate);\n this.send('resetPage');\n },\n\n /**\n * Sets `toDate` to the end of the day.\n *\n * @event setFromDate\n * @returns void\n * @private\n */\n setToDate: function setToDate(toDate) {\n if (toDate) {\n toDate = +toDate.endOf('day');\n }\n\n Ember.set(this, 'toDate', toDate);\n this.send('resetPage');\n },\n\n /**\n * Sets `page` to initial value of 1.\n *\n * @event resetPage\n * @returns void\n * @private\n */\n resetPage: function resetPage() {\n Ember.set(this, 'page', 1);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/index/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _resetScroll, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * This route displays all orders of this user\n *\n * @namespace Route\n * @class AdminOrderIndex\n * @extends Ember.Route\n * @uses SimpleAuth.Mixin.AuthenticatedRouteMixin\n * @uses Mixin.ResetScrollMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n userSession: Ember.inject.service(),\n queryParams: {\n page: {\n refreshModel: true\n },\n pageSize: {\n refreshModel: true\n },\n filterStatus: {\n refreshModel: true\n },\n selectedCompanyId: {\n refreshModel: true\n },\n fromDate: {\n refreshModel: true\n },\n toDate: {\n refreshModel: true\n }\n },\n model: function model(params) {\n var query = {\n buyerCompany: Ember.get(this, 'userSession.currentCompany.id')\n };\n query.page = params.page || 1;\n query.pageSize = params.pageSize || 10;\n query.toDate = params.toDate || null;\n query.fromDate = params.fromDate || null;\n query.status = params.filterStatus || [];\n query.sellerCompany = params.selectedCompanyId || null;\n return this.store.query('order', query);\n },\n afterModel: function afterModel(model) {\n var queryParams = this.paramsFor(this.routeName);\n var maxPages = Ember.get(model, 'meta.maxPages');\n\n if (queryParams.page > maxPages) {\n queryParams.page = 1;\n this.transitionTo({\n queryParams: queryParams\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"dEtdQ9kv\",\n \"block\": \"{\\\"symbols\\\":[\\\"order\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"warehouses/migration-banner\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Orders\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_seller\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select seller:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"searchable\\\",\\\"id\\\",\\\"placeholder\\\",\\\"options\\\",\\\"action\\\",\\\"value\\\"],[true,\\\"select_seller\\\",[27,\\\"t\\\",[\\\"All\\\"],null],[23,[\\\"availableCompanies\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null],[27,\\\"mut\\\",[[23,[\\\"selectedCompanyId\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard inline-block\\\"],[11,\\\"for\\\",\\\"select_status\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select status:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"multiple\\\",\\\"searchable\\\",\\\"id\\\",\\\"value\\\",\\\"options\\\",\\\"action\\\"],[true,true,\\\"select_status\\\",[27,\\\"mut\\\",[[23,[\\\"filterStatus\\\"]]],null],[23,[\\\"filterStatusOptions\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_from_date\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"From Date:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-date-picker\\\",null,[[\\\"maxDate\\\",\\\"classes\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"action\\\"],[[23,[\\\"fromDateMax\\\"]],\\\"input__txt\\\",\\\"select_from_date\\\",[23,[\\\"dateFormat\\\"]],[27,\\\"readonly\\\",[[23,[\\\"fromDate\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setFromDate\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_to_date\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"To date:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-date-picker\\\",null,[[\\\"minDate\\\",\\\"maxDate\\\",\\\"id\\\",\\\"classes\\\",\\\"placeholder\\\",\\\"value\\\",\\\"action\\\"],[[23,[\\\"toDateMin\\\"]],[23,[\\\"toDateMax\\\"]],\\\"select_to_date\\\",\\\"input__txt\\\",[23,[\\\"dateFormat\\\"]],[27,\\\"readonly\\\",[[23,[\\\"toDate\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setToDate\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"There is {{count}} order in this view.\\\",\\\"There are {{count}} orders in this view.\\\",[23,[\\\"model\\\",\\\"meta\\\",\\\"totalItems\\\"]]],[[\\\"count\\\"],[[23,[\\\"model\\\",\\\"meta\\\",\\\"totalItems\\\"]]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"order-item\\\",null,[[\\\"order\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center padding-all-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"No orders in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"pagination-widget\\\",null,[[\\\"page\\\",\\\"pageSize\\\",\\\"maxPages\\\",\\\"changePageSize\\\"],[[23,[\\\"page\\\"]],[23,[\\\"pageSize\\\"]],[23,[\\\"model\\\",\\\"meta\\\",\\\"maxPages\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Orders per page\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/orders/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/loading/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"EPzG/5ZF\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/orders/loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/seller/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Retrieves order model.\n *\n * @public\n * @method model\n * @return {Model.Order}\n */\n model: function model(params) {\n return this.store.findRecord('order', params.order_id);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/seller/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"WRfj+tBu\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Seller details\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.orders.show\\\",[23,[\\\"model\\\"]]],[[\\\"class\\\"],[\\\"inline-block margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\" « \\\"],[1,[27,\\\"t\\\",[\\\"Back to order\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" | \\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Profile: {{companyName}}\\\"],[[\\\"companyName\\\"],[[23,[\\\"model\\\",\\\"sellerCompany\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"user-profile\\\",null,[[\\\"userRole\\\",\\\"company\\\"],[\\\"SELLER\\\",[23,[\\\"model\\\",\\\"sellerCompany\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/orders/seller/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/show/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n l10n: Ember.inject.service(),\n ajax: Ember.inject.service(),\n toast: Ember.inject.service(),\n flashMessages: Ember.inject.service(),\n showSellerAdjustmentText: Ember.computed('model.isClosed', 'model.isRejected', 'model.offerHasChanged', function () {\n var order = Ember.get(this, 'model');\n\n if (order.get('isClosed')) {\n return false;\n }\n\n if (order.get('isRejected')) {\n return false;\n }\n\n if (order.get('offerHasChanged')) {\n // Once the offer was changed, there is an info-message saying that offer was changed.\n // No need to show this message anymore.\n return false;\n }\n\n return true;\n }),\n actions: {\n payAndAccept: function payAndAccept(closeModal) {\n var _this = this;\n\n var _this$getProperties = this.getProperties(['l10n', 'ajax', 'toast', 'model', 'cardToken', 'flashMessages']),\n l10n = _this$getProperties.l10n,\n ajax = _this$getProperties.ajax,\n toast = _this$getProperties.toast,\n cardToken = _this$getProperties.cardToken,\n order = _this$getProperties.model,\n flashMessages = _this$getProperties.flashMessages;\n\n if (Ember.isNone(cardToken)) {\n return;\n }\n\n flashMessages.clear();\n this.set('isBusy', true);\n var data = order.toJSON({\n includeId: true\n }); // order MUST be `ACCEPTED`\n // in order to send token!\n\n data.status = 'ACCEPTED';\n\n var successCallback = function successCallback() {\n toast.success(l10n.t('You have paid and accepted the offer!'));\n\n _this.transitionToRoute('admin.orders');\n\n closeModal();\n };\n\n var failureCallback = function failureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = l10n.t('An error occurred while processing your payment: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n flashMessages.addError(errorMessage);\n };\n\n var finallyCallback = function finallyCallback() {\n _this.set('isBusy', false);\n };\n\n return ajax.post(\"/order/\".concat(data.id, \"/pay?token=\").concat(cardToken), {\n data: data\n }).then(successCallback, failureCallback).finally(finallyCallback);\n },\n getTokenFromCard: function getTokenFromCard(_card) {}\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/show/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"moment\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n model: function model(params) {\n return this.store.findRecord('order', params.order_id, {\n reload: true\n });\n },\n\n /**\n * Redirect to admin.sales.show if this is not an order but a sale\n * @param model\n */\n afterModel: function afterModel(model) {\n var _this = this;\n\n if (model.get('status') === 'CART') {\n this.transitionTo('admin.orders');\n return;\n }\n\n return new Ember.RSVP.Promise(function (resolve) {\n model.get('buyerCompany').then(function (company) {\n Ember.run.next(function () {\n if (company.get('id') !== _this.get('userSession.currentCompany.id')) {\n _this.transitionTo('admin.sales.show', model);\n }\n\n model.reload();\n model.get('orderItems').reload();\n resolve();\n });\n });\n });\n },\n actions: {\n acceptOffer: function acceptOffer() {\n var _this2 = this;\n\n var model = this.currentModel;\n model.set('status', 'ACCEPTED');\n model.set('closedDate', (0, _moment.default)());\n model.save().then(function () {\n _this2.get('toast').success(_this2.get('l10n').t('You have accepted the offer!'));\n\n _this2.transitionTo('admin.orders');\n\n _this2.controllerFor('admin.orders.index').notifyPropertyChange('filterStatus');\n });\n },\n rejectOffer: function rejectOffer() {\n var _this3 = this;\n\n var model = this.currentModel;\n model.set('status', 'OFFER_REJECTED');\n model.set('closedDate', (0, _moment.default)());\n model.save().then(function () {\n _this3.get('toast').info(_this3.get('l10n').t('You have rejected the offer!'));\n\n _this3.transitionTo('admin.orders');\n\n _this3.controllerFor('admin.orders.index').notifyPropertyChange('filterStatus');\n });\n },\n error: function error() {\n this.transitionTo('admin.orders');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/show/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"/T3n6UnZ\",\n \"block\": \"{\\\"symbols\\\":[\\\"closeModal\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Order details\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.orders.index\\\"],[[\\\"class\\\"],[\\\"inline-block margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\"« \\\"],[1,[27,\\\"t\\\",[\\\"See all orders\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[27,\\\"order-header\\\",null,[[\\\"order\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box--bg padding-top-4 padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showSellerAdjustmentText\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The seller can adjust the price and amounts for the requested listings. However, they can only reduce the prices and amounts, they are not allowed to increase prices or amounts at this point.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"offerCreatedDate\\\"]],[23,[\\\"model\\\",\\\"offerHasChanged\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Please note that the seller has adjusted the prices or amounts in their offer.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[27,\\\"order-details\\\",null,[[\\\"order\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"change status of order\\\"],null]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"status\\\"]],\\\"OFFER\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-top-4 text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[1,[27,\\\"t\\\",[\\\"Reject offer\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"rejectOffer\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"paymentRequested\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Pay & accept offer\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showPayModal\\\"]]],null],true],null]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Accept offer\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"acceptOffer\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showPayModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"modalClasses\\\",\\\"title\\\",\\\"close\\\"],[\\\"modal--large\\\",[27,\\\"t\\\",[\\\"Pay & accept order\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showPayModal\\\"]]],null],false],null]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[1,[21,\\\"flash-messages\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"This offer requires credit card payment before it can be accepted.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"credit-card-form\\\",null,[[\\\"cardClasses\\\",\\\"action\\\"],[\\\"\\\",[27,\\\"action\\\",[[22,0,[]],\\\"getTokenFromCard\\\"],null]]]],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container--inline margin-top-3 text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"action\\\",\\\"id\\\",\\\"class\\\"],[[22,1,[]],\\\"pay_order_cancel\\\",\\\"button button--secondary\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"c-button\\\",null,[[\\\"isLoading\\\",\\\"id\\\",\\\"disabled\\\",\\\"class\\\",\\\"action\\\"],[[23,[\\\"isBusy\\\"]],\\\"pay_order_confirm\\\",[27,\\\"not\\\",[[23,[\\\"cardToken\\\"]]],null],\\\"button button--primary\\\",[27,\\\"action\\\",[[22,0,[]],\\\"payAndAccept\\\",[22,1,[]]],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Confirm\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/orders/show/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/orders/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"jN4yCNAB\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Orders\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/orders/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * The controller for admin route.\n *\n * @namespace Route\n * @extends Ember.Route\n * @uses Mixin.ResetScrollMixin\n * @uses Mixin.AuthenticatedRouteMixin\n */\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n userSession: Ember.inject.service(),\n toast: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Methods\n\n /**\n * Renders templates for admin route manually.\n * Per default, it renders secondary nav items\n * from manage pod to `secondary-nav` outlet.\n *\n * @public\n * @method renderTemplate\n * @return {Void}\n */\n renderTemplate: function renderTemplate() {\n this.render();\n this.render('admin/manage/navbar', {\n outlet: 'secondary-nav',\n into: 'admin'\n });\n },\n\n /**\n * Loads available shops for user.\n *\n * @public\n * @method model\n * @return Ember.RSVP.Promise\n */\n model: function model() {\n return Ember.get(this, 'availableData.shops');\n },\n\n /**\n * Checks if user is authenticated and\n * in that case if a company is already\n * set up, otherwise redirects to setup\n * page.\n *\n * @public\n * @method afterModel\n * @return Ember.RSVP.Promise\n */\n afterModel: function afterModel() {\n var _this = this;\n\n return new Ember.RSVP.Promise(function (resolve, reject) {\n var user = Ember.get(_this, 'userSession.currentUser');\n\n if (Ember.isNone(user)) {\n reject();\n return;\n }\n\n user.get('company').then(function (company) {\n if (Ember.isEmpty(company.get('location'))) {\n var location = _this.store.createRecord('location', {\n type: 'COMPANY'\n });\n\n Ember.set(company, 'location', location);\n }\n\n resolve();\n });\n });\n },\n\n /**\n * Resets `afterSave` query parameter.\n *\n * @public\n * @method resetController\n * @return {Void}\n */\n resetController: function resetController(controller, isExiting) {\n if (isExiting) {\n Ember.set(controller, 'afterSave', null);\n }\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Persists user model in DB from data.\n *\n * @event errors\n * @param {Object} data\n * @return {Void}\n * @private\n */\n saveCurrentUser: function saveCurrentUser(data) {\n var _this2 = this;\n\n var user = Ember.get(this, 'userSession.currentUser');\n user.setProperties({\n fullName: Ember.get(data, 'fullName'),\n dateFormat: Ember.get(data, 'dateFormat'),\n timeFormat: Ember.get(data, 'timeFormat'),\n timezone: Ember.get(data, 'timezone'),\n avatar: Ember.get(data, 'avatar'),\n locale: Ember.get(data, 'language')\n });\n\n if (!user.get('hasDirtyAttributes')) {\n return;\n }\n\n var successCallback = function successCallback() {\n Ember.get(_this2, 'toast').success(Ember.get(_this2, 'l10n').t('Your profile has been updated!'));\n };\n\n var failureCallback = function failureCallback() {\n Ember.get(_this2, 'toast').error(Ember.get(_this2, 'l10n').t('Could not save your profile!'));\n user.rollbackAttributes();\n };\n\n user.save().then(successCallback, failureCallback);\n },\n\n /**\n * Persists company model in DB from data.\n *\n * @event errors\n * @return {Void}\n * @private\n */\n saveCurrentCompany: function saveCurrentCompany() {\n var _this3 = this;\n\n var companyCallback = function companyCallback(company) {\n var successCallback = function successCallback() {\n Ember.get(_this3, 'toast').success(Ember.get(_this3, 'l10n').t('Your company has been updated!'));\n\n var params = _this3.paramsFor(_this3.routeName);\n\n var route = params.afterSave;\n\n if (!route) {\n return;\n }\n\n _this3.transitionTo(route, {});\n };\n\n var failureCallback = function failureCallback() {\n Ember.get(_this3, 'toast').error(Ember.get(_this3, 'l10n').t('Could not save company profile!'));\n company.rollbackAttributes();\n };\n\n company.save().then(successCallback, failureCallback);\n };\n\n Ember.get(this, 'userSession.currentCompany').then(companyCallback);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/buyer/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {\n model: function model(params) {\n return this.store.findRecord('order', params.order_id);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/buyer/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"pzFy8hZH\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Buyer details\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.sales.show\\\",[23,[\\\"model\\\"]]],[[\\\"class\\\"],[\\\"inline-block margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\" « \\\"],[1,[27,\\\"t\\\",[\\\"Back to sale\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" | \\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Profile: {{companyName}}, {{userName}}\\\"],[[\\\"companyName\\\",\\\"userName\\\"],[[23,[\\\"model\\\",\\\"buyerCompany\\\",\\\"name\\\"]],[23,[\\\"model\\\",\\\"requestUser\\\",\\\"fullName\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"user-profile\\\",null,[[\\\"userRole\\\",\\\"user\\\",\\\"billingAddress\\\",\\\"shippingAddress\\\",\\\"blacklistItem\\\"],[\\\"BUYER\\\",[23,[\\\"model\\\",\\\"requestUser\\\"]],[23,[\\\"model\\\",\\\"billingAddress\\\"]],[23,[\\\"model\\\",\\\"shippingAddress\\\"]],[27,\\\"get\\\",[[23,[\\\"model\\\",\\\"sellerCompany\\\",\\\"blacklistCompanies\\\"]],[23,[\\\"model\\\",\\\"buyerCompany\\\",\\\"id\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/buyer/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/index/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n beforeModel: function beforeModel() {\n this.transitionTo('admin.sales.list');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list-loading/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list-loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"bT+k42gj\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3 inline-block margin-right-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Sales\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-screen inline-block\\\"],[9],[0,\\\"(\\\"],[1,[27,\\\"moment-format\\\",[[23,[\\\"currentDate\\\"]]],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"svg-icon\\\",[\\\"print\\\"],[[\\\"class\\\"],[\\\"inline-icon margin-right-2\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"Print list\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"print\\\"]],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"svg-icon\\\",[\\\"print-labels-on-hub\\\"],[[\\\"class\\\"],[\\\"inline-icon margin-right-2\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"Print labels\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"printLabels\\\"]],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"tab__header tab__header__sales float-right\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"tab__item-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.sales.list.index\\\"],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"By order\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"tab__item-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.sales.list.coffee\\\"],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"By coffee\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box--bg\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/list-loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/coffee/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n parent: Ember.inject.controller('admin.sales.list'),\n ordersByCoffee: Ember.computed.reads('parent.ordersByCoffee'),\n showShippingAddress: Ember.computed.reads('parent.showShippingAddress')\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/coffee/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n activate: function activate() {\n this._super.apply(this, arguments);\n\n var parentController = this.controllerFor('admin.sales.list');\n Ember.set(parentController, 'mode', 'COFFEE');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/coffee/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"XfgyGdSb\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"ordersByCoffee\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"ordersByCoffee\\\",\\\"content\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center padding-all-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"No orders in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"sales-by-listing\\\",null,[[\\\"ordersByCoffee\\\",\\\"showShippingAddress\\\"],[[23,[\\\"ordersByCoffee\\\",\\\"content\\\"]],[23,[\\\"showShippingAddress\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/list/coffee/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/controller\", [\"exports\", \"ember-data\", \"moment\", \"@vollersgroup/hub-frontend/mixins/label-print\", \"@vollersgroup/hub-frontend/utils/orders-labels\"], function (_exports, _emberData, _moment, _labelPrint, _ordersLabels) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var PromiseArray = _emberData.default.PromiseArray,\n PromiseObject = _emberData.default.PromiseObject;\n\n var _default = Ember.Controller.extend(_labelPrint.default, {\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n userSession: Ember.inject.service(),\n store: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Query parameters for route.\n *\n * @property queryParams\n * @type Array\n * @public\n */\n queryParams: ['filterStatus', 'selectedCompanyId', 'selectedShopId', 'showType', 'selectedListingId', 'fromDate', 'toDate', 'roastedSamples', 'page', 'pageSize'],\n page: 1,\n pageSize: 10,\n toDate: null,\n fromDate: null,\n showType: 'ALL',\n filterStatus: Ember.computed(function () {\n return [];\n }),\n selectedShopId: null,\n roastedSamples: false,\n selectedCompanyId: null,\n selectedListingId: null,\n\n /**\n * Current view mode settable\n * by child routes. Can be one\n * of `ORDER` or `COFFEE`.\n *\n * @property queryParams\n * @type Array\n * @public\n */\n mode: 'ORDER',\n\n /**\n * Maximum pages returned from server.\n *\n * @property maxPages\n * @type {Number}\n * @public\n */\n maxPages: Ember.computed('model.meta.maxPages', {\n get: function get() {\n return Ember.get(this, 'model.meta.maxPages') || 1;\n }\n }),\n\n /**\n * Total amount of query items from server.\n *\n * @property totalItems\n * @type {Number}\n * @public\n */\n totalItems: Ember.computed('model.length', 'model.meta.totalItems', {\n get: function get() {\n return Ember.get(this, 'model.meta.totalItems') || Ember.get(this, 'model.length');\n }\n }),\n\n /**\n * Current date as moment object.\n *\n * @property currentDate\n * @type {Object}\n * @public\n */\n currentDate: Ember.computed({\n get: function get() {\n return (0, _moment.default)();\n }\n }),\n\n /**\n * Current date format from user.\n *\n * @property dateFormat\n * @type {String}\n * @public\n */\n dateFormat: Ember.computed('userSession.dateFormat', {\n get: function get() {\n return Ember.get(this, 'userSession.dateFormat');\n }\n }),\n\n /**\n * Status options excluding `CART`.\n *\n * @property filterStatusOptions\n * @type {Array}\n * @public\n */\n filterStatusOptions: Ember.computed.filter('availableData.orderStates', function (orderState) {\n return orderState.value !== 'CART';\n }),\n\n /**\n * All available buyer companies from all orders.\n *\n * @property availableCompanies\n * @type {Promise}\n * @public\n */\n availableCompanies: Ember.computed('store', 'userSession.currentCompany.id', {\n get: function get() {\n var _this = this;\n\n var orders = new Ember.RSVP.Promise(function (resolve) {\n _this.store.query('order', {\n sellerCompany: Ember.get(_this, 'userSession.currentCompany.id')\n }).then(resolve);\n });\n var promise = new Ember.RSVP.Promise(function (resolve) {\n orders.then(function (orders) {\n var companies = [];\n var promises = [];\n orders.forEach(function (order) {\n promises.push(order.get('buyerCompany').then(function (company) {\n return companies.addObject(company);\n }));\n });\n Ember.RSVP.Promise.all(promises).then(function () {\n resolve(companies);\n });\n });\n });\n return PromiseArray.create({\n promise: promise\n });\n }\n }),\n\n /**\n * All available listings from all orders.\n * Will be filled by `ordersByCoffee` prop.\n *\n * @property availableListings\n * @type {Listing[]}\n * @public\n */\n availableListings: Ember.computed({\n get: function get() {\n return [];\n }\n }),\n\n /**\n * Maximum possible date for `fromDate` = `toDate`.\n *\n * @property fromDateMax\n * @type {Date}\n * @public\n */\n fromDateMax: Ember.computed('toDate', {\n get: function get() {\n var toDate = Ember.get(this, 'toDate');\n\n if (Ember.isNone(toDate)) {\n return new Date();\n }\n\n return new Date(+toDate);\n }\n }),\n\n /**\n * Minimum required date for `toDate` = `fromDate`.\n *\n * @property availableCompanies\n * @type {Date}\n * @public\n */\n toDateMin: Ember.computed('fromDate', {\n get: function get() {\n var fromDate = Ember.get(this, 'fromDate');\n\n if (Ember.isNone(fromDate)) {\n return new Date();\n }\n\n return new Date(+fromDate);\n }\n }),\n\n /**\n * Maximum possible date for `toDate` = today.\n *\n * @property availableCompanies\n * @type {Date}\n * @public\n */\n toDateMax: Ember.computed({\n get: function get() {\n return new Date();\n }\n }),\n\n /**\n * Groups all orders by `listing` from\n * `orderItem` as a hashmap for `COFFEE`\n * mode.\n *\n * @property ordersByCoffee\n * @type {Object}\n * @public\n */\n ordersByCoffee: Ember.computed('availableListings', 'model.length', {\n get: function get() {\n var _this2 = this;\n\n var promiseCallback = function promiseCallback(resolve) {\n var availableListings = Ember.get(_this2, 'availableListings');\n var model = Ember.get(_this2, 'model');\n\n if (Ember.isNone(model)) {\n resolve(null);\n return;\n }\n\n model = model.slice(0);\n var count = 0;\n var orders = {\n /* listingId: Order[] */\n };\n\n var nextOrder = function nextOrder() {\n var order = model.popObject();\n\n if (Ember.isNone(order)) {\n if (count > 0) {\n resolve(orders);\n } else {\n resolve(null);\n }\n\n return;\n }\n\n Ember.get(order, 'orderItems').then(orderItemsCallback);\n };\n\n var orderItemsCallback = function orderItemsCallback(orderItems) {\n var promises = [];\n orderItems.forEach(function (orderItem) {\n var listing = Ember.get(orderItem, 'listing');\n var promise = listing.then(function (listing) {\n if (!orders[listing.id]) {\n availableListings.addObject(listing);\n orders[listing.id] = [];\n count++;\n }\n\n orders[listing.id].addObject(orderItem);\n return true;\n });\n promises.push(promise);\n });\n Ember.RSVP.all(promises).then(nextOrder);\n };\n\n nextOrder();\n };\n\n return PromiseObject.create({\n promise: new Ember.RSVP.Promise(promiseCallback)\n });\n }\n }),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Prints sales list.\n *\n * @event print\n * @returns void\n * @private\n */\n print: function print() {\n window.print();\n },\n\n /**\n * Prints sales as labels.\n *\n * @event print\n * @returns void\n * @private\n */\n printLabels: function printLabels() {\n var model = Ember.get(this, 'model');\n var labels = (0, _ordersLabels.getOrdersLabels)(model);\n\n if (labels && labels.length) {\n this.printLabels(labels);\n }\n },\n\n /**\n * Sets `fromDate` to the beginning of the day.\n *\n * @event setFromDate\n * @returns void\n * @private\n */\n setFromDate: function setFromDate(fromDate) {\n if (fromDate) {\n fromDate = +fromDate.startOf('day');\n }\n\n Ember.set(this, 'fromDate', fromDate);\n this.send('resetPage');\n },\n\n /**\n * Sets `toDate` to the end of the day.\n *\n * @event setFromDate\n * @returns void\n * @private\n */\n setToDate: function setToDate(toDate) {\n if (toDate) {\n toDate = +toDate.endOf('day');\n }\n\n Ember.set(this, 'toDate', toDate);\n this.send('resetPage');\n },\n\n /**\n * Sets `page` to initial value of 1.\n *\n * @event resetPage\n * @returns void\n * @private\n */\n resetPage: function resetPage() {\n Ember.set(this, 'page', 1);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/index/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n parent: Ember.inject.controller('admin.sales.list'),\n orders: Ember.computed.reads('parent.model'),\n showShippingAddress: Ember.computed.reads('parent.showShippingAddress')\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/index/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n activate: function activate() {\n this._super.apply(this, arguments);\n\n var parentController = this.controllerFor('admin.sales.list');\n Ember.set(parentController, 'mode', 'ORDER');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Es2v+fzE\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"orders\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"sales-by-order\\\",null,[[\\\"orders\\\",\\\"showShippingAddress\\\"],[[23,[\\\"orders\\\"]],[23,[\\\"showShippingAddress\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center padding-all-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"No orders in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/list/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/loading/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"amo14fz9\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/list/loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _resetScroll, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n userSession: Ember.inject.service(),\n queryParams: {\n page: {\n refreshModel: true\n },\n pageSize: {\n refreshModel: true\n },\n filterStatus: {\n refreshModel: true\n },\n selectedCompanyId: {\n refreshModel: true\n },\n selectedShopId: {\n refreshModel: true\n },\n showType: {\n refreshModel: true\n },\n selectedListingId: {\n refreshModel: true\n },\n fromDate: {\n refreshModel: true\n },\n toDate: {\n refreshModel: true\n },\n roastedSamples: {\n refreshModel: true\n }\n },\n model: function model(params) {\n var query = {\n sellerCompany: Ember.get(this, 'userSession.currentCompany.id')\n };\n\n switch (params.showType) {\n case 'SAMPLE':\n query.hasSample = true;\n break;\n\n case 'PURCHASE':\n query.hasPurchase = true;\n break;\n\n default:\n }\n\n query.page = params.page || 1;\n query.pageSize = params.pageSize || 10;\n query.toDate = params.toDate || null;\n query.fromDate = params.fromDate || null;\n query.status = params.filterStatus || [];\n query.shop = params.selectedShopId || null;\n query.listing = params.selectedListingId || null;\n query.buyerCompany = params.selectedCompanyId || null;\n query.roastedSamples = params.roastedSamples || false;\n return this.store.query('order', query);\n },\n afterModel: function afterModel(model) {\n var queryParams = this.paramsFor(this.routeName);\n var maxPages = Ember.get(model, 'meta.maxPages');\n\n if (queryParams.page > maxPages) {\n queryParams.page = 1;\n this.transitionTo({\n queryParams: queryParams\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/list/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"aZnB940z\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3 inline-block margin-right-2 margin-bottom-0\\\"],[9],[1,[27,\\\"t\\\",[\\\"Sales\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"no-screen inline-block margin-right-2\\\"],[9],[0,\\\"(\\\"],[1,[27,\\\"moment-format\\\",[[23,[\\\"currentDate\\\"]]],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"svg-icon\\\",[\\\"print\\\"],[[\\\"class\\\"],[\\\"inline-icon margin-right-2\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"Print list\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],\\\"print\\\"],null]]],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"svg-icon\\\",[\\\"print-labels-on-hub\\\"],[[\\\"class\\\"],[\\\"inline-icon margin-right-2\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[9],[1,[27,\\\"t\\\",[\\\"Print labels\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],\\\"printLabels\\\"],null]]],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"tab__header tab__header__sales float-right\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"tab__item-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.sales.list.index\\\"],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"By order\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"tab__item-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.sales.list.coffee\\\"],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"By coffee\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box--bg flex-grow-1\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-top-3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-middle margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"mode\\\"]],\\\"ORDER\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_buyer\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select buyer:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"searchable\\\",\\\"id\\\",\\\"placeholder\\\",\\\"options\\\",\\\"action\\\",\\\"value\\\"],[true,\\\"select_buyer\\\",[27,\\\"t\\\",[\\\"All\\\"],null],[23,[\\\"availableCompanies\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null],[27,\\\"mut\\\",[[23,[\\\"selectedCompanyId\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"mode\\\"]],\\\"COFFEE\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_coffee\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select coffee:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"searchable\\\",\\\"id\\\",\\\"placeholder\\\",\\\"options\\\",\\\"action\\\",\\\"value\\\"],[true,\\\"select_coffee\\\",[27,\\\"t\\\",[\\\"All\\\"],null],[23,[\\\"availableListings\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null],[27,\\\"mut\\\",[[23,[\\\"selectedListingId\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-middle margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard inline-block\\\"],[11,\\\"for\\\",\\\"select_status\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Select status:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"multiple\\\",\\\"searchable\\\",\\\"id\\\",\\\"value\\\",\\\"options\\\",\\\"action\\\"],[true,true,\\\"select_status\\\",[27,\\\"mut\\\",[[23,[\\\"filterStatus\\\"]]],null],[23,[\\\"filterStatusOptions\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-middle margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_from_date\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"From Date:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-date-picker\\\",null,[[\\\"maxDate\\\",\\\"classes\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"action\\\"],[[23,[\\\"fromDateMax\\\"]],\\\"input__txt\\\",\\\"select_from_date\\\",[23,[\\\"dateFormat\\\"]],[27,\\\"readonly\\\",[[23,[\\\"fromDate\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setFromDate\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block vertical-align-middle margin-right-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_to_date\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"To date:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-date-picker\\\",null,[[\\\"minDate\\\",\\\"maxDate\\\",\\\"id\\\",\\\"classes\\\",\\\"placeholder\\\",\\\"value\\\",\\\"action\\\"],[[23,[\\\"toDateMin\\\"]],[23,[\\\"toDateMax\\\"]],\\\"select_to_date\\\",\\\"input__txt\\\",[23,[\\\"dateFormat\\\"]],[27,\\\"readonly\\\",[[23,[\\\"toDate\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"setToDate\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard inline-block\\\"],[11,\\\"for\\\",\\\"select_status\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Show:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-left-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-radio-buttons\\\",null,[[\\\"inline\\\",\\\"value\\\",\\\"action\\\",\\\"options\\\"],[true,[27,\\\"mut\\\",[[23,[\\\"showType\\\"]]],null],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null],[23,[\\\"availableData\\\",\\\"showTypeStates\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"action\\\",\\\"checked\\\"],[\\\"input__checkbox\\\",\\\"roastedSamplesOnly\\\",[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null],[27,\\\"mut\\\",[[23,[\\\"roastedSamples\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"roastedSamplesOnly\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Roasted samples only\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"availableShops\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"select_shop\\\"],[9],[1,[27,\\\"t\\\",[\\\"Shop:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"chosen-container--small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"searchable\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"options\\\",\\\"action\\\"],[true,\\\"select_shop\\\",[27,\\\"t\\\",[\\\"All\\\"],null],[27,\\\"mut\\\",[[23,[\\\"selectedShopId\\\"]]],null],[23,[\\\"availableData\\\",\\\"shops\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"checked\\\"],[\\\"show_address\\\",\\\"input__checkbox\\\",[27,\\\"mut\\\",[[23,[\\\"showShippingAddress\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"show_address\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Show shipping address\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"pagination-widget\\\",null,[[\\\"page\\\",\\\"pageSize\\\",\\\"maxPages\\\",\\\"changePageSize\\\"],[[23,[\\\"page\\\"]],[23,[\\\"pageSize\\\"]],[23,[\\\"model\\\",\\\"meta\\\",\\\"maxPages\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"resetPage\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Orders per page\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/list/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/loading/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"+RDTF7ZT\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/show/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n isSaving: false\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/show/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"moment\", \"ember-can\", \"@vollersgroup/hub-frontend/utils/get-first-adapter-error-message\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _moment, _emberCan, _getFirstAdapterErrorMessage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n toast: Ember.inject.service(),\n model: function model(params) {\n if (!params.order_id || params.order_id === 'undefined') {\n return null;\n }\n\n return this.store.findRecord('order', params.order_id, {\n reload: true\n });\n },\n\n /**\n * Redirect to admin.orders.show if this is not a sale but an order.\n */\n afterModel: function afterModel(model) {\n var _this = this;\n\n if (!model) {\n this.transitionTo('admin.sales.list');\n return;\n }\n\n if (model.get('status') === 'CART') {\n this.transitionTo('cart');\n return;\n }\n\n if (model.get('status') === 'REQUEST') {\n // Set finalAmount to initialAmount & priceFinalAmount to priceInitial for all orderItems\n model.set('documents', []);\n model.set('additionalCosts', []);\n model.get('orderItems').then(function (orderItems) {\n if (!orderItems) {\n return;\n }\n\n orderItems.forEach(function (orderItem) {\n orderItem.set('finalAmount', orderItem.get('initialAmount'));\n orderItem.set('priceFinalAmount', orderItem.get('priceInitialAmount'));\n orderItem.set('priceFinalCurrency', orderItem.get('priceInitialCurrency'));\n orderItem.set('finalAmountUnit', orderItem.get('initialAmountUnit'));\n });\n });\n }\n\n return new Ember.RSVP.Promise(function (resolve) {\n model.get('sellerCompany').then(function (sellerCompany) {\n model.get('buyerCompany').then(function () {\n model.get('shop').then(function () {\n if (sellerCompany.get('id') !== _this.get('userSession.currentCompany.id')) {\n _this.transitionTo('admin.orders.show', model);\n }\n\n model.reload();\n model.get('orderItems').reload();\n resolve();\n });\n });\n });\n });\n },\n actions: {\n cancelOffer: function cancelOffer() {\n var _this2 = this;\n\n var model = this.currentModel;\n model.set('status', 'OFFER_CANCELED');\n model.set('closedDate', (0, _moment.default)());\n model.save().then(function () {\n _this2.get('toast').info(_this2.get('l10n').t('You have cancelled the offer!'));\n\n _this2.transitionTo('admin.sales.list');\n });\n },\n error: function error() {\n this.transitionTo('admin.sales.list');\n },\n\n /**\n * Reject this request.\n *\n * @event rejectRequest\n * @private\n */\n rejectRequest: function rejectRequest() {\n var _this3 = this;\n\n var model = this.currentModel;\n model.set('status', 'REQUEST_REJECTED');\n model.set('closedDate', (0, _moment.default)());\n model.save().then(function () {\n _this3.get('toast').info(_this3.get('l10n').t('You have rejected this request. The buyer will be notified of this rejection.'));\n\n _this3.transitionTo('admin.sales.list');\n });\n },\n\n /**\n * Make an offer from this request.\n *\n * @event sendOffer\n * @private\n */\n sendOffer: function sendOffer(data) {\n var _this4 = this;\n\n var model = this.currentModel;\n model.setProperties({\n orderNumber: data.orderNumber,\n orderNotes: data.orderNotes,\n shippingTerms: data.shippingTerms,\n additionalCosts: data.additionalCosts,\n documents: data.documents\n }); // Validate\n\n var hasError = false;\n model.get('orderItems').forEach(function (orderItem) {\n if (!orderItem.checkValidations()) {\n hasError = true;\n }\n });\n\n if (hasError) {\n return;\n } // Save the order items\n\n\n var controller = this.controllerFor(this.get('routeName'));\n controller.set('isSaving', true);\n var openOrderItems = model.get('orderItems').toArray();\n\n var _saveNextOrderItem = function _saveNextOrderItem() {\n var firstOrderItem = openOrderItems.splice(0, 1);\n firstOrderItem = firstOrderItem.length === 1 ? firstOrderItem[0] : null;\n\n if (firstOrderItem) {\n if (firstOrderItem.get('hasDirtyAttributes')) {\n firstOrderItem.save().then(function () {\n _saveNextOrderItem();\n }).catch(function (adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this4, 'l10n').t('An error occurred while trying to save the order items: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n controller.set('isSaving', false);\n\n _this4.get('toast').error(errorMessage);\n });\n } else {\n _saveNextOrderItem();\n }\n } else {\n _saveOrder();\n }\n };\n\n var _saveOrder = function _saveOrder() {\n if (model.get('priorPaymentRequired') || !model.get('offerHasChanged') && !model.get('hasCoffee') && !model.get('estimatedTotalPrice')) {\n model.set('status', 'ACCEPTED');\n model.set('offerCreatedDate', (0, _moment.default)());\n model.set('closedDate', (0, _moment.default)());\n model.save().then(function () {\n controller.set('isSaving', false);\n\n _this4.get('toast').info(_this4.get('l10n').t('You have accepted the request. The buyer will be notified.'));\n\n _this4.transitionTo('admin.sales.list', {\n queryParams: {\n filterStatus: ['ACCEPTED']\n }\n });\n }).catch(function () {\n controller.set('isSaving', false);\n model.rollbackAttributes();\n\n _this4.get('toast').error(_this4.get('l10n').t('An error occurred while trying to update the order.'));\n });\n return;\n }\n\n model.set('status', 'OFFER');\n model.set('offerCreatedDate', (0, _moment.default)());\n model.save().then(function () {\n controller.set('isSaving', false);\n\n _this4.get('toast').info(_this4.get('l10n').t('You have made an offer. The buyer will be notified.'));\n\n _this4.transitionTo('admin.sales.list');\n }).catch(function () {\n controller.set('isSaving', false);\n model.rollbackAttributes();\n\n _this4.get('toast').error(_this4.get('l10n').t('An error occurred while trying to update the order.'));\n });\n };\n\n _saveNextOrderItem();\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/show/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"9qRg8t32\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Order details\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"admin.sales.index\\\"],[[\\\"class\\\"],[\\\"inline-block margin-bottom-3\\\"]],{\\\"statements\\\":[[0,\\\"« \\\"],[1,[27,\\\"t\\\",[\\\"See all sales\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isSaving\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"order-header\\\",null,[[\\\"order\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box--bg padding-top-4 padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"status\\\"]],\\\"REQUEST\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"order-review-request\\\",null,[[\\\"order\\\",\\\"rejectAction\\\",\\\"action\\\",\\\"isLoading\\\"],[[23,[\\\"model\\\"]],\\\"rejectRequest\\\",\\\"sendOffer\\\",[23,[\\\"isSaving\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"offerCreatedDate\\\"]],[23,[\\\"model\\\",\\\"offerHasChanged\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Please note that you have changed prices or amounts in your offer.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[27,\\\"order-details\\\",null,[[\\\"order\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"model\\\",\\\"status\\\"]],\\\"OFFER\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[1,[27,\\\"t\\\",[\\\"Cancel offer\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"cancelOffer\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/show/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/sales/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Qnml1gf6\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Sales\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/sales/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"ko5gv+ze\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"My Hub\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"header-bar\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"dark__bg relative margin-bottom-4 no-print\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"secondary-nav no-print\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.index\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Dashboard\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"secondary-nav__item__wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"availableData\\\",\\\"shops\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.index\\\"],[[\\\"class\\\",\\\"current-when\\\"],[\\\"secondary-nav__item\\\",\\\"admin.manage\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Manage coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create shop\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.shop.create\\\"],[[\\\"class\\\",\\\"current-when\\\"],[\\\"secondary-nav__item\\\",\\\"admin.manage\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Sell coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"secondary-nav__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"outlet\\\",[\\\"secondary-nav\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"view conversation\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.messages\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Inbox\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.wishlist\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Wish list\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.orders\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Orders\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"userSession\\\",\\\"currentCompany\\\",\\\"isVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.sales\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Sales\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.company\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Company\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"admin.account\\\"],[[\\\"class\\\"],[\\\"secondary-nav__item\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Account\\\"],null],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"flex-grow-1\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"footer-main\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"editWarehouseId\\\"]],[23,[\\\"createWarehouse\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"manage-warehouse-modal\\\",null,[[\\\"editWarehouseId\\\",\\\"createWarehouse\\\",\\\"closeModal\\\"],[[23,[\\\"editWarehouseId\\\"]],[23,[\\\"createWarehouse\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"dismissWarehouseModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"inviteUser\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"invite-user-modal\\\",null,[[\\\"closeModal\\\"],[[27,\\\"action\\\",[[22,0,[]],\\\"dismissInviteUserModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/welcome/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _authenticatedRouteMixin, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, {\n userSession: Ember.inject.service(),\n model: function model() {\n return Ember.RSVP.hash({\n currentUser: this.get('userSession.currentUser'),\n currentCompany: this.get('userSession.currentCompany')\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/welcome/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"52OxPqsW\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Welcome to V-Hub\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper margin-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--left\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight box__header--head\\\"],[9],[1,[27,\\\"t\\\",[\\\"Getting started\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__header--content\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"info-center.getting-started.how-to-sell\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"How to sell coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"info-center.getting-started.how-to-buy\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"How to buy coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"info-center.auctions.index\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"More about auctions\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"currentUser\\\",\\\"fullName\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Hi\\\"],null],false],[0,\\\" \\\"],[7,\\\"span\\\"],[9],[1,[23,[\\\"model\\\",\\\"currentUser\\\",\\\"fullName\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Hi!\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Welcome to V-Hub. For the best experience please complete your profile below.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"What do you want to do next?\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-bottom-4 vertical-align-top\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"store\\\"],[[\\\"class\\\"],[\\\"button button--primary button--full--mobile vertical-align-top\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Start browsing coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"create shop\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.manage.shop.create\\\"],[[\\\"class\\\"],[\\\"button button--secondary button--full--mobile vertical-align-top\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Start selling your coffee\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Complete your profile\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"relative z-index-10\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"user-settings-form\\\",null,[[\\\"user\\\",\\\"isLoading\\\",\\\"hideAfterSave\\\",\\\"action\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"currentUser\\\"]]],null],[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"currentUser\\\",\\\"isSaving\\\"]]],null],true,\\\"saveCurrentUser\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit company\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Complete your company information\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"company-settings-form\\\",null,[[\\\"company\\\",\\\"onSaveCompany\\\",\\\"hideAfterSave\\\"],[[27,\\\"readonly\\\",[[23,[\\\"model\\\",\\\"currentCompany\\\"]]],null],\\\"saveCurrentCompany\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"clearfix\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/welcome/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/wishlist/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n toast: Ember.inject.service(),\n keenTracking: Ember.inject.service(),\n actions: {\n /**\n * Removes wish list item from user's collection.\n *\n * @event removeFromWishlist\n * @private\n */\n removeFromWishlist: function removeFromWishlist(wishlistItem) {\n var _this = this;\n\n var _successCallback = function _successCallback() {\n var message = Ember.get(_this, 'l10n').t('\"{{coffeeName}}\" was removed from your wish list.', {\n coffeeName: Ember.get(wishlistItem, 'listing.name')\n });\n Ember.get(_this, 'toast').success(message);\n Ember.get(_this, 'keenTracking').addEvent('remove-from-wishlist-on-listing-item', {\n listingName: Ember.get(wishlistItem, 'listing.name'),\n listingId: Ember.get(wishlistItem, 'listing.id')\n });\n };\n\n var _failureCallback = function _failureCallback() {\n var message = Ember.get(_this, 'l10n').t('Could not remove \"{{coffeeName}}\" to your wish list. Please, try it again in a moment.', {\n coffeeName: Ember.get(wishlistItem, 'listing.name')\n });\n Ember.get(_this, 'toast').error(message);\n };\n\n wishlistItem.destroyRecord().then(_successCallback, _failureCallback);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/wishlist/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\"], function (_exports, _authenticatedRouteMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, {\n userSession: Ember.inject.service(),\n model: function model() {\n return this.get('userSession.currentUser.wishlistItems');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/admin/wishlist/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"xCM94hR3\",\n \"block\": \"{\\\"symbols\\\":[\\\"wishlistItem\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Wish list\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex justify-between margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"font-size-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Wish list\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[4,\\\"listing-list-item\\\",null,[[\\\"listing\\\"],[[22,1,[\\\"listing\\\"]]]],{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-3 listing__item__remove-from-wishlist-button\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain color-grey-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Remove from wish list\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],\\\"removeFromWishlist\\\",[22,1,[]]],null]],[[\\\"bubbles\\\"],[false]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-1 listing__item__rating\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"listing-ratings\\\",null,[[\\\"rating\\\"],[[22,1,[\\\"listing\\\",\\\"rating\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"INFO\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You have no coffees on your wish list yet. Go to the store to configure and add your first coffee to your wish list.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"store\\\"],[[\\\"class\\\"],[\\\"button\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Go to store\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/admin/wishlist/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/adapter\", [\"exports\", \"ember-data\", \"@vollersgroup/hub-frontend/config/environment\", \"ember-simple-auth/mixins/data-adapter-mixin\"], function (_exports, _emberData, _environment, _dataAdapterMixin) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var RESTAdapter = _emberData.default.RESTAdapter;\n\n var _default = RESTAdapter.extend(_dataAdapterMixin.default, {\n l10n: Ember.inject.service(),\n session: Ember.inject.service(),\n headers: Ember.computed('l10n.locale', function () {\n return {\n 'Accept-Language': this.get('l10n.locale')\n };\n }),\n authorizer: 'authorizer:application',\n host: _environment.default.apiBaseUrl,\n namespace: _environment.default.apiNamespace,\n coalesceFindRequests: true,\n shouldReloadAll: function shouldReloadAll() {\n return false;\n },\n shouldBackgroundReloadRecord: function shouldBackgroundReloadRecord() {\n return true;\n },\n pathForType: function pathForType(type) {\n return Ember.String.camelize(type);\n },\n\n /**\n * Intercepts responses and add `meta` properties to JSON payload.\n * Filters invalid responses and provides server error messages.\n *\n * @method handleResponse\n * @param {Number} status\n * @param {Object} headers\n * @param {Object} payload\n * @param {Object} requestData\n * @return {Mixed}\n */\n handleResponse: function handleResponse(status, headers, payload, requestData) {\n if (this.isSuccess(status, headers, payload)) {\n payload = this._normalizeResponse.apply(this, arguments);\n return this._super(status, headers, payload, requestData);\n }\n\n if (status === 401) {\n var session = this.get('session');\n\n if (session.get('isAuthenticated')) {\n session.invalidate(true);\n }\n }\n\n return this._super(status, headers, payload, requestData);\n },\n normalizeErrorResponse: function normalizeErrorResponse(status, headers, payload) {\n // Server responds with { error: \"Error message\" } object\n if (payload && payload.error) {\n return [{\n status: \"\".concat(status),\n title: 'The backend responded with an error',\n detail: \"\".concat(payload.error)\n }];\n }\n\n return this._super.apply(this, arguments);\n },\n\n /**\n * Transforms `payload` to contain `data` and `meta`.\n *\n * @method _normalizeResponse\n * @param {Number} status\n * @param {Object} headers\n * @param {Object} payload\n * @return {Object}\n */\n _normalizeResponse: function _normalizeResponse(status, headers, payload) {\n var response = {\n data: payload,\n meta: {\n maxPages: null,\n totalItems: null\n }\n };\n var lastPageRegex = /page=(\\d+)(?:[^,])*$/;\n var maxPagesMatch = (headers['x-link'] || '').match(lastPageRegex);\n\n if (maxPagesMatch) {\n response.meta.maxPages = parseInt(maxPagesMatch[1]);\n }\n\n if (headers['x-total-items']) {\n response.meta.totalItems = parseInt(headers['x-total-items']);\n }\n\n return response;\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/authorizer\", [\"exports\", \"ember-simple-auth/authorizers/base\"], function (_exports, _base) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _base.default.extend({\n authorize: function authorize(data, block) {\n block('Cropster-Authenticate', 'suppress-www-authenticate');\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/controller\", [\"exports\", \"@vollersgroup/hub-frontend/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n queryParams: ['addSampleToCart', 'sendMessage', 'messageTo', 'messageMode', 'messageSubject', 'messageContent', 'messageAttachListing', 'showLogin', 'gotoRoute', 'gotoModel', 'afterLogin', 'addToCart'],\n // Add sample to cart modal query params\n addSampleToCart: null,\n // Login modal query params\n showLogin: null,\n gotoRoute: null,\n gotoModel: null,\n afterLogin: null,\n // Message modal query params\n sendMessage: null,\n messageSubject: null,\n messageContent: null,\n messageMode: null,\n messageTo: null,\n messageAttachListing: null,\n // Buy coffee modal query params\n addToCart: null,\n // To indicate your current environment on qa\n environment: Ember.computed(function () {\n return _environment.default.hubEnv;\n }),\n environmentBadge: Ember.computed('environment', function () {\n return Ember.get(this, 'environment') === 'qa' ? window.location.host : null;\n }),\n actions: {\n dismissAddSampleToCartModal: function dismissAddSampleToCartModal() {\n this.set('addSampleToCart', null);\n },\n dismissMessageModal: function dismissMessageModal() {\n this.set('sendMessage', null);\n this.set('messageSubject', null);\n this.set('messageContent', null);\n this.set('messageMode', null);\n this.set('messageTo', null);\n this.set('messageAttachListing', null);\n },\n dismissLoginModal: function dismissLoginModal() {\n this.set('showLogin', null);\n this.set('gotoRoute', null);\n this.set('gotoModel', null);\n this.set('afterLogin', null);\n },\n dismissAddToCartModal: function dismissAddToCartModal() {\n this.set('addToCart', null);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/loading/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/loading/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Pi0KDnRw\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/application/loading/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/route\", [\"exports\", \"ember-data\", \"ember-simple-auth/mixins/application-route-mixin\", \"@vollersgroup/hub-frontend/config/environment\", \"ember-launch-darkly\"], function (_exports, _emberData, _applicationRouteMixin, _environment, _emberLaunchDarkly) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var _excluded = [\"clientSideId\"];\n\n function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\n function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n var NotFoundError = _emberData.default.NotFoundError;\n var UnauthorizedError = _emberData.default.UnauthorizedError;\n var TimeoutError = _emberData.default.TimeoutError;\n var ForbiddenError = _emberData.default.ForbiddenError;\n\n var _default = Ember.Route.extend(_applicationRouteMixin.default, {\n queryParams: {\n addSampleToCart: {\n replace: true\n },\n sendMessage: {\n replace: true\n },\n messageTo: {\n replace: true\n },\n messageMode: {\n replace: true\n },\n messageSubject: {\n replace: true\n },\n messageContent: {\n replace: true\n },\n messageAttachListing: {\n replace: true\n },\n showLogin: {\n replace: true\n },\n gotoRoute: {\n replace: true\n },\n gotoModel: {\n replace: true\n },\n afterLogin: {\n replace: true\n },\n addToCart: {\n replace: true\n }\n },\n // -------------------------------------------------------------------------\n // Dependencies\n keenTracking: Ember.inject.service(),\n userSession: Ember.inject.service(),\n ajax: Ember.inject.service(),\n moment: Ember.inject.service(),\n l10n: Ember.inject.service(),\n toast: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Dynamic injection of tags in . Generally,\n * application should always provide a canonical\n * url, but without params - duplicate content:\n * https://moz.com/learn/seo/duplicate-content\n * This makes use of `ember-cli-meta-tags`\n *\n * @property headTags\n * @type {Array}\n * @public\n */\n headTags: function headTags() {\n return [{\n type: 'link',\n tagId: 'canonical',\n attrs: {\n rel: 'canonical',\n href: window.location.href\n }\n }];\n },\n // -------------------------------------------------------------------------\n // Methods\n beforeModel: function beforeModel() {\n var _this = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var user, currentUser, _config$launchDarkly, clientSideId, options;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n user = {\n anonymous: true,\n key: 'anon'\n };\n\n if (_this.get('userSession.session.isAuthenticated')) {\n currentUser = _this.get('userSession.currentUser');\n user = {\n key: currentUser.id,\n name: currentUser.fullName,\n email: currentUser.email\n };\n }\n\n _config$launchDarkly = _environment.default.launchDarkly, clientSideId = _config$launchDarkly.clientSideId, options = _objectWithoutProperties(_config$launchDarkly, _excluded);\n _context.next = 5;\n return (0, _emberLaunchDarkly.initialize)(clientSideId, user, options);\n\n case 5:\n return _context.abrupt(\"return\", _context.sent);\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\n * Sets up misc things when app is ready\n * like tracking and default user settings.\n *\n * @public\n * @method afterModel\n * @return {Void}\n */\n afterModel: function afterModel() {\n this.get('keenTracking').addEvent('appLoad');\n var userSession = this.get('userSession');\n var l10n = this.get('l10n');\n var user = userSession.get('currentUser');\n var locale = user ? user.get('locale') : l10n.detectLocale();\n var loadLocale = l10n.setLocale(locale);\n return Ember.RSVP.Promise.all([this._super.apply(this, arguments), loadLocale]);\n },\n\n /**\n * Resets query parameters for app controller.\n *\n * @public\n * @method resetController\n * @param {Object} Controller\n * @return {Void}\n */\n resetController: function resetController(controller) {\n var queryParams = controller.get('queryParams');\n queryParams.forEach(function (param) {\n controller.set(param, null);\n });\n },\n\n /**\n * Noop for `ember-simple-auth`.\n *\n * @public\n * @method sessionAuthenticated\n * @return {Void}\n */\n sessionAuthenticated: function sessionAuthenticated() {// do nothing\n },\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Destroys current user session.\n *\n * @event invalidateSession\n * @return {Void}\n * @private\n */\n invalidateSession: function invalidateSession() {\n this.get('userSession').logout();\n },\n error: function error(_error, _transition) {\n var toast = Ember.get(this, 'toast');\n\n if (_error instanceof TimeoutError) {\n var message = Ember.get(this, 'l10n').t(\"I can't connect to the server. Are you still connected to the internet?\");\n toast.warning(message);\n } else if (_error instanceof UnauthorizedError || _error instanceof ForbiddenError) {\n var _message = Ember.get(this, \"You don't have a permission for this.\");\n\n toast.error(_message);\n this.transitionTo('/');\n } else if (_error instanceof NotFoundError) {\n this.transitionTo('/page-not-found');\n } else {\n // Last resort error handling\n // Transition into error view without changing URL\n this.intermediateTransitionTo('error', _error);\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/serializer\", [\"exports\", \"ember-data\", \"ember-inflector\"], function (_exports, _emberData, _emberInflector) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var RESTSerializer = _emberData.default.RESTSerializer;\n\n var _default = RESTSerializer.extend({\n normalize: function normalize(type, json, property) {\n // convert links to correct format\n if (Ember.typeOf(json.links) === 'array') {\n var links = {};\n json.links.forEach(function (link) {\n links[link.rel] = link.href;\n });\n json.links = links;\n }\n\n return this._super(type, json, property);\n },\n\n /**\n * Change the response format into a format the RESTAdapter expects.\n * The expected format is { myModel: {...}, meta: {...} }\n * The data is pre-processed by the application adapter's handleResponse function before it is passed to this function.\n *\n */\n normalizeResponse: function normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n var modelName = Ember.String.camelize(primaryModelClass.modelName);\n var modelNamePlural = (0, _emberInflector.pluralize)(modelName);\n var json = {\n meta: payload.meta\n };\n json[Ember.typeOf(payload.data) === 'array' ? modelNamePlural : modelName] = payload.data;\n return this._super(store, primaryModelClass, json, id, requestType);\n },\n normalizeDeleteRecordResponse: function normalizeDeleteRecordResponse() {\n return {\n meta: {}\n };\n },\n serializeIntoHash: function serializeIntoHash(data, type, record, options) {\n Ember.merge(data, this.serialize(record, options));\n },\n serialize: function serialize(record, options) {\n options = options ? options : {}; // handle the case where options is undefined\n\n options.includeId = true;\n return this._super.apply(this, [record, options]); // Call the parent serializer\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/application/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"DoV6D+Y2\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[21,\\\"head-layout\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[1,[27,\\\"page-title\\\",[\\\"V-Hub\\\"],null],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"environmentBadge\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"corner-ribbon corner-ribbon--primary corner-ribbon--default-left-top\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"environmentBadge\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addSampleToCart\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"sample-modal\\\",null,[[\\\"listingId\\\",\\\"closeModal\\\"],[[23,[\\\"addSampleToCart\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"dismissAddSampleToCartModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"sendMessage\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"message-modal\\\",null,[[\\\"messageTo\\\",\\\"messageMode\\\",\\\"messageSubject\\\",\\\"messageContent\\\",\\\"messageAttachListing\\\",\\\"closeModal\\\"],[[23,[\\\"messageTo\\\"]],[23,[\\\"messageMode\\\"]],[23,[\\\"messageSubject\\\"]],[23,[\\\"messageContent\\\"]],[23,[\\\"messageAttachListing\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"dismissMessageModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showLogin\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"login-modal\\\",null,[[\\\"afterLogin\\\",\\\"gotoRoute\\\",\\\"gotoModel\\\",\\\"closeModal\\\"],[[23,[\\\"afterLogin\\\"]],[23,[\\\"gotoRoute\\\"]],[23,[\\\"gotoModel\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"dismissLoginModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"addToCart\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"add-to-cart-modal\\\",null,[[\\\"listingId\\\",\\\"closeModal\\\"],[[23,[\\\"addToCart\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"dismissAddToCartModal\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"id\\\",\\\"modal-wormhole\\\"],[9],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/application/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/auction-participant/ability\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _emberCan.Ability.extend({\n userSession: Ember.inject.service(),\n roleLevel: Ember.computed.alias('userSession.currentUser.roleLevel'),\n canCreate: Ember.computed.gte('roleLevel', 3),\n canEdit: Ember.computed.gte('roleLevel', 3)\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/auction-participant/model\", [\"exports\", \"ember-data\", \"@vollersgroup/hub-frontend/custom-objects/address-object\"], function (_exports, _emberData, _addressObject) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Model = _emberData.default.Model;\n var belongsTo = _emberData.default.belongsTo;\n var attr = _emberData.default.attr;\n var PromiseObject = _emberData.default.PromiseObject;\n /**\n * A registration for an auction.\n *\n * @namespace Model\n * @class AuctionParticipant\n * @extends Model\n */\n\n var _default = Model.extend({\n userSession: Ember.inject.service(),\n store: Ember.inject.service(),\n\n /**\n * A randomized company number for this auction.\n *\n * @attribute companyHash\n * @type String\n */\n companyHash: attr('string'),\n\n /**\n * The status of the registration.\n *\n * @attribute registrationStatus\n * @type PENDING|ACCEPTED|REJECTED\n */\n registrationStatus: attr('string', {\n default: 'PENDING'\n }),\n\n /**\n * The date and time when registration was requested.\n *\n * @attribute registrationDate\n * @type Date\n */\n registrationDate: attr('timestamp'),\n\n /**\n * The email of the user who registered. Only visible for the auctioneer.\n *\n * @attribute email\n * @type String\n */\n userEmail: attr('string'),\n\n /**\n * Optional notes from auctioneer for this participant.\n *\n * @attribute auctioneerNotes\n * @type String\n * @optional\n */\n auctioneerNotes: attr('string'),\n\n /**\n * The shipping address of the order.\n *\n * @attribute shippingAddress\n * @type CustomObject.AddressObject\n * @optional\n */\n shippingAddress: attr('address', {\n defaultValue: function defaultValue() {\n return _addressObject.default.create();\n }\n }),\n\n /**\n * Information about importer when requesting sample\n * bundles during registration. (e.g.: \"SELF_IMPORT\")\n *\n * @attribute importerRequirement\n * @type String\n */\n importerRequirement: attr('string'),\n\n /**\n * The name for the importer if `importerRequirement` is \"IMPORTER_PROVIDED\"\n *\n * @attribute email\n * @type String\n */\n importerName: attr('string'),\n\n /**\n * The auction this registration belongs to.\n *\n * @attribute auction\n * @type Model.Auction\n */\n auction: belongsTo('auction', {\n async: true\n }),\n\n /**\n * The company who is registered.\n *\n * @attribute company\n * @type Model.Company\n */\n company: belongsTo('company', {\n async: true\n }),\n\n /**\n * The user of the company who initiated the registration.\n *\n * @attribute user\n * @type Model.User\n */\n user: belongsTo('user', {\n async: true\n }),\n isAccepted: Ember.computed.equal('registrationStatus', 'ACCEPTED'),\n isPending: Ember.computed.equal('registrationStatus', 'PENDING'),\n isRejected: Ember.computed.equal('registrationStatus', 'REJECTED'),\n\n /*\n * Returns true when someone from current's participant company is online.\n */\n isSomeoneFromCompanyOnline: Ember.computed('auction.onlineUsers.[]', 'company.id', function () {\n var companyId = Ember.get(this, 'company.id');\n return Ember.get(this, 'auction.onlineUsers').any(function (user) {\n return user.get('company.id') === companyId;\n });\n }),\n\n /**\n * Order of samples by participant for this auction.\n *\n * @property samplesOrder\n * @type {Model.Order}\n */\n samplesOrder: Ember.computed('auction.id', 'company.id', 'store', 'userSession.currentCompany.id', function () {\n return PromiseObject.create({\n promise: this.store.query('order', {\n sellerCompany: this.get('userSession.currentCompany.id'),\n buyerCompany: this.get('company.id'),\n auction: this.get('auction.id')\n }).then(function (orders) {\n return orders.get('firstObject');\n })\n });\n }),\n\n /**\n * Amount of sample bundles ordered by participant for this auction.\n *\n * @property sampleBundlesOrderedAmount\n * @type {Number}\n */\n sampleBundlesOrderedAmount: Ember.computed('samplesOrder.orderItemsSample.firstObject.initialAmount', function () {\n return Ember.get(this, 'samplesOrder.orderItemsSample.firstObject.initialAmount') || 0;\n }),\n\n /**\n * All bids by participant's company.\n */\n allParticipantBids: Ember.computed('auction.allAuctionBids.[]', 'companyHash', function () {\n var companyHash = Ember.get(this, 'companyHash');\n return Ember.get(this, 'auction.allAuctionBids').filterBy('participantName', companyHash);\n }),\n\n /**\n * All listings that this company bids on.\n */\n bidListings: Ember.computed('allParticipantBids.[]', function () {\n return Ember.get(this, 'allParticipantBids').mapBy('listing') // Might bid on some listings multiple times\n .uniqBy('id');\n }),\n\n /**\n * Bids which are currently highest bids by participant's company.\n */\n highestBids: Ember.computed('allParticipantBids.[]', function () {\n return Ember.get(this, 'allParticipantBids').filter(function (bid) {\n return bid.get('id') === bid.get('listing.highestBid.id');\n });\n }),\n\n /**\n * Listings which are currently highest bids by participant's company.\n */\n highestBidListings: Ember.computed.mapBy('highestBids', 'listing'),\n\n /**\n * Current total price of all highest bids by participant's company.\n */\n totalParticipantPrice: Ember.computed('highestBidListings.@each.totalPrice', function () {\n return Ember.get(this, 'highestBidListings').mapBy('totalPrice').reduce(function (sum, price) {\n return sum + price;\n }, 0).toFixed(2) * 1;\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/auction-participant/serializer\", [\"exports\", \"ember-data\", \"@vollersgroup/hub-frontend/application/serializer\"], function (_exports, _emberData, _serializer) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var EmbeddedRecordsMixin = _emberData.default.EmbeddedRecordsMixin;\n\n var _default = _serializer.default.extend(EmbeddedRecordsMixin, {});\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/auction/ability\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _emberCan.Ability.extend({\n userSession: Ember.inject.service(),\n roleLevel: Ember.computed.alias('userSession.currentUser.roleLevel'),\n canCreate: Ember.computed('roleLevel', 'userSession.currentCompany.auctionsEnabled', function () {\n return this.get('roleLevel') >= 3 && this.get('userSession.currentCompany.auctionsEnabled');\n }),\n canEdit: Ember.computed('roleLevel', 'model.isOwner', 'model.company.auctionsEnabled', 'model.archived', 'model.isClosed', 'model.isRunning', function () {\n if (Ember.get(this, 'roleLevel') < 3) {\n return false;\n }\n\n if (!Ember.get(this, 'model.isOwner')) {\n return false;\n }\n\n if (!Ember.get(this, 'model.company.auctionsEnabled')) {\n return false;\n }\n\n if (Ember.get(this, 'model.archived')) {\n return false;\n }\n\n if (Ember.get(this, 'model.isClosed')) {\n return false;\n }\n\n return !Ember.get(this, 'model.isRunning');\n }),\n canPublish: Ember.computed('roleLevel', 'userSession.currentCompany.auctionsEnabled', function () {\n return this.get('roleLevel') >= 3 && this.get('userSession.currentCompany.auctionsEnabled');\n }),\n canRegister: Ember.computed('model.status', 'userSession.session.isAuthenticated', 'model.isOwner', 'model.currentAuctionParticipant', 'roleLevel', function () {\n if (Ember.get(this, 'model.status') === 'CLOSED') {\n return false;\n } // Allow register to anonymous users\n\n\n if (!Ember.get(this, 'userSession.session.isAuthenticated')) {\n return true;\n }\n\n if (Ember.get(this, 'model.isOwner')) {\n return false;\n }\n\n if (Ember.get(this, 'model.currentAuctionParticipant')) {\n return false;\n }\n\n return Ember.get(this, 'roleLevel') >= 3;\n }),\n canBid: Ember.computed('roleLevel', 'model.isAccepted', 'model.isRunning', function () {\n if (Ember.get(this, 'roleLevel') < 3) {\n return false;\n }\n\n if (!Ember.get(this, 'model.isRunning')) {\n return false;\n }\n\n return Ember.get(this, 'model.isAccepted');\n }),\n // TODO: double check what is this used for exactly and rename to better reflect usage\n canBuy: Ember.computed('roleLevel', 'userSession.isAuthenticated', 'model.isOwner', function () {\n if (Ember.get(this, 'roleLevel') < 3) {\n return false;\n }\n\n if (!Ember.get(this, 'userSession.isAuthenticated')) {\n return false;\n }\n\n return !Ember.get(this, 'model.isOwner');\n }),\n canViewAutobids: Ember.computed.gte('roleLevel', 3)\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/auction/adapter\", [\"exports\", \"@vollersgroup/hub-frontend/application/adapter\"], function (_exports, _adapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _adapter.default.extend({\n query: function query(store, type, _query) {\n if (typeof _query.company === 'undefined') {\n return this._super(store, type, _query);\n }\n\n var url = [];\n var host = Ember.get(this, 'host');\n var prefix = this.urlPrefix();\n url.push('company/' + _query.company + '/auction');\n\n if (prefix) {\n url.unshift(prefix);\n }\n\n url = url.join('/');\n\n if (!host && url && url.charAt(0) !== '/') {\n url = '/' + url;\n }\n\n delete _query.company;\n\n if (this.sortQueryParams) {\n _query = this.sortQueryParams(_query);\n }\n\n return this.ajax(url, 'GET', {\n data: _query\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/auction/model\", [\"exports\", \"ember-data\", \"moment\", \"ember-can\", \"ember-cp-validations\", \"@vollersgroup/hub-frontend/config/environment\"], function (_exports, _emberData, _moment, _emberCan, _emberCpValidations, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Model = _emberData.default.Model;\n var belongsTo = _emberData.default.belongsTo;\n var hasMany = _emberData.default.hasMany;\n var attr = _emberData.default.attr;\n var PromiseArray = _emberData.default.PromiseArray;\n var Validations = (0, _emberCpValidations.buildValidations)({\n name: {\n validators: [(0, _emberCpValidations.validator)('length', {\n allowNone: false,\n min: 3,\n message: 'Please enter at least 3 characters.'\n })]\n },\n bidStepAmount: {\n validators: [(0, _emberCpValidations.validator)('number', {\n allowNone: false,\n allowString: false,\n gt: 0,\n message: 'Please enter a number greater than 0.'\n })]\n },\n about: {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter a short description.'\n })]\n },\n auctionPolicy: {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter an auction policy.'\n })]\n },\n slug: {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter at least 4 characters with at least 1 letter. Only lowercase letters, numbers and dashes are allowed.'\n }), (0, _emberCpValidations.validator)('slug', {\n description: 'Auction URL'\n }), (0, _emberCpValidations.validator)('unique-auction-slug', {\n disabled: Ember.computed.not('model.isNew')\n })]\n },\n startedDate: {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter a future date and start time for the auction.'\n }), (0, _emberCpValidations.validator)('date', {\n after: 'now',\n precision: 'minute',\n message: 'Auction start time must be future date.',\n // In case the auction is paused, do not validate date for future value.\n disabled: Ember.computed.bool('model.isOnHold')\n })]\n },\n finalSampleOrderDate: {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n disabled: Ember.computed.equal('model.orderableSampleBundles', 0),\n message: 'Please select a date that samples can be ordered until.'\n }), (0, _emberCpValidations.validator)('date', {\n onOrAfter: 'now',\n precision: 'day',\n message: 'The date must be today or some future date.',\n disabled: Ember.computed('model.orderableSampleBundles', 'model.isOnHold', function () {\n if (Ember.get(this, 'model.orderableSampleBundles') === 0) {\n // If there are no samples to order, no need to fill in this field.\n return true;\n } // In case the auction is paused, no need to validate for future value.\n\n\n return !!Ember.get(this, 'model.isOnHold');\n })\n }), (0, _emberCpValidations.validator)('date', {\n dependentKeys: ['model.startedDate'],\n onOrBefore: Ember.computed.alias('model.startedDate'),\n precision: 'day',\n message: 'The date must be on or before the auction start date.',\n disabled: Ember.computed('model.orderableSampleBundles', 'model.isOnHold', function () {\n if (Ember.get(this, 'model.orderableSampleBundles') === 0) {\n // If there are no samples to order, no need to fill in this field.\n return true;\n } // In case the auction is paused, no need to validate for future value.\n\n\n return !!Ember.get(this, 'model.isOnHold');\n })\n })]\n }\n });\n /**\n * The auction model\n *\n * @namespace Model\n * @class Auction\n * @extends Model\n * @uses Mixin.Can\n */\n\n var _default = Model.extend(_emberCan.CanMixin, Validations, {\n ajax: Ember.inject.service(),\n userSession: Ember.inject.service(),\n auctionManager: Ember.inject.service(),\n availableData: Ember.inject.service(),\n\n /**\n * The title of the auction\n *\n * @attribute name\n * @type String\n */\n name: attr('string'),\n\n /**\n * A human-readable id for the URL.\n *\n * @attribute slug\n * @type String\n */\n slug: attr('string'),\n\n /**\n * The start date of the auction\n *\n * @attribute startedDate\n * @type Date\n */\n startedDate: attr('timestamp'),\n\n /**\n * Number of milliseconds till the auction end.\n * Provided by server. It's more accurate than closedDate\n * and doesn't require client's time to be correct.\n *\n * @attribute remainingClockTime\n * @type Number\n */\n remainingClockTime: attr('number'),\n\n /**\n * A short about text for this auction.\n *\n * @attribute about\n * @type String\n */\n about: attr('string'),\n\n /**\n * The minimum bid step for this auction. e.g. 0.1\n *\n * @attribute bidStepAmount\n * @type Number\n */\n bidStepAmount: attr('number'),\n\n /**\n * The currency for the bid step. Has to be the same as the shop's currency.\n *\n * @attribute bidStepCurrency\n * @type String\n */\n bidStepCurrency: attr('string', {\n defaultValue: 'USD'\n }),\n\n /**\n * The type of this auction. e.g. \"HELMSMAN\"\n *\n * @attribute type\n * @type String\n * @default \"HELMSMAN\"\n */\n type: attr('string', {\n defaultValue: 'HELMSMAN'\n }),\n\n /**\n * The duration of this auction. For Helmsman auctions, this specifies for how long no bids have to occur to finish the auction.\n * Should be in milliseconds.\n *\n * @attribute duration\n * @type Number\n */\n duration: attr('number'),\n\n /**\n * If manual verification of all registrations is required for this auction.\n *\n * @attribute registrationRequired\n * @type Boolean\n * @default false\n */\n registrationRequired: attr('boolean', {\n defaultValue: false\n }),\n\n /**\n * The final date at which samples can be ordered for this auction.\n *\n * @attribute finalSampleOrderDate\n * @type Date\n */\n finalSampleOrderDate: attr('timestamp'),\n\n /**\n * The policy for this auction. Every attendee has to accept this policy before registering for the auction.\n *\n * @attribute auctionPolicy\n * @type String\n */\n auctionPolicy: attr('string'),\n\n /**\n * A longer information text about the auction. Can include markdown.\n *\n * @attribute auctionInformation\n * @type String\n */\n auctionInformation: attr('string'),\n\n /**\n * The max. number of sample bundles which can be ordered for this auction.\n *\n * @attribute orderableSampleBundles\n * @type Number\n */\n orderableSampleBundles: attr('number'),\n\n /**\n * The status of this auction.\n *\n * @attribute status\n * @type DRAFT|ACTIVE|CLOSED|INACTIVE|RUNNING|ON_HOLD\n */\n status: attr('string', {\n defaultValue: 'ACTIVE'\n }),\n\n /**\n * If the auction is archived.\n *\n * @attribute isArchived\n * @type Boolean\n * @default false\n */\n archived: attr('boolean', {\n defaultValue: false\n }),\n\n /**\n * If the auction timer start was forced even if\n * there have not been bids on all listings yet.\n *\n * @attribute timerStartForced\n * @type Boolean\n * @default false\n */\n timerStartForced: attr('boolean', {\n defaultValue: false\n }),\n\n /**\n * The number of listings this auction has.\n *\n * @attribute listingActiveCount\n * @type Number\n * @default 0\n */\n listingActiveCount: attr('number', {\n defaultValue: 0\n }),\n\n /**\n * The end date of the auction.\n *\n * @attribute closedDate\n * @type Date\n * @readOnly\n */\n closedDate: attr('timestamp'),\n\n /**\n * Number of milliseconds till the auction start.\n * Provided by server. It's more accurate than startedDate\n * and doesn't require client's time to be correct.\n *\n * @property remainingTimeToStart\n * @type Number\n */\n remainingTimeToStart: attr('number'),\n\n /**\n * The shop this auction belongs to.\n *\n * @attribute shop\n * @type Model.Shop\n */\n shop: belongsTo('shop', {\n async: true\n }),\n\n /**\n * The company this auction belongs to.\n *\n * @attribute company\n * @type Model.Company\n */\n company: belongsTo('company', {\n async: true,\n inverse: null\n }),\n\n /*\n * Flag that validates whether air shipping is available.\n */\n airShippingAvailable: attr('boolean'),\n\n /*\n * Returns true if the auction timer is running.\n */\n isTimerRunning: Ember.computed.bool('remainingClockTime'),\n\n /*\n * List of online users of participating companies for this auction.\n * Available only to auction owner.\n * NOTE: Do not use this property directly, use onlineUsers\n * where we check for permissions to avoid unnecessary requests.\n */\n users: hasMany('user', {\n async: true\n }),\n onlineUsers: Ember.computed('users', 'isOwner', function () {\n if (!Ember.get(this, 'isOwner')) {\n return [];\n }\n\n return Ember.get(this, 'users');\n }),\n\n /**\n * The current user's auction participant for this auction.\n * Is null if the user is not registered.\n *\n * @property currentAuctionParticipant\n * @type Model.AuctionParticipant\n */\n currentAuctionParticipant: Ember.computed('id', 'userSession.auctionRegistrations.{isFulfilled,length}', function () {\n var _this = this;\n\n var registrations = this.get('userSession.auctionRegistrations');\n var isRegistered = null;\n registrations.forEach(function (registration) {\n if (registration.get('auction.id') === _this.get('id')) {\n isRegistered = registration;\n }\n });\n return isRegistered;\n }),\n\n /**\n * The total price of all samples for this auction.\n *\n * @property sampleBundlePrice\n * @type {Number}\n */\n sampleBundlePrice: Ember.computed('listings.@each.samplePrice', 'listings.[]', function () {\n var listings = Ember.get(this, 'listings');\n\n if (Ember.isEmpty(listings)) {\n return 0;\n }\n\n return Ember.get(this, 'listings').mapBy('samplePrice').filter(function (p) {\n return !Ember.isEmpty(p);\n }).reduce(function (sum, price) {\n return sum + price;\n }, 0).toFixed(2) * 1;\n }),\n\n /**\n * If the user's company is currently registered to the auction.\n */\n isAccepted: Ember.computed.alias('currentAuctionParticipant.isAccepted'),\n typeENUM: Ember.computed('type', function () {\n return 'Helmsman';\n }),\n\n /**\n * The end date of the auction as time in the format 2:59 (mm:ss)\n *\n * @property endDateDuration\n * @type String\n * @readOnly\n */\n endDateDuration: Ember.computed('remainingClockTime', function () {\n var remainingClockTime = Ember.get(this, 'remainingClockTime');\n\n if (!remainingClockTime) {\n return '00:00';\n }\n\n return remainingClockTime > 0 ? (0, _moment.default)(remainingClockTime).format('mm:ss') : '00:00';\n }),\n\n /*\n * This \"kind of observer\" subtracts time from remaining time every second\n * if the auction is running. remainingClockTime property is updated with every bid\n * to it's original value.\n */\n _subtractRemainingClockTime: Ember.on('didLoad', function subtractRemainingClockTime() {\n if (_environment.default.environment === 'test' || Ember.get(this, 'isDestroyed') || Ember.get(this, 'isClosed')) {\n return;\n }\n\n Ember.run.later(this, subtractRemainingClockTime, 1000);\n\n if (!Ember.get(this, 'isRunning')) {\n return;\n }\n\n var remainingClockTime = Ember.get(this, 'remainingClockTime');\n\n if (!remainingClockTime || remainingClockTime <= 0) {\n return;\n }\n\n var newTime = remainingClockTime - 1000;\n Ember.set(this, 'remainingClockTime', newTime);\n }),\n\n /**\n * Returns true if auction is active or running.\n *\n * @property isActiveOrRunning\n * @type Boolean\n */\n isActiveOrRunning: Ember.computed('status', function () {\n var status = this.get('status');\n return status === 'ACTIVE' || status === 'RUNNING';\n }),\n\n /**\n * If the auction is active.\n */\n isActive: Ember.computed.equal('status', 'ACTIVE'),\n\n /**\n * If the auction is draft.\n */\n isDraft: Ember.computed.equal('status', 'DRAFT'),\n\n /**\n * If the auction is inactive.\n */\n isInactive: Ember.computed.equal('status', 'INACTIVE'),\n\n /**\n * If the auction is currently running.\n */\n isRunning: Ember.computed.equal('status', 'RUNNING'),\n\n /**\n * If the auction is on hold.\n */\n isOnHold: Ember.computed.equal('status', 'ON_HOLD'),\n\n /**\n * If the auction is currently closed.\n */\n isClosed: Ember.computed.equal('status', 'CLOSED'),\n\n /**\n * If it is possible to order samples for this auction.\n *\n * @property canOrderSamples\n * @type Boolean\n */\n // TODO: This is permission check. Should be in ability.js\n canOrderSamples: Ember.computed('hasAvailableSamples', 'currentAuctionParticipant.isPending', 'currentAuctionParticipant.isAccepted', 'currentAuctionParticipant.isRejected', function () {\n if (!Ember.get(this, 'hasAvailableSamples')) {\n return false;\n }\n\n if (Ember.get(this, 'currentAuctionParticipant.isPending')) {\n return true;\n }\n\n if (Ember.get(this, 'currentAuctionParticipant.isAccepted')) {\n return true;\n }\n\n if (Ember.get(this, 'currentAuctionParticipant.isRejected')) {\n return false;\n }\n\n return false;\n }),\n\n /**\n * If this auction has available samples to order.\n * @property hasAvailableSamples\n * @type Boolean\n */\n hasAvailableSamples: Ember.computed('isActive', 'orderableSampleBundles', 'finalSampleOrderDate', function () {\n if (!Ember.get(this, 'isActive')) {\n return false;\n }\n\n if (!Ember.get(this, 'orderableSampleBundles')) {\n return false;\n }\n\n if (!(0, _moment.default)(this.get('finalSampleOrderDate')).isAfter((0, _moment.default)())) {\n return false;\n }\n\n return true;\n }),\n\n /**\n * Get all listings for this auction.\n *\n * @attribute listings\n * @type Model.Listing[]\n */\n listings: hasMany('listing', {\n async: true\n }),\n\n /**\n * At the moment server delivers ONE autoBid PER listing\n * within this collection. We may change this serverside\n * on later point of time if needed for autoBid history\n * or something else. Please see {Model.Listing} for\n * retrieval of corresponding autoBid.\n *\n * @property autoBids\n * @type {Array}\n */\n autoBids: Ember.computed('ajax', 'id', 'status', 'userSession.currentCompany.id', 'userSession.session.isAuthenticated', function () {\n if (!this.get('userSession.session.isAuthenticated') || !this.can('view autobids for auction') || this.get('status') !== 'RUNNING' && this.get('status') !== 'CLOSED' && this.get('status') !== 'ON_HOLD') {\n return [];\n }\n\n return PromiseArray.create({\n promise: this.get('ajax').request('/auction/' + this.get('id') + '/autoBid')\n });\n }),\n\n /**\n * The highest bids of all the auction's listings.\n *\n * @property highestBids\n * @type {Model.Bid[]}\n * @readOnly\n * @protected\n */\n highestBids: Ember.computed('listings.@each.highestBid', function () {\n var listings = this.get('listings');\n return PromiseArray.create({\n promise: Ember.RSVP.all(listings.mapBy('highestBid'))\n });\n }),\n\n /*\n * All bids in auction.\n */\n allAuctionBids: Ember.computed('listings.@each.bids', function () {\n return Ember.get(this, 'listings').mapBy('bids').filterBy('length') // Flatten all bids into one array\n .reduce(function (allBids, bids) {\n return allBids.concat(bids.toArray());\n }, []);\n }),\n\n /**\n * Total auction price for the current auction.\n * @type Number\n */\n totalAuctionPrice: Ember.computed('listings.@each.totalPrice', function () {\n return Ember.get(this, 'listings').mapBy('totalPrice').reduce(function (sum, price) {\n return sum + price;\n }, 0).toFixed(2) * 1;\n }),\n\n /**\n * Flag if current user is auctioneer.\n *\n * @property isOwner\n * @type Boolean\n *\n */\n isOwner: Ember.computed('userSession.currentCompany.id', 'company.id', function () {\n var currentCompanyId = Ember.get(this, 'userSession.currentCompany.id');\n var auctionCompanyId = Ember.get(this, 'company.id');\n\n if (!currentCompanyId || !auctionCompanyId) {\n return false;\n }\n\n return currentCompanyId === auctionCompanyId;\n }),\n\n /**\n * Get all registrations for this auction.\n *\n * @property auctionRegistrations\n * @type Model.AuctionParticipant[]\n */\n auctionRegistrations: Ember.computed('id', 'store', 'userSession.currentCompany.id', function () {\n return this.get('store').query('auction-participant', {\n auctioneerCompany: this.get('userSession.currentCompany.id'),\n auctions: [this.get('id')]\n });\n }),\n\n /**\n * Get all accepted registrations for this auction.\n */\n auctionRegistrationsRegistered: Ember.computed.filterBy('auctionRegistrations', 'isAccepted', true),\n\n /**\n * Get all pending registrations for this auction.\n */\n auctionRegistrationsPending: Ember.computed.filterBy('auctionRegistrations', 'isPending', true),\n\n /**\n * Available importer requirements.\n */\n availableImporterRequirements: Ember.computed('airShippingAvailable', 'availableData.importerRequirements', function () {\n var importerRequirements = Ember.get(this, 'availableData.importerRequirements');\n\n if (!Ember.get(this, 'airShippingAvailable')) {\n return importerRequirements.filter(function (r) {\n return r.value !== 'AIR_SHIPPING';\n });\n }\n\n return importerRequirements;\n }).readOnly(),\n\n /**\n * Initializes auction via manager instance.\n *\n * @event _initAuction\n * @private\n */\n _initAuction: Ember.on('didLoad', function () {\n this.get('auctionManager').initAuction(this);\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/authenticators/custom\", [\"exports\", \"ember-simple-auth/authenticators/base\", \"ember-launch-darkly\"], function (_exports, _base, _emberLaunchDarkly) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _base.default.extend({\n l10n: Ember.inject.service(),\n store: Ember.inject.service(),\n ajax: Ember.inject.service(),\n router: Ember.inject.service(),\n userSession: Ember.inject.service(),\n restore: function restore(data) {\n var _this = this;\n\n return new Ember.RSVP.Promise(function (resolve, reject) {\n _this.get('ajax').request('/user/loggedIn').then(function (response) {\n if (!Ember.get(response, 'loggedIn')) {\n reject();\n return;\n }\n\n _this.get('ajax').request('/user/current').then(function (response) {\n _this.get('store').pushPayload('user', {\n user: response\n });\n\n var user = _this.get('store').peekRecord('user', response.id);\n\n _this.get('userSession').loggedIn(user);\n\n resolve(data);\n }, function () {\n reject();\n });\n });\n });\n },\n authenticate: function authenticate(credentials) {\n var _this2 = this;\n\n var l10n = this.get('l10n');\n return new Ember.RSVP.Promise(function (resolve, reject) {\n _this2.get('ajax').post('/login', {\n data: {\n username: credentials.email,\n password: credentials.password,\n rememberMe: credentials.rememberMe ? 1 : 0\n },\n dataType: 'text',\n contentType: 'application/x-www-form-urlencoded; charset=utf-8'\n }).then(function () {\n _this2.get('ajax').request('/user/current').then(function (response) {\n _this2.get('store').pushPayload('user', {\n user: response\n });\n\n var user = _this2.get('store').peekRecord('user', response.id);\n\n _this2.get('userSession').loggedIn(user);\n\n l10n.setLocale(user.get('locale'));\n (0, _emberLaunchDarkly.identify)({\n key: user.id,\n fullName: user.fullName,\n email: user.email\n });\n resolve({\n isAuthenticated: true\n });\n });\n }).catch(function () {\n l10n.setLocale(l10n.detectLocale());\n var errorMessage = l10n.t('Invalid Username / Password combination');\n reject(errorMessage);\n });\n });\n },\n invalidate: function invalidate(data, sessionTimeout) {\n var _this3 = this;\n\n var resetTranslationLocale = function resetTranslationLocale() {\n var l10n = _this3.get('l10n');\n\n var locale = l10n.detectLocale();\n l10n.setLocale(locale);\n }; // server responded with 401 previously,\n // so no /logout request necessary here!\n\n\n if (sessionTimeout === true) {\n resetTranslationLocale();\n return Ember.RSVP.resolve();\n }\n\n return new Ember.RSVP.Promise(function (resolve) {\n _this3.get('ajax').post('/logout', {\n dataType: 'text'\n }).then(resolve, resolve).finally(resetTranslationLocale);\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/bid/ability\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _emberCan.Ability.extend({\n userSession: Ember.inject.service(),\n canView: Ember.computed.bool('userSession.currentUser')\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/bid/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Model = _emberData.default.Model;\n var belongsTo = _emberData.default.belongsTo;\n var attr = _emberData.default.attr;\n\n /**\n * The bid model\n *\n * @namespace Model\n * @class Bid\n * @extends Model\n */\n var _default = Model.extend({\n /**\n * The amount of money which is bid per base unit.\n *\n * @attribute bidAmount\n * @type Number\n */\n bidAmount: attr('number'),\n\n /**\n * The currency of the bid.\n *\n * @attribute bidCurrency\n * @type Number\n */\n bidCurrency: attr('string'),\n\n /**\n * The date the bid was made.\n *\n * @attribute createdDate\n * @type Date\n */\n createdDate: attr('timestamp'),\n\n /**\n * The listing the bid belongs to.\n *\n * @attribute listing\n * @type Model.Listing\n */\n listing: belongsTo('listing', {\n async: true,\n inverse: 'bids'\n }),\n\n /**\n * The company that has made this bid.\n * Is null during auctions if not your own company.\n *\n * @attribute company\n * @type Model.Company|null\n */\n company: belongsTo('company', {\n async: true\n }),\n\n /**\n * The user that has made this bid.\n * Is null during auctions if not by your own company.\n *\n * @attribute user\n * @type Model.User|null\n */\n user: belongsTo('user', {\n async: true\n }),\n\n /**\n * The ID of the autoBid of this bid.\n * This is only set for your own bids or if you are an admin of this auction.\n *\n * @attribute autoBid\n * @type String\n * @optional\n */\n autoBid: attr('string'),\n\n /**\n * Anonymized company number\n * This number is distinct for each auction.\n * It is used to track if the same company is bidding repeatedly, but without knowing which company it actually is.\n *\n * @attribute participantName\n * @type String\n */\n participantName: attr('string'),\n\n /**\n * The id of the bidding auction participant.\n *\n * @attribute auctionParticipant\n * @type String\n */\n auctionParticipant: attr('string'),\n\n /**\n * The id as a number. Mostly used in sorting operations.\n *\n * @attribute numericId\n * @type Number\n */\n numericId: Ember.computed('id', function () {\n return Ember.get(this, 'id') * 1 || null;\n }),\n isOwn: Ember.computed('auctionParticipant', 'listing.auction.currentAuctionParticipant.id', function () {\n if (!this.get('listing.auction.currentAuctionParticipant.id')) {\n return false;\n }\n\n return this.get('auctionParticipant') === this.get('listing.auction.currentAuctionParticipant.id');\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/blacklist-item/model\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Model = _emberData.default.Model;\n var belongsTo = _emberData.default.belongsTo;\n var attr = _emberData.default.attr;\n\n var _default = Model.extend({\n notes: attr('string'),\n created: attr('timestamp'),\n flaggedCompany: belongsTo('company', {\n async: true\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/cart/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n flashMessages: Ember.inject.service()\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/cart/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n flashMessages: Ember.inject.service(),\n userSession: Ember.inject.service(),\n beforeModel: function beforeModel() {\n return Ember.RSVP.Promise.all([this._super.apply(this, arguments), this.get('userSession.currentUser'), this.get('userSession.currentCompany')]);\n },\n afterModel: function afterModel() {\n if (!this.can('create order')) {\n this.transitionTo('index');\n return;\n }\n\n return this._super.apply(this, arguments);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/cart/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Az3SPycI\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Shopping cart\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"header\\\"],[11,\\\"class\\\",\\\"\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"header-bar\\\"],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"flex-grow-1 padding-bottom-3 section--highlighted\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"flash-messages\\\",null,[[\\\"noMargin\\\"],[true]],{\\\"statements\\\":[[0,\\\" \\\"],[4,\\\"link-to\\\",[\\\"admin.orders\\\"],[[\\\"class\\\"],[\\\"button\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"View your orders\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[21,\\\"shopping-cart\\\"],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"footer-main\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/cart/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n checkout: Ember.inject.service(),\n queryParams: ['cart'],\n cart: null\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/index/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n checkout: Ember.inject.service(),\n l10n: Ember.inject.service(),\n shippingCountryError: null,\n showBillingAddress2: false,\n showShippingAddress2: false,\n _observer: Ember.on('init', Ember.observer('checkout.cart', 'checkout.shippingCountry', 'checkout.billingAddress.addressAddition', 'checkout.shippingAddress.addressAddition', function () {\n if (Ember.get(this, 'checkout.shippingAddress.addressAddition')) {\n Ember.set(this, 'showShippingAddress2', true);\n }\n\n if (Ember.get(this, 'checkout.billingAddress.addressAddition')) {\n Ember.set(this, 'showBillingAddress2', true);\n }\n\n this._validateShippingCountry();\n })),\n _validateShippingCountry: function _validateShippingCountry() {\n var _this = this;\n\n var shippingCountry = Ember.get(this, 'checkout.shippingCountry');\n var cart = Ember.get(this, 'checkout.cart');\n\n if (!cart) {\n return;\n }\n\n Ember.get(cart, 'shop').then(function (shop) {\n var shippingInfos = Ember.get(shop, 'shippingInfos');\n\n if (Ember.isEmpty(shippingInfos)) {\n return;\n }\n\n var servicedCountry = shippingInfos.findBy('country', shippingCountry);\n var message = Ember.get(_this, 'l10n').t('Sorry, but this shipping country is not serviced by shop {{shopName}}.', {\n shopName: Ember.get(shop, 'name')\n });\n Ember.set(_this, 'shippingCountryError', !servicedCountry ? message : null);\n });\n },\n actions: {\n toggleShippingAddress2: function toggleShippingAddress2() {\n this.toggleProperty('showShippingAddress2');\n },\n toggleBillingAddress2: function toggleBillingAddress2() {\n this.toggleProperty('showBillingAddress2');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/index/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {\n checkout: Ember.inject.service(),\n flashMessages: Ember.inject.service(),\n beforeModel: function beforeModel() {\n this.get('checkout').set('currentStep', 0);\n },\n actions: {\n completeStep: function completeStep() {\n var checkout = this.get('checkout');\n\n if (checkout.get('billingIsShipping')) {\n var billingAddress = checkout.get('billingAddress');\n billingAddress.copyTo(checkout.get('shippingAddress'));\n }\n\n if (!checkout.get('shippingAddress.isValid') || !checkout.get('billingAddress.isValid')) {\n this.get('flashMessages').addError(this.get('l10n').t('Please fill in all required fields.'));\n return false;\n }\n\n var gotoRoute = checkout.completeStep(0);\n\n if (gotoRoute) {\n this.transitionTo(gotoRoute);\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/index/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"zHxc+Rbe\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section flex-grow-1 padding-bottom-4\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Address information\\\"],null]],null],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper wrapper--small padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"text-center margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Billing address\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[21,\\\"flash-messages\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"shippingCountryError\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"ERROR\\\",\\\"margin-bottom-4\\\",[23,[\\\"error\\\",\\\"errorTitle\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"shippingCountryError\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"form\\\"],[11,\\\"class\\\",\\\"form--shipping-address\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-country\\\"],[9],[1,[27,\\\"t\\\",[\\\"Country\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input--full\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select-country\\\",null,[[\\\"id\\\",\\\"required\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\"],[\\\"billing-country\\\",true,\\\"input-full js-checkout-index-billing-country\\\",[27,\\\"t\\\",[\\\"Select your country\\\"],null],[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"country\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-full-name\\\"],[9],[1,[27,\\\"t\\\",[\\\"Full name\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-billing-fullname\\\",\\\"billing-full-name\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"fullName\\\"]],[27,\\\"t\\\",[\\\"Enter your full name here\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-company\\\"],[9],[1,[27,\\\"t\\\",[\\\"Company\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-billing-company-name\\\",\\\"billing-company\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"company\\\"]],[27,\\\"t\\\",[\\\"Enter your company here\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-street\\\"],[9],[1,[27,\\\"t\\\",[\\\"Address\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"showBillingAddress2\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button input__txt--icon button--icon\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/add-line.svg\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Show address line 2\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleBillingAddress2\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-billing-street\\\",\\\"billing-street\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"Enter your street here\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showBillingAddress2\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-street2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Address line 2\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"input__txt input--full js-checkout-index-billing-address-line-two\\\",\\\"billing-street2\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"addressAddition\\\"]],[27,\\\"t\\\",[\\\"Optional address line 2\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-zip\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Zip code\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-billing-zip\\\",\\\"billing-zip\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"zip\\\"]],[27,\\\"t\\\",[\\\"Your zip code\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-state\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"State\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"input__txt input--full js-checkout-index-billing-state\\\",\\\"billing-state\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"state\\\"]],[27,\\\"t\\\",[\\\"Your state\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-city\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"City\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-billing-city\\\",\\\"billing-city\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"Your city\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"billing-phone\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Phone number\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-billing-phone\\\",\\\"billing-phone\\\",[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"phone\\\"]],[27,\\\"t\\\",[\\\"Your phone number\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"hasVatNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"vatNumber\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"VAT number\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-billing-vat\\\",\\\"vatNumber\\\",[23,[\\\"checkout\\\",\\\"vatNumber\\\"]],[27,\\\"t\\\",[\\\"Enter your VAT number\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\"],[\\\"input__checkbox\\\",\\\"shipping-same-as-billing\\\",[23,[\\\"checkout\\\",\\\"billingIsShipping\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label input--full\\\"],[11,\\\"for\\\",\\\"shipping-same-as-billing\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Shipping address is the same as billing address\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"checkout\\\",\\\"billingIsShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"text-center margin-top-4 margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Shipping address\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-country\\\"],[9],[1,[27,\\\"t\\\",[\\\"Country\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input--full\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select-country\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"shipping-country\\\",\\\"js-checkout-index-shipping-country\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"country\\\"]],[27,\\\"t\\\",[\\\"Select your country\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-full-name\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Full name\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-shipping-fullname\\\",\\\"shipping-full-name\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"fullName\\\"]],[27,\\\"t\\\",[\\\"Enter your full name here\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-company\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Company\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-shipping-company-name\\\",\\\"shipping-company\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"company\\\"]],[27,\\\"t\\\",[\\\"Enter your company here\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-street\\\"],[9],[1,[27,\\\"t\\\",[\\\"Address\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"showShippingAddress2\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button input__txt--icon button--icon\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/add-line.svg\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Show address line 2\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleShippingAddress2\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-shipping-street\\\",\\\"shipping-street\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"street\\\"]],[27,\\\"t\\\",[\\\"Enter your street here\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showShippingAddress2\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-street-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Address line 2\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"input__txt input--full js-checkout-index-shipping-address-line-two\\\",\\\"shipping-street-2\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"addressAddition\\\"]],[27,\\\"t\\\",[\\\"Optional address line 2\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-zip\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Zip code\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-shipping-zip\\\",\\\"shipping-zip\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"zip\\\"]],[27,\\\"t\\\",[\\\"Your zip code\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-state\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"State\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\"],[\\\"input__txt input--full js-checkout-index-shipping-state\\\",\\\"shipping-state\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"state\\\"]],[27,\\\"t\\\",[\\\"Your state\\\"],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-city\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"City\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-shipping-city\\\",\\\"shipping-city\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"city\\\"]],[27,\\\"t\\\",[\\\"Your city\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping-phone\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Phone number\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"placeholder\\\",\\\"required\\\"],[\\\"input__txt input--full js-checkout-index-shipping-phone\\\",\\\"shipping-phone\\\",[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"phone\\\"]],[27,\\\"t\\\",[\\\"Your phone number\\\"],null],true]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[12,\\\"disabled\\\",[21,\\\"shippingCountryError\\\"]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Next step\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"completeStep\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/checkout/index/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/payment/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n checkout: Ember.inject.service()\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/payment/route\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend({\n checkout: Ember.inject.service(),\n flashMessages: Ember.inject.service(),\n beforeModel: function beforeModel() {\n var checkout = this.get('checkout');\n var checkoutSteps = checkout.get('steps');\n\n if (checkoutSteps.get('length') < 4 || !Ember.get(checkoutSteps[1], 'isDone')) {\n this.transitionTo(Ember.get(checkoutSteps[1], 'route'));\n return;\n }\n\n this.get('checkout').set('currentStep', 2);\n },\n _processCreditCard: function _processCreditCard(_card) {},\n actions: {\n resetPaymentMethod: function resetPaymentMethod() {\n var checkout = this.get('checkout');\n checkout.set('cardEnding', null);\n checkout.set('cardToken', null);\n checkout.set('cardType', null);\n Ember.set(checkout.get('steps')[2], 'isDone', false);\n },\n updateCreditCard: function updateCreditCard(card) {\n var checkout = this.get('checkout');\n\n if (card) {\n var cardNumber = Ember.get(card, 'number');\n var cardType = Ember.get(card, 'type');\n checkout.set('cardEnding', cardNumber.substring(cardNumber.length - 4));\n checkout.set('cardType', cardType);\n\n this._processCreditCard(card);\n } else {\n checkout.set('cardEnding', null);\n checkout.set('cardToken', null);\n checkout.set('cardType', null);\n }\n },\n completeStep: function completeStep() {\n var checkout = this.get('checkout');\n var flashMessages = this.get('flashMessages');\n flashMessages.clear();\n\n if (!checkout.get('cardToken')) {\n flashMessages.addError(this.get('l10n').t('You have to complete your payment information. Please enter a valid credit card.'));\n return;\n }\n\n var gotoRoute = checkout.completeStep(2);\n\n if (gotoRoute) {\n this.transitionTo(gotoRoute);\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/payment/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"qYA7JJuM\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Payment method\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section flex-grow-1 padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper wrapper--small padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"text-center margin-bottom-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Add payment method\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[21,\\\"flash-messages\\\"],false],[0,\\\"\\\\n\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"checkout\\\",\\\"cardToken\\\"]],[27,\\\"get\\\",[[27,\\\"get-array-element\\\",[[23,[\\\"checkout\\\",\\\"steps\\\"]],2],null],\\\"isDone\\\"],null]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"Current payment method:\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[12,\\\"src\\\",[27,\\\"asset-url\\\",[[27,\\\"concat\\\",[\\\"/assets/img/payment/credit-cards/\\\",[23,[\\\"checkout\\\",\\\"cardType\\\"]],\\\".svg\\\"],null]],null]],[11,\\\"alt\\\",\\\"\\\"],[11,\\\"class\\\",\\\"cc-icon vertical-align-middle\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"vertical-align-middle\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"ending in {{cardEndingNumber}}\\\"],[[\\\"cardEndingNumber\\\"],[[23,[\\\"checkout\\\",\\\"cardEnding\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"clearfix\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Change\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"resetPaymentMethod\\\"]],[10],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"checkout.review\\\"],[[\\\"class\\\"],[\\\"button\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Continue\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Please enter your payment information.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"form\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"credit-card-form\\\",null,[[\\\"action\\\"],[\\\"updateCreditCard\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You can review your order before your credit card is charged.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"cardToken\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Add payment information & review order\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"cardTokenLoading\\\"]]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"isLoading\\\",\\\"loadingText\\\",\\\"class\\\"],[true,[27,\\\"t\\\",[\\\"Verifying card...\\\"],null],\\\"button\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Verifying card...\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[11,\\\"disabled\\\",\\\"disabled\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Enter a valid credit card\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"completeStep\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/checkout/payment/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/policy/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n checkout: Ember.inject.service()\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/policy/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\"], function (_exports, _resetScroll) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {\n checkout: Ember.inject.service(),\n flashMessages: Ember.inject.service(),\n beforeModel: function beforeModel() {\n var checkout = this.get('checkout');\n var checkoutSteps = checkout.get('steps');\n\n if (!Ember.get(checkoutSteps[0], 'isDone')) {\n this.transitionTo(Ember.get(checkoutSteps[0], 'route'));\n return;\n } // Check if all required fields from previous page are filled\n\n\n if (!this.get('checkout.shippingAddress.isValid') || !this.get('checkout.billingAddress.isValid')) {\n this.get('flashMessages').addError(this.get('l10n').t('Please fill in all required fields'));\n this.transitionTo('checkout.index');\n return;\n }\n\n this.get('checkout').set('currentStep', 1);\n },\n actions: {\n completeStep: function completeStep() {\n var checkout = this.get('checkout');\n\n if (!checkout.get('policyAccepted')) {\n this.get('flashMessages').addError(this.get('l10n').t('You have to accept the policies in order to proceed with the checkout.'));\n return;\n }\n\n var gotoRoute = checkout.completeStep(1);\n\n if (gotoRoute) {\n this.transitionTo(gotoRoute);\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/policy/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"Z3ytXgFo\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Policies\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"section\\\"],[11,\\\"class\\\",\\\"section flex-grow-1 padding-bottom-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper wrapper--small padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"text-center margin-bottom-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Policies\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You have to read and accept the terms and policies provided by \\\"],null],false],[7,\\\"strong\\\"],[9],[1,[23,[\\\"model\\\",\\\"shop\\\",\\\"name\\\"]],false],[10],[0,\\\".\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"model\\\",\\\"fixed\\\"]],[23,[\\\"model\\\",\\\"priorPaymentRequired\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"How it works.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"ol\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"You make a request to the seller.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"The seller reviews your request and makes you a formal offer.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"t\\\",[\\\"You review the offer and accept or decline it. (optional)\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"If nothing gets changed by the sellers and they accept your order it is immediately binding. After a order request the sellers will review it and get in touch with you. The shop owners can change the named prices on our website, but they can only reduce the rates. They can add additional costs or discounts like shipping, insurance etc. You will get a offer with the updated prices, then you can decide if you are interested in their offer within two weeks.\\\"],null],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyWelcome\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Introduction\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"txt__policies\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"markdown-to-html\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyWelcome\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyShipping\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Shipping policies\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"txt__policies\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"markdown-to-html\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyShipping\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyPayment\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Payment policies\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"txt__policies\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"markdown-to-html\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyPayment\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"hasSample\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policySample\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Sample policies\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"markdown-to-html\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policySample\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyRefunds\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Refund policies\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"markdown-to-html\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyRefunds\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyAdditional\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Additional policies\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"markdown-to-html\\\",[[23,[\\\"model\\\",\\\"shop\\\",\\\"policyAdditional\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[1,[21,\\\"flash-messages\\\"],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\",\\\"required\\\"],[\\\"input__checkbox js-checkout-policy\\\",\\\"policy\\\",[23,[\\\"checkout\\\",\\\"policyAccepted\\\"]],true]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label input--full\\\"],[11,\\\"for\\\",\\\"policy\\\"],[9],[1,[27,\\\"t\\\",[\\\"I accept all {{shopName}}'s policies.\\\"],[[\\\"shopName\\\"],[[23,[\\\"model\\\",\\\"shop\\\",\\\"name\\\"]]]]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasError\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"ERROR\\\",\\\"margin-top-4 margin-bottom-4\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You have to accept the policies to continue.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Next step\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"completeStep\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/checkout/policy/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/review/controller\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Controller.extend({\n checkout: Ember.inject.service(),\n isSaving: false\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/review/route\", [\"exports\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"moment\", \"@vollersgroup/hub-frontend/utils/get-first-adapter-error-message\"], function (_exports, _resetScroll, _moment, _getFirstAdapterErrorMessage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Route.extend(_resetScroll.default, {\n checkout: Ember.inject.service(),\n shoppingCart: Ember.inject.service(),\n flashMessages: Ember.inject.service(),\n toast: Ember.inject.service(),\n userSession: Ember.inject.service(),\n ajax: Ember.inject.service(),\n availableData: Ember.inject.service(),\n beforeModel: function beforeModel() {\n var checkout = this.get('checkout');\n var checkoutSteps = checkout.get('steps');\n\n if (!Ember.get(checkoutSteps[checkoutSteps.length - 2], 'isDone')) {\n this.transitionTo(Ember.get(checkoutSteps[checkoutSteps.length - 2], 'route'));\n return;\n }\n\n this.get('checkout').set('currentStep', checkoutSteps.length - 1);\n },\n actions: {\n putOrder: function putOrder() {\n var _this2 = this;\n\n var order = this.currentModel;\n var checkout = this.get('checkout');\n var controller = this.controllerFor(this.get('routeName'));\n var flashMessages = this.get('flashMessages');\n flashMessages.clear();\n controller.set('isSaving', true);\n order.setProperties({\n buyerCompany: this.get('userSession.currentCompany'),\n vatNumber: checkout.get('vatNumber'),\n shippingAddress: checkout.get('shippingAddress'),\n billingAddress: checkout.get('billingAddress'),\n requestCreatedDate: (0, _moment.default)()\n });\n var priorPaymentRequired = order.get('priorPaymentRequired');\n var steps = checkout.get('steps');\n\n if (order.get('isNew')) {\n order.set('status', 'CART');\n order.save().then(function (order) {\n // This is reset because the server doesn't know yet that prior payment is required\n // Because of this, it has to be set again here\n order.set('priorPaymentRequired', priorPaymentRequired); // Also reset the steps' statuses\n\n var newSteps = checkout.get('steps');\n\n for (var i = 0; i < newSteps.length; i++) {\n Ember.set(newSteps[i], 'isDone', Ember.get(steps[i], 'isDone'));\n }\n\n _this2._processCart(order);\n }).catch(function (adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this2, 'l10n').t('An error occurred while creating your order: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n\n _this2._setError(errorMessage);\n });\n } else {\n this._processCart(order);\n }\n }\n },\n _processCart: function _processCart(order) {\n var _this3 = this;\n\n this._saveOrderItems(order).then(function () {\n if (!order.get('priorPaymentRequired')) {\n _this3._changeOrderToRequest(order);\n } else {\n _this3._processPayment(order);\n }\n });\n },\n _saveOrderItems: function _saveOrderItems(order) {\n var _this4 = this;\n\n return new Ember.RSVP.Promise(function (resolve, reject) {\n order.get('orderItems').then(function (orderItems) {\n var openOrderItems = orderItems.toArray();\n var _this = _this4;\n\n var _saveNextOrderItem = function _saveNextOrderItem() {\n var _this5 = this;\n\n var firstOrderItem = openOrderItems.splice(0, 1);\n firstOrderItem = firstOrderItem.length === 1 ? firstOrderItem[0] : null;\n\n if (firstOrderItem) {\n if (firstOrderItem.get('hasDirtyAttributes')) {\n firstOrderItem.save().then(function () {\n _saveNextOrderItem();\n }).catch(function (adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this5, 'l10n').t('An error occurred while saving order items: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n\n _this._setError(errorMessage);\n\n reject();\n });\n } else {\n _saveNextOrderItem();\n }\n } else {\n resolve(order);\n }\n };\n\n _saveNextOrderItem();\n });\n });\n },\n _processPayment: function _processPayment(order) {\n var _this6 = this;\n\n if (order.get('paid')) {\n this._changeOrderToRequest(order);\n }\n\n order.set('status', 'REQUEST');\n var orderJSON = order.toJSON();\n orderJSON.id = order.get('id');\n this.get('ajax').post(\"/order/\".concat(order.get('id'), \"/pay?token=\").concat(this.get('checkout.cardToken')), {\n data: orderJSON\n }).then(function () {\n order.reload().then(function (order) {\n _this6._completeOrder(order);\n });\n }).catch(function (error) {\n order.set('status', 'CART');\n var serverErrorMessage = Ember.get(error, 'payload.error');\n\n var errorMessage = _this6.get('l10n').t('An error occurred while trying to process the payment: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n\n _this6._setError(errorMessage);\n });\n },\n _changeOrderToRequest: function _changeOrderToRequest(order) {\n var _this7 = this;\n\n if (order.get('auction') && order.get('auction.content') && order.get('hasCoffee')) {\n order.set('status', 'ACCEPTED');\n } else {\n order.set('status', 'REQUEST');\n }\n\n order.save().then(function (order) {\n _this7._completeOrder(order);\n }).catch(function (adapterError) {\n order.set('status', 'CART');\n\n _this7._setError(adapterError);\n });\n },\n _completeOrder: function _completeOrder(order) {\n var controller = this.controllerFor(this.get('routeName'));\n var flashMessages = this.get('flashMessages');\n flashMessages.clear();\n\n this._initConversationForOrder(order);\n\n this.get('shoppingCart').removeCart(order, true);\n controller.set('isSaving', false);\n flashMessages.addSuccess({\n title: this.get('l10n').t('Your purchase has been successfully handled.'),\n message: this.get('l10n').t('The seller will get back to you with details shortly.')\n });\n this.transitionTo('cart');\n },\n _initConversationForOrder: function _initConversationForOrder(order) {\n var _this8 = this;\n\n order.get('conversation').then(function (conversation) {\n if (!conversation) {\n return;\n }\n\n if (_this8.get('checkout.initialMessage')) {\n var message = _this8.store.createRecord('message', {\n conversation: conversation,\n text: _this8.get('checkout.initialMessage'),\n created: (0, _moment.default)(),\n fromUser: _this8.get('userSession.currentUser'),\n fromCompany: _this8.get('userSession.currentCompany')\n });\n\n message.save().then(function () {\n conversation.reload();\n });\n }\n });\n },\n _setError: function _setError(adapterError) {\n var controller = this.controllerFor(this.get('routeName'));\n var flashMessages = this.get('flashMessages');\n var toast = this.get('toast');\n controller.set('isSaving', false);\n var errorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n flashMessages.setErrors([errorMessage]);\n toast.error(errorMessage);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/review/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"p+KrvhU2\",\n \"block\": \"{\\\"symbols\\\":[\\\"text\\\",\\\"cartListing\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Review your request\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full text-center margin-bottom-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"model\\\",\\\"fixed\\\"]],[23,[\\\"model\\\",\\\"priorPaymentRequired\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Please review your order for {{shopName}} before placing it.\\\"],[[\\\"shopName\\\"],[[23,[\\\"model\\\",\\\"shop\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Review your items, your shipping address, your billing address and the estimated payment before you request your order.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h2\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Please confirm your shipping and billing information.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"model\\\",\\\"hasCoffee\\\"]],[23,[\\\"model\\\",\\\"estimatedTotalPrice\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"INFO\\\",\\\"text-left margin-bottom-2\\\",[27,\\\"t\\\",[\\\"This is a sample-only order.\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"If the seller accepts your order and does not add any additional fees (e.g. shipping), it will be immediately accepted and the samples will be sent to you.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"priorPaymentRequired\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"INFO\\\",\\\"margin-top-3 margin-bottom-2 text-left\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"The payment provider will refund the payment after 7 days if seller does not accept the order.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right layout__sidebar--right--big review__container\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section--highlighted padding-all-3 margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container padding-bottom-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isSaving\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"loading__wrapper relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"loading-circle loading-circle-opacity\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--full\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"model\\\",\\\"fixed\\\"]],[23,[\\\"model\\\",\\\"priorPaymentRequired\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Placing order...\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Confirming purchase...\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--full\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"model\\\",\\\"fixed\\\"]],[23,[\\\"model\\\",\\\"priorPaymentRequired\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Place order now\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Confirm purchase\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"putOrder\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"cart-estimated-payment\\\",null,[[\\\"order\\\"],[[23,[\\\"model\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Notes for {{shopName}}: \\\"],[[\\\"shopName\\\"],[[23,[\\\"model\\\",\\\"shop\\\",\\\"name\\\"]]]]],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"textarea\\\",null,[[\\\"value\\\",\\\"rows\\\",\\\"cols\\\",\\\"class\\\"],[[23,[\\\"checkout\\\",\\\"initialMessage\\\"]],4,100,\\\"input__textarea\\\"]]],false],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"model\\\",\\\"hasSample\\\"]],[23,[\\\"model\\\",\\\"shop\\\",\\\"roastedSamplesAvailable\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"checked\\\"],[\\\"input__checkbox\\\",\\\"order_roastedSamples\\\",[23,[\\\"model\\\",\\\"roastedSamples\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"order_roastedSamples\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Request roasted samples\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"flash-messages\\\",null,[[\\\"autoClear\\\"],[false]]],false],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section--highlighted padding-all-3 margin-bottom-3\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Shipping address\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"checkout.index\\\"],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Change\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"company\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"fullName\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"street\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"addressAddition\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"addressAddition\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"zip\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"city\\\"]],false],[0,\\\" \\\"],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"countryData\\\",\\\"name\\\"]],false],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"state\\\"]]],null,{\\\"statements\\\":[[0,\\\",\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"state\\\"]],false]],\\\"parameters\\\":[]},null],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"shippingAddress\\\",\\\"phone\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"cardToken\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Payment method\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"checkout.payment\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Change\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"alt\\\",\\\"\\\"],[11,\\\"class\\\",\\\"cc-icon vertical-align-middle\\\"],[12,\\\"src\\\",[27,\\\"asset-url\\\",[[27,\\\"concat\\\",[\\\"/assets/img/payment/credit-cards/\\\",[23,[\\\"checkout\\\",\\\"cardType\\\"]],\\\".svg\\\"],null]],null]],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"vertical-align-middle\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"ending in {{cardEndingNumber}}\\\"],[[\\\"cardEndingNumber\\\"],[[23,[\\\"checkout\\\",\\\"cardEnding\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[1,[27,\\\"t\\\",[\\\"Billing address\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"checkout.index\\\"],null,{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Change\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"company\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"fullName\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"street\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"addressAddition\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"addressAddition\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"zip\\\"]],false],[0,\\\" \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"city\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"countryData\\\",\\\"name\\\"]],false],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"state\\\"]]],null,{\\\"statements\\\":[[0,\\\",\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"state\\\"]],false]],\\\"parameters\\\":[]},null],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"checkout\\\",\\\"billingAddress\\\",\\\"phone\\\"]],false],[7,\\\"br\\\"],[9],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"checkout\\\",\\\"hasVatNumber\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[1,[27,\\\"t\\\",[\\\"VAT number\\\"],null],false],[0,\\\": \\\"],[1,[23,[\\\"checkout\\\",\\\"vatNumber\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"model\\\",\\\"isAuctionSamplesBundle\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"The sample bundle includes:\\\",\\\"Each sample bundle includes:\\\",[23,[\\\"model\\\",\\\"sampleBundleAmount\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"card section border-all\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"model\\\",\\\"orderItems\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"shopping-cart-order-item\\\",null,[[\\\"orderItem\\\",\\\"isEditable\\\"],[[22,2,[]],false]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[2]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"clearfix\\\"],[9],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section section--highlighted flex-grow-1 font-size-6 margin-all-0\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper padding-all-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"get-text\\\",null,[[\\\"unescapeText\\\",\\\"message\\\"],[true,[27,\\\"t\\\",[\\\"Do you need help? Contact us at: v-hub@vollers.com or {{linkToContactSeller \\\\\\\"contact the seller\\\\\\\"}} directly.\\\"],null]]],{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"sendMessage\\\",\\\"messageTo\\\",\\\"messageSubject\\\"],[1,[23,[\\\"model\\\",\\\"shop\\\",\\\"company\\\",\\\"id\\\"]],[23,[\\\"model\\\",\\\"shop\\\",\\\"name\\\"]]]]]],null,{\\\"statements\\\":[[1,[22,1,[]],false]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"model\\\",\\\"fixed\\\"]],[23,[\\\"model\\\",\\\"priorPaymentRequired\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"What happens when I click on \\\\\\\"Place order now\\\\\\\"?\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"When you click on the button \\\\\\\"Place Order Now\\\\\\\" we will send you an E-mail with the confirmation of the placed order.\\\\n The seller gets notified and will review your order. They can add additional costs or discounts like shipping, insurance etc.\\\\n You will get a offer with the updated prices, then you can decide if you are interested in their offer within two weeks.\\\\n If nothing gets changed by the sellers and they accept your order it is immediately binding.\\\\n The seller will get in touch with you and send you an invoice.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"If you have any questions about the order you can use Hub's built-in messaging to ask them. The seller will be immediately notified.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"When placing an order on V-Hub you accept our terms of service as well as all policies from the shop you are ordering from.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"What happens next when I click on \\\\\\\"Confirm purchase\\\\\\\"?\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"When you click on the button \\\\\\\"Confirm Purchase\\\\\\\" we will send you an E-mail with the confirmation of the purchase.\\\\n The seller will get in touch with you and send you an invoice.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"If you have any questions about your purchase you can use the built-in message to ask. The seller will be immediately notified.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"By confirming this information you accept our terms of service as well as all policies from the shop you are purchasing from.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/checkout/review/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/route\", [\"exports\", \"ember-simple-auth/mixins/authenticated-route-mixin\", \"@vollersgroup/hub-frontend/mixins/reset-scroll\", \"ember-can\"], function (_exports, _authenticatedRouteMixin, _resetScroll, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n var _default = Ember.Route.extend(_authenticatedRouteMixin.default, _resetScroll.default, _emberCan.CanMixin, {\n checkout: Ember.inject.service(),\n shoppingCart: Ember.inject.service(),\n userSession: Ember.inject.service(),\n flashMessages: Ember.inject.service(),\n router: Ember.inject.service(),\n queryParams: {\n cart: {\n refreshModel: true\n }\n },\n beforeModel: function beforeModel() {\n return Ember.RSVP.Promise.all([this._super.apply(this, arguments), this.get('userSession.currentCompany')]);\n },\n model: function model(params) {\n if (!this.get('userSession.currentUser.hasCompleteProfile')) {\n this.get('toast').info(this.get('l10n').t('You have to complete your profile before checking out.'));\n var url = this.get('router.currentURL');\n this.transitionTo('admin.company', {\n queryParams: {\n afterSave: url\n }\n });\n return;\n }\n\n if (this.get('checkout.cart')) {\n return this.get('checkout.cart');\n }\n\n if (!params.cart || !this.can('create order')) {\n this.replaceWith('cart');\n return;\n }\n\n return this.store.find('order', params.cart);\n },\n afterModel: function afterModel(cart) {\n var _this = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var checkout, company, billingAddress, participantShippingAddress;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (!(cart.get('status') !== 'CART')) {\n _context.next = 3;\n break;\n }\n\n _this.transitionTo('cart');\n\n return _context.abrupt(\"return\");\n\n case 3:\n checkout = _this.get('checkout');\n checkout.set('initialMessage', cart.get('orderNotes'));\n checkout.set('cart', cart);\n cart.set('orderNotes', null);\n checkout.resetAddresses();\n _context.next = 10;\n return _this.get('userSession.currentCompany');\n\n case 10:\n company = _context.sent;\n billingAddress = company.get('location').toAddressObject();\n checkout.set('billingAddress', billingAddress);\n checkout.set('vatNumber', company.get('vatNumber')); // Auction participants may have different shipping address.\n\n if (!cart.get('isAuctionSamplesBundle')) {\n _context.next = 20;\n break;\n }\n\n _context.next = 17;\n return _this.get('userSession.auctionRegistrations');\n\n case 17:\n participantShippingAddress = cart.get('auction.currentAuctionParticipant.shippingAddress');\n checkout.set('billingIsShipping', participantShippingAddress.isEqualStrict(billingAddress));\n participantShippingAddress.copyTo(checkout.get('shippingAddress'));\n\n case 20:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n resetController: function resetController(controller, isExiting) {\n if (isExiting) {\n controller.set('cart', null);\n }\n },\n _reset: Ember.on('deactivate', function () {\n this.get('flashMessages').setErrors([]);\n this.get('checkout').set('currentStep', 0);\n this.get('checkout').setProperties({\n currentStep: 0,\n cardToken: null,\n cardEnding: null,\n cardType: null,\n cart: null,\n billingIsShipping: true,\n policyAccepted: false\n });\n this.get('checkout.steps').forEach(function (step) {\n Ember.set(step, 'isDone', false);\n });\n }),\n actions: {\n error: function error() {\n this.get('toast').warning(this.get('l10n').t('This shopping cart does not exist. Have you already checked it out or deleted it?'));\n this.transitionTo('cart');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/checkout/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"VXsK6ZyU\",\n \"block\": \"{\\\"symbols\\\":[\\\"step\\\",\\\"index\\\"],\\\"statements\\\":[[1,[27,\\\"page-title\\\",[[27,\\\"t\\\",[\\\"Checkout\\\"],null]],null],false],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"search-bar\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper-ns\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex flex-column flex-row-m justify-between\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex width-two-thirds-m\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"class\\\",\\\"h--header-logo\\\"],[12,\\\"src\\\",[23,[\\\"model\\\",\\\"shop\\\",\\\"logoUrl\\\"]]],[12,\\\"alt\\\",[23,[\\\"model\\\",\\\"shop\\\",\\\"name\\\"]]],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex justify-center flex-column margin-left-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-5 lh-dense padding-bottom-1\\\"],[9],[1,[23,[\\\"model\\\",\\\"shop\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-7 color-grey-2 lh-dense\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Powered by V-Hub\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"width-third-m margin-all-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"checkout\\\",\\\"steps\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[22,1,[\\\"route\\\"]]],[[\\\"class\\\"],[\\\"step-list__item\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-list__line\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"step-list__circle \\\",[27,\\\"if\\\",[[22,1,[\\\"isDone\\\"]],\\\"step-list__circle--done\\\"],null],\\\" \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"checkout\\\",\\\"currentStep\\\"]],[22,2,[]]],null],\\\"step-list__circle--current\\\"],null]]]],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"step-list__label\\\"],[9],[1,[22,1,[\\\"label\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1,2]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"outlet\\\"],false],[0,\\\"\\\\n\\\\n\\\"],[1,[21,\\\"footer-main\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/checkout/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/company/ability\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _emberCan.Ability.extend({\n userSession: Ember.inject.service(),\n roleLevel: Ember.computed.alias('userSession.currentUser.roleLevel'),\n canInviteUser: Ember.computed.gte('roleLevel', 4),\n canViewInvitedUsers: Ember.computed.gte('roleLevel', 4),\n canVerify: Ember.computed.gte('roleLevel', 4),\n canEdit: Ember.computed.gte('roleLevel', 4),\n canEditIntegrations: Ember.computed.gte('roleLevel', 4),\n canManageUsers: Ember.computed('roleLevel', 'model.roleLevel', 'model.id', 'userSession.currentUser.id', function () {\n if (!this.get('model')) {\n return this.get('roleLevel') >= 4;\n }\n\n if (this.get('userSession.currentUser.id') === this.get('model.id')) {\n return false;\n }\n\n if (this.get('model.roleLevel') > this.get('roleLevel')) {\n return false;\n }\n\n return this.get('roleLevel') >= 4;\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/company/adapter\", [\"exports\", \"@vollersgroup/hub-frontend/application/adapter\"], function (_exports, _adapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _adapter.default.extend({\n queryRecord: function queryRecord(store, type, query) {\n if (Ember.typeOf(query.token) === 'undefined') {\n return this._super(store, type, query);\n }\n\n var url = [];\n var host = Ember.get(this, 'host');\n var prefix = this.urlPrefix();\n url.push('company/byToken');\n url.push(query.token);\n\n if (prefix) {\n url.unshift(prefix);\n }\n\n url = url.join('/');\n\n if (!host && url && url.charAt(0) !== '/') {\n url = '/' + url;\n }\n\n delete query.token;\n\n if (this.sortQueryParams) {\n query = this.sortQueryParams(query);\n }\n\n return this.ajax(url, 'GET', {\n data: query\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/company/model\", [\"exports\", \"ember-data\", \"ember-cp-validations\", \"@vollersgroup/hub-frontend/config/environment\"], function (_exports, _emberData, _emberCpValidations, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Model = _emberData.default.Model;\n var hasMany = _emberData.default.hasMany;\n var belongsTo = _emberData.default.belongsTo;\n var attr = _emberData.default.attr;\n var assetPrependURL = _environment.default.assetPrependURL;\n var Validations = (0, _emberCpValidations.buildValidations)({\n name: {\n validators: [(0, _emberCpValidations.validator)('length', {\n allowNone: false,\n min: 3,\n max: 250,\n message: 'Please enter at least 3 characters.'\n })]\n },\n 'location.country': {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please select a country.'\n })]\n },\n 'location.street': {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter an address.'\n })]\n },\n 'location.zip': {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter a zip code.'\n }), (0, _emberCpValidations.validator)('length', {\n allowNone: false,\n max: 12,\n message: \"Zip code can't be longer than 12 characters.\"\n })]\n },\n 'location.city': {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter a city'\n })]\n },\n 'location.phone': {\n validators: [(0, _emberCpValidations.validator)('format', {\n allowBlank: false,\n // this is very basic validation that provided value is phone number\n // It must contain at least one number\n regex: /\\d/,\n message: 'Please enter a phone number.'\n })]\n },\n 'location.email': {\n validators: [(0, _emberCpValidations.validator)('format', {\n allowBlank: false,\n type: 'email',\n message: 'Please enter an email.'\n })]\n },\n 'location.website': {\n validators: [(0, _emberCpValidations.validator)('format', {\n allowBlank: false,\n type: 'url',\n message: 'Please enter a website.'\n })]\n },\n vatNumber: {\n validators: [(0, _emberCpValidations.validator)('presence', {\n presence: true,\n ignoreBlank: true,\n message: 'Please enter your VAT number.',\n disabled: Ember.computed.not('model.location.hasVatNumber')\n })]\n }\n });\n /**\n * The company model\n *\n * @namespace Model\n * @class Company\n * @extends Model\n */\n\n var _default = Model.extend(Validations, {\n /**\n * The company's name.\n *\n * @attribute name\n * @type String\n */\n name: attr('string'),\n\n /**\n * The optional VAT Number of this company. Used to prefill for the checkout.\n *\n * @attribute vatNumber\n * @type String\n */\n vatNumber: attr('string'),\n\n /**\n * The companies location\n *\n * @attribute location\n * @type Model.Location\n */\n location: belongsTo('location', {\n async: false\n }),\n\n /**\n * The image object for the shop's logo.\n *\n * @attribute logo\n * @type Object\n */\n logo: attr('image'),\n\n /**\n * The full URL to the companies' logo, in 500x500.\n *\n * @property logoUrl\n * @type string\n */\n logoUrl: Ember.computed('logo.s500x500', function () {\n var logo = this.get('logo.s500x500');\n\n if (logo) {\n return logo;\n }\n\n return assetPrependURL + '/assets/img/placeholder-company-logo.png';\n }),\n\n /**\n * If the company has already been verified as a seller.\n *\n * @attribute verificationStatus\n * @type null|PENDING|VERIFIED|REJECTED\n * @default null\n */\n verificationStatus: attr('string', {\n defaultValue: null\n }),\n\n /**\n * The date & time when the verified-status was last updated.\n * This is either the time when the request for verification was made (when verified === PENDING)\n * or the time when the request was accepted/rejected,\n * or null when no request has been made yet.\n *\n * @attribute verifiedDate\n * @type Date\n * @default null\n */\n verifiedDate: attr('timestamp'),\n\n /**\n * The date & time when the request for verification was made (when verified === PENDING)\n *\n * @attribute verificationRequestedDate\n * @type Date\n * @default null\n */\n verificationRequestedDate: attr('timestamp'),\n\n /**\n * Flag if company is a verified buyer account.\n * This is if is known Vollers customer (f.e. CSAR) and NOT a seller.\n * Sellers are verified by hand before they can sell on V-Hub and are ALWAYS verified.\n *\n * @attribute verifiedBuyerAccount\n * @type Boolean\n * @default false\n */\n verifiedBuyerAccount: attr('boolean', {\n defaultValue: false\n }),\n\n /**\n * The date & time when the company has been rejected.\n *\n * @attribute rejectedDate\n * @type Date\n * @default null\n */\n rejectedDate: attr('timestamp'),\n\n /**\n * The date & time when the company has been created.\n *\n * @attribute createdDate\n * @type Date\n * @default null\n */\n createdDate: attr('timestamp'),\n\n /**\n * If company has activated the auctions module.\n *\n * @attribute auctionsEnabled\n * @type Boolean\n * @default false\n */\n auctionsEnabled: attr('boolean', {\n defaultValue: false\n }),\n\n /**\n * The owner of this company.\n *\n * @attribute owner\n * @type Model.User\n */\n owner: belongsTo('user', {\n async: true,\n inverse: null\n }),\n\n /**\n * The company subscription\n *\n * @attribute subscription\n * @type Model.Subscription\n */\n subscription: belongsTo('subscription'),\n\n /**\n * A list of users that are part of this company.\n *\n * @attribute users\n * @type Model.User[]\n */\n users: hasMany('user', {\n async: true,\n inverse: 'company'\n }),\n\n /**\n * An array of shops that belong to the company.\n *\n * @attribute shops\n * @type Model.Shop[]\n */\n shops: hasMany('shop', {\n async: true,\n inverse: 'company'\n }),\n\n /**\n * A dedicated setting model containing company\n * wide settings for shops, templates etc. as a\n * nested JSON structure.\n *\n * @attribute settings\n * @type Model.Settings\n */\n settings: belongsTo('settings', {\n async: true\n }),\n\n /**\n * An array of blacklisted buyers from company.\n *\n * @attribute blacklistItems\n * @type Model.Shop[]\n */\n blacklistItems: hasMany('blacklist-item', {\n inverse: 'flaggedCompany',\n async: true\n }),\n\n /**\n * Returns true if verified seller or buyer account.\n */\n isVerifiedAccount: Ember.computed.or('isVerified', 'verifiedBuyerAccount'),\n\n /**\n * Returns true if the company has been verified.\n */\n isVerified: Ember.computed.equal('verificationStatus', 'VERIFIED'),\n\n /**\n * Returns true if the company has been rejected.\n */\n isRejected: Ember.computed.equal('verificationStatus', 'REJECTED'),\n\n /**\n * Returns true if the company is pending for verification.\n */\n isPending: Ember.computed.equal('verificationStatus', 'PENDING'),\n\n /**\n * If the company has at least 1 shop\n *\n * @attribute hasShops\n * @type Boolean\n */\n hasShops: Ember.computed.gt('shops.length', 0),\n\n /**\n * Hash map of black list items with company id as key.\n *\n * @property blacklistCompanies\n * @type Object\n */\n blacklistCompanies: Ember.computed('blacklistItems.[]', function () {\n var map = {};\n Ember.get(this, 'blacklistItems').forEach(function (blacklistItem) {\n map[Ember.get(blacklistItem, 'flaggedCompany.id')] = blacklistItem;\n });\n return map;\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/company/serializer\", [\"exports\", \"ember-data\", \"@vollersgroup/hub-frontend/application/serializer\", \"moment\"], function (_exports, _emberData, _serializer, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var EmbeddedRecordsMixin = _emberData.default.EmbeddedRecordsMixin;\n\n var _default = _serializer.default.extend(EmbeddedRecordsMixin, {\n attrs: {\n location: {\n serialize: 'records',\n deserialize: 'records'\n },\n subscription: {\n serialize: 'records',\n deserialize: 'records'\n }\n },\n normalize: function normalize(type, json, property) {\n if (json.verificationStatus === 'NOT_REQUESTED') {\n json.verificationStatus = null;\n }\n\n return this._super(type, json, property);\n },\n serialize: function serialize(snapshot, options) {\n var json = this._super(snapshot, options);\n\n if (!json.verificationStatus) {\n json.verificationStatus = 'NOT_REQUESTED';\n }\n\n if (!json.createdDate) {\n json.createdDate = (0, _moment.default)().valueOf();\n }\n\n json.name = json.name.trim();\n return json;\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/add-to-cart-modal/component\", [\"exports\", \"ember-can\"], function (_exports, _emberCan) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\n function _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\n function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\n function _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\n function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\n function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n /**\n * Modal component to show a buy-coffee modal\n */\n var _default = Ember.Component.extend(_emberCan.CanMixin, {\n store: Ember.inject.service(),\n l10n: Ember.inject.service(),\n router: Ember.inject.service(),\n shoppingCart: Ember.inject.service(),\n userSession: Ember.inject.service(),\n\n /**\n * Get the current purchase amount of a listing\n *\n * Is null if it has not yet been added to the cart\n *\n * @property amount\n * @type Number\n * @private\n */\n amount: Ember.computed('listing.orderItemInShoppingCart.{amount,sample}', function () {\n if (!this.get('listing.orderItemInShoppingCart') || this.get('listing.orderItemInShoppingCart.sample')) {\n return null;\n }\n\n return this.get('listing.orderItemInShoppingCart.amount');\n }),\n\n /**\n * Id passed from the query param.\n */\n listingId: null,\n\n /*\n * Listing that's loaded from the store.\n */\n listing: null,\n init: function init() {\n var _arguments = arguments,\n _this = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var listingId, listing;\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this._super.apply(_this, _toConsumableArray(_arguments));\n\n if (!_this.get('userSession.isAuthenticated')) {\n _this.get('closeModal')();\n }\n\n listingId = Ember.get(_this, 'listingId');\n\n if (listingId) {\n _context.next = 6;\n break;\n }\n\n _this.get('closeModal')();\n\n return _context.abrupt(\"return\");\n\n case 6:\n _context.next = 8;\n return _this.get('store').find('listing', _this.get('listingId'));\n\n case 8:\n listing = _context.sent;\n\n if (_this.can('buy listing', listing)) {\n _context.next = 12;\n break;\n }\n\n _this.get('closeModal')();\n\n return _context.abrupt(\"return\");\n\n case 12:\n Ember.set(_this, 'listing', listing);\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n actions: {\n /**\n * Fill the amount field with the available amount from the listing\n *\n * @event addAll\n * @param {Boolean} all If false, reset amount to 0\n * @private\n */\n addAll: function addAll(all) {\n if (all) {\n this.set('amount', this.get('listing.availableAmount'));\n } else {\n this.set('amount', '');\n }\n },\n\n /**\n * Show the \"Add Sample\" modal for this listing\n *\n * @event showAddSample\n * @private\n */\n showAddSample: function showAddSample() {\n this.get('router').replaceWith({\n queryParams: {\n gotoModel: null,\n gotoRoute: null,\n showLogin: null,\n addToCart: null,\n afterLogin: null,\n addSampleToCart: this.get('addToCart')\n }\n });\n },\n\n /**\n * Actually add the listing to the cart and then close the modal\n *\n * @event addToCart\n * @private\n */\n addToCart: function addToCart() {\n var amount = this.get('amount');\n\n if (!amount || amount < this.get('listing.minOrderAmount')) {\n this.get('toast').warning(this.get('l10n').n('You cannot add less than {{count}} unit to your cart.', 'You cannot add less than {{count}} units to your cart!', this.get('listing.minOrderAmount'), {\n count: this.get('listing.minOrderAmount')\n }).toString());\n return;\n }\n\n if (amount > this.get('listing.availableAmount')) {\n this.get('toast').warning(this.get('l10n').n('You cannot add more than {{count}} unit to your cart.', 'You cannot add more than {{count}} units to your cart!', this.get('listing.availableAmount'), {\n count: this.get('listing.availableAmount')\n }).toString());\n return;\n }\n\n this.get('shoppingCart').addListing(this.get('listing'), amount, false);\n this.get('toast').success(this.get('l10n').n('You have added {{count}} unit to your cart.', 'You have added {{count}} units to your cart!', amount, {\n count: amount\n }).toString());\n this.get('closeModal')();\n },\n\n /**\n * Actually add the listing to the cart and then proceed to the cart\n *\n * @event addToCartAndCheckout\n * @private\n */\n addToCartAndCheckout: function addToCartAndCheckout() {\n var _this2 = this;\n\n var amount = this.get('amount');\n\n if (!amount || amount < this.get('listing.minOrderAmount')) {\n this.get('toast').warning(this.get('l10n').n('You cannot add less than {{count}} unit to your cart.', 'You cannot add less than {{count}} units to your cart!', this.get('listing.minOrderAmount'), {\n count: this.get('listing.minOrderAmount')\n }).toString());\n return;\n }\n\n if (amount > this.get('listing.availableAmount')) {\n this.get('toast').warning(this.get('l10n').n('You cannot add more than {{count}} unit to your cart.', 'You cannot add more than {{count}} units to your cart!', this.get('listing.availableAmount'), {\n count: this.get('listing.availableAmount')\n }).toString());\n return;\n }\n\n this.get('shoppingCart').addListing(this.get('listing'), amount, false).then(function () {\n _this2.get('router').replaceWith('cart', {\n queryParams: {\n gotoModel: null,\n gotoRoute: null,\n showLogin: null,\n addToCart: null\n }\n });\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/add-to-cart-modal/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"G1pKJyc0\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"title\\\",\\\"close\\\"],[[27,\\\"t\\\",[\\\"Buy coffee\\\"],null],[23,[\\\"closeModal\\\"]]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"isLoaded\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"form\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"addToCart__amount\\\"],[9],[1,[27,\\\"t\\\",[\\\"Order amount\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"input__info\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"{{count}} unit is available, you have to order at least {{minCount}}.\\\",\\\"{{count}} units are available, you have to order at least {{minCount}}.\\\",[23,[\\\"listing\\\",\\\"availableAmount\\\"]]],[[\\\"count\\\",\\\"minCount\\\"],[[23,[\\\"listing\\\",\\\"availableAmount\\\"]],[23,[\\\"listing\\\",\\\"minOrderAmount\\\"]]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__group\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"id\\\",\\\"value\\\"],[\\\"input__txt input--full input-with-label js-add-to-cart-amount\\\",\\\"number\\\",\\\"addToCart__amount\\\",[23,[\\\"amount\\\"]]]]],false],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__label--right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"addToCart__amount\\\"],[9],[0,\\\"x \\\"],[1,[27,\\\"get-constant-label\\\",[[23,[\\\"listing\\\",\\\"availableAmountUnit\\\"]]],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"input\\\"],[11,\\\"value\\\",\\\"\\\"],[11,\\\"class\\\",\\\"input__checkbox\\\"],[11,\\\"id\\\",\\\"addToCart__all\\\"],[12,\\\"onchange\\\",[27,\\\"action\\\",[[22,0,[]],\\\"addAll\\\"],[[\\\"value\\\"],[\\\"target.checked\\\"]]]],[11,\\\"type\\\",\\\"checkbox\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"addToCart__all\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order all available units\\\"],null],false],[0,\\\" (\\\"],[1,[23,[\\\"listing\\\",\\\"availableAmount\\\"]],false],[0,\\\")\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Add & continue\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Add & view cart\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addToCartAndCheckout\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addToCart\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--bg box--modal-margin-top padding-all-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Just looking for a sample?\\\"],null],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[1,[27,\\\"t\\\",[\\\"Add sample to cart\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"showAddSample\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/add-to-cart-modal/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/api-data-viewer/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * A simple component providing an overview about API data.\n * Can be used to show list for varieties, descriptors etc.\n * Dataset should be an available set from available-data\n * service, so make sure that it's persisted there.\n *\n * ```html\n * {{api-data-viewer dataset=\"YOUR_DATA_SET\"}}\n * ```\n *\n * @namespace Component\n * @class APIDataViewer\n * @extends Ember.Component\n */\n var _default = Ember.Component.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n availableData: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Attributes\n\n /**\n * Data set to retrieve from `availableData` service.\n *\n * @attribute dataSet\n * @type {String}\n */\n dataSet: '',\n\n /**\n * If set to true, a text input for filtering is shown.\n *\n * @attribute filterable\n * @type {Boolean}\n * @default true\n */\n filterable: true,\n\n /**\n * Placeholder text for filter input field.\n *\n * @attribute filterPlaceholder\n * @type {String}\n * @default 'Filter items'\n */\n filterPlaceholder: Ember.computed('l10n.locale', function () {\n return this.get('l10n').t('Filter items');\n }),\n\n /**\n * Search expression to filter data items by.\n *\n * @attribute filterTerm\n * @type {String}\n * @default ''\n */\n filterTerm: '',\n\n /**\n * Name of filter property from a single item.\n *\n * @attribute filterProperty\n * @type {String}\n * @default 'name'\n */\n filterProperty: 'name',\n\n /**\n * Name of label property from a single item.\n *\n * @attribute labelProperty\n * @type {String}\n * @default 'name'\n */\n labelProperty: Ember.computed.reads('filterProperty'),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Data items to retrieve from `availableData` service.\n *\n * @attribute dataItems\n * @type {Array}\n * @private\n */\n dataItems: null,\n\n /**\n * Internal flag to state if items are ready.\n *\n * @attribute isLoading\n * @type {Boolean}\n * @private\n */\n isLoading: true,\n\n /**\n * Filtered data items taking `filterBy` property into account.\n *\n * @attribute filteredItems\n * @type {Array}\n * @private\n */\n filteredItems: Ember.computed('dataItems.[]', 'filterProperty', 'filterTerm', function () {\n var _this = this;\n\n return this.get('dataItems').filter(function (item) {\n var prop = _this.get('filterProperty');\n\n var term = _this.get('filterTerm');\n\n var text = Ember.get(item, '_cache'); // cache original one time\n\n if (Ember.isNone(text)) {\n text = Ember.get(item, prop) || '';\n Ember.set(item, '_cache', text);\n } // reset if no match was found\n\n\n var regex = new RegExp(term, 'gi');\n var index = text.search(regex);\n\n if (index < 0) {\n Ember.set(item, prop, text);\n return false;\n } // highlight matched text in bold if any\n\n\n text = text.replace(regex, function (match) {\n return \"\".concat(match, \"\");\n });\n Ember.set(item, prop, text);\n return true;\n });\n }),\n // -------------------------------------------------------------------------\n // Methods\n init: function init() {\n this._super.apply(this, arguments);\n\n this.set('dataItems', []);\n },\n\n /**\n * Checks if `dataSet` is a valid .\n *\n * @public\n * @method didReceiveAttrs\n * @return {Void}\n */\n didReceiveAttrs: function didReceiveAttrs() {\n var _this2 = this;\n\n this._super.apply(this, arguments);\n\n this.set('isLoading', true);\n var availableData = this.get('availableData');\n var dataSet = this.get('dataSet') || '';\n\n if (Ember.isNone(dataSet)) {\n console.error(\"api-data-viewer.js: You need to provide \\\"dataSet\\\" attribute!\");\n return;\n }\n\n var dataItems = availableData.get(dataSet);\n\n if (Ember.isNone(dataItems)) {\n console.error(\"api-data-viewer.js: The data set \\\"\".concat(dataSet, \"\\\"\\\" is not within available data service!\"));\n return;\n }\n\n var setItems = function setItems(items) {\n try {\n _this2.set('dataItems', items.map(function (item) {\n return Ember.copy(item);\n }));\n\n _this2.set('isLoading', false);\n } catch (e) {\n /* could be destroyed */\n }\n };\n\n if (Ember.typeOf(dataItems.then) === 'function') {\n dataItems.then(setItems);\n return;\n }\n\n setItems(dataItems);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/api-data-viewer/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"7p3Dj40S\",\n \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[24,2]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[14,2],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"filterable\\\"]]],null,{\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"input\\\",null,[[\\\"value\\\",\\\"class\\\",\\\"placeholder\\\"],[[23,[\\\"filterTerm\\\"]],\\\"input__txt\\\",[23,[\\\"filterPlaceholder\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"filteredItems\\\"]],[23,[\\\"isLoading\\\"]]],null]],null,{\\\"statements\\\":[[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"tag-list\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"filteredItems\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[1,[27,\\\"get\\\",[[22,1,[]],[23,[\\\"labelProperty\\\"]]],null],true],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"class\\\",\\\"type\\\"],[\\\"margin-bottom-2\\\",\\\"WARNING\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"No items found for \\\\\\\"{{searchText}}\\\\\\\"!\\\"],[[\\\"searchText\\\"],[[23,[\\\"filterTerm\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/api-data-viewer/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-bid-input/component\", [\"exports\", \"ember-cp-validations\"], function (_exports, _emberCpValidations) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\n function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\n var Validations = (0, _emberCpValidations.buildValidations)({\n newBidAmount: {\n validators: [(0, _emberCpValidations.validator)('number', {\n allowString: false,\n allowNone: false,\n gte: Ember.computed.alias('model.listing.price'),\n message: \"Please enter a bid that's equal or higher than the starting price.\"\n }), (0, _emberCpValidations.validator)('number', {\n allowString: false,\n allowNone: false,\n gt: Ember.computed.alias('model.listing.highestBid.bidAmount'),\n message: 'Please enter a bid higher than the current highest bid.',\n // If there is no bid yet, disable this check.\n disabled: Ember.computed.not('model.listing.highestBid.bidAmount')\n }), (0, _emberCpValidations.validator)('auction-bid-step')]\n }\n }, {\n // To avoid showing error message in the middle of typing\n debounce: 500\n });\n\n var _default = Ember.Component.extend(Validations, {\n ajax: Ember.inject.service(),\n userSession: Ember.inject.service(),\n toast: Ember.inject.service(),\n l10n: Ember.inject.service(),\n listing: null,\n newBidAmount: null,\n isLoading: false,\n showBidHighStepModal: false,\n\n /**\n * Threshold factor in percent. If a bidder sets a new bid\n * exceeding previous bit by more than this limit, a warning\n * dialog will be shown, which has to be confirmed by user.\n */\n bidThreshold: 200,\n hasContent: Ember.computed.notEmpty('newBidAmount').readOnly(),\n hasError: Ember.computed.and('hasContent', 'validations.isInvalid').readOnly(),\n actions: {\n placeBid: function placeBid() {\n var _this = this;\n\n return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n var _yield$_this$validate, validations, currentPrice, newBidAmount, bidDifference;\n\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.validate();\n\n case 2:\n _yield$_this$validate = _context.sent;\n validations = _yield$_this$validate.validations;\n\n if (validations.get('isValid')) {\n _context.next = 6;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 6:\n currentPrice = Ember.get(_this, 'listing.currentPrice');\n newBidAmount = Ember.get(_this, 'newBidAmount');\n bidDifference = newBidAmount / currentPrice * 100 - 100;\n\n if (!(bidDifference > Ember.get(_this, 'bidThreshold'))) {\n _context.next = 12;\n break;\n }\n\n _this.set('showBidHighStepModal', true);\n\n return _context.abrupt(\"return\");\n\n case 12:\n _this._sendBid();\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n dismissBidHighStepModal: function dismissBidHighStepModal() {\n this.set('showBidHighStepModal', false);\n },\n confirmHighBid: function confirmHighBid() {\n this.send('dismissBidHighStepModal');\n\n this._sendBid();\n }\n },\n _sendBid: function _sendBid() {\n var _this2 = this;\n\n this.set('isLoading', true);\n var data = {\n canceled: false,\n bidAmount: Ember.get(this, 'newBidAmount'),\n listing: Ember.get(this, 'listing.id'),\n bidCurrency: Ember.get(this, 'listing.priceCurrency'),\n user: Ember.get(this, 'userSession.currentUser.id'),\n auctionParticipant: Ember.get(this, 'listing.auction.currentAuctionParticipant.id')\n };\n return this.get('ajax').post('/autoBid', {\n data: JSON.stringify(data)\n }).then(function (response) {\n var message = Ember.get(_this2, 'listing.currentAutoBid') ? _this2.get('l10n').t('You have changed your max. bid.') : _this2.get('l10n').t('You have placed a new max. bid.');\n\n _this2.get('toast').success(message);\n\n Ember.set(_this2, 'listing.currentAutoBid', response);\n\n _this2.set('newBidAmount', null);\n }).catch(function (error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this2, 'l10n').t('An error occurred while creating your bid: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n\n _this2.get('toast').error(errorMessage);\n }).finally(function () {\n return Ember.trySet(_this2, 'isLoading', false);\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-bid-input/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"9yFpQJ8B\",\n \"block\": \"{\\\"symbols\\\":[\\\"priceId\\\"],\\\"statements\\\":[[7,\\\"form\\\"],[11,\\\"class\\\",\\\"auction-bid-input\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-bid-input__input-wrapper\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"with\\\",[[27,\\\"concat\\\",[\\\"price_\\\",[23,[\\\"listing\\\",\\\"id\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"auction-bid-input__label\\\"],[12,\\\"for\\\",[22,1,[]]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"currency-symbol\\\",[[23,[\\\"listing\\\",\\\"priceCurrency\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"type\\\",\\\"id\\\",\\\"min\\\",\\\"step\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"hasError\\\"],[\\\"number\\\",[22,1,[]],[23,[\\\"listing\\\",\\\"price\\\"]],[23,[\\\"listing\\\",\\\"auction\\\",\\\"bidStepAmount\\\"]],\\\"input__txt input__txt--small auction-bid-input__input js-auction-bid-input\\\",[27,\\\"if\\\",[[23,[\\\"listing\\\",\\\"highestBid\\\",\\\"isOwn\\\"]],[27,\\\"t\\\",[\\\"Change max. bid\\\"],null],[27,\\\"t\\\",[\\\"Your max. bid\\\"],null]],null],[23,[\\\"newBidAmount\\\"]],[23,[\\\"hasError\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"loadingText\\\",\\\"action\\\",\\\"isLoading\\\",\\\"disabled\\\",\\\"class\\\"],[\\\"\\\",\\\"placeBid\\\",[23,[\\\"isLoading\\\"]],[23,[\\\"hasError\\\"]],[27,\\\"concat\\\",[\\\"button button--half-height auction-bid-input__btn js-auction-bid-input-btn\\\",[27,\\\"if\\\",[[23,[\\\"listing\\\",\\\"highestBid\\\",\\\"isOwn\\\"]],\\\"\\\",\\\" button--special\\\"],null]],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"highestBid\\\",\\\"isOwn\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Change bid\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Place bid\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasError\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"input__error-msg\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get\\\",[[27,\\\"get\\\",[[27,\\\"get\\\",[[27,\\\"get\\\",[[22,0,[]],\\\"validations\\\"],null],\\\"attrs\\\"],null],\\\"newBidAmount\\\"],null],\\\"message\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[3,\\\"action\\\",[[22,0,[]],\\\"placeBid\\\"],[[\\\"on\\\"],[\\\"submit\\\"]]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showBidHighStepModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"title\\\",\\\"modalClasses\\\",\\\"close\\\"],[[27,\\\"t\\\",[\\\"Caution\\\"],null],\\\"modal--medium\\\",[27,\\\"action\\\",[[22,0,[]],\\\"dismissBidHighStepModal\\\"],null]]],{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Your new max. bid would exceed the highest bid by more than {{bidThreshold}}%! Are you sure?\\\"],[[\\\"bidThreshold\\\"],[[23,[\\\"bidThreshold\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-top-3 text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Cancel\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"dismissBidHighStepModal\\\"]],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--warning\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Place {{bidNewAmount}} bid!\\\"],[[\\\"bidNewAmount\\\"],[[27,\\\"format-currency\\\",[[23,[\\\"bidNewAmount\\\"]],[23,[\\\"listing\\\",\\\"priceCurrency\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"confirmHighBid\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-bid-input/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-bidders-modal/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n store: Ember.inject.service(),\n userSession: Ember.inject.service(),\n auctionBidders: null,\n listing: null,\n listingBidsChanged: Ember.observer('listing.bidCount', function () {\n Ember.run.once(this, '_loadListingBids');\n }),\n init: function init() {\n this._super.apply(this, arguments);\n\n this._loadListingBids();\n },\n // Auction participant doesn't have bids loaded by default.\n // We need to load them manually at the moment.\n _loadListingBids: function _loadListingBids() {\n var _this = this;\n\n var listingId = Ember.get(this, 'auctionBidders');\n var store = Ember.get(this, 'store');\n store.findRecord('listing', listingId).then(function (listing) {\n Ember.set(_this, 'listing', listing);\n return listing.get('bids');\n }).then(function (bids) {\n return bids.reload();\n });\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-bidders-modal/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"37Sk+8BF\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"title\\\",\\\"modalClasses\\\",\\\"close\\\"],[[27,\\\"t\\\",[\\\"Bids for {{listingName}}\\\"],[[\\\"listingName\\\"],[[23,[\\\"listing\\\",\\\"name\\\"]]]]],\\\"modal--large\\\",[23,[\\\"closeModal\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"auction-bidders\\\",null,[[\\\"listing\\\",\\\"dateFormat\\\",\\\"timeFormat\\\"],[[23,[\\\"listing\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]],[23,[\\\"userSession\\\",\\\"timeFormat\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-bidders-modal/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-bidders/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n listing: null,\n dateFormat: 'MMM D, YYYY',\n timeFormat: 'HH:mm',\n chartOptions: Ember.computed(function () {\n return {\n legend: {\n display: false\n },\n tooltips: {\n enabled: false\n },\n layout: {\n padding: 10\n },\n scales: {\n xAxes: [{\n gridLines: {\n display: false\n }\n }],\n yAxes: [{\n gridLines: {\n display: false\n }\n }]\n }\n };\n }),\n chartData: Ember.computed('listing.bids.[]', 'timeFormat', function () {\n var bids = Ember.get(this, 'listing.bids');\n\n if (!Ember.isArray(bids)) {\n return [];\n }\n\n var sortedBids = bids.sortBy('numericId');\n var timeFormat = Ember.get(this, 'timeFormat');\n return {\n labels: sortedBids.mapBy('createdDate').map(function (d) {\n return d.format(timeFormat);\n }),\n backgroundColor: '#00ff00',\n datasets: [{\n data: sortedBids.mapBy('bidAmount'),\n borderColor: '#B36F9C',\n pointBackgroundColor: '#B36F9C',\n pointBorderColor: '#ffffff',\n pointBorderWidth: 2,\n fill: false,\n // Make lines straight instead of curves\n lineTension: 0\n }]\n };\n }),\n numberOfBidders: Ember.computed('listing.bids.[]', function () {\n var bids = Ember.get(this, 'listing.bids');\n\n if (!Ember.isArray(bids)) {\n return 0;\n }\n\n return bids.mapBy('participantName').uniq().length;\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-bidders/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"+9ljbImm\",\n \"block\": \"{\\\"symbols\\\":[\\\"auctionBid\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"table-list table-list--narrow table-list--inline text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"no-border\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"Number of bidders\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[7,\\\"strong\\\"],[9],[1,[21,\\\"numberOfBidders\\\"],false],[10],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"no-border\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"Number of bids\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[7,\\\"strong\\\"],[9],[1,[23,[\\\"listing\\\",\\\"bidCount\\\"]],false],[10],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"remainingClockTime\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"Time remaining\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[7,\\\"strong\\\"],[9],[1,[23,[\\\"listing\\\",\\\"auction\\\",\\\"endDateDuration\\\"]],false],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[1,[27,\\\"t\\\",[\\\"Waiting for bids...\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"listing\\\",\\\"bidCount\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-bidders__chart\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"ember-chart\\\",null,[[\\\"type\\\",\\\"data\\\",\\\"options\\\"],[\\\"line\\\",[23,[\\\"chartData\\\"]],[23,[\\\"chartOptions\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"listing\\\",\\\"bidCount\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center padding-all-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Currently there is only one bid.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center padding-all-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no bids yet.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"listing\\\",\\\"bidCount\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"scrollable\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table__striped text-center\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-left\\\"],[9],[1,[27,\\\"t\\\",[\\\"Bidder\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[1,[27,\\\"t\\\",[\\\"Amount\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Bid time\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"listing\\\",\\\"sortedBids\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-left\\\"],[9],[0,\\\"\\\\n \\\"],[1,[22,1,[\\\"participantName\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"format-currency\\\",[[22,1,[\\\"bidAmount\\\"]],[22,1,[\\\"bidCurrency\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"moment-format\\\",[[22,1,[\\\"createdDate\\\"]],[27,\\\"concat\\\",[[23,[\\\"dateFormat\\\"]],\\\" \\\",[23,[\\\"timeFormat\\\"]]],null]],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-bidders/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-delete-bid/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n classNames: ['inline-block'],\n l10n: Ember.inject.service(),\n ajax: Ember.inject.service(),\n toast: Ember.inject.service(),\n listing: null,\n showModal: false,\n canDelete: Ember.computed.reads('listing.canDeleteBid'),\n actions: {\n deleteBid: function deleteBid(closeAction) {\n var _this = this;\n\n var canDelete = Ember.get(this, 'canDelete');\n var listing = Ember.get(this, 'listing');\n var toast = Ember.get(this, 'toast');\n var ajax = Ember.get(this, 'ajax');\n var l10n = Ember.get(this, 'l10n');\n\n if (!canDelete) {\n return;\n }\n\n var sucessCallback = function sucessCallback(response) {\n var autoBid = response.restoredAutoBid;\n Ember.set(_this, 'listing.currentAutoBid', autoBid); // important to reload listing for new `bidCount`\n // and invalidate `allAuctionBids` for updating\n // admin view with all the auction participants\n\n Ember.get(listing, 'auction').then(function (auction) {\n listing.reload().then(function (listing) {\n listing.hasMany('bids').reload().then(function () {\n auction.notifyPropertyChange('allAuctionBids');\n auction.notifyPropertyChange('auctionRegistrations');\n });\n });\n });\n var message = l10n.t('Last bid deleted.');\n toast.info(message);\n closeAction();\n };\n\n var failureCallback = function failureCallback() {\n var message = l10n.t('There was an error while deleting last bid.');\n toast.error(message);\n };\n\n ajax.delete('/autoBid/listing/' + listing.id).then(sucessCallback, failureCallback);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-delete-bid/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"9cu6LoJn\",\n \"block\": \"{\\\"symbols\\\":[\\\"closeAction\\\"],\\\"statements\\\":[[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--warning nowrap\\\"],[12,\\\"disabled\\\",[27,\\\"not\\\",[[23,[\\\"listing\\\",\\\"canDeleteBid\\\"]]],null]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Delete highest bid\\\"],null],false],[0,\\\"\\\\n\\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showModal\\\"]]],null],true],null]]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"title\\\",\\\"modalClasses\\\",\\\"close\\\"],[[27,\\\"t\\\",[\\\"Caution\\\"],null],\\\"modal--medium\\\",[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showModal\\\"]]],null],false],null]]],{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You are going to delete highest bid for {{listingName}}! Are you sure?\\\"],[[\\\"listingName\\\"],[[23,[\\\"listing\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-top-3 text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Cancel\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[22,1,[]]]],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--warning\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Yes, delete bid!\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"deleteBid\\\",[22,1,[]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-delete-bid/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-header/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n websocket: Ember.inject.service(),\n userSession: Ember.inject.service(),\n auctionManager: Ember.inject.service(),\n keenTracking: Ember.inject.service(),\n auction: null,\n sampleAmount: 1,\n sampleAmountOptions: Ember.computed('auction.orderableSampleBundles', function () {\n var maxBundles = this.get('auction.orderableSampleBundles');\n var options = [];\n\n for (var i = 1; i <= maxBundles; i++) {\n options.push({\n value: i,\n label: i + 'x'\n });\n }\n\n return options;\n }),\n showAuctionTour: false,\n actions: {\n reload: function reload() {\n var model = Ember.get(this, 'auction');\n this.get('auctionManager').loadWebsockets(model);\n model.rollbackAttributes();\n model.reload();\n },\n registerForAuction: function registerForAuction() {\n this.sendAction('registerForAuctionAction');\n },\n addSamples: function addSamples() {\n this.sendAction('addSamplesAction', this.get('sampleAmount'));\n },\n dismissAuctionTour: function dismissAuctionTour() {\n this.set('showAuctionTour', false);\n },\n openAuctionTour: function openAuctionTour() {\n this.set('showAuctionTour', true); // NOTE: Added on 31.1.2017.\n // We want to track if users use auction tour at all.\n // In a half year or so, after a few auction passes, we\n // can see how many users use it in keen stats.\n\n this.get('keenTracking').addEvent('start-an-auction-tour-click', {\n auctionId: Ember.get(this, 'auction.id'),\n auctionName: Ember.get(this, 'auction.name')\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-header/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"UjGu2WQg\",\n \"block\": \"{\\\"symbols\\\":[\\\"text\\\",\\\"placeholder\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center color-white padding-all-2 bg-color-primary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Your company has successfully registered for this auction. Your bidding number is {{companyReference}}.\\\"],[[\\\"companyReference\\\"],[[23,[\\\"auction\\\",\\\"currentAuctionParticipant\\\",\\\"companyHash\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"currentAuctionParticipant\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center color-white padding-all-2 bg-color-info\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Your registration for this auction is still pending.\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info__tooltip\\\"],[12,\\\"data-info\\\",[27,\\\"t\\\",[\\\"To bid in this auction, you have to be pre-approved by the seller.\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/question-mark-white.svg\\\"],[11,\\\"alt\\\",\\\"Info icon\\\"],[11,\\\"class\\\",\\\"inline-icon inline-icon--small margin-left-2\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"currentAuctionParticipant\\\",\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center color-white padding-all-2 bg-color-error-light\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Sorry, your company has been rejected for this auction. Please contact the auctioneer for more information.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[12,\\\"style\\\",[27,\\\"darken-background-image\\\",[[23,[\\\"auction\\\",\\\"shop\\\",\\\"headerImageUrl\\\"]]],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__controls\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center text-left-m\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The auction is currently running!\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"canOrderSamples\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__order-samples\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You can order samples until {{finalSampleOrderDate}}\\\"],[[\\\"finalSampleOrderDate\\\"],[[27,\\\"moment-format\\\",[[23,[\\\"auction\\\",\\\"finalSampleOrderDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline select__small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"options\\\",\\\"value\\\"],[[23,[\\\"sampleAmountOptions\\\"]],[23,[\\\"sampleAmount\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--special button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order samples\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"addSamples\\\"]],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"sampleBundlePrice\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Sample bundle price: {{sampleBundlePrice}}\\\"],[[\\\"sampleBundlePrice\\\"],[[27,\\\"format-currency\\\",[[23,[\\\"auction\\\",\\\"sampleBundlePrice\\\"]],[23,[\\\"auction\\\",\\\"shop\\\",\\\"currency\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"flex justify-center flex-column-l max-width-6 margin-auto margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"auction\\\",\\\"isOwner\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"authenticated-link\\\",null,[[\\\"queryParamName\\\",\\\"queryParamValue\\\",\\\"class\\\"],[\\\"messageTo\\\",[23,[\\\"auction\\\",\\\"company\\\",\\\"id\\\"]],\\\"button button--secondary button--full margin-all-1\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Contact seller\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"register for auction\\\",[23,[\\\"auction\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"register.auction\\\",[23,[\\\"auction\\\"]]],[[\\\"class\\\"],[\\\"button button--special button--full margin-all-1\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Join auction and buy samples\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[27,\\\"not\\\",[[23,[\\\"auction\\\",\\\"isOwner\\\"]]],null],[27,\\\"not\\\",[[23,[\\\"auction\\\",\\\"currentAuctionParticipant\\\"]]],null]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-7 color-white max-width-5 text-center text-right-l margin-auto\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You can only bid on coffees or order samples after you have registered for an auction.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit auction\\\",[23,[\\\"auction\\\"]]],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"admin.manage.auction.edit\\\",[23,[\\\"auction\\\"]]],[[\\\"class\\\"],[\\\"button button--special\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Edit auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__logo\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"aspect-ratio aspect-ratio--1x1\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"class\\\",\\\"aspect-ratio--object\\\"],[12,\\\"src\\\",[23,[\\\"auction\\\",\\\"shop\\\",\\\"logoUrl\\\"]]],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Auction logo\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__titles\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h1\\\"],[11,\\\"class\\\",\\\"auction-header__title\\\"],[9],[1,[23,[\\\"auction\\\",\\\"name\\\"]],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"gt\\\",[[23,[\\\"auction\\\",\\\"shop\\\",\\\"auctions\\\",\\\"length\\\"]],1],null]],null,{\\\"statements\\\":[[4,\\\"get-text\\\",null,[[\\\"message\\\"],[[27,\\\"t\\\",[\\\"{{linkToShopAuctions 'See all auctions'}} by {{linkToShop}}\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"linkToShopAuctions\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"store.shop.auctions\\\",[23,[\\\"auction\\\",\\\"shop\\\"]]],[[\\\"class\\\"],[\\\"auction-header__subtitle-link\\\"]],{\\\"statements\\\":[[1,[22,1,[]],false]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"linkToShop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"store.shop\\\",[23,[\\\"auction\\\",\\\"shop\\\"]]],[[\\\"class\\\"],[\\\"auction-header__subtitle-link\\\"]],{\\\"statements\\\":[[1,[23,[\\\"auction\\\",\\\"shop\\\",\\\"name\\\"]],false]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[1,2]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"get-text\\\",null,[[\\\"message\\\"],[[27,\\\"t\\\",[\\\"by {{linkToShop}}\\\"],null]]],{\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"store.shop\\\",[23,[\\\"auction\\\",\\\"shop\\\"]]],[[\\\"class\\\"],[\\\"auction-header__subtitle-link\\\"]],{\\\"statements\\\":[[1,[23,[\\\"auction\\\",\\\"shop\\\",\\\"name\\\"]],false]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"section--highlighted-dark padding-top-4\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"wrapper\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__info-wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__info-box\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"table-list no-border\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[11,\\\"class\\\",\\\"table-list__auction--header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"This auction is running\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"running\\\"],[9],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__left\\\"],[9],[1,[27,\\\"t\\\",[\\\"Time remaining\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"remainingClockTime\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"websocket\\\",\\\"isConnected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"auction\\\",\\\"endDateDuration\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"color-error\\\"],[9],[1,[27,\\\"t\\\",[\\\"Not connected\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"websocket\\\",\\\"isConnected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"waiting for bids...\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"color-error\\\"],[9],[1,[27,\\\"t\\\",[\\\"Not connected\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__left\\\"],[9],[1,[27,\\\"t\\\",[\\\"Auction date\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__right\\\"],[9],[1,[27,\\\"moment-format\\\",[[23,[\\\"auction\\\",\\\"startedDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__left\\\"],[9],[1,[27,\\\"t\\\",[\\\"Start time\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__right\\\"],[9],[1,[27,\\\"moment-format\\\",[[23,[\\\"auction\\\",\\\"startedDate\\\"]],[23,[\\\"userSession\\\",\\\"timeFormat\\\"]]],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"font-size-6 block\\\"],[9],[0,\\\"(\\\"],[1,[27,\\\"prettify-timezone\\\",[[23,[\\\"userSession\\\",\\\"timezone\\\"]]],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__left\\\"],[9],[1,[27,\\\"t\\\",[\\\"Coffee lots\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__right\\\"],[9],[1,[23,[\\\"auction\\\",\\\"listings\\\",\\\"length\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__left\\\"],[9],[1,[27,\\\"t\\\",[\\\"Min. bid steps\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info__tooltip info__tooltip--right info__tooltip__multi-line\\\"],[12,\\\"data-info\\\",[27,\\\"t\\\",[\\\"When you bid on a coffee you are instructing V-Hub to bid for you (following the min. bid step). Each bid is made following a higher bid by another buyer. V-Hub will continue to bid against the other buyer until it wins the lot or it reaches the maximum bid you have set - whichever comes first. This assures you the lowest possible price against another buyer.\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/question-mark-grey.svg\\\"],[11,\\\"alt\\\",\\\"Info icon\\\"],[11,\\\"class\\\",\\\"inline-icon--small margin-right-1 opacity-medium\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"format-currency\\\",[[23,[\\\"auction\\\",\\\"bidStepAmount\\\"]],[23,[\\\"auction\\\",\\\"shop\\\",\\\"currency\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__left\\\"],[9],[1,[27,\\\"t\\\",[\\\"Auction type\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-list__right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info__tooltip info__tooltip--right info__tooltip__multi-line\\\"],[12,\\\"data-info\\\",[27,\\\"t\\\",[\\\"Every time someone places a bid on a coffee lot the timer resets to 3 minutes.\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/question-mark-grey.svg\\\"],[11,\\\"alt\\\",\\\"Info icon\\\"],[11,\\\"class\\\",\\\"inline-icon--small margin-right-1 opacity-medium\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[1,[23,[\\\"auction\\\",\\\"typeENUM\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"auction-header__about\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"archived\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"This auction has been archived.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isDraft\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\",[27,\\\"t\\\",[\\\"This auction is a draft.\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"company\\\",\\\"isVerified\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--info margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"PUBLISH IMMEDIATELY\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"publishDraftAuction\\\",[23,[\\\"auction\\\"]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isInactive\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"This auction is inactive.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"This auction is over.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[7,\\\"h2\\\"],[9],[1,[27,\\\"t\\\",[\\\"About this auction\\\"],null],false],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,[\\\"auction\\\",\\\"about\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain link--special margin-bottom-3 inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Start an auction tour\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"openAuctionTour\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[23,[\\\"websocket\\\",\\\"isConnected\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"ERROR\\\",\\\"margin-bottom-2\\\",[27,\\\"t\\\",[\\\"The connection to the server was lost.\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"In order to continue receiving updates, please reload now.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--info margin-top-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Reconnect now\\\"],null],false],[3,\\\"action\\\",[[22,0,[]],\\\"reload\\\"]],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-6 margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"We will try to reconnect you in {{count}} second.\\\",\\\"We will try to reconnect you in {{count}} seconds.\\\",[23,[\\\"websocket\\\",\\\"reconnectTime\\\"]]],[[\\\"count\\\"],[[23,[\\\"websocket\\\",\\\"reconnectTime\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAuctionTour\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"auction-tour-modal\\\",null,[[\\\"auction\\\",\\\"closeModal\\\"],[[23,[\\\"auction\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"dismissAuctionTour\\\"],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-header/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-heartbeat/component\", [\"exports\", \"@vollersgroup/hub-frontend/config/environment\", \"moment\"], function (_exports, _environment, _moment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var THIRTY_MINUTES = 30 * 60 * 1000;\n\n var _default = Ember.Component.extend({\n ajax: Ember.inject.service(),\n userSession: Ember.inject.service(),\n classNames: ['hidden'],\n roleLevel: Ember.computed.alias('userSession.currentUser.roleLevel'),\n auctionIsOver: Ember.computed('auction.closedDate', function () {\n // Keep a 30 minute interval where we still send heartbeat\n // For null it always returns false\n return (0, _moment.default)(Ember.get(this, 'auction.closedDate')).isAfter((0, _moment.default)().add(30, 'minutes'));\n }),\n tooSoonToSend: Ember.computed('auction.remainingTimeToStart', function () {\n var remainingTimeToStart = Ember.get(this, 'auction.remainingTimeToStart'); // Send heartbeat 30 minutes before the auction starts.\n\n return remainingTimeToStart > THIRTY_MINUTES;\n }),\n isTest: Ember.computed(function () {\n return _environment.default.environment === 'test';\n }),\n _watchForChanges: Ember.observer('roleLevel', 'auction.isAccepted', function () {\n this._sendHeartbeat();\n }),\n auction: null,\n\n /*\n * Interval for posting to server in ms.\n * By default 30 seconds\n */\n interval: 30 * 1000,\n init: function init() {\n this._super.apply(this, arguments);\n\n (false && !(Ember.get(this, 'auction')) && Ember.assert('Auction must be provided', Ember.get(this, 'auction')));\n\n this._sendHeartbeat();\n },\n _sendHeartbeat: function _sendHeartbeat() {\n if (Ember.get(this, 'isTest')) {\n return;\n }\n\n if (Ember.get(this, 'isDestroyed')) {\n return;\n }\n\n if (Ember.get(this, 'roleLevel') < 3) {\n return;\n }\n\n if (!Ember.get(this, 'auction.isAccepted')) {\n return;\n }\n\n if (Ember.get(this, 'auctionIsOver')) {\n return;\n }\n\n if (Ember.get(this, 'tooSoonToSend')) {\n var thirtyMinutesBeforeTheAuction = Ember.get(this, 'auction.remainingTimeToStart') - THIRTY_MINUTES;\n Ember.run.later(this, this._sendHeartbeat, thirtyMinutesBeforeTheAuction);\n return;\n }\n\n var auctionId = Ember.get(this, 'auction.id');\n Ember.get(this, 'ajax').post(\"/auction/\".concat(auctionId, \"/declareOnline\"));\n Ember.run.later(this, this._sendHeartbeat, Ember.get(this, 'interval'));\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-heartbeat/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"go2jgDaO\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-heartbeat/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-list-item/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n userSession: Ember.inject.service(),\n tagName: '',\n auction: null\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-list-item/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"URzxp0pw\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"link-to\\\",[\\\"store.auctions.show\\\",[23,[\\\"auction\\\"]]],[[\\\"class\\\"],[\\\"box box--highlight box--highlight-img box--square no-border square__list__item\\\"]],{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit auction\\\",[23,[\\\"auction\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--right box__label--action\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.auction.edit\\\",[23,[\\\"auction\\\"]]],[[\\\"bubbles\\\"],[false]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Edit auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--full box__label--state--green\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Registration accepted\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"currentAuctionParticipant\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--full box__label--state--blue\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Registration pending\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box--square__inner\\\"],[12,\\\"style\\\",[27,\\\"background-image\\\",[[23,[\\\"auction\\\",\\\"shop\\\",\\\"header\\\",\\\"s500x500\\\"]]],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__content\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__content--icon-wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/auction-white.svg\\\"],[11,\\\"alt\\\",\\\"\\\"],[11,\\\"class\\\",\\\"box__content--icon\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[11,\\\"class\\\",\\\"font-size-4\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,[\\\"auction\\\",\\\"name\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"listingActiveCount\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"{{count}} coffee\\\",\\\"{{count}} coffees\\\",[23,[\\\"auction\\\",\\\"listingActiveCount\\\"]]],[[\\\"count\\\"],[[23,[\\\"auction\\\",\\\"listingActiveCount\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--running relative inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Auction is running\\\"],null],false],[0,\\\" -\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"remainingClockTime\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"auction\\\",\\\"endDateDuration\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"waiting for bids\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"running\\\"],[9],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label relative inline-block\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"moment-format\\\",[[23,[\\\"auction\\\",\\\"startedDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label__gmt relative\\\"],[9],[0,\\\"\\\\n (\\\"],[1,[27,\\\"prettify-timezone\\\",[[23,[\\\"userSession\\\",\\\"timezone\\\"]]],null],false],[0,\\\")\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-list-item/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-listing/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display a single listing for auction.\n */\n var _default = Ember.Component.extend({\n websocket: Ember.inject.service(),\n userSession: Ember.inject.service(),\n tagName: 'div',\n classNames: ['card', 'table-running-auction__tr'],\n classNameBindings: ['hasNewBid:recent-bid', 'showScore::table-running-auction__tr--no-score'],\n listing: null,\n\n /*\n * Action passed from the parent to mark coffee as favorite.\n */\n markAsFavoriteAction: null,\n\n /*\n * List of listing ids marked as favorite\n */\n favoriteListingIds: null,\n hasNewBid: false,\n _watchForNewBid: Ember.observer('listing.bidCount', function () {\n if (Ember.get(this, 'isDestroyed')) {\n return;\n }\n\n Ember.set(this, 'hasNewBid', true);\n Ember.run.debounce(this, function () {\n if (Ember.get(this, 'isDestroyed')) {\n return;\n }\n\n Ember.set(this, 'hasNewBid', false);\n }, 7000);\n }),\n\n /**\n * Flag for score column visibility.\n *\n * @attribute showScore\n * @type {Boolean}\n * @optional\n */\n showScore: true,\n isFavorite: Ember.computed('favoriteListingIds.[]', 'listing.id', function () {\n return Ember.get(this, 'favoriteListingIds').includes(Ember.get(this, 'listing.id'));\n }),\n style: Ember.computed('listing.groupColor', function () {\n return Ember.String.htmlSafe(\"border-color: \".concat(Ember.get(this, 'listing.groupColor')));\n }),\n isRunningNotConnected: Ember.computed('websocket.isConnected', 'listing.auction.isRunning', function () {\n return !this.get('websocket.isConnected') && this.get('listing.auction.isRunning');\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-listing/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"CCukBY0J\",\n \"block\": \"{\\\"symbols\\\":[\\\"processing\\\"],\\\"statements\\\":[[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__name text-left-m\\\"],[12,\\\"style\\\",[21,\\\"style\\\"]],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"store.listing\\\",[23,[\\\"listing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"listing\\\",\\\"listingFullName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__favorite\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"auction-listing__fav-btn\\\"],[12,\\\"title\\\",[27,\\\"t\\\",[\\\"Mark as favorite\\\"],null]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"svg-icon\\\",[\\\"favorite\\\"],[[\\\"class\\\"],[[27,\\\"concat\\\",[\\\"icon--medium \\\",[27,\\\"if\\\",[[23,[\\\"isFavorite\\\"]],\\\"icon--gold\\\",\\\"icon--light-grey\\\"],null]],null]]]],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[23,[\\\"markAsFavoriteAction\\\"]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__amount text-center-m nowrap\\\"],[9],[0,\\\"\\\\n \\\"],[1,[23,[\\\"listing\\\",\\\"totalAmount\\\"]],false],[0,\\\" x \\\"],[1,[27,\\\"get-constant-label\\\",[[23,[\\\"listing\\\",\\\"availableAmountUnit\\\"]]],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showScore\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__score text-center-m nowrap\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[23,[\\\"listing\\\",\\\"sensorialScore\\\"]],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__processing text-center-m nowrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"with\\\",[[27,\\\"get-constant-label\\\",[[23,[\\\"listing\\\",\\\"processing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,1,[]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"n/a\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\"\\\\n\\\"],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__bids text-center-m nowrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"bidCount\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"flickering-fire\\\",null,[[\\\"scale\\\",\\\"class\\\",\\\"sortedBids\\\"],[\\\"0.75\\\",\\\"margin-right-1\\\",[23,[\\\"listing\\\",\\\"sortedBids\\\"]]]]],false],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"auctionBidders\\\"],[[23,[\\\"listing\\\",\\\"id\\\"]]]]]],[[\\\"class\\\"],[\\\"link__auction\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"n\\\",[\\\"{{count}} bid\\\",\\\"{{count}} bids\\\",[23,[\\\"listing\\\",\\\"bidCount\\\"]]],[[\\\"count\\\"],[[23,[\\\"listing\\\",\\\"bidCount\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"isRunning\\\"]],[23,[\\\"listing\\\",\\\"auction\\\",\\\"remainingClockTime\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[9],[0,\\\"| \\\"],[1,[23,[\\\"listing\\\",\\\"auction\\\",\\\"endDateDuration\\\"]],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"waiting for bids\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"running\\\"],[9],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[7,\\\"span\\\"],[9],[0,\\\".\\\"],[10],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"No bids\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"n/a\\\"],null],false],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"isRunningNotConnected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"color-error\\\"],[9],[1,[27,\\\"t\\\",[\\\"Not connected\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__highest text-center-m nowrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"highestBid\\\",\\\"isOwn\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/auction-high-bidder.svg\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Highest Bidder icon\\\"],null]],[11,\\\"class\\\",\\\"vertical-align-middle\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"You\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"highestBid\\\",\\\"participantName\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"listing\\\",\\\"highestBid\\\",\\\"participantName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"n/a\\\"],null],false],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__total-price text-center-m nowrap\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"totalPrice\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"format-currency\\\",[[23,[\\\"listing\\\",\\\"totalPrice\\\"]],[23,[\\\"listing\\\",\\\"priceCurrency\\\"]]],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"n/a\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__current-price text-center-m nowrap relative\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"view price listing\\\",[23,[\\\"listing\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"strong\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"format-currency\\\",[[23,[\\\"listing\\\",\\\"currentPrice\\\"]],[23,[\\\"listing\\\",\\\"priceCurrency\\\"]]],null],false],[0,\\\"\\\\n / \\\"],[1,[27,\\\"get-constant-label\\\",[[23,[\\\"listing\\\",\\\"priceBaseUnit\\\"]]],[[\\\"context\\\"],[\\\"baseUnits\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"currentAuctionParticipant\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info__tooltip\\\"],[12,\\\"data-info\\\",[27,\\\"t\\\",[\\\"You must be approved for the auction to see the price.\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/question-mark-grey.svg\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Info icon\\\"],null]],[11,\\\"class\\\",\\\"inline-icon inline-icon--small margin-left-1 opacity-medium margin-right-0\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"n/a\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Log in to see price\\\"],null],false],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[0,\\\"\\\\n \\\"],[1,[27,\\\"listing-autobid-info\\\",null,[[\\\"listing\\\"],[[23,[\\\"listing\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__td table-running-auction__td__bid-input text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"bid on auction\\\",[23,[\\\"listing\\\",\\\"auction\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"auction-bid-input\\\",null,[[\\\"listing\\\"],[[23,[\\\"listing\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-all-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"hidden-m\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Winner\\\"],null],false],[0,\\\":\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[23,[\\\"listing\\\",\\\"auctionWinningBidder\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"currentAuctionParticipant\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-right margin-right-2 margin-top-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"info__tooltip\\\"],[12,\\\"data-info\\\",[27,\\\"t\\\",[\\\"To bid in this auction, you have to be pre-approved by the seller.\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/question-mark-grey.svg\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Info icon\\\"],null]],[11,\\\"class\\\",\\\"inline-icon inline-icon--small margin-left-1 opacity-medium margin-right-0\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Registration still pending\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"listing\\\",\\\"auction\\\",\\\"currentAuctionParticipant\\\",\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-right margin-right-2 margin-top-2 margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Registration has been rejected\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"register for auction\\\",[23,[\\\"listing\\\",\\\"auction\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"register.auction\\\",[23,[\\\"listing\\\",\\\"auction\\\"]]],[[\\\"class\\\"],[\\\"button button--special button--half-height button__mobile--full\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Join auction to bid\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-listing/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-listings/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var FAVORITE_LISTINGS_KEY = 'auction-favorite-listings';\n\n var _default = Ember.Component.extend({\n userSession: Ember.inject.service(),\n l10n: Ember.inject.service(),\n localStorage: Ember.inject.service(),\n filter: 'ALL',\n sort: 'name',\n auction: null,\n favoriteListingIds: Ember.computed('auction.isAccepted', 'localStorage', function () {\n if (!Ember.get(this, 'auction.isAccepted')) {\n return [];\n }\n\n var favoriteListingIds = Ember.get(this, 'localStorage').getItem(FAVORITE_LISTINGS_KEY);\n\n if (Ember.isEmpty(favoriteListingIds)) {\n return [];\n }\n\n return favoriteListingIds;\n }),\n sortProperty: Ember.computed('sort', 'sortDirection', function () {\n var sort = Ember.get(this, 'sort');\n var sortDirection = sort !== 'listingFullName' ? 'desc' : 'asc';\n return [\"\".concat(sort, \":\").concat(sortDirection)];\n }),\n showScore: Ember.computed('auction.listings.@each.sensorialScore', function () {\n return Ember.get(this, 'auction.listings').uniqBy('sensorialScore') // If all the scores are same, do not show them\n .get('length') > 1;\n }),\n filterOptions: Ember.computed('l10n', function () {\n var l10n = Ember.get(this, 'l10n');\n return [{\n value: 'ALL',\n label: l10n.t('All lots')\n }, {\n value: 'FAVORITE_LISTINGS',\n label: l10n.t('Favorite lots')\n }, {\n value: 'BID',\n label: l10n.t('Lots that I have bid on')\n }, {\n value: 'HIGHEST_BID',\n label: l10n.t('Lots I am the highest bidder for')\n }];\n }),\n sortOptions: Ember.computed('l10n', 'showScore', function () {\n var l10n = Ember.get(this, 'l10n');\n var options = [{\n value: 'listingFullName',\n label: l10n.t('Lot name')\n }, {\n value: 'availableAmount',\n label: l10n.t('Available amount')\n }, {\n value: 'currentPrice',\n label: l10n.t('Highest bid')\n }];\n\n if (Ember.get(this, 'showScore')) {\n options.push({\n value: 'sensorialScore',\n label: l10n.t('Cupping score')\n });\n }\n\n return options;\n }),\n sortedListings: Ember.computed.sort('filteredListings', 'sortProperty'),\n filteredListings: Ember.computed('filter', 'auction.listings', 'auction.isAccepted', 'auction.listings.@each.highestBid', 'auction.listings.@each.currentAutoBid', 'favoriteListingIds.[]', function () {\n var listings = Ember.get(this, 'auction.listings');\n\n if (!Ember.get(this, 'auction.isAccepted')) {\n return listings;\n }\n\n var filter = Ember.get(this, 'filter');\n\n switch (filter) {\n case 'ALL':\n return listings;\n\n case 'FAVORITE_LISTINGS':\n // eslint-disable-next-line no-case-declarations\n var favoriteListingIds = Ember.get(this, 'favoriteListingIds');\n return listings.filter(function (l) {\n return favoriteListingIds.includes(l.get('id'));\n });\n\n case 'BID':\n return listings.filterBy('currentAutoBid');\n\n case 'HIGHEST_BID':\n return listings.filterBy('highestBid.isOwn');\n\n default:\n (false && !(false) && Ember.assert(\"Unknown filter type '\".concat(filter)));\n return listings;\n }\n }),\n listings: Ember.computed.alias('sortedListings'),\n actions: {\n toggleFavorite: function toggleFavorite(listing) {\n var favoriteListingIds = Ember.get(this, 'favoriteListingIds');\n var listingId = listing.get('id');\n\n if (favoriteListingIds.includes(listingId)) {\n favoriteListingIds.removeObject(listingId);\n } else {\n favoriteListingIds.pushObject(listingId);\n }\n\n Ember.get(this, 'localStorage').setItem(FAVORITE_LISTINGS_KEY, favoriteListingIds);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-listings/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"ODkHhoWq\",\n \"block\": \"{\\\"symbols\\\":[\\\"listing\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-tooltip\\\",null,[[\\\"infoId\\\",\\\"class\\\"],[\\\"info__about-auctions--running\\\",\\\"tooltip--no-arrow tooltip--full margin-bottom-3 marign-top-medium\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"When you bid on an auction the amount you enter is a maximum bid amount. You are instructing V-Hub to automatically bid on your behalf, in bid increments (usually $0.10), up to the maximum you are prepared to bid. Your maximum bid is kept secret. Only you can see it. No other buyers can see your maximum bid.\\\"],null],false],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"info-center.auctions.how-to-bid\\\"],[[\\\"class\\\"],[\\\"button--plain\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Learn more about how bidding works.\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--span-2-col\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"filter_by\\\"],[11,\\\"class\\\",\\\"label__standard inline-block-m margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Filter:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-radio-buttons\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"optionClass\\\",\\\"wrapperClass\\\",\\\"translate\\\"],[[23,[\\\"filter\\\"]],[23,[\\\"filterOptions\\\"]],\\\"auction-listings__filter-option\\\",\\\"inline-m\\\",true]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3 text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"sort_by\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Sort by\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"select__custom select__small select__custom--inline\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\"],[[23,[\\\"sort\\\"]],[23,[\\\"sortOptions\\\"]],\\\"sort_by\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\\n\\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__full\\\"],[9],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"listings\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"table-running-auction__wrapper \\\",[27,\\\"unless\\\",[[23,[\\\"showScore\\\"]],[23,[\\\"table-running-auction__wrapper--no-score\\\"]]],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"table-running-auction\\\",[27,\\\"unless\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]],\\\" table-running-auction--closed\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Coffee\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th\\\"],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Amount\\\"],null],false],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showScore\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Score\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isActive\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Processing\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Bids | Timer\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Highest bidder\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Total\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-center\\\"],[9],[1,[27,\\\"t\\\",[\\\"Price\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"style\\\",\\\"width:255px;\\\"],[11,\\\"class\\\",\\\"table-running-auction__th text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isClosed\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Winner\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"table-running-auction__tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"listings\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"auction-listing\\\",null,[[\\\"listing\\\",\\\"showScore\\\",\\\"markAsFavoriteAction\\\",\\\"favoriteListingIds\\\"],[[22,1,[]],[23,[\\\"showScore\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleFavorite\\\",[22,1,[]]],null],[23,[\\\"favoriteListingIds\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table-row\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table-cell padding-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"There are no lots in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-listings/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-live-management/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n ajax: Ember.inject.service(),\n toast: Ember.inject.service(),\n showForceTimerModal: false,\n showAuctionManagement: false,\n auctioneerMessage: null,\n auction: null,\n init: function init() {\n this._super.apply(this, arguments);\n\n (false && !(Ember.get(this, 'auction')) && Ember.assert('auction is required', Ember.get(this, 'auction')));\n },\n actions: {\n showForceTimerModal: function showForceTimerModal() {\n if (!Ember.get(this, 'auction.isRunning')) {\n return;\n }\n\n if (Ember.get(this, 'auction.isTimerRunning')) {\n return;\n }\n\n Ember.set(this, 'showForceTimerModal', true);\n },\n dismissForceTimerModal: function dismissForceTimerModal() {\n Ember.set(this, 'showForceTimerModal', false);\n },\n forceTimerStart: function forceTimerStart() {\n this._sendPost(\"/auction/\".concat(Ember.get(this, 'auction.id'), \"/forceTimerStart\"));\n\n this.send('dismissForceTimerModal');\n },\n toggleAuctionManagement: function toggleAuctionManagement() {\n this.toggleProperty('showAuctionManagement');\n },\n pauseAuction: function pauseAuction() {\n if (!Ember.get(this, 'auction.isRunning')) {\n return;\n }\n\n this._sendPost(\"/auction/\".concat(Ember.get(this, 'auction.id'), \"/pause\"));\n },\n resumeAuction: function resumeAuction() {\n if (!Ember.get(this, 'auction.isOnHold')) {\n return;\n }\n\n this._sendPost(\"/auction/\".concat(Ember.get(this, 'auction.id'), \"/resume\"));\n },\n sendMessage: function sendMessage() {\n var _this = this;\n\n if (!Ember.get(this, 'auctioneerMessage')) {\n return;\n }\n\n var url = \"/auction/\".concat(Ember.get(this, 'auction.id'), \"/notification\");\n var options = {\n data: {\n message: Ember.get(this, 'auctioneerMessage')\n }\n };\n\n this._sendPost(url, options).then(function () {\n return Ember.set(_this, 'auctioneerMessage', '');\n });\n }\n },\n _sendPost: function _sendPost(url) {\n var _this2 = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var handleError = function handleError(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this2, 'l10n').t('An error occurred while sending request: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this2, 'toast').error(errorMessage);\n };\n\n return this.get('ajax').post(url, options).catch(handleError);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-live-management/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"kuC0g2R9\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button button--special button--half-height margin-bottom-2 js-auction-live-management-toggle-btn\\\",\\\"toggleAuctionManagement\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Live auction management\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAuctionManagement\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight margin-top-2 margin-bottom-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"or\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]],[23,[\\\"auction\\\",\\\"isOnHold\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"auctioneer_message\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Change current auction status:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-bottom-3\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"and\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]],[27,\\\"not\\\",[[23,[\\\"auction\\\",\\\"isTimerRunning\\\"]]],null]],null]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button button--warning button--half-height margin-bottom-3 js-auction-live-management-force-btn\\\",\\\"showForceTimerModal\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"FORCE TIMER START\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isRunning\\\"]]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button button--warning button--half-height margin-bottom-3\\\",\\\"pauseAuction\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"PAUSE AUCTION\\\"],null],false],[0,\\\"\\\\n \\\"]],\\\"parameters\\\":[]},null],[0,\\\" - \\\"],[1,[27,\\\"t\\\",[\\\"WARNING: This will immediately stop the auction!\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isOnHold\\\"]]],null,{\\\"statements\\\":[[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button button--half-height margin-bottom-3\\\",\\\"resumeAuction\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"RESUME AUCTION\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"auctioneer_message\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Send notification to participants:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"markdown-wysiwyg\\\",null,[[\\\"content\\\",\\\"id\\\"],[[23,[\\\"auctioneerMessage\\\"]],\\\"auctioneer_message\\\"]]],false],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"disabled\\\",\\\"class\\\",\\\"action\\\"],[[27,\\\"not\\\",[[23,[\\\"auctioneerMessage\\\"]]],null],\\\"button button--secondary button--half-height margin-top-2 js-auction-live-management-send-msg\\\",\\\"sendMessage\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Send message\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showForceTimerModal\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"title\\\",\\\"close\\\"],[[27,\\\"t\\\",[\\\"Caution\\\"],null],[27,\\\"action\\\",[[22,0,[]],\\\"dismissForceTimerModal\\\"],null]]],{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"This will start auction timer even if there are no bids on all listings yet! Are you sure?\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline margin-top-3 text-right\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Cancel\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],\\\"dismissForceTimerModal\\\"],null]]],[10],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--special\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Yes, start timer!\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"forceTimerStart\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-live-management/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-overview/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * A table of auction participants incl. buttons to change the status.\n *\n * ```hbs\n * {{auction-registration-overview auctionRegistrations=myParticipants}}\n * ```\n *\n * @namespace Component\n * @class AuctionRegistrationOverview\n * @extends Ember.Component\n *\n */\n var _default = Ember.Component.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n l10n: Ember.inject.service(),\n toast: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Attributes\n\n /**\n * The auction registrations to display\n *\n * @attribute auctionRegistrations\n * @type Model.AuctionParticipant\n */\n auctionRegistrations: null,\n\n /**\n * This action is called whenever the status of a registration changes.\n *\n * @attribute action\n * @type String\n */\n action: null,\n\n /**\n * If set to true, an additional column with a checkbox will be rendered\n * to select single items from the table to be used for others.\n *\n * @attribute selectable\n * @type {Boolean}\n */\n selectable: false,\n\n /**\n * Collection of selected registrations if `selectable` is true.\n *\n * @attribute selectedRegistrations\n * @type {Array}\n */\n selectedRegistrations: Ember.computed(function () {\n return [];\n }),\n\n /**\n * How to order the table. If this is null, the orderBy field is not displayed.\n * Else, the select is linked to this attribute.\n *\n * @attribute orderBy\n * @type {String}\n */\n orderBy: null,\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Available options for ordering, either \"DATE\" or \"NAME\".\n *\n * @property orderByOptions\n * @type {Array}\n */\n orderByOptions: Ember.computed('l10n', function () {\n return [{\n value: 'DATE',\n label: this.get('l10n').t('Registration date')\n }, {\n value: 'NAME',\n label: this.get('l10n').t('Company name')\n }];\n }),\n\n /**\n * Flag indicating if all registrations are selected.\n *\n * @property allSelected\n * @type {Booelan}\n */\n allSelected: false,\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Sets and persists participant's status to \"ACCEPTED\".\n *\n * @event rejectRegistration\n * @param {Model.AuctionParticipant} registration\n * @private\n */\n acceptRegistration: function acceptRegistration(registration) {\n var _this = this;\n\n registration.set('registrationStatus', 'ACCEPTED');\n registration.save().then(function () {\n registration.get('auction').notifyPropertyChange('auctionRegistrations');\n\n if (_this.getAttr('action')) {\n _this.sendAction('action', registration);\n }\n });\n this.get('toast').success(this.get('l10n').t('You have accepted the registration.'));\n },\n\n /**\n * Sets and persists participant's status to \"REJECTED\".\n *\n * @event rejectRegistration\n * @param {Model.AuctionParticipant} registration\n * @private\n */\n rejectRegistration: function rejectRegistration(registration) {\n var _this2 = this;\n\n registration.set('registrationStatus', 'REJECTED');\n registration.save().then(function () {\n registration.get('auction').notifyPropertyChange('auctionRegistrations');\n\n if (_this2.getAttr('action')) {\n _this2.sendAction('action', registration);\n }\n });\n this.get('toast').info(this.get('l10n').t('You have rejected the registration.'));\n },\n\n /**\n * Manually set the ordering.\n *\n * @event orderBy\n * @param {String} orderBy\n * @private\n */\n orderBy: function orderBy(_orderBy) {\n this.set('orderBy', _orderBy);\n },\n\n /**\n * Toggles selection for a single registration.\n *\n * @event toggleSelectAll\n * @param {Model.AuctionParticipant} registration\n * @param {Boolean} checked\n * @private\n */\n toggleSelect: function toggleSelect(registration, checked) {\n var registrations = this.get('auctionRegistrations');\n var selected = this.get('selectedRegistrations');\n registration.set('isSelected', checked);\n\n if (checked) {\n selected.addObject(registration);\n } else {\n selected.removeObject(registration);\n }\n\n var total = selected.get('length');\n var current = registrations.get('length');\n this.set('allSelected', total === current);\n },\n\n /**\n * Toggles selection of all registrations.\n *\n * @event toggleSelectAll\n * @param {Boolean} checked\n * @private\n */\n toggleSelectAll: function toggleSelectAll(checked) {\n var _this3 = this;\n\n this.get('auctionRegistrations').forEach(function (registration) {\n _this3.send('toggleSelect', registration, checked);\n });\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-overview/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"RkEZDiJA\",\n \"block\": \"{\\\"symbols\\\":[\\\"registration\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auctionRegistrations\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"loading-spinner\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"auctionRegistrations\\\",\\\"length\\\"]],0],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"No registrations in this view.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auctionRegistrations\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--right text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"orderBy\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"select_orderBy\\\"],[11,\\\"class\\\",\\\"label__standard inline-block margin-right-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Order by\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"select__custom select__custom--inline select__small\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-select\\\",null,[[\\\"value\\\",\\\"options\\\",\\\"id\\\"],[[23,[\\\"orderBy\\\"]],[23,[\\\"orderByOptions\\\"]],\\\"select_orderBy\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__sidebar--main\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"There is {{count}} auction registration in this view.\\\",\\\"There are {{count}} auction registrations in this view.\\\",[23,[\\\"auctionRegistrations\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"auctionRegistrations\\\",\\\"length\\\"]]]]],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--striped table__block--responsive table__manage__registrations\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"thead\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectable\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"table__header__sortable text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"standalone\\\",\\\"checked\\\",\\\"action\\\",\\\"id\\\"],[true,[23,[\\\"allSelected\\\"]],\\\"toggleSelectAll\\\",\\\"select_all_registrations\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"th\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"NAME\\\"],null],\\\"table__header__sortable--sorted\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Company\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"NAME\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"table__header__sortable text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Status\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"table__header__sortable\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Auction\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"class\\\",\\\"table__header__sortable text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Sample bundles ordered\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width: 120px;\\\"],[12,\\\"class\\\",[28,[\\\"table__header__sortable \\\",[27,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"orderBy\\\"]],\\\"DATE\\\"],null],\\\"table__header__sortable--sorted table__header__sortable--sorted--desc\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain button--order\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Date\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"orderBy\\\",\\\"DATE\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"auctionRegistrations\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"selectable\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"standalone\\\",\\\"checked\\\",\\\"action\\\",\\\"id\\\"],[true,[22,1,[\\\"isSelected\\\"]],[27,\\\"action\\\",[[22,0,[]],\\\"toggleSelect\\\",[22,1,[]]],null],[27,\\\"concat\\\",[\\\"select_registration\\\",[22,1,[\\\"id\\\"]]],null]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Company\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table-row\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"company\\\",\\\"location\\\",\\\"countryData\\\",\\\"flag\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table-cell vertical-align-middle padding-right-1\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"width\\\",\\\"25\\\"],[11,\\\"class\\\",\\\"vertical-align-middle\\\"],[12,\\\"alt\\\",[27,\\\"get-constant-label\\\",[[22,1,[\\\"company\\\",\\\"location\\\",\\\"country\\\"]]],null]],[12,\\\"title\\\",[27,\\\"get-constant-label\\\",[[22,1,[\\\"company\\\",\\\"location\\\",\\\"country\\\"]]],null]],[12,\\\"src\\\",[27,\\\"flag-url\\\",[[22,1,[\\\"company\\\",\\\"location\\\",\\\"countryData\\\",\\\"flag\\\"]]],null]],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"display-table-cell vertical-align-middle\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.registrant\\\",[22,1,[]]],[[\\\"class\\\"],[\\\"vertical-align-middle\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[22,1,[\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[0,\\\"\\\\n \\\"],[1,[22,1,[\\\"userEmail\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[0,\\\"\\\\n \\\"],[1,[22,1,[\\\"company\\\",\\\"location\\\",\\\"phone\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Status\\\"],null]],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--green border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"registrationStatus\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[22,1,[\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--blue border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"registrationStatus\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[22,1,[\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--red border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[22,1,[\\\"registrationStatus\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Auction\\\"],null]],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"truncate\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"store.auctions.show\\\",[22,1,[\\\"auction\\\"]]],null,{\\\"statements\\\":[[1,[22,1,[\\\"auction\\\",\\\"name\\\"]],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Sample bundles ordered\\\"],null]],[11,\\\"class\\\",\\\"text-center\\\"],[9],[0,\\\"\\\\n \\\"],[1,[22,1,[\\\"sampleBundlesOrderedAmount\\\"]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[12,\\\"data-mobile-title\\\",[27,\\\"t\\\",[\\\"Date\\\"],null]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"moment-format\\\",[[22,1,[\\\"registrationDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit auction-participant\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,1,[\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Accept\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"acceptRegistration\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"edit auction-participant\\\"],null]],null,{\\\"statements\\\":[[4,\\\"unless\\\",[[22,1,[\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--half-height button--secondary\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Reject\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"rejectRegistration\\\",[22,1,[]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-participant-overview/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-table-row-listing/component\", [\"exports\", \"ember-data\"], function (_exports, _emberData) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var PromiseArray = _emberData.default.PromiseArray;\n /**\n * A row containing a listing, where given participant is currently the\n * highest bidder and stating information about total bids done.\n *\n * ```hbs\n * {{auction-participants-table-row-listing participant=myParticipant listing=myListing}}\n * ```\n *\n * @namespace Component\n * @class AuctionParticipantsTable\n * @extends Ember.Component\n */\n\n var _default = Ember.Component.extend({\n tagName: 'tr',\n // -------------------------------------------------------------------------\n // Attributes\n\n /**\n * Listing Model.\n *\n * @attribute listing\n * @type {Model.Listing}\n */\n listing: null,\n\n /**\n * Auction Participant Model.\n *\n * @attribute participant\n * @type {Model.AuctionParticipant}\n */\n participant: null,\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Array containing all bids of current listing\n * the company bid on in current auction.\n *\n * @property participantBids\n * @type {Model.Bid.[]}\n * @public\n */\n participantBids: Ember.computed('listing.bids.[]', 'participant.companyHash', function () {\n var participantBids = [];\n var listing = this.get('listing');\n var companyHash = this.get('participant.companyHash');\n var promise = new Ember.RSVP.Promise(function (resolve, reject) {\n listing.get('bids').then(function (bids) {\n bids.forEach(function (bid) {\n var participantName = bid.get('participantName');\n\n if (participantName === companyHash) {\n participantBids.addObject(bid);\n }\n });\n resolve(participantBids);\n }, reject);\n });\n return PromiseArray.create({\n promise: promise\n });\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-table-row-listing/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"h7zDa884\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"td\\\"],[11,\\\"width\\\",\\\"69%\\\"],[11,\\\"colspan\\\",\\\"5\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"store.listing\\\",[23,[\\\"listing\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"listing\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"width\\\",\\\"12%\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"{{count}} bid\\\",\\\"{{count}} bids\\\",[23,[\\\"participantBids\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"participantBids\\\",\\\"length\\\"]]]]],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"td\\\"],[11,\\\"width\\\",\\\"19%\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"format-currency\\\",[[23,[\\\"listing\\\",\\\"totalPrice\\\"]],[23,[\\\"participant\\\",\\\"auction\\\",\\\"shop\\\",\\\"currency\\\"]]],null],false],[0,\\\"\\\\n\\\"],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-participant-table-row-listing/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-table-row/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n tagName: '',\n participant: null,\n showHighestLots: false,\n actions: {\n toggleHighestLots: function toggleHighestLots() {\n this.toggleProperty('showHighestLots');\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-table-row/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"KD7Z3CxI\",\n \"block\": \"{\\\"symbols\\\":[\\\"listing\\\"],\\\"statements\\\":[[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.registrant\\\",[23,[\\\"participant\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"participant\\\",\\\"company\\\",\\\"name\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[12,\\\"class\\\",[28,[\\\"width-1 h-1bu border-radius-full \\\",[27,\\\"if\\\",[[23,[\\\"participant\\\",\\\"isSomeoneFromCompanyOnline\\\"]],\\\"bg-color-primary\\\",\\\"bg-color-error\\\"],null]]]],[9],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"link-to\\\",[\\\"admin.manage.overview.registrant\\\",[23,[\\\"participant\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[23,[\\\"participant\\\",\\\"user\\\",\\\"fullName\\\"]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"participant\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--green border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[23,[\\\"participant\\\",\\\"registrationStatus\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[23,[\\\"participant\\\",\\\"isPending\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--blue border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[23,[\\\"participant\\\",\\\"registrationStatus\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"participant\\\",\\\"isRejected\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box__label box__label--state box__label--state--red border-radius-1 relative\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get-constant-label\\\",[[23,[\\\"participant\\\",\\\"registrationStatus\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"moment-format\\\",[[23,[\\\"participant\\\",\\\"registrationDate\\\"]],[23,[\\\"userSession\\\",\\\"dateFormat\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"{{count}} lot\\\",\\\"{{count}} lots\\\",[23,[\\\"participant\\\",\\\"bidListings\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"participant\\\",\\\"bidListings\\\",\\\"length\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"a\\\"],[11,\\\"href\\\",\\\"javascript:void(0)\\\"],[12,\\\"class\\\",[28,[\\\"link--arrow \\\",[27,\\\"if\\\",[[23,[\\\"showHighestLots\\\"]],\\\"link--arrow-open\\\"],null]]]],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"{{count}} lot\\\",\\\"{{count}} lots\\\",[23,[\\\"participant\\\",\\\"highestBidListings\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"participant\\\",\\\"highestBidListings\\\",\\\"length\\\"]]]]],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"toggleHighestLots\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"n\\\",[\\\"{{count}} bid\\\",\\\"{{count}} bids\\\",[23,[\\\"participant\\\",\\\"allParticipantBids\\\",\\\"length\\\"]]],[[\\\"count\\\"],[[23,[\\\"participant\\\",\\\"allParticipantBids\\\",\\\"length\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"format-currency\\\",[[23,[\\\"participant\\\",\\\"totalParticipantPrice\\\"]],[23,[\\\"participant\\\",\\\"auction\\\",\\\"shop\\\",\\\"currency\\\"]]],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showHighestLots\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"9\\\"],[11,\\\"class\\\",\\\"padding-all-0\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--nested\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"participant\\\",\\\"highestBidListings\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"auction-participant-table-row-listing\\\",null,[[\\\"participant\\\",\\\"listing\\\"],[[23,[\\\"participant\\\"]],[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"table\\\"],[11,\\\"class\\\",\\\"table table--nested\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[9],[1,[27,\\\"t\\\",[\\\"There are currently no listings, for which this participant is highest bidder.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-participant-table-row/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-table/component\", [\"exports\", \"@vollersgroup/hub-frontend/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.Component.extend({\n ajax: Ember.inject.service(),\n tagName: 'table',\n classNames: ['table', 'table--striped'],\n auction: null,\n init: function init() {\n this._super.apply(this, arguments);\n\n this._refreshOnlineUsers();\n },\n _refreshOnlineUsers: function _refreshOnlineUsers() {\n if (_environment.default.environment === 'test') {\n return;\n }\n\n if (Ember.get(this, 'isDestroyed')) {\n return;\n }\n\n Ember.get(this, 'auction').hasMany('users').reload();\n var interval = 30 * 1000;\n Ember.run.later(this, this._refreshOnlineUsers, interval);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-participant-table/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"wZrnrja3\",\n \"block\": \"{\\\"symbols\\\":[\\\"participant\\\"],\\\"statements\\\":[[7,\\\"thead\\\"],[11,\\\"class\\\",\\\"table__header\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:20%\\\"],[9],[1,[27,\\\"t\\\",[\\\"Name\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[9],[1,[27,\\\"t\\\",[\\\"Online\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:15%\\\"],[9],[1,[27,\\\"t\\\",[\\\"User\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:10%\\\"],[9],[1,[27,\\\"t\\\",[\\\"Status\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:10%\\\"],[9],[1,[27,\\\"t\\\",[\\\"Registered\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:10%\\\"],[9],[1,[27,\\\"t\\\",[\\\"Coffees bid On\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:10%\\\"],[9],[1,[27,\\\"t\\\",[\\\"Coffee's highest bidder\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:8%\\\"],[9],[1,[27,\\\"t\\\",[\\\"All bids\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"th\\\"],[11,\\\"style\\\",\\\"width:15%\\\"],[11,\\\"class\\\",\\\"text-right\\\"],[9],[1,[27,\\\"t\\\",[\\\"Total\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\"],[7,\\\"tbody\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"auction\\\",\\\"auctionRegistrations\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"auction-participant-table-row\\\",null,[[\\\"participant\\\"],[[22,1,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"tr\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"td\\\"],[11,\\\"colspan\\\",\\\"9\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"No companies registered for this auction yet.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[10]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-participant-table/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-registration-form/component\", [\"exports\", \"ember-can\", \"@vollersgroup/hub-frontend/company/model\", \"@vollersgroup/hub-frontend/utils/get-first-adapter-error-message\", \"@vollersgroup/hub-frontend/utils/scroll-into-the-first-error-if-needed\", \"ember-cp-validations\"], function (_exports, _emberCan, _model2, _getFirstAdapterErrorMessage, _scrollIntoTheFirstErrorIfNeeded, _emberCpValidations) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n var Validations = (0, _emberCpValidations.buildValidations)({\n password: {\n validators: [(0, _emberCpValidations.validator)('length', {\n dependentKeys: ['model.user.isNew'],\n allowNone: false,\n min: 8,\n message: 'Please enter at least 8 characters.',\n disabled: Ember.computed.not('model.user.isNew')\n })]\n },\n importerName: {\n validators: [(0, _emberCpValidations.validator)('presence', {\n dependentKeys: ['model.importerRequirement'],\n presence: true,\n ignoreBlank: true,\n message: 'Please enter an importer name.',\n disabled: Ember.computed('model.importerRequirement', function () {\n var importerRequirement = Ember.get(this, 'model.importerRequirement');\n return importerRequirement !== 'IMPORTER_PROVIDED';\n })\n })]\n },\n termsAccepted: {\n validators: [(0, _emberCpValidations.validator)(function (value, _options, _model, _attribute) {\n return !value ? 'Please accept auction terms.' : true;\n })]\n }\n });\n\n var _default = Ember.Component.extend(_emberCan.CanMixin, Validations, {\n // -------------------------------------------------------------------------\n // Dependencies\n store: Ember.inject.service(),\n toast: Ember.inject.service(),\n ajax: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Attributes\n\n /**\n * CSS class of form field wrapper.\n *\n * @property tagName\n * @type String\n * @optional\n * @default \"\"\n */\n class: '',\n\n /**\n * An existing or new user instance.\n *\n * @attribute user\n * @type Object\n * @optional\n */\n user: null,\n\n /**\n * A shipping address.\n *\n * @attribute shippingAddress\n * @type Object\n * @optional\n */\n shippingAddress: null,\n\n /**\n * If profile fields should be shown.\n *\n * @property showProfile\n * @type Boolean\n * @optional\n * @default true\n */\n showProfile: true,\n\n /**\n * The action called after a user\n * has been successful created or\n * updated in database.\n *\n * @property saveAction\n * @type function\n */\n saveAction: null,\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Component's current loading state.\n *\n * @property isLoading\n * @type Boolean\n */\n isLoading: false,\n\n /**\n * Flag indicating whether all error messages should be displayed.\n */\n didValidate: false,\n\n /**\n *\n */\n importerName: null,\n\n /**\n * The password for new users.\n *\n * @property password\n * @type String\n */\n password: '',\n\n /**\n * Accept terms checkbox value\n */\n termsAccepted: null,\n\n /**\n * Stack with similar components set\n * company check for new users.\n *\n * @property similarCompanies\n * @type Array\n */\n similarCompanies: Ember.computed(function () {\n return [];\n }),\n\n /**\n * If the second address line is shown for company.\n */\n showOptionalCompanyAddress: false,\n\n /**\n * If the second address line is shown for shipping address.\n */\n showOptionalShippingAddress: false,\n\n /**\n * If the current user can edit this form.\n *\n * @property companyDisabled\n * @type Boolean\n */\n companyDisabled: Ember.computed('user.isNew', function () {\n return !Ember.get(this, 'user.isNew') && !this.can('edit company');\n }),\n isFormValid: Ember.computed.and('validations.isValid', 'user.validations.isValid', 'user.company.validations.isValid'),\n // -------------------------------------------------------------------------\n // Actions\n actions: {\n /**\n * Persists new/existing user if\n * all validations pass through.\n *\n * @method showOptionalAddress\n * @param {Boolean} checkCompany\n * @return {Void}\n * @public\n */\n saveUserAndCompany: function saveUserAndCompany() {\n var _this = this;\n\n var checkCompany = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var isValid = Ember.get(this, 'isFormValid');\n\n if (!Ember.get(this, 'shippingSameAsBilling')) {\n isValid &= this.get('shippingAddress').validateSync().validations.get('isValid');\n }\n\n this.set('didValidate', true);\n\n if (!isValid) {\n (0, _scrollIntoTheFirstErrorIfNeeded.default)();\n return;\n }\n\n Ember.set(this, 'isLoading', true);\n\n var userSuccessCallback = function userSuccessCallback() {\n _this.get('saveAction')();\n };\n\n var userFailureCallback = function userFailureCallback() {\n _this.send('clearSimilarCompanies');\n };\n\n var userFinallyCallback = function userFinallyCallback() {\n Ember.set(_this, 'isLoading', false);\n };\n\n var companySuccessCallback = function companySuccessCallback() {\n _this._createUser().then(userSuccessCallback, userFailureCallback).finally(userFinallyCallback);\n };\n\n var companyFailureCallback = function companyFailureCallback() {\n Ember.set(_this, 'isLoading', false);\n }; // create new user\n\n\n if (Ember.get(this, 'user.isNew')) {\n if (!checkCompany) {\n companySuccessCallback();\n return;\n }\n\n this._checkCompany().then(companySuccessCallback, companyFailureCallback);\n\n return;\n }\n\n this._updateUser().then(userSuccessCallback).catch(userFailureCallback).finally(userFinallyCallback);\n },\n\n /**\n * Forces creation of a user.\n *\n * @method create\n * @return {Void}\n * @public\n */\n create: function create() {\n this.send('clearSimilarCompanies');\n this.send('saveUserAndCompany', false);\n },\n\n /**\n * Clears similar companies.\n *\n * @method create\n * @return {Void}\n * @public\n */\n clearSimilarCompanies: function clearSimilarCompanies() {\n Ember.set(this, 'similarCompanies', []);\n }\n },\n // -------------------------------------------------------------------------\n // Methods\n init: function init() {\n this._super.apply(this, arguments);\n\n (false && !(Ember.get(this, 'user')) && Ember.assert('user is required', Ember.get(this, 'user')));\n },\n\n /**\n * Adds a company for new users.\n *\n * @method didReceiveAttrs\n * @return {Void}\n * @public\n */\n didReceiveAttrs: function didReceiveAttrs() {\n var _this2 = this;\n\n this._super.apply(this, arguments);\n\n var user = Ember.get(this, 'user');\n\n if (Ember.isEmpty(user)) {\n return;\n }\n\n var companyCallback = function companyCallback(company) {\n var newLocation = Ember.get(_this2, 'store').createRecord('location', {\n type: 'COMPANY'\n });\n var newCompany = Ember.get(_this2, 'store').createRecord('company');\n\n if (Ember.isEmpty(company)) {\n Ember.set(newCompany, 'location', newLocation);\n Ember.set(_this2, 'user.company', newCompany);\n return;\n }\n\n if (Ember.isEmpty(Ember.get(company, 'location'))) {\n Ember.set(company, 'location', newLocation);\n newCompany.rollbackAttributes();\n return;\n }\n\n newLocation.rollbackAttributes();\n newCompany.rollbackAttributes();\n };\n\n Ember.get(user, 'company').then(companyCallback);\n },\n\n /**\n * Rolls back current user as\n * well as all corresponding\n * relationships.\n *\n * @method willDestroyElement\n * @return {Void}\n * @public\n */\n willDestroyElement: function willDestroyElement() {\n this._super.apply(this, arguments);\n\n var user = Ember.get(this, 'user');\n\n if (Ember.isEmpty(user) || Ember.get(user, 'isDeleted') || Ember.get(user, 'isNew')) {\n return;\n }\n\n var companyCallback = function companyCallback(company) {\n if (Ember.isEmpty(company)) {\n return;\n }\n\n company.rollbackAttributes();\n var location = Ember.get(company, 'location');\n\n if (Ember.isEmpty(location)) {\n return;\n }\n\n location.rollbackAttributes();\n };\n\n user.rollbackAttributes();\n Ember.get(user, 'company').then(companyCallback);\n },\n\n /**\n * Creates a new user in database.\n *\n * @method _createUser\n * @private\n *\n * @return {Promise}\n */\n _createUser: function _createUser() {\n var _this3 = this;\n\n var promiseCallback = function promiseCallback(resolve, reject) {\n var saveUserSuccessCallback = function saveUserSuccessCallback() {\n resolve();\n };\n\n var saveUserFailureCallback = function saveUserFailureCallback(reason) {\n reject(reason);\n };\n\n var loginUserSuccessCallback = function loginUserSuccessCallback() {\n _this3._saveUser().then(saveUserSuccessCallback, saveUserFailureCallback);\n };\n\n var loginUserFailureCallback = function loginUserFailureCallback(reason) {\n reject(reason);\n };\n\n var createUserSuccessCallback = function createUserSuccessCallback() {\n _this3._loginUser().then(loginUserSuccessCallback, loginUserFailureCallback);\n };\n\n var createUserFailureCallback = function createUserFailureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this3, 'l10n').t('An error occurred while trying to create your account: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this3, 'toast').error(errorMessage);\n reject();\n };\n\n Ember.get(_this3, 'ajax').post('/user', {\n data: {\n email: Ember.get(_this3, 'user.email'),\n password: Ember.get(_this3, 'password'),\n fullName: Ember.get(_this3, 'user.fullName'),\n timezone: Ember.get(_this3, 'user.timezone'),\n companyName: Ember.get(_this3, 'user.company.name')\n }\n }).then(createUserSuccessCallback, createUserFailureCallback);\n };\n\n return new Ember.RSVP.Promise(promiseCallback);\n },\n\n /**\n * Updates an existing user in database.\n *\n * @method _updateUser\n * @private\n *\n * @return {Promise}\n */\n _updateUser: function _updateUser() {\n var _this4 = this;\n\n var promiseCallback = function promiseCallback(resolve, reject) {\n var successCallback = function successCallback() {\n resolve();\n };\n\n var failureCallback = function failureCallback(reason) {\n reject(reason);\n };\n\n _this4._saveUser().then(successCallback, failureCallback);\n };\n\n return new Ember.RSVP.Promise(promiseCallback);\n },\n\n /**\n * Establishes a user session for new user.\n *\n * @method _loginUser\n * @private\n *\n * @return {Promise}\n */\n _loginUser: function _loginUser() {\n var _this5 = this;\n\n var promiseCallback = function promiseCallback(resolve, reject) {\n var companySuccessCallback = function companySuccessCallback(serverCompany) {\n // note: we've to copy current attributes from client\n // to server company, which was implicitly created by\n // POST request from _createUser() only with `name`!\n var sessionUser = Ember.get(_this5, 'userSession.currentUser');\n var clientCompany = Ember.get(_this5, 'user.company');\n Ember.get(_model2.default, 'fields').forEach(function (kind, key) {\n var value = Ember.get(clientCompany, key);\n Ember.set(serverCompany, key, value);\n });\n Ember.set(sessionUser, 'company', serverCompany);\n Ember.set(_this5, 'user', sessionUser);\n resolve();\n };\n\n var companyFailureCallback = function companyFailureCallback(reason) {\n var errorMessage = Ember.get(_this5, 'l10n').t('An error occurred while setting up your session. Please log in and try again.');\n Ember.get(_this5, 'toast').error(errorMessage);\n reject(reason);\n };\n\n var authenticateSuccessCallback = function authenticateSuccessCallback() {\n Ember.get(_this5, 'userSession.currentCompany').then(companySuccessCallback, companyFailureCallback);\n };\n\n var autenticateFailureCallback = function autenticateFailureCallback(reason) {\n var errorMessage = Ember.get(_this5, 'l10n').t('An error occurred while setting up your session. Please log in and try again.');\n Ember.get(_this5, 'toast').error(errorMessage);\n reject(reason);\n };\n\n Ember.get(_this5, 'session').authenticate('authenticator:custom', {\n email: Ember.get(_this5, 'user.email'),\n password: Ember.get(_this5, 'password')\n }).then(authenticateSuccessCallback, autenticateFailureCallback);\n };\n\n return new Ember.RSVP.Promise(promiseCallback);\n },\n\n /**\n * Persists company including location\n * from current user input in database .\n *\n * @method _saveUser\n * @private\n *\n * @return {Promise}\n */\n _saveUser: function _saveUser() {\n var _this6 = this;\n\n var promiseCallback = function promiseCallback(resolve, reject) {\n var saveSuccessCallback = function saveSuccessCallback() {\n resolve();\n };\n\n var saveFailureCallback = function saveFailureCallback(adapterError) {\n var serverErrorMessage = (0, _getFirstAdapterErrorMessage.default)(adapterError);\n var errorMessage = Ember.get(_this6, 'l10n').t('An error occurred while trying to save your profile: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this6, 'toast').error(errorMessage);\n reject(adapterError);\n };\n\n var companySuccessCallback = function companySuccessCallback(company) {\n var promises = [];\n\n if (Ember.get(_this6, 'showProfile')) {\n promises.push(Ember.get(_this6, 'user').save());\n }\n\n promises.push(company.save());\n Ember.RSVP.Promise.all(promises).then(saveSuccessCallback, saveFailureCallback);\n };\n\n var companyFailureCallback = function companyFailureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this6, 'l10n').t('An error occurred while trying to fetch your company: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this6, 'toast').error(errorMessage);\n reject(error);\n };\n\n Ember.get(_this6, 'user.company').then(companySuccessCallback, companyFailureCallback);\n };\n\n return new Ember.RSVP.Promise(promiseCallback);\n },\n\n /**\n * Checks if a similar company already\n * exists through /search/company api.\n *\n * @method _checkCompany\n * @private\n *\n * @return {Promise}\n */\n _checkCompany: function _checkCompany() {\n var _this7 = this;\n\n var promiseCallback = function promiseCallback(resolve, reject) {\n var successCallback = function successCallback(companies) {\n if (Ember.isEmpty(companies)) {\n resolve();\n return;\n }\n\n Ember.set(_this7, 'similarCompanies', companies);\n reject(null);\n };\n\n var failureCallback = function failureCallback(error) {\n var serverErrorMessage = Ember.get(error, 'payload.error');\n var errorMessage = Ember.get(_this7, 'l10n').t('An error occurred while trying to fetch similar companies: {{serverErrorMessage}}', {\n serverErrorMessage: serverErrorMessage\n });\n Ember.get(_this7, 'toast').error(errorMessage);\n reject();\n };\n\n Ember.get(_this7, 'user.company').then(function (company) {\n Ember.get(_this7, 'ajax').request('/search/company', {\n data: {\n term: Ember.get(company, 'name')\n }\n }).then(successCallback, failureCallback);\n });\n };\n\n return new Ember.RSVP.Promise(promiseCallback);\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-registration-form/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"MYYVGuPX\",\n \"block\": \"{\\\"symbols\\\":[\\\"text\\\",\\\"placeholder\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"hasError\\\",\\\"company\\\",\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"similarCompanies\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-left\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"There is an existing company with the same name.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"The following companies have already been setup on V-Hub. If one of those happens to be your company, or if you are unsure if your company has already been setup by another user of your company, please contact your company's administrator. The administrator has to invite you in order for you to be part of their company.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"title\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\",[27,\\\"t\\\",[\\\"By continuing, you might create a duplicate company!\\\"],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"If you belong to one of the companies displayed below, please cancel and get in touch with the company's administrator!\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"ul\\\"],[11,\\\"class\\\",\\\"margin-bottom-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"each\\\",[[23,[\\\"similarCompanies\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"li\\\"],[9],[4,\\\"link-to\\\",[\\\"store.company\\\",[22,23,[\\\"id\\\"]]],[[\\\"target\\\"],[\\\"_blank\\\"]],{\\\"statements\\\":[[1,[22,23,[\\\"name\\\"]],false]],\\\"parameters\\\":[]},null],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[23]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container button__container--inline\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button button--secondary\\\",\\\"create\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Create the company {{companyName}}\\\"],[[\\\"companyName\\\"],[[23,[\\\"user\\\",\\\"company\\\",\\\"name\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"c-button\\\",null,[[\\\"class\\\",\\\"action\\\"],[\\\"button\\\",\\\"clearSimilarCompanies\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Cancel\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"companyDisabled\\\"]]],null,{\\\"statements\\\":[[4,\\\"info-message\\\",null,[[\\\"type\\\",\\\"class\\\"],[\\\"WARNING\\\",\\\"margin-bottom-2\\\"]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"You are not allowed to edit company information!\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[7,\\\"form\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Full name\\\"],null],\\\"user__fullname\\\",[23,[\\\"user\\\"]],\\\"fullName\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"hasError\\\",\\\"maxlength\\\",\\\"autocomplete\\\"],[\\\"input__txt js-auction-registration-form-fullname\\\",\\\"user__fullname\\\",[23,[\\\"user\\\",\\\"fullName\\\"]],[22,22,[]],\\\"250\\\",\\\"name\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[22]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Email\\\"],null],\\\"user__email\\\",[23,[\\\"user\\\"]],\\\"email\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"maxlength\\\",\\\"id\\\",\\\"value\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt js-auction-registration-form-email\\\",\\\"email\\\",\\\"45\\\",\\\"user__email\\\",[23,[\\\"user\\\",\\\"email\\\"]],[22,21,[]],\\\"email\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[21]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"description\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Password\\\"],null],\\\"user__password\\\",[22,0,[]],[27,\\\"t\\\",[\\\"Your password must have at least 8 characters.\\\"],null],\\\"password\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input-password\\\",null,[[\\\"value\\\",\\\"class\\\",\\\"id\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[[23,[\\\"password\\\"]],\\\"input__txt js-auction-registration-form-password\\\",\\\"user__password\\\",[22,20,[]],\\\"new-password\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[20]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Company name\\\"],null],\\\"company__name\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"name\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"maxlength\\\",\\\"autocomplete\\\"],[\\\"input__txt js-auction-registration-form-company-name\\\",\\\"company__name\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"name\\\"]],[23,[\\\"companyDisabled\\\"]],[22,19,[]],\\\"250\\\",\\\"organization\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[19]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Country\\\"],null],\\\"location__country\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"location.country\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-select-country\\\",null,[[\\\"id\\\",\\\"class\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\"],[\\\"location__country\\\",\\\"js-auction-registration-form-country\\\",[27,\\\"t\\\",[\\\"Select your Country\\\"],null],[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"country\\\"]],[23,[\\\"companyDisabled\\\"]],[22,18,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[18]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Address\\\"],null],\\\"location__street\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"location.street\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"showOptionalCompanyAddress\\\"]],[23,[\\\"companyDisabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button input__txt--icon button--icon\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/add-line.svg\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Show address line 2\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showOptionalCompanyAddress\\\"]]],null],true],null]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-street\\\",\\\"location__street\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"street\\\"]],[23,[\\\"companyDisabled\\\"]],[22,17,[]],\\\"address-line1\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[17]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showOptionalCompanyAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"location__addressAddition\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Address line 2\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-address-line-two\\\",\\\"location__addressAddition\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"addressAddition\\\"]],[23,[\\\"companyDisabled\\\"]],\\\"address-line2\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Zip code\\\"],null],\\\"location__zip\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"location.zip\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-zip\\\",\\\"location__zip\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"zip\\\"]],[23,[\\\"companyDisabled\\\"]],[22,16,[]],\\\"postal-code\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[16]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3 margin-bottom-0\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"location__state\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"State\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-state\\\",\\\"location__state\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"state\\\"]],[23,[\\\"companyDisabled\\\"]],\\\"address-level1\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"City\\\"],null],\\\"location__city\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"location.city\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-city\\\",\\\"location__city\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"city\\\"]],[23,[\\\"companyDisabled\\\"]],[22,15,[]],\\\"address-level2\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[15]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Company e-mail\\\"],null],\\\"location__email\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"location.email\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"type\\\",\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"email\\\",\\\"input__txt input--full js-auction-registration-form-company-email\\\",\\\"location__email\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"email\\\"]],[23,[\\\"companyDisabled\\\"]],[22,14,[]],\\\"email\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[14]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Phone number\\\"],null],\\\"location__phone\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"location.phone\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-phone\\\",\\\"tel\\\",\\\"location__phone\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"phone\\\"]],[23,[\\\"companyDisabled\\\"]],[22,13,[]],\\\"tel\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[13]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Website\\\"],null],\\\"location__website\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"location.website\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-website\\\",\\\"location__website\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"website\\\"]],[23,[\\\"companyDisabled\\\"]],[22,12,[]],\\\"url\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[12]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"user\\\",\\\"company\\\",\\\"location\\\",\\\"hasVatNumber\\\"]]],null,{\\\"statements\\\":[[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"VAT number\\\"],null],\\\"company__vatNumber\\\",[23,[\\\"user\\\",\\\"company\\\"]],\\\"vatNumber\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\"],[\\\"input__txt input--full js-auction-registration-form-vat\\\",\\\"company__vatNumber\\\",[23,[\\\"user\\\",\\\"company\\\",\\\"vatNumber\\\"]],[23,[\\\"companyDisabled\\\"]],[22,11,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[11]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"h3\\\"],[9],[1,[27,\\\"t\\\",[\\\"Shipping address\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"value\\\",\\\"checked\\\",\\\"class\\\",\\\"id\\\"],[[23,[\\\"shippingSameAsBilling\\\"]],[23,[\\\"shippingSameAsBilling\\\"]],\\\"input__checkbox\\\",\\\"register__company_is_shipping\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"register__company_is_shipping\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Company address and shipping address are the same.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[23,[\\\"shippingSameAsBilling\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Full name\\\"],null],\\\"shipping__user__fullname\\\",[23,[\\\"shippingAddress\\\"]],\\\"fullName\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"maslength\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt js-auction-registration-form-shipping-fullname\\\",\\\"shipping__user__fullname\\\",[23,[\\\"shippingAddress\\\",\\\"fullName\\\"]],\\\"250\\\",[22,10,[]],\\\"name\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[10]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Company name\\\"],null],\\\"shipping__company__name\\\",[23,[\\\"shippingAddress\\\"]],\\\"company\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"maxlength\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt js-auction-registration-form-shipping-company-name\\\",\\\"shipping__company__name\\\",[23,[\\\"shippingAddress\\\",\\\"company\\\"]],[23,[\\\"companyDisabled\\\"]],\\\"250\\\",[22,9,[]],\\\"organization\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[9]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Country\\\"],null],\\\"shipping__location__country\\\",[23,[\\\"shippingAddress\\\"]],\\\"country\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-select-country\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"placeholder\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\"],[\\\"js-auction-registration-form-shipping-country\\\",\\\"shipping__location__country\\\",[27,\\\"t\\\",[\\\"Select your country\\\"],null],[23,[\\\"shippingAddress\\\",\\\"country\\\"]],[23,[\\\"companyDisabled\\\"]],[22,8,[]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[8]},null],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Address\\\"],null],\\\"shipping__location__street\\\",[23,[\\\"shippingAddress\\\"]],\\\"street\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[4,\\\"unless\\\",[[27,\\\"or\\\",[[23,[\\\"showOptionalShippingAddress\\\"]],[23,[\\\"companyDisabled\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"relative\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button input__txt--icon button--icon\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/icons/add-line.svg\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Show address line 2\\\"],null]],[9],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showOptionalShippingAddress\\\"]]],null],true],null]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-shipping-street\\\",\\\"shipping__location__street\\\",[23,[\\\"shippingAddress\\\",\\\"street\\\"]],[23,[\\\"companyDisabled\\\"]],[22,7,[]],\\\"address-line1\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[7]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showOptionalShippingAddress\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping__location__addressAddition\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Address line 2\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-shipping-address-line-two\\\",\\\"shipping__location__addressAddition\\\",[23,[\\\"shippingAddress\\\",\\\"addressAddition\\\"]],[23,[\\\"companyDisabled\\\"]],\\\"address-line2\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Zip code\\\"],null],\\\"shipping__location__zip\\\",[23,[\\\"shippingAddress\\\"]],\\\"zip\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-shipping-zip\\\",\\\"shipping__location__zip\\\",[23,[\\\"shippingAddress\\\",\\\"zip\\\"]],[23,[\\\"companyDisabled\\\"]],[22,6,[]],\\\"postal-code\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[6]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3 margin-bottom-0\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"label__standard\\\"],[11,\\\"for\\\",\\\"shipping__location__state\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"State\\\"],null],false],[0,\\\"\\\\n \\\"],[7,\\\"span\\\"],[11,\\\"class\\\",\\\"label--optional\\\"],[9],[0,\\\" (\\\"],[1,[27,\\\"t\\\",[\\\"Optional\\\"],null],false],[0,\\\")\\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-shipping-state\\\",\\\"shipping__location__state\\\",[23,[\\\"shippingAddress\\\",\\\"state\\\"]],[23,[\\\"companyDisabled\\\"]],\\\"address-level1\\\"]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--3 margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"City\\\"],null],\\\"shipping__location__city\\\",[23,[\\\"shippingAddress\\\"]],\\\"city\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-shipping-city\\\",\\\"shipping__location__city\\\",[23,[\\\"shippingAddress\\\",\\\"city\\\"]],[23,[\\\"companyDisabled\\\"]],[22,5,[]],\\\"address-level2\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[5]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Phone number\\\"],null],\\\"shipping__location__phone\\\",[23,[\\\"shippingAddress\\\"]],\\\"phone\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"type\\\",\\\"id\\\",\\\"value\\\",\\\"disabled\\\",\\\"hasError\\\",\\\"autocomplete\\\"],[\\\"input__txt input--full js-auction-registration-form-shipping-phone\\\",\\\"tel\\\",\\\"shipping__location__phone\\\",[23,[\\\"shippingAddress\\\",\\\"phone\\\"]],[23,[\\\"companyDisabled\\\"]],[22,4,[]],\\\"tel\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[4]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[14,24,[[22,0,[]]]],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"importerRequirement\\\"]],\\\"IMPORTER_PROVIDED\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"box box--highlight\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"label\\\",\\\"controlId\\\",\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[27,\\\"t\\\",[\\\"Importer name\\\"],null],\\\"importer__name\\\",[22,0,[]],\\\"importerName\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"value\\\",\\\"hasError\\\",\\\"maxlength\\\"],[\\\"input__txt\\\",\\\"importer__name\\\",[23,[\\\"importerName\\\"]],[22,3,[]],\\\"250\\\"]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[3]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"validated-form-component\\\",null,[[\\\"model\\\",\\\"valuePath\\\",\\\"didValidate\\\"],[[22,0,[]],\\\"termsAccepted\\\",[23,[\\\"didValidate\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-checkbox\\\",null,[[\\\"value\\\",\\\"checked\\\",\\\"class\\\",\\\"id\\\"],[[23,[\\\"termsAccepted\\\"]],[23,[\\\"termsAccepted\\\"]],\\\"input__checkbox\\\",\\\"register__accept\\\"]]],false],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"class\\\",\\\"input__checkbox--label\\\"],[11,\\\"for\\\",\\\"register__accept\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"get-text\\\",null,[[\\\"message\\\"],[[27,\\\"t\\\",[\\\"I agree to the {{linkToTermsOfService 'terms of service'}} and the {{linkToAuctionPolicy 'auction policy'}}.\\\"],null]]],{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"linkToTermsOfService\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain\\\"],[9],[1,[22,1,[]],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showServiceTerms\\\"]]],null],true],null]]],[10]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[22,2,[]],\\\"linkToAuctionPolicy\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain\\\"],[9],[1,[22,1,[]],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showAuctionPolicy\\\"]]],null],true],null]]],[10]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[1,2]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__wrapper text-center margin-top-4\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"c-button\\\",null,[[\\\"type\\\",\\\"preventDefault\\\",\\\"class\\\",\\\"loadingText\\\",\\\"isLoading\\\"],[\\\"submit\\\",false,\\\"button button--special js-auction-registration-form-join-btn\\\",[27,\\\"t\\\",[\\\"Joining auction...\\\"],null],[23,[\\\"user\\\",\\\"isLoading\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Join auction\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"saveUserAndCompany\\\"],[[\\\"on\\\",\\\"target\\\"],[\\\"submit\\\",[22,0,[]]]]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showServiceTerms\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"modalClasses\\\",\\\"title\\\",\\\"close\\\"],[\\\"modal--xlarge\\\",[27,\\\"t\\\",[\\\"Terms of service\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showServiceTerms\\\"]]],null],false],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[21,\\\"terms-of-service\\\"],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"showAuctionPolicy\\\"]]],null,{\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"modalClasses\\\",\\\"title\\\",\\\"close\\\"],[\\\"modal--xlarge\\\",[27,\\\"t\\\",[\\\"Auction policy\\\"],null],[27,\\\"action\\\",[[22,0,[]],[27,\\\"mut\\\",[[23,[\\\"showAuctionPolicy\\\"]]],null],false],null]]],{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"auction-terms\\\",null,[[\\\"auction\\\"],[[23,[\\\"auction\\\"]]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-registration-form/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\ndefine(\"@vollersgroup/hub-frontend/components/country-chooser/component\", [\"exports\", \"@vollersgroup/hub-frontend/utils/country-data\"], function (_exports, _countryData) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _dec, _dec2, _class;\n\n function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\n function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n function _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\n function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\n function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\n function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\n function _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n\n var CountryChooserComponent = (_dec = Ember.computed('value'), _dec2 = Ember.computed('value'), (_class = /*#__PURE__*/function (_Ember$Component) {\n _inherits(CountryChooserComponent, _Ember$Component);\n\n var _super = _createSuper(CountryChooserComponent);\n\n function CountryChooserComponent() {\n var _this;\n\n _classCallCheck(this, CountryChooserComponent);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _defineProperty(_assertThisInitialized(_this), \"tagName\", '');\n\n return _this;\n }\n\n _createClass(CountryChooserComponent, [{\n key: \"selectedObject\",\n get: function get() {\n var key = this.value;\n\n if (!key) {\n return null;\n }\n\n return {\n name: _countryData.default[key],\n value: key\n };\n }\n }, {\n key: \"options\",\n get: function get() {\n var options = Object.keys(_countryData.default).map(function (key) {\n return {\n name: _countryData.default[key],\n value: key\n };\n });\n options.unshift({\n name: '',\n value: null\n });\n return options.sortBy('name');\n }\n }]);\n\n return CountryChooserComponent;\n }(Ember.Component), (_applyDecoratedDescriptor(_class.prototype, \"selectedObject\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"selectedObject\"), _class.prototype), _applyDecoratedDescriptor(_class.prototype, \"options\", [_dec2], Object.getOwnPropertyDescriptor(_class.prototype, \"options\"), _class.prototype)), _class));\n _exports.default = CountryChooserComponent;\n});","define(\"@vollersgroup/hub-frontend/components/auction-slug-input/component\", [\"exports\", \"@vollersgroup/hub-frontend/utils/normalize-for-slug\", \"@vollersgroup/hub-frontend/components/validated-form-component/component\"], function (_exports, _normalizeForSlug, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = _component.default.extend({\n router: Ember.inject.service(),\n ajax: Ember.inject.service(),\n store: Ember.inject.service(),\n auction: null,\n model: Ember.computed.alias('auction'),\n valuePath: Ember.computed(function () {\n return 'slug';\n }),\n slugBaseUrl: Ember.computed('router', function () {\n var protocol = window.location.protocol;\n var hostname = window.location.hostname;\n var port = window.location.port ? ':' + window.location.port : '';\n var routePath = 'store.auctions.show';\n var path = Ember.get(this, 'router').urlFor(routePath, null);\n var parts = path.split('/'); // Remove last part of the url\n // (e.g.: /store/auction/:auction_id -> /store/auction)\n\n parts.splice(-1);\n path = parts.join('/');\n return \"\".concat(protocol, \"//\").concat(hostname).concat(port).concat(path, \"/\");\n }),\n _suggestSlug: Ember.observer('auction.name', function () {\n var name = Ember.get(this, 'auction.name');\n\n if (!Ember.get(this, 'auction.isNew') || Ember.isBlank(name)) {\n return;\n }\n\n Ember.run.debounce(this, this._debouncedSlugUpdate, 500);\n }),\n _debouncedSlugUpdate: function _debouncedSlugUpdate() {\n var name = Ember.get(this, 'auction.name');\n this.send('updateSlug', (0, _normalizeForSlug.default)(name));\n },\n slugIsUnique: Ember.computed('validation.error.type', function () {\n var errorType = Ember.get(this, 'validation.error.type');\n return errorType != 'unique-auction-slug';\n }),\n suggestedSlugYear: Ember.computed('auction.slug', function () {\n var slug = Ember.get(this, 'auction.slug');\n return slug + '-' + new Date().getFullYear().toString();\n }),\n suggestedSlugNumeric: Ember.computed('auction.slug', function () {\n var slug = Ember.get(this, 'auction.slug');\n return slug + '-' + '1';\n }),\n actions: {\n updateSlug: function updateSlug(slug) {\n Ember.set(this, 'auction.slug', slug);\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-slug-input/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"5eo/6dFG\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[7,\\\"label\\\"],[12,\\\"class\\\",[28,[\\\"label__standard \\\",[27,\\\"if\\\",[[23,[\\\"hasError\\\"]],\\\"label--has-error\\\"],null]]]],[11,\\\"for\\\",\\\"auction_slug\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Auction URL\\\"],null],false],[0,\\\"\\\\n\\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isNew\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__info\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Please be thoughtful when choosing your auction URL as this cannot be changed later.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__group\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__label--left\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"label\\\"],[11,\\\"for\\\",\\\"auction_slug\\\"],[9],[1,[21,\\\"slugBaseUrl\\\"],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"required\\\",\\\"hasError\\\",\\\"placeholder\\\",\\\"id\\\",\\\"value\\\"],[\\\"input__txt input__full input-with-label input-with-label--left js-auction-slug-input\\\",true,[23,[\\\"hasError\\\"]],[27,\\\"t\\\",[\\\"Enter your auction url here\\\"],null],\\\"auction_slug\\\",[23,[\\\"value\\\"]]]]],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"hasError\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"input__error-msg\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"get\\\",[[27,\\\"get\\\",[[27,\\\"get\\\",[[27,\\\"get\\\",[[23,[\\\"auction\\\"]],\\\"validations\\\"],null],\\\"attrs\\\"],null],\\\"slug\\\"],null],\\\"message\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"not\\\",[[23,[\\\"slugIsUnique\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"font-size-7\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You can use one of the following instead:\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"ul\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"suggestedSlugYear\\\"],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"updateSlug\\\",[23,[\\\"suggestedSlugYear\\\"]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"li\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain\\\"],[11,\\\"type\\\",\\\"button\\\"],[9],[0,\\\"\\\\n \\\"],[1,[21,\\\"suggestedSlugNumeric\\\"],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"updateSlug\\\",[23,[\\\"suggestedSlugNumeric\\\"]]]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"c-input\\\",null,[[\\\"class\\\",\\\"id\\\",\\\"disabled\\\",\\\"value\\\"],[\\\"input__txt input__full js-auction-slug-input\\\",\\\"auction_slug\\\",true,[27,\\\"concat\\\",[[23,[\\\"slugBaseUrl\\\"]],[23,[\\\"value\\\"]]],null]]]],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-slug-input/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-terms/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Displays corresponding terms of an auction.\n *\n * @namespace Component\n * @class AuctionTerms\n */\n var _default = Ember.Component.extend({\n // -------------------------------------------------------------------------\n // Attributes\n\n /**\n * The auction model.\n *\n * @attribute auction\n * @type {Model.Auction}\n */\n auction: null\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-terms/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"uJjZiDK+\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[27,\\\"markdown-to-html\\\",[[23,[\\\"auction\\\",\\\"auctionPolicy\\\"]]],null],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-terms/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-tour-modal/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Modal component to show a tour about auctions\n */\n var _default = Ember.Component.extend({\n l10n: Ember.inject.service(),\n step: 1,\n maxStep: 5,\n auction: null,\n title: Ember.computed('l10n', 'step', function () {\n var step = this.get('step');\n var l10n = this.get('l10n');\n\n switch (step) {\n case 1:\n return l10n.t('Auction - lot view');\n\n case 2:\n case 3:\n case 4:\n return l10n.t('Auction - bidding');\n\n case 5:\n return l10n.t('Auction - joining');\n } // Hopefully, this would never happen.\n\n\n return '';\n }),\n actions: {\n next: function next() {\n if (this.get('step') < this.get('maxStep')) {\n this.incrementProperty('step');\n } else {\n this.get('closeModal')();\n }\n },\n prev: function prev() {\n if (this.get('step') > 1) {\n this.decrementProperty('step');\n }\n }\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/auction-tour-modal/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"+l84nVJe\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[4,\\\"modal-overlay\\\",null,[[\\\"modalClasses\\\",\\\"title\\\",\\\"close\\\"],[\\\"lf-dialog--tour\\\",[23,[\\\"title\\\"]],[23,[\\\"closeModal\\\"]]]],{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-top-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"This is how a lot will look like during an auction.\\\"],null],false],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-top-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"1) To bid on an lot, just enter your maximum bid.\\\"],null],true],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"1) To bid on an lot, just enter your maximum bid. 2) And then hit the \\\\\\\"Place bid\\\\\\\" button.\\\"],null],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],4],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"As highest bidder you can change the amount of your max. bid, but only if the new amount is not lower than the current lot price.\\\"],null],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],5],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"text-center wrapper--small\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"auction\\\",\\\"status\\\"]],\\\"CLOSED\\\"],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Note: This auction has ended. You cannot join it.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isActiveOrRunning\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"auction\\\",\\\"isAccepted\\\"]]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You are registered for this auction and ready for it when it starts.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-top-2 margin-bottom-2\\\"],[9],[1,[27,\\\"t\\\",[\\\"Almost Done.\\\"],null],false],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"can\\\",[\\\"register for auction\\\",[23,[\\\"auction\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"strong\\\"],[9],[1,[27,\\\"t\\\",[\\\"To take part in this auction click the \\\\\\\"Join auction\\\\\\\" button below.\\\"],null],false],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"button__container__item margin-top-2\\\"],[9],[0,\\\"\\\\n \\\"],[4,\\\"link-to\\\",[\\\"register.auction\\\",[23,[\\\"auction\\\"]]],[[\\\"class\\\"],[\\\"button button--special\\\"]],{\\\"statements\\\":[[1,[27,\\\"t\\\",[\\\"Join auction\\\"],null],false]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"p\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Sorry, but you are not allowed to join an auction. Only administrators and managers of your company may do so.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],5],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"role\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/tour/auction/lot-1.png\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Tour step {{stepNumber}}\\\"],[[\\\"stepNumber\\\"],[[23,[\\\"step\\\"]]]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],2],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/tour/auction/lot-2.png\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Tour step {{stepNumber}}\\\"],[[\\\"stepNumber\\\"],[[23,[\\\"step\\\"]]]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],3],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/tour/auction/lot-3.png\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Tour step {{stepNumber}}\\\"],[[\\\"stepNumber\\\"],[[23,[\\\"step\\\"]]]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],4],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"img\\\"],[11,\\\"src\\\",\\\"/assets/img/tour/auction/lot-4.png\\\"],[12,\\\"alt\\\",[27,\\\"t\\\",[\\\"Tour step {{stepNumber}}\\\"],[[\\\"stepNumber\\\"],[[23,[\\\"step\\\"]]]]]],[9],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"next\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],5],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"padding-all-3 text-center wrapper--small\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"You can join an auction at any time by clicking the \\\\\\\"Join auction\\\\\\\" button in the right corner of the page.\\\"],null],false],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"p\\\"],[11,\\\"class\\\",\\\"margin-bottom-2\\\"],[9],[0,\\\"\\\\n\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Samples: Once you've been accepted from the auctioneer, you can order sample bundles for an auction.\\\"],null],true],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__cols__container padding-all-3\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 text-left margin-bottom-0\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"unless\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],1],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button button--plain margin-top-3\\\"],[9],[0,\\\"\\\\n \\\"],[1,[27,\\\"t\\\",[\\\"Previous tip\\\"],null],false],[0,\\\"\\\\n \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"prev\\\"]],[10],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},null],[0,\\\" \\\"],[10],[0,\\\"\\\\n \\\"],[7,\\\"div\\\"],[11,\\\"class\\\",\\\"layout__col layout__col--2 text-right margin-bottom-0\\\"],[9],[0,\\\"\\\\n \\\"],[7,\\\"button\\\"],[11,\\\"class\\\",\\\"button\\\"],[9],[0,\\\"\\\\n\\\"],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"step\\\"]],[23,[\\\"maxStep\\\"]]],null]],null,{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Done!\\\"],null],false],[0,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[0,\\\" \\\"],[1,[27,\\\"t\\\",[\\\"Next tip\\\"],null],false],[0,\\\" (\\\"],[1,[21,\\\"step\\\"],false],[0,\\\"/\\\"],[1,[21,\\\"maxStep\\\"],false],[0,\\\")\\\\n\\\"]],\\\"parameters\\\":[]}],[0,\\\" \\\"],[3,\\\"action\\\",[[22,0,[]],\\\"next\\\"]],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n \\\"],[10],[0,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},null]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/auction-tour-modal/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/authenticated-link/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Generate a link which either links to the login or directly to the desired route\n *\n * If the user is not logged in, a login link is generated.\n * After login, the user will be redirected to the originally desired page\n *\n * ```html\n * {{#authenticated-link route=\"store.listing\" model=listing}}Link Text{{/authenticated-link}}\n * {{#authenticated-link queryParamName=\"addToCart\" queryParamValue=listing.id}}Link Text{{/authenticated-link}}\n * ```\n *\n * @namespace Component\n * @class AuthenticatedLink\n * @augments Ember.Component\n */\n var _default = Ember.Component.extend({\n // -------------------------------------------------------------------------\n // Attributes\n\n /**\n * Don't wrap in a tag\n *\n * @property tagName\n * @final\n * @private\n * @type String\n */\n tagName: '',\n\n /**\n * An optional parameter for the link-to helper\n *\n * @attribute model\n * @public\n * @type String\n */\n model: null,\n\n /**\n * The route name for the link-to helper\n *\n * @attribute route\n * @public\n * @type String\n */\n route: null,\n\n /**\n * The query param name for the link-to helper\n *\n * @attribute queryParamName\n * @public\n * @type String\n */\n queryParamName: null,\n\n /**\n * The query param value for the link-to helper\n *\n * @attribute queryParamValue\n * @public\n * @type String\n */\n queryParamValue: null,\n\n /**\n * If the default auction should be prevented.\n *\n * @attribute preventDefault\n * @public\n * @type {Boolean}\n * @default true\n */\n preventDefault: true,\n\n /**\n * If the event should be bubbled.\n *\n * @attribute bubbles\n * @public\n * @type {Boolean}\n * @default true\n */\n bubbles: true,\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Build the afterLogin query Parameter\n *\n * @property afterLogin\n * @private\n * @returns String\n */\n afterLogin: Ember.computed('queryParamName', 'queryParamValue', function () {\n return this.get('queryParamName') + '++' + this.get('queryParamValue');\n })\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/authenticated-link/template\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"KPmyPYzy\",\n \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"session\\\",\\\"isAuthenticated\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"queryParamName\\\"]]],null,{\\\"statements\\\":[[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"queryParamName\\\"]],\\\"addToCart\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"addToCart\\\"],[[23,[\\\"queryParamValue\\\"]]]]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"queryParamName\\\"]],\\\"addSampleToCart\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"addSampleToCart\\\"],[[23,[\\\"queryParamValue\\\"]]]]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"queryParamName\\\"]],\\\"messageTo\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"sendMessage\\\",\\\"messageTo\\\"],[1,[23,[\\\"queryParamValue\\\"]]]]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null],[4,\\\"if\\\",[[27,\\\"eq\\\",[[23,[\\\"queryParamName\\\"]],\\\"followShop\\\"],null]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"followShop\\\"],[[23,[\\\"queryParamValue\\\"]]]]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"model\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[23,[\\\"route\\\"]],[23,[\\\"model\\\"]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[[23,[\\\"route\\\"]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"if\\\",[[23,[\\\"route\\\"]]],null,{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"showLogin\\\",\\\"gotoRoute\\\",\\\"gotoModel\\\"],[\\\"1\\\",[23,[\\\"route\\\"]],[23,[\\\"model\\\"]]]]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[4,\\\"link-to\\\",[[27,\\\"query-params\\\",null,[[\\\"showLogin\\\",\\\"afterLogin\\\"],[\\\"1\\\",[23,[\\\"afterLogin\\\"]]]]]],[[\\\"bubbles\\\",\\\"preventDefault\\\",\\\"class\\\"],[[23,[\\\"bubbles\\\"]],[23,[\\\"preventDefault\\\"]],[23,[\\\"class\\\"]]]],{\\\"statements\\\":[[14,1]],\\\"parameters\\\":[]},null]],\\\"parameters\\\":[]}]],\\\"parameters\\\":[]}]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"@vollersgroup/hub-frontend/components/authenticated-link/template.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"@vollersgroup/hub-frontend/components/basic-dropdown\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown\"], function (_exports, _basicDropdown) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _basicDropdown.default;\n }\n });\n});","define(\"@vollersgroup/hub-frontend/components/basic-dropdown/content-element\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown/content-element\"], function (_exports, _contentElement) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _contentElement.default;\n }\n });\n});","define(\"@vollersgroup/hub-frontend/components/basic-dropdown/content\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown/content\"], function (_exports, _content) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _content.default;\n }\n });\n});","define(\"@vollersgroup/hub-frontend/components/basic-dropdown/trigger\", [\"exports\", \"ember-basic-dropdown/components/basic-dropdown/trigger\"], function (_exports, _trigger) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _trigger.default;\n }\n });\n});","define(\"@vollersgroup/hub-frontend/components/bread-crumbs/component\", [\"exports\", \"@vollersgroup/ember-cropster-common/components/bread-crumbs/component\"], function (_exports, _component) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function get() {\n return _component.default;\n }\n });\n});","define(\"@vollersgroup/hub-frontend/components/breadcrumbs-list/component\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n * Display a list of breadcrumbs\n *\n * ```html\n * {{breadcrumbs-list}}\n * ```\n *\n * @namespace Component\n * @class BreadcrumbsList\n * @augments Ember.Component\n */\n var _default = Ember.Component.extend({\n // -------------------------------------------------------------------------\n // Dependencies\n l10n: Ember.inject.service(),\n router: Ember.inject.service(),\n // -------------------------------------------------------------------------\n // Properties\n\n /**\n * Store's index route injected by initializer.\n *\n * @property routes.indexRoute\n * @type Ember.Route\n * @default null\n * @public\n */\n indexRoute: Ember.computed(function () {\n // note: ember sets `routeName` only on actual visits!\n var route = Ember.getOwner(this).lookup('route:store.index');\n Ember.set(route, 'routeName', 'store.index');\n return route;\n }),\n\n /**\n * Store's shops route injected by initializer.\n *\n * @property routes.shopsRoute\n * @type Ember.Route\n * @default null\n * @public\n */\n shopsRoute: Ember.computed(function () {\n // note: ember sets `routeName` only on actual visits!\n var route = Ember.getOwner(this).lookup('route:store.shops');\n Ember.set(route, 'routeName', 'store.shops');\n return route;\n }),\n\n /**\n * Store's auctions route injected by initializer.\n *\n * @property routes.auctionsRoute\n * @type Ember.Route\n * @default null\n * @public\n */\n auctionsRoute: Ember.computed(function () {\n // note: ember sets `routeName` only on actual visits!\n var route = Ember.getOwner(this).lookup('route:store.auctions');\n Ember.set(route, 'routeName', 'store.auctions');\n return route;\n }),\n\n /**\n * Store's shop route injected by initializer.\n *\n * @property routes.shopRoute\n * @type Ember.Route\n * @default null\n * @public\n */\n shopRoute: Ember.computed(function () {\n // note: ember sets `routeName` only on actual visits!\n var route = Ember.getOwner(this).lookup('route:store.shop');\n Ember.set(route, 'routeName', 'store.shop');\n return route;\n }),\n\n /**\n * Store's auction route injected by initializer.\n *\n * @property routes.auctionRoute\n * @type Ember.Route\n * @default null\n * @public\n */\n auctionRoute: Ember.computed(function () {\n // note: ember sets `routeName` only on actual visits!\n var route = Ember.getOwner(this).lookup('route:store.auctions.show');\n Ember.set(route, 'routeName', 'store.auctions.show');\n return route;\n }),\n\n /**\n * Store's company route injected by initializer.\n *\n * @property routes.companyRoute\n * @type Ember.Route\n * @default null\n * @public\n */\n companyRoute: Ember.computed(function () {\n // note: ember sets `routeName` only on actual visits!\n var route = Ember.getOwner(this).lookup('route:store.company');\n Ember.set(route, 'routeName', 'store.company');\n return route;\n }),\n\n /**\n * Store's listing route injected by initializer.\n *\n * @property routes.listingRoute\n * @type Ember.Route\n * @default null\n * @public\n */\n listingRoute: Ember.computed(function () {\n // note: ember sets `routeName` only on actual visits!\n var route = Ember.getOwner(this).lookup('route:store.listing');\n Ember.set(route, 'routeName', 'store.listing');\n return route;\n }),\n\n /**\n * Composition of restore and breadcrumb items.\n *\n * @property items\n * @type {Array}\n */\n items: Ember.computed.union('restoreItems', 'breadcrumbItems'),\n\n /**\n * Breadcrumb items, where every item consist of the following structure:\n *\n * ```js\n * var breadcrumbItem = {\n * label: ,\n * route: ,\n * model: